diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -979,7 +979,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM | |||
979 | if ($oldhash != $conf->get('credentials.hash')) { | 979 | if ($oldhash != $conf->get('credentials.hash')) { |
980 | echo '<script>alert("' | 980 | echo '<script>alert("' |
981 | . t('The old password is not correct.') | 981 | . t('The old password is not correct.') |
982 | .'");document.location=\'?do=changepasswd\';</script>'; | 982 | .'");document.location=\'./?do=changepasswd\';</script>'; |
983 | exit; | 983 | exit; |
984 | } | 984 | } |
985 | // Save new password | 985 | // Save new password |
@@ -1002,10 +1002,10 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM | |||
1002 | ); | 1002 | ); |
1003 | 1003 | ||
1004 | // TODO: do not handle exceptions/errors in JS. | 1004 | // TODO: do not handle exceptions/errors in JS. |
1005 | echo '<script>alert("'. $e->getMessage() .'");document.location=\'?do=tools\';</script>'; | 1005 | echo '<script>alert("'. $e->getMessage() .'");document.location=\'./?do=tools\';</script>'; |
1006 | exit; | 1006 | exit; |
1007 | } | 1007 | } |
1008 | echo '<script>alert("'. t('Your password has been changed') .'");document.location=\'?do=tools\';</script>'; | 1008 | echo '<script>alert("'. t('Your password has been changed') .'");document.location=\'./?do=tools\';</script>'; |
1009 | exit; | 1009 | exit; |
1010 | } else { | 1010 | } else { |
1011 | // show the change password form. | 1011 | // show the change password form. |
@@ -1051,7 +1051,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM | |||
1051 | ) { | 1051 | ) { |
1052 | $_SESSION['warnings'][] = t( | 1052 | $_SESSION['warnings'][] = t( |
1053 | 'You have enabled or changed thumbnails mode. ' | 1053 | 'You have enabled or changed thumbnails mode. ' |
1054 | .'<a href="?do=thumbs_update">Please synchronize them</a>.' | 1054 | .'<a href="./?do=thumbs_update">Please synchronize them</a>.' |
1055 | ); | 1055 | ); |
1056 | } | 1056 | } |
1057 | $conf->set('thumbnails.mode', $thumbnailsMode); | 1057 | $conf->set('thumbnails.mode', $thumbnailsMode); |
@@ -1067,10 +1067,10 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM | |||
1067 | ); | 1067 | ); |
1068 | 1068 | ||
1069 | // TODO: do not handle exceptions/errors in JS. | 1069 | // TODO: do not handle exceptions/errors in JS. |
1070 | echo '<script>alert("'. $e->getMessage() .'");document.location=\'?do=configure\';</script>'; | 1070 | echo '<script>alert("'. $e->getMessage() .'");document.location=\'./?do=configure\';</script>'; |
1071 | exit; | 1071 | exit; |
1072 | } | 1072 | } |
1073 | echo '<script>alert("'. t('Configuration was saved.') .'");document.location=\'?do=configure\';</script>'; | 1073 | echo '<script>alert("'. t('Configuration was saved.') .'");document.location=\'./?do=configure\';</script>'; |
1074 | exit; | 1074 | exit; |
1075 | } else { | 1075 | } else { |
1076 | // Show the configuration form. | 1076 | // Show the configuration form. |
@@ -1130,7 +1130,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM | |||
1130 | } | 1130 | } |
1131 | $bookmarkService->save(); | 1131 | $bookmarkService->save(); |
1132 | $delete = empty($_POST['totag']); | 1132 | $delete = empty($_POST['totag']); |
1133 | $redirect = $delete ? 'do=changetag' : 'searchtags='. urlencode(escape($_POST['totag'])); | 1133 | $redirect = $delete ? './do=changetag' : 'searchtags='. urlencode(escape($_POST['totag'])); |
1134 | $alert = $delete | 1134 | $alert = $delete |
1135 | ? sprintf(t('The tag was removed from %d link.', 'The tag was removed from %d bookmarks.', $count), $count) | 1135 | ? sprintf(t('The tag was removed from %d link.', 'The tag was removed from %d bookmarks.', $count), $count) |
1136 | : sprintf(t('The tag was renamed in %d link.', 'The tag was renamed in %d bookmarks.', $count), $count); | 1136 | : sprintf(t('The tag was renamed in %d link.', 'The tag was renamed in %d bookmarks.', $count), $count); |
@@ -1519,7 +1519,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM | |||
1519 | ), | 1519 | ), |
1520 | get_max_upload_size(ini_get('post_max_size'), ini_get('upload_max_filesize')) | 1520 | get_max_upload_size(ini_get('post_max_size'), ini_get('upload_max_filesize')) |
1521 | ); | 1521 | ); |
1522 | echo '<script>alert("'. $msg .'");document.location=\'?do='.Router::$PAGE_IMPORT .'\';</script>'; | 1522 | echo '<script>alert("'. $msg .'");document.location=\'./?do='.Router::$PAGE_IMPORT .'\';</script>'; |
1523 | exit; | 1523 | exit; |
1524 | } | 1524 | } |
1525 | if (! $sessionManager->checkToken($_POST['token'])) { | 1525 | if (! $sessionManager->checkToken($_POST['token'])) { |
@@ -1532,7 +1532,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM | |||
1532 | $conf, | 1532 | $conf, |
1533 | $history | 1533 | $history |
1534 | ); | 1534 | ); |
1535 | echo '<script>alert("'.$status.'");document.location=\'?do=' | 1535 | echo '<script>alert("'.$status.'");document.location=\'./?do=' |
1536 | .Router::$PAGE_IMPORT .'\';</script>'; | 1536 | .Router::$PAGE_IMPORT .'\';</script>'; |
1537 | exit; | 1537 | exit; |
1538 | } | 1538 | } |
@@ -1587,12 +1587,12 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM | |||
1587 | // TODO: do not handle exceptions/errors in JS. | 1587 | // TODO: do not handle exceptions/errors in JS. |
1588 | echo '<script>alert("' | 1588 | echo '<script>alert("' |
1589 | . $e->getMessage() | 1589 | . $e->getMessage() |
1590 | .'");document.location=\'?do=' | 1590 | .'");document.location=\'./?do=' |
1591 | . Router::$PAGE_PLUGINSADMIN | 1591 | . Router::$PAGE_PLUGINSADMIN |
1592 | .'\';</script>'; | 1592 | .'\';</script>'; |
1593 | exit; | 1593 | exit; |
1594 | } | 1594 | } |
1595 | header('Location: ?do='. Router::$PAGE_PLUGINSADMIN); | 1595 | header('Location: ./?do='. Router::$PAGE_PLUGINSADMIN); |
1596 | exit; | 1596 | exit; |
1597 | } | 1597 | } |
1598 | 1598 | ||