okay i am tryign to move most of the crap i had on my other tf to hte new on

i got alot of em off the old forums tho.... so i can't credit hte author as it is not in hte google cache
This is not my work! i think it is coldfire'sif this is your work and you have a problem all you need ot do is aks me and i will delete this or credit you what ever you wishes are

in your languge add this to your languge file in my case language/lang-english.php
just add it anywhere basically

define('_TDDU','Directory Size:');
in dir.php find
}
}
}
}
closedir($handle);
echo "</table>";
}
and replace with
}
}
}
}
closedir($handle);
$cmd = "du -ch ".$dirName." | grep \"total\"";
$du = shell_exec($cmd);
echo "</table>";
echo "<table cellpadding=0 width=740>";
$du2 = substr($du, 0, -7);
echo "<tr bgcolor=#ececec>";
echo "<td align=\"center\">"._TDDU." ".$du2."B</td></tr>";
echo "</table>";
}
now after
if (@is_dir($dirName.$entry))
{
echo "<tr bgcolor=\"".$bg."\"><td><a href=\"dir.php?dir=".urlencode($dir.$entry)."\"><img src=\"images/folder2.gif\" width=\"16\" height=\"16\" title=\"".$entry."\" border=\"0\" align=\"absmiddle\">".$entry."</a></td>";
add this
$dudir = shell_exec ("/usr/bin/du -sk -h ".correctFileName ($dirName.$entry));
$dusize = explode ("\t", $dudir);
$arStat = @lstat($dirName.$entry);
$timeStamp = $arStat[10];
echo "<td align=\"right\">".$dusize[0]."B</td>";
echo "<td width=140>".date("m-d-Y h:i a", $timeStamp)."</td>";
echo "<td align=\"right\">";
now delete this(should be underneath)
echo "<td> </td>";
echo "<td> </td>";
echo "<td align=\"right\">";
now find
echo "<td>".date("m-d-Y g:i a", $timeStamp)."</td>";
and replace with
echo "<td width=140>".date("m-d-Y h:i a", $timeStamp)."</td>";
in functions.php
add this
//*************************************************************************
// correctFileName()
// Adds backslashes above special characters to obtain attainable directory
// names for disk usage
function correctFileName ($inName)
{
$replaceItems = array("'", ",", "#", "%", "!", "+", ":", "/", " ", "@", "$", "&", "?", "\"", "(", ")");
$replacedItems = array("\'", "\,", "\#", "\%", "\!", "\+", "\:", "\/", "\ ", "\@", "\$", "\&", "\?", "\\\"", "\(", "\)");
$cleanName = str_replace($replaceItems, $replacedItems, $inName);
return $cleanName;
}
if you canot work out where i just put mine below
//*********************************************************
// avddelete()
function avddelete($file)
{
chmod($file,0777);
if (@is_dir($file))
{
$handle = @opendir($file);
while($filename = readdir($handle))
{
if ($filename != "." && $filename != "..")
{
avddelete($file."/".$filename);
}
}
closedir($handle);
@rmdir($file);
}
else
{
@unlink($file);
}
}
that is all that needs to be done.... i think
