diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | <?php | 1 | <?php |
2 | // Shaarli 0.0.28 beta - Shaare your links... | 2 | // Shaarli 0.0.29 beta - Shaare your links... |
3 | // The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net | 3 | // The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net |
4 | // http://sebsauvage.net/wiki/doku.php?id=php:shaarli | 4 | // http://sebsauvage.net/wiki/doku.php?id=php:shaarli |
5 | // Licence: http://www.opensource.org/licenses/zlib-license.php | 5 | // Licence: http://www.opensource.org/licenses/zlib-license.php |
@@ -54,7 +54,7 @@ header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); | |||
54 | header("Cache-Control: no-store, no-cache, must-revalidate"); | 54 | header("Cache-Control: no-store, no-cache, must-revalidate"); |
55 | header("Cache-Control: post-check=0, pre-check=0", false); | 55 | header("Cache-Control: post-check=0, pre-check=0", false); |
56 | header("Pragma: no-cache"); | 56 | header("Pragma: no-cache"); |
57 | define('shaarli_version','0.0.28 beta'); | 57 | define('shaarli_version','0.0.29 beta'); |
58 | if (!is_dir($GLOBALS['config']['DATADIR'])) { mkdir($GLOBALS['config']['DATADIR'],0705); chmod($GLOBALS['config']['DATADIR'],0705); } | 58 | if (!is_dir($GLOBALS['config']['DATADIR'])) { mkdir($GLOBALS['config']['DATADIR'],0705); chmod($GLOBALS['config']['DATADIR'],0705); } |
59 | if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['DATADIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. | 59 | if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['DATADIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. |
60 | if ($GLOBALS['config']['ENABLE_LOCALCACHE']) | 60 | if ($GLOBALS['config']['ENABLE_LOCALCACHE']) |
@@ -880,7 +880,7 @@ function renderPage() | |||
880 | // Show login screen, then redirect to ?post=... | 880 | // Show login screen, then redirect to ?post=... |
881 | if (isset($_GET['post'])) | 881 | if (isset($_GET['post'])) |
882 | { | 882 | { |
883 | header('Location: ?do=login&post='.urlencode($_GET['post']).(iset($_GET['title'])?'&title='.urlencode($_GET['title']):'').(isset($_GET['source'])?'&source='.urlencode($_GET['source']):'')); // Redirect to login page, then back to post link. | 883 | header('Location: ?do=login&post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):'')); // Redirect to login page, then back to post link. |
884 | exit; | 884 | exit; |
885 | } | 885 | } |
886 | 886 | ||