Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Editing Footer.php, adding a script
DjLuki
post 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 &copy;</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();

?>


Notice from BuffaloHELP:
Corrected title's spelling.


This post has been edited by BuffaloHELP: Jul 18 2005, 04:45 AM
Go to the top of the page
 
+Quote Post
electriic ink
post Jul 18 2005, 05:52 AM
Post #2


Incest is a game the whole family can play.
Group Icon

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 &copy;</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...
Go to the top of the page
 
+Quote Post
DjLuki
post 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..
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Script: Php Jukebox(4)
  2. Parse: Error Unexpected T_lnumber(4)
  3. Transfer Variables To Another Php Script(8)
  4. Watermark Your Image With Simple Php Script(35)
  5. Script That Tracks The User Status(4)
  6. Wappychat_oldskool(15)
  7. Free Auction Script(6)
  8. Wappy Buddy V1.10 - Tibia Gold Edition By Wappy & Jon Roig(3)
  9. What Kind Of Script Do You Need ?(15)
  10. Creatting A Playlist Through Php(5)
  11. Html Code Tester. Online Script(15)
  12. Php Sessions And Post Variables Issues(1)
  13. Will This Code Work(5)
  14. Php Downloads Script(4)
  15. Script Help Required: Undefined Variable(3)
  1. Script Not Working(6)
  2. Php Ftp Upload Form(1)
  3. Library Script(6)
  4. How Would I Go About Making A Simple "counting" Script?(3)
  5. Forum Script(3)
  6. Php Rediret Script(12)
  7. Download Script For Mp3 Files(0)
  8. How Do I Connect To Live Database With Php Script?(6)
  9. Need Help Installing Dolphin Community Script!(5)
  10. Guessing Php Script(2)
  11. How To Make A View New Post Script?(5)
  12. Php Guest Online Script(3)
  13. How To Make Php Newsletter Script(3)


 



- Lo-Fi Version Time is now: 6th September 2008 - 06:15 PM