- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 56 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - GoogleTap Beta 0.6.0 installation question [ ]
Author
Message
dsnail2000
Site Admin
Joined: Mar 17, 2003
Posts: 331
Location: Northern VA
Posted:
Fri May 09, 2003 12:14 pm
in the directions for altering the footer.php file, you say:
Code:
Directions: Find the "foot();" function call near the end of the document and
replace it with the following block:
$contents = ob_get_contents(); // store buffer in $contents
ob_end_clean(); // delete output buffer and stop buffering
echo replace_for_mod_rewrite($contents); //display modified buffer to screen
foot();
really not sure what lines to replace in the foot function:
Code:
function foot() {
global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
if ($home == 1) {
blocks(Down);
}
if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
$cpname = ereg_replace("_", " ", $name);
echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname &</a></div>";
}
themefooter();
echo "</body>\n"
."</html>";
die();
}
foot();
sort of confused here.
Zhen-Xjell
Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Fri May 09, 2003 12:21 pm
The second Code: block, you found it, its the "foot();" line of code you had to find.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de ] [en ] [wiki ]
dsnail2000
Site Admin
Joined: Mar 17, 2003
Posts: 331
Location: Northern VA
Posted:
Fri May 09, 2003 12:38 pm
so the footer.php should now look like this?
Code:
function foot() {
global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
if ($home == 1) {
blocks(Down);
}
if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
$cpname = ereg_replace("_", " ", $name);
echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname &</a></div>";
}
themefooter();
echo "</body>\n"
."</html>";
die();
}
$contents = ob_get_contents(); // store buffer in $contents
ob_end_clean(); // delete output buffer and stop buffering
echo replace_for_mod_rewrite($contents); //display modified buffer to screen
foot();
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum