aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 3b6869f0..0b836ae9 100644
--- a/index.php
+++ b/index.php
@@ -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");
27header("Cache-Control: no-store, no-cache, must-revalidate"); 27header("Cache-Control: no-store, no-cache, must-revalidate");
28header("Cache-Control: post-check=0, pre-check=0", false); 28header("Cache-Control: post-check=0, pre-check=0", false);
29header("Pragma: no-cache"); 29header("Pragma: no-cache");
30define('shaarli_version','0.0.7 beta'); 30define('shaarli_version','0.0.8 beta');
31if (!is_dir(DATADIR)) { mkdir(DATADIR,0705); chmod(DATADIR,0705); } 31if (!is_dir(DATADIR)) { mkdir(DATADIR,0705); chmod(DATADIR,0705); }
32if (!is_file(DATADIR.'/.htaccess')) { file_put_contents(DATADIR.'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. 32if (!is_file(DATADIR.'/.htaccess')) { file_put_contents(DATADIR.'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files.
33if (!is_file(CONFIG_FILE)) install(); 33if (!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 }