this is really a nice mod.
i tried to merge it with autoindex but i got problems..
here is the code i use:
PHP Code:
echo "$stylevar[htmldoctype]";
echo "<html dir=\"$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\">";
echo "<head>";
echo "<title>$vboptions[bbtitle] $WT_PageName</title>";
echo "$headinclude";
echo "</head>";
echo "<body>";
echo "$header";
echo "$navbar";
echo "$nowbrowsing";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
echo " <tr>";
echo "<td valign=\"top\"> <table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\">";
echo "<thead>";
echo " <tr>";
echo " <td class=\"tcat\" align=\"left\">» $WT_PageName</td>";
echo "</tr>";
echo " <tr> ";
echo " <td class=\"alt2\" align=\"left\">";
echo "<div class=\"normalfont\"> ";
// ============================
// Put Your PHP CODE right after this line
require_once("autoindex.php");
require_once("AutoIndex.conf.php");
// ============================
echo "</div> ";
echo "</td>";
echo "</tr>";
echo "<tr> ";
echo "<td class=\"thead\" align=\"left\">Page ";
echo " Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname] ";
echo " at $WT[lastvisitdate]. $WT_Editor_link<br>";
echo " Page Created at <b>$creationdate</b>, Last Modified ";
echo " : <b>$lasteditdate</b>.</td>";
echo " </tr>";
echo "</thead>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "$footer";
echo "</body>";
echo "</html>";
it works perfect but..
every time i click the each folder my URL change from
view.php?pg=phptest2 to
view.php?=dir=x then it redirects to invalid page...
any solution?
Reason why am merging this hack with autoindex to VB is that autoindex has the ability to control speed download and anti-leeching sequence..
thou this is really a great hack i nomionate this hack MOTM
great job
Logician
br
gsmph