Hi!
Back again with two new errors...

Saved as text files

Deprecated: Function session_unregister() is deprecated in /home/content/13/11394913/html/logout.php on line 15

http://www.universal-abundance.com/logout.txt
Ln 15 is a blank line!

Deprecated: Function eregi() is deprecated in /home/content/13/11394913/html/join.php on line 52

http://www.universal-abundance.com/join.txt

Ln 52   } elseif(!preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $_POST['email'])) {

Thanks!
L-D

Whats in the header.php?

Please post the code using the CODE part of the post syntax

PUT THE CODE IN THE POST!!!

Ok,

<?php
include "config.php";
?>
<html>
<head>
<title><?php echo $sitename; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--<?php
include "config.php";
?>
<html>
<head>
<title><?php echo $sitename; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
    background-color: #000000;
}
-->
</style></head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>&nbsp;&nbsp;&nbsp;
body {
    background-color: #000000;
}
-->
</style></head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="index.php"><img src="images/home.jpg" width="104" height="78" alt="" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="advertise.php"><img src="images/advertise.jpg" width="104" height="78" alt="" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="join.php"><img src="images/register.jpg" width="104" height="78" alt="" border="0"></a><a href="faq.php"><img src="images/faq.jpg" width="104" height="78" alt="" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="contactus.php"><img src="images/contact.jpg" width="104" height="78" alt="" border="0"></a>&nbsp;&nbsp;&nbsp;<a href="login.php"><img src="images/login.jpg" width="104" height="78" alt="" border="0"></a><!-- <img src="images/top.jpg" width="505" height="78" alt=""> --></td>
</tr>
<tr>
<td><!-- <img src="images/header.jpg" width="1000" height="133" alt=""> --></td>
</tr>
<tr>
<td background="images/bg.jpg"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><font face=verdana size=2 color=#ffffff>
<?php
$rs=mysql_query("select ID,BannerURL from bannersads where remaining>0 and approved=1 and adtype=1 order by rand() limit 0,1");
while($arr=mysql_fetch_array($rs)) {
echo "<center><a href=$siteurl/tr.php?id=$arr[0] target=_blank><img src=$arr[1] border=0></a><br><br></center>";
$rsu=mysql_query("update bannersads set remaining=remaining-1 where ID=$arr[0]");
}
?>

I tweeked it to put images where I want them to show up.

L-D

Here is the code, header.php, untweaked.

<?php
include "config.php";
?>
<html>
<head>
<title><? echo $sitename; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
    background-color: #000000;
}    }

-->
</style></head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><a href="index.php"><img src="images/home.jpg" width="104" height="78" alt="" border="0"></a><a href="advertise.php"><img src="images/advertise.jpg" width="96" height="78" alt="" border="0"></a><a href="join.php"><img src="images/register.jpg" width="77" height="78" alt="" border="0"></a><a href="faq.php"><img src="images/faq.jpg" width="52" height="78" alt="" border="0"></a><a href="contactus.php"><img src="images/contact.jpg" width="91" height="78" alt="" border="0"></a><a href="login.php"><img src="images/login.jpg" width="75" height="78" alt="" border="0"></a><img src="images/top.jpg" width="505" height="78" alt=""></td>
</tr>
<tr>
<td><img src="images/header.jpg" width="1000" height="20" alt=""></td>
</tr>
<tr>
<td background="images/bg.jpg"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><font face=verdana size=2 color=#ffffff>
<?
$rs=mysql_query("select * from bannersads where remaining>0 and approved=1 and adtype=1 order by rand() limit 0,1");
while($arr=mysql_fetch_array($rs)) {
echo "<center><a href=$siteurl/tr.php?id=$arr[0] target=_blank><img src=$arr[2] border=0></a><br><br></center>";
$rsu=mysql_query("update bannersads set remaining=remaining-1 where ID=$arr[0]");
}
?>
Member Avatar for Zagga

Hi L-D,

You are getting these warnings because the code you are using was written for an earlier version of PHP than the version your server is running. Some of the old functions, like session_unregister(), have been dropped so you get the warnings.

If you look at the PHP manual section for session_unregister and eregi you will find the functions you should be using instead.

Your first error is a bit confusing because it states the error is on a blank line. What you need to remember is that PHP is reading the entire file, once header.php and config.php have been included, so line 15 is probably part of config.php (as you also include this file at the start of header.php).
Have a look through config.php and see if you can find the session_unregister function near the top of the page, and change it (them) to unset() as described in the PHP manual.

Then move on to replacing eregi with preg_match.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.