aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSeb Sauvage <sebsauvage@sebsauvage.net>2011-09-16 15:33:20 +0200
committerEmilien Klein <emilien@klein.st>2011-09-16 15:33:20 +0200
commit6d6ea97528474ff1b09c0ace18d322ffab5575ee (patch)
tree5fd1f9ed1159e267ee636f7cf50b6097a8d64143
parentef734b5dd7b21678313283e8604e5eaacfef0b10 (diff)
downloadShaarli-6d6ea97528474ff1b09c0ace18d322ffab5575ee.tar.gz
Shaarli-6d6ea97528474ff1b09c0ace18d322ffab5575ee.tar.zst
Shaarli-6d6ea97528474ff1b09c0ace18d322ffab5575ee.zip
Version 0.0.8 beta
-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 }