diff options
author | Seb Sauvage <sebsauvage@sebsauvage.net> | 2011-11-18 09:56:44 +0100 |
---|---|---|
committer | Emilien Klein <emilien@klein.st> | 2011-11-18 09:56:44 +0100 |
commit | 76ec20af1637ea1858ae9f38e42018cc33232754 (patch) | |
tree | 1a8a5e564ef7a415fb05f3ae4d1fc36b39030312 /index.php | |
parent | 6d946e78bfca94ac89494e84db3746473867c5ff (diff) | |
download | Shaarli-76ec20af1637ea1858ae9f38e42018cc33232754.tar.gz Shaarli-76ec20af1637ea1858ae9f38e42018cc33232754.tar.zst Shaarli-76ec20af1637ea1858ae9f38e42018cc33232754.zip |
Version 0.0.29 beta:
- Corrected: Corrected a bug introduced in 0.0.28 (there was an error if you use the bookmarklet and you're not logged in).
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 | ||