Welcome to the <b>A<small>DMIN</small> S<small>ITE</small> M<small>ANANGER</small></b>
<br />
<?php
$user=$_GET['user'];
if ($file)
{
echo "<br/><h3 style='margin-top:2px; margin-bottom:2px'>";
echo "Last Saved File: <a href='Users/$user/$file' target='_blank' class='under'>$file</a> ";
echo "<img src='Images/done.gif' alt=''/>";
echo "</h3> \n";
}
echo "<h3 style='margin-bottom:0px;'>You are viewing $user's account</h3>";
?>
<br />
<span id="cms_intro">
This is a graphical user interface (GUI) to help you out in the organization of your files.
Since you are in the <b>ADMIN</b> Mode, you can view all of your files here.
<br/>
<br/>
To edit, rename, or delete a file, a document, or an image, click the corresponding link.
</span>
<br />
<br />
<table summary='files' border='0' style='border:2px solid black;' align='center'>
<tr>
<td colspan='5' align='center'>
<table summary='cms' border='0' class='cms' style="margin:0px;border:0;">
<tr>
<td align='center' class='cms_title' colspan='6'>
<?php echo "Files for $user"; ?>
</td>
</tr>
<!--Table Headers-->
<tr>
<th>
Filename
</th>
<th width='300px;'>
Last Modification
</th>
<th width='75x;'>
Size
</th>
<th align='left' width='30px;'>
Edit
</th>
<th align='left' width='30px;'>
Rename
</th>
<th width='30px;'>
Delete
</th>
</tr>
<?php
#REQUIRE FOR ALL 3 SECTIONS!!!!
require("File_Size.php");
#DO NOT INCLUDE ANYWHERE ELSE!!!!
$dir = "Users/$user/";
$tr="#c0c0c0";
$flag = false;
if (is_dir($dir))
{
if ($handle = opendir($dir))
{
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
$create="";
$mod="";
$fs= File_Size($user,$file);
$tail=strtolower(substr($file, -2));
$mod=date ("m/d/y h:i ", filemtime("Users/$user/$file"));
if (date("H",filemtime("Users/$user/$file")) >= 12)
$mod.="PM";
else
$mod.="AM";
echo "<tr bgcolor='$tr'>";
echo "\n<td><a href='Users/$user/$file' target='_blank'>$file</a></td>";
echo "\n<!--File Modification Time for $file-->";
echo "\n<td>$mod</td>";
echo "\n<!--File Size for $file-->";
echo "\n<td>$fs</td>";
echo "\n<td><a href='egap.php?file=$file'>Edit</a></td>";
#Loop for TR colors
if ($tr=="#c0c0c0")
$tr="#ffffff";
elseif ($tr=="#ffffff")
$tr="#c0c0c0";
echo "\n<td><a href='?id=rename&file=$file'>Rename</a></td>";
echo "\n<td><a href='?id=delete&file=$file'>Delete</a></td></tr>\n";
}
}
}
}
?>
</table>
<div class='add'>
<b>ADD:</b> <a href='?id=add_page'>Add a Page</a>
<b>|</b>
<a href='?id=upload'>Upload a Page</a>
</div>
</td>
</tr>
</table>
<?php
$_SESSION['login']="admin";
?>