r1074 - webspace/include
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Apr 29 02:16:25 EDT 2007
Author: floam
Date: 2007-04-29 02:16:24 -0400 (Sun, 29 Apr 2007)
New Revision: 1074
Modified:
webspace/include/models.php
webspace/include/thebrain.php
Log:
Sorting, cosmetics
Modified: webspace/include/models.php
===================================================================
--- webspace/include/models.php 2007-04-29 06:08:53 UTC (rev 1073)
+++ webspace/include/models.php 2007-04-29 06:16:24 UTC (rev 1074)
@@ -1,17 +1,15 @@
-<table>
+<table class="block">
<h2>Quake3 Models</h2>
<p>Here are some files for you to look at! Zakk will add more!</p>
<?php
$output = '<tr>
-<td class=\"leftmost block\"><a href=\"/$dir$file[name]\">$file[name]</a></td>
-<td>$file[date]</td>
+<td class=\"leftmost\"><a href=\"/$dir$file[name]\">$file[name]</a></td>
<td>$file[size]</td>
<td class=\"rightmost\">$file[picturefriend]</td>
</tr>';
echo "<tr>
<th class=\"leftmost block\">Name</th>
- <th>Date</th>
<th>Size</th>
<th class=\"rightmost\">Picture</th>
</tr>";
Modified: webspace/include/thebrain.php
===================================================================
--- webspace/include/thebrain.php 2007-04-29 06:08:53 UTC (rev 1073)
+++ webspace/include/thebrain.php 2007-04-29 06:16:24 UTC (rev 1074)
@@ -119,24 +119,21 @@
if ($file != "." && $file != ".." && !is_dir("$dir$file") && !strstr($file, ".jpg"))
{
$file_size = humansize(filesize("$dir$file"));
- $file_unix_date = filemtime("$dir$file");
- $file_date = date("F j, Y",$file_unix_date);
$jpgfile = basename($file, ".zip") . ".jpg";
if (file_exists($dir . $jpgfile))
- $fileimg = "<a href=\"$dir/$jpgfile\">Image</a>";
+ $fileimg = "<a href=\"$dir$jpgfile\">Image</a>";
else
- $fileimg ="N/A";
- $index[$file_unix_date] = array(
+ $fileimg ="";
+ $index[$file] = array(
"name" => $file,
"size" => $file_size,
- "date" => $file_date,
"picturefriend" => $fileimg,
);
}
}
closedir($handle);
}
- krsort($index);
+ ksort($index);
foreach($index as $file)
{
echo eval('return "' . $format . '";');
More information about the quake3-commits
mailing list