banner
Geplaatst: 24 apr 2004, 09:42
Ik heb een mod voor een banner in de page-tail.php te zetten.
Hieronder staat hij de gehackte page tail.
Als ik echter de paigetail.php upload, zie je niets.
<?php
/***************************************************************************
* page_tail.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: page_tail.php,v 1.27.2.1 2002/05/12 00:47:41 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* 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, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}
//
// Show the overall footer.
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
$template->set_filenames(array(
'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
);
?>
<!-- BEGIN OF FOOTER BANNER HACK -->
<center><script language="JavaScript">
<!-- add as much banners as you like -->
var imgs1 = new Array("banners/1.gif","banners/2.gif","banners/3.gif","banners/4.gif","banners/5.gif")
var lnks1 = new Array("http://phpbbhacks.com","http://phpbbhacks.com","http://phpbbhacks.com","http://phpbbhacks.com","http://phpbbhacks.com")
var currentAd1 = 0
var imgCt1 = 5
function cycle1() {
currentAd1++
if (currentAd1 == imgCt1) {
currentAd1 = 0
}
document.adBanner1.src=imgs1[currentAd1]
adLink1.href=lnks1[currentAd1]
setTimeout("cycle1()",5 * 1000)
}
</script>
<!-- small hack: where the random banner begins -->
<a href="http://phpbbhacks.com" name="adLink1" ><img src="banners/1.gif" name="adBanner1" border="0" width="468" height="60" align="center"></a>
<script language="JavaScript">
cycle1()
</script></center>
<!-- END OF FOOTER BANNER HACK -->
Hieronder staat hij de gehackte page tail.
Als ik echter de paigetail.php upload, zie je niets.
<?php
/***************************************************************************
* page_tail.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: page_tail.php,v 1.27.2.1 2002/05/12 00:47:41 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* 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, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}
//
// Show the overall footer.
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
$template->set_filenames(array(
'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
);
?>
<!-- BEGIN OF FOOTER BANNER HACK -->
<center><script language="JavaScript">
<!-- add as much banners as you like -->
var imgs1 = new Array("banners/1.gif","banners/2.gif","banners/3.gif","banners/4.gif","banners/5.gif")
var lnks1 = new Array("http://phpbbhacks.com","http://phpbbhacks.com","http://phpbbhacks.com","http://phpbbhacks.com","http://phpbbhacks.com")
var currentAd1 = 0
var imgCt1 = 5
function cycle1() {
currentAd1++
if (currentAd1 == imgCt1) {
currentAd1 = 0
}
document.adBanner1.src=imgs1[currentAd1]
adLink1.href=lnks1[currentAd1]
setTimeout("cycle1()",5 * 1000)
}
</script>
<!-- small hack: where the random banner begins -->
<a href="http://phpbbhacks.com" name="adLink1" ><img src="banners/1.gif" name="adBanner1" border="0" width="468" height="60" align="center"></a>
<script language="JavaScript">
cycle1()
</script></center>
<!-- END OF FOOTER BANNER HACK -->