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.7 beta - Shaare your links... | 2 | // Shaarli 0.0.8 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 |
@@ -27,7 +27,7 @@ header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); | |||
27 | header("Cache-Control: no-store, no-cache, must-revalidate"); | 27 | header("Cache-Control: no-store, no-cache, must-revalidate"); |
28 | header("Cache-Control: post-check=0, pre-check=0", false); | 28 | header("Cache-Control: post-check=0, pre-check=0", false); |
29 | header("Pragma: no-cache"); | 29 | header("Pragma: no-cache"); |
30 | define('shaarli_version','0.0.7 beta'); | 30 | define('shaarli_version','0.0.8 beta'); |
31 | if (!is_dir(DATADIR)) { mkdir(DATADIR,0705); chmod(DATADIR,0705); } | 31 | if (!is_dir(DATADIR)) { mkdir(DATADIR,0705); chmod(DATADIR,0705); } |
32 | if (!is_file(DATADIR.'/.htaccess')) { file_put_contents(DATADIR.'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. | 32 | if (!is_file(DATADIR.'/.htaccess')) { file_put_contents(DATADIR.'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. |
33 | if (!is_file(CONFIG_FILE)) install(); | 33 | if (!is_file(CONFIG_FILE)) install(); |
@@ -498,7 +498,7 @@ function showRSS() | |||
498 | { | 498 | { |
499 | $link = $LINKSDB[$keys[$i]]; | 499 | $link = $LINKSDB[$keys[$i]]; |
500 | $rfc822date = linkdate2rfc822($link['linkdate']); | 500 | $rfc822date = linkdate2rfc822($link['linkdate']); |
501 | echo '<item><title>'.htmlspecialchars($link['title']).'</title><guid>'.$pageaddr.'?'.htmlspecialchars($link['linkdate']).'</guid><link>'.htmlspecialchars($link['url']).'</link><pubDate>'.htmlspecialchars($rfc822date).'</pubDate>'; | 501 | echo '<item><title>'.htmlspecialchars($link['title']).'</title><guid>'.htmlspecialchars($link['url']).'</guid><link>'.htmlspecialchars($link['url']).'</link><pubDate>'.htmlspecialchars($rfc822date).'</pubDate>'; |
502 | echo '<description><![CDATA['.htmlspecialchars($link['description']).']]></description></item>'."\n"; | 502 | echo '<description><![CDATA['.htmlspecialchars($link['description']).']]></description></item>'."\n"; |
503 | $i++; | 503 | $i++; |
504 | } | 504 | } |