aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorSeb Sauvage <sebsauvage@sebsauvage.net>2011-11-18 09:56:44 +0100
committerEmilien Klein <emilien@klein.st>2011-11-18 09:56:44 +0100
commit76ec20af1637ea1858ae9f38e42018cc33232754 (patch)
tree1a8a5e564ef7a415fb05f3ae4d1fc36b39030312 /index.php
parent6d946e78bfca94ac89494e84db3746473867c5ff (diff)
downloadShaarli-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.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index daafb1db..01dae52b 100644
--- a/index.php
+++ b/index.php
@@ -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");
54header("Cache-Control: no-store, no-cache, must-revalidate"); 54header("Cache-Control: no-store, no-cache, must-revalidate");
55header("Cache-Control: post-check=0, pre-check=0", false); 55header("Cache-Control: post-check=0, pre-check=0", false);
56header("Pragma: no-cache"); 56header("Pragma: no-cache");
57define('shaarli_version','0.0.28 beta'); 57define('shaarli_version','0.0.29 beta');
58if (!is_dir($GLOBALS['config']['DATADIR'])) { mkdir($GLOBALS['config']['DATADIR'],0705); chmod($GLOBALS['config']['DATADIR'],0705); } 58if (!is_dir($GLOBALS['config']['DATADIR'])) { mkdir($GLOBALS['config']['DATADIR'],0705); chmod($GLOBALS['config']['DATADIR'],0705); }
59if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['DATADIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. 59if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['DATADIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files.
60if ($GLOBALS['config']['ENABLE_LOCALCACHE']) 60if ($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