|
|
|
|
![]() ![]() |
Jul 18 2005, 02:45 AM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 447 Joined: 2-March 05 Member No.: 4,094 |
hey can somebody put this script into my footer.php file? because i don't know how. the script has to go between the </body> and </hmtl?
ok this is the script... CODE <!-- Clicksor.com Advertising Code Begin --> <script type='text/javascript'> <!-- clicksor_layer_border_color = '#B4D0DC'; clicksor_layer_ad_bg = '#ECF8FF'; clicksor_layer_ad_link_color = '#0000CC'; clicksor_layer_ad_text_color = '#000000'; clicksor_text_link_bg = ''; clicksor_text_link_color = '#000FFF'; clicksor_enable_pop = false; //--> </script> <script type='text/javascript' src='http://ads.clicksor.com/clicksor.php?pid=11273&sid=20461'></script> <!-- Clicksor.com Advertising Code End --> and here is the fotter.php .... CODE <?php /************************************************************************/ /* PHP-NUKE: Advanced Content Management System */ /* ============================================ */ /* */ /* Copyright (c) 2002 by Francisco Burzi */ /* http://phpnuke.org */ /* */ /* This program is free software. You can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License. */ /************************************************************************/ if (eregi("footer.php",$_SERVER['PHP_SELF'])) { Header("Location: index.php"); die(); } $footer = 1; function footmsg() { global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time; $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $end_time = $mtime; $total_time = ($end_time - $start_time); $total_time = ""._PAGEGENERATION." ".substr($total_time,0,4)." "._SECONDS.""; echo "<font class=\"footmsg\">\n"; if ($foot1 != "") { echo "$foot1<br>\n"; } if ($foot2 != "") { echo "$foot2<br>\n"; } if ($foot3 != "") { echo "$foot3<br>\n"; } // DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS. // IF YOU REALLY NEED TO REMOVE IT AND HAVE MY WRITTEN AUTHORIZATION CHECK: http://phpnuke.org/modules.php?name=Commercial_License // PLAY FAIR AND SUPPORT THE DEVELOPMENT, PLEASE! echo "$copyright<br>$total_time<br>\n</font>\n"; } 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>"; } if ($module == 1 AND file_exists("modules/$name/admin/panel.php")) { echo "<br>"; OpenTable(); include("modules/$name/admin/panel.php"); CloseTable(); } themefooter(); echo "</body>\n" ."</html>"; die(); } foot(); ?> This post has been edited by BuffaloHELP: Jul 18 2005, 04:45 AM |
|
|
|
Jul 18 2005, 05:52 AM
Post
#2
|
|
|
Incest is a game the whole family can play. ![]() Group: [MODERATOR] Posts: 1,217 Joined: 11-February 05 From: Heaven Member No.: 3,709 |
Here's the new script.
CODE <?php /************************************************************************/ /* PHP-NUKE: Advanced Content Management System */ /* ============================================ */ /* */ /* Copyright (c) 2002 by Francisco Burzi */ /* http://phpnuke.org */ /* */ /* This program is free software. You can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License. */ /************************************************************************/ if (eregi("footer.php",$_SERVER['PHP_SELF'])) { Header("Location: index.php"); die(); } $footer = 1; function footmsg() { global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time; $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $end_time = $mtime; $total_time = ($end_time - $start_time); $total_time = ""._PAGEGENERATION." ".substr($total_time,0,4)." "._SECONDS.""; echo "<font class=\"footmsg\">\n"; if ($foot1 != "") { echo "$foot1<br>\n"; } if ($foot2 != "") { echo "$foot2<br>\n"; } if ($foot3 != "") { echo "$foot3<br>\n"; } // DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS. // IF YOU REALLY NEED TO REMOVE IT AND HAVE MY WRITTEN AUTHORIZATION CHECK: http://phpnuke.org/modules.php?name=Commercial_License // PLAY FAIR AND SUPPORT THE DEVELOPMENT, PLEASE! echo "$copyright<br>$total_time<br>\n</font>\n"; } 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>"; } if ($module == 1 AND file_exists("modules/$name/admin/panel.php")) { echo "<br>"; OpenTable(); include("modules/$name/admin/panel.php"); CloseTable(); } themefooter(); echo "</body>\n"; echo " <!-- Clicksor.com Advertising Code Begin --> <script type='text/javascript'> <!-- clicksor_layer_border_color = '#B4D0DC'; clicksor_layer_ad_bg = '#ECF8FF'; clicksor_layer_ad_link_color = '#0000CC'; clicksor_layer_ad_text_color = '#000000'; clicksor_text_link_bg = ''; clicksor_text_link_color = '#000FFF'; clicksor_enable_pop = false; //--> </script> <script type='text/javascript' src='http://ads.clicksor.com/clicksor.php?pid=11273&sid=20461'></script> <!-- Clicksor.com Advertising Code End --> "; echo "</html>"; die(); } foot(); ?> This should work... |
|
|
|
Jul 18 2005, 03:36 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 447 Joined: 2-March 05 Member No.: 4,094 |
thank you very much..
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th September 2008 - 06:15 PM |