Hey guys i’m new here and to the whole php scene so im stuck on a problem…
I am trying to add etology ad code to my header.php and footer.php file but no matter where i put it i get this error… Parse error: syntax error, unexpected ‘<’ does anyone know where I should ad the code at or how I should… I been at this for 3 hrs Thanks alot…
Etology Code
[code]
[/code]header.php
[code]<?php
include “ctracker.php”;
include “online_users.php”;
include “conf_global.php”;
?>
" . mysql_error(); die(); } //IT"S NOT WORKING! if (!mysql_select_db($mysql['db'],$db)) { echo "MySQL error connecting to the database. No database selected.
" . mysql_error(); mysql_close($db); die(); } $ban1 = mysql_query("SELECT ip FROM ban_ip"); $ban2 = mysql_num_rows($ban1); if ($ban2) { for ($ctr = 1; $ban2 = mysql_fetch_array($ban1); $ctr++) { $deny_ip[$ctr] = $ban2[ip]; } } else { $deny_ip = array(); } $_allowed = true; foreach($deny_ip as $dip) { $dip = str_replace('.','.',$dip); $dip = str_replace('*','[0-9]{1,3}',$dip); $dip = str_replace('?','[0-9]{1}',$dip); if(ereg("^{$dip}$", $_SERVER[REMOTE_ADDR])) $_allowed = false; } if(!$_allowed) { echo '
** WARNING ** You do not have access to this page. |
Please Install the MySQL database and create your conf_global.php file first!
'; include "footer.php"; echo ''; die(); }
else if ( file_exists(’_install.php’) )
{
echo ‘’;
echo ‘
** WARNING ** Please delete the _install.php file before continuing. Leaving this file on your server may pose a security issue. |
include “footer.php”;
echo ‘’;
mysql_close($db);
die();
}
echo ‘’;
[/code]
footer.php
[code]
<?php include "conf_global.php"; //If the index is disabled than disable the link if ($index != 1) { echo 'Index Page'; } else { echo '
Index Page'; } //If the page is disabled than disable the link if ($reported != 1) { echo ' Reported Images'; } else { echo ' Reported Images'; } //If view_all is disabled than disable the link if ($view_all != 1) { echo ' Hosted Images'; } else { echo ' Hosted Images'; } //If uploading is disabled than disable the link if ($upload != 1) { echo ' Upload Image'; } else { echo ' Upload Image'; } echo '
Admin Login'; /* To help support us, please don't remove our copyright, please. If you do, please at least donate to us! */ echo '
All content is Copyright © '.date("Y").' and its original authors'; echo '
'; //Do not delete this line. It is a cron job used to check if images need to be deleted //Images that are not viewed in xx days are deleted automatically. Configure this in the Admin Control Panel echo ''; echo ''; echo ''; echo ''; ?>[/code]