X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=public_html%2Findex.php;h=c32506e192690b0d3f1b2c41d8301142863a3612;hb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;hp=0bcd03e86239381a7297e778f2885722a496d3d6;hpb=2dc218143c7859f7529396dc121ae08e2fd78da0;p=silc.git
diff --git a/public_html/index.php b/public_html/index.php
index 0bcd03e8..c32506e1 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -31,8 +31,8 @@
//
// Read neccessary stuff if accessible
- if (Is_Readable("config.php")) include("config.php");
- if (Is_Readable("mirror.php")) include("mirror.php");
+ if (@Is_Readable("config.php")) include("config.php");
+ if (@Is_Readable("mirror.php")) include("mirror.php");
?>
@@ -70,11 +70,11 @@
// find out release dates from release archive files
$Date_Toolkit = date("l dS of F Y H:i:s",
- filemtime("download/silc-toolkit-".$Latest_Toolkit.".tar.gz"));
+ filemtime("download/toolkit/sources/silc-toolkit-".$Latest_Toolkit.".tar.gz"));
$Date_Client = date("l dS of F Y H:i:s",
- filemtime("download/silc-client-".$Latest_Client.".tar.gz"));
+ filemtime("download/client/sources/silc-client-".$Latest_Client.".tar.gz"));
$Date_Server = date("l dS of F Y H:i:s",
- filemtime("download/silc-server-".$Latest_Server.".tar.gz"));
+ filemtime("download/server/sources/silc-server-".$Latest_Server.".tar.gz"));
// remove possibly dangerous characters, only alphanumerical characters are passed
function Filter($input) {
@@ -87,7 +87,7 @@
}
$pass = 0;
- if (Is_Readable("html/".Filter($page).".php")) {
+ if (@Is_Readable("html/".Filter($page).".php")) {
echo $page;
$pass = 1;
}
@@ -104,43 +104,50 @@