[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/areas/download
From:       Emil Sedgh <emilsedgh () gmail ! com>
Date:       2011-02-08 8:27:31
Message-ID: 20110208082731.4795FAC8C0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1219402 by esedgh:

move download.kde.org to chihuahua. patch by Diego Agulló


 M  +8 -7      download.php  
 A             plasmaMenu.inc  
 M  +10 -1     site.inc  


--- trunk/www/areas/download/download.php #1219401:1219402
@@ -1,8 +1,4 @@
 <?php
-  $site_title = "KDE Download";
-  $site_external = true;
-  $site_root = "./";
-
   function IPAddress2IPNumber($dotted) {
     $dotted = preg_split( "/[.]+/", $dotted);
     $ip = (double) ($dotted[0] * 16777216) + ($dotted[1] * 65536) + ($dotted[2] * 256) + ($dotted[3]);
@@ -53,10 +49,9 @@
    enjoy and use KDE please consider supporting the KDE Project financially. KDE
    is in constant need of funds in order to finance its operations.</p>
 
-<form name="ask">
-<input type="button" name="Donate" value="Donate Money" onClick="donate()">
-</form>
+<input type="button" name="Donate" value="Donate Money" onclick="donate()" />
 
+
 <h2>Download Locations</h2>
 <p>The following is a list of KDE FTP mirrors that have recently updated
 from our master ftp distribution site. The &quot;hours&quot; display tells you how many hours ago
@@ -97,6 +92,8 @@
 $deadline = time() - 96*60*60;
 
 $handle = fopen("./mirmon.state", "r");
+
+if (is_resource($handle)) {
 while (!feof($handle)) {
   $buffer = fgets($handle, 512);
 
@@ -108,8 +105,11 @@
       $candidates[strtolower($url)] = $stamp;
 }
 fclose($handle);
+}
 
 $handle = fopen("/srv/www/svn/www/sites/www/mirrors/kdemirrors.list", "r");
+
+if (is_resource($handle)) {
 while (!feof($handle)) {
   $buffer = fgets($handle, 512);
 
@@ -135,6 +135,7 @@
   }
 }
 fclose($handle);
+}
 
 $doprefer = 0;
 
--- trunk/www/areas/download/site.inc #1219401:1219402
@@ -1,3 +1,12 @@
 <?php
-$templatepath = "newlayout/";
+
+// subdomain
+$site = "download";
+
+$site_title = "KDE Download";
+
+$document_root = "./";
+$templatepath = "chihuahua/";
+$page_title = "KDE Download";
+
 ?>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic