JOB OFFER: help with php website

  • lauralei
  • Born
  • Born
  • lauralei
  • Posts: 2
  • Loc: saint louis

Post 3+ Months Ago

my website is http://www.stlfsbo.net

i have not changed a thing and you go to my website and this is what you get

Warning: unlink(re_images/Array): No such file or directory in /home/stlfsbo/public_html/includes.php on line 211


this is a site where people can upload their info --- so i got a glitch some how

looking for someone to fix
let me know how long it will take and price
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • gu3
  • Proficient
  • Proficient
  • User avatar
  • Posts: 322
  • Loc: NCL- England

Post 3+ Months Ago

when i view your page source there is nothing there that would create an upload page what you see in the browser is the page source, i think that it needs a whole new page to be created, i can help if you give me EXACT details of what you need done.
  • lauralei
  • Born
  • Born
  • lauralei
  • Posts: 2
  • Loc: saint louis

Post 3+ Months Ago

this is a for sale by owner site --- here is the whole page - if is understand it right - this is the includes.php page

<?

$q1 = "update agents set AccountStatus = 'pending' where ExpDate <= '$t' and AccountStatus != 'pending' ";
mysql_query($q1) or die(mysql_error());

//get the settings
$qset = "select * from settings";
$rset = mysql_query($qset) or die(mysql_error());
$aset = mysql_fetch_array($rset);

//get the categories
$qi = "select * from categories order by CategoryName";
$ri = mysql_query($qi) or die(mysql_error());

$Account = "<table width=200>\n";

if(mysql_num_rows($ri) > '0')
{
while($ai = mysql_fetch_array($ri))
{
$Categories .= "<tr>\n\t<td bgcolor=#ECECEC><a class=BlackLinkB href=\"search.php?c=$ai[CategoryID]\">$ai[CategoryName]</a></td>\n</tr>\n";

//get the subcategories
$qs = "select * from subcategories where CategoryID = '$ai[CategoryID]' order by SubcategoryName ";
$rs = mysql_query($qs) or die(mysql_error());

if(mysql_num_rows($rs) > '0')
{
while($as = mysql_fetch_array($rs))
{
$Categories .= "<tr>\n\t<td align=left onmouseover=\"this.style.background='EBEBEB'\" onmouseout=\"this.style.background='white'\"><a class=SubCatLinksB href=\"search.php?c=$ai[CategoryID]&s=$as[SubcategoryID]\">$as[SubcategoryName]</a></td>\n</tr>\n";
}
}

}

if(empty($_SESSION[AgentID]))
{
echo ("");
}
else
{
if($_SESSION[AccountType] == '1')
{
$Account .= "<tr>\n\t<td bgcolor=#D6D5D5><a class=BlackLink href=\"profile.php\">Edit profile</a></td>\n</tr>\n";
$Account .= "<tr>\n\t<td bgcolor=#D6D5D5><a class=BlackLink href=\"banners.php\">Banners</a></td>\n</tr>\n";
}
else
{
$Account .= "<tr>\n\t<td bgcolor=#D6D5D5><a class=BlackLink href=\"profile2.php\">Edit profile</a></td>\n</tr>\n";


}

$Account .= "<tr>\n\t<td bgcolor=#D6D5D5><a class=BlackLink href=\"manage.php\">Manage Listings</a></td>\n</tr>\n";


//get the number of posted listings
$qpl = "select count(*) from userlistings where userid = '$_SESSION[AgentID]' ";
$rpl = mysql_query($qpl) or die(mysql_error());
$apl = mysql_fetch_array($rpl);

$ace = date('d M Y', $_SESSION[AccountExpireDate]);

$after = ($_SESSION[AccountExpireDate] - $t)/(24*60*60);

if($after <= '10')
{
$RenewAccount = "<br><a class=RedLink href=\"prices2.php\">Renew Account</a><br>";
}

$Account .= "<tr>\n\t<td bgcolor=#D6D5D5><a class=BlackLink href=\"logout.php\">Logout</a></td>\n</tr>\n<tr>\n\t<td>Listings: $apl[0]/$_SESSION[MaxOffers]</td>\n</tr>\n<tr>\n\t<td>Expire Date:</td>\n</tr>\n<tr>\n\t<td align=right>$ace</td>\n</tr>\n<tr>\n\t<td align=center>$RenewAccount</td>\n</tr>\n";
}

$Categories .= "</table>\n";

}

if(ereg("index.php", $_SERVER[SCRIPT_NAME]))
{
$qrand = "select * from userlistings, agents where userlistings.userid = agents.AgentID and userlistings.image != '' and agents.AccountStatus = 'active' order by rand() limit 0,1 ";
$rrand = mysql_query($qrand) or die(mysql_error());

if(mysql_num_rows($rrand) > '0')
{
$arand = mysql_fetch_array($rrand);

$rimage = explode("|", $arand[image]);

$RandomProperty .= "<table width=150 align=center cellspacing=0 bordercolor=336699 border=1>\n<tr>\n\t<td style=\"padding:10\" width=125 align=center valign=top><a href=\"info.php?id=$arand[ListingID]\" class=BlueLink><img src=\"re_images/$rimage[0]\" width=75 height=60 border=0><br>$arand[city]<br>$arand[country]</a></td>\n</tr>\n</table>\n\n";
}
}

//send emails to the expire agents

// 10 days to the Expire Date (ExpDate)
$ten1 = mktime(0,0,0,date(m),date(d) + 10,date(Y));
$ten2 = mktime(23,59,59,date(m),date(d) + 10,date(Y));

$qexp = "select * from agents where ExpDate between '$ten1' and '$ten2' and days10 = 'n' ";
$rexp = mysql_query($qexp) or die(mysql_error());

if(mysql_num_rows($rexp) > '0')
{
while($aexp = mysql_fetch_array($rexp))
{
//send an email
$to = $aexp[email];
$subject = "10 days to the expiration date!";
$message = "Hello $aexp[FirstName] $aexp[LastName],\nyour account at $_SERVER[HTTP_HOST] will expire in 10 days!\n\nTo renew your account, login with your username and password and follow the \"Renew Account\" link.\n\nThank you!\n$_SERVER[HTTP_HOST]";

$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
$headers .= "From: $_SERVER[HTTP_POST] <$aset[ContactEmail]>\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: PHP/" . phpversion()."\n";

mail($to, $subject, $message, $headers);

mysql_query("update agents set days10 = 'y' where AgentID = '$aexp[AgentID]' ") or die(mysql_error());
}
}

// 5 days to the Expire Date (ExpDate)
$five1 = mktime(0,0,0,date(m),date(d) + 5,date(Y));
$five2 = mktime(23,59,59,date(m),date(d) + 5,date(Y));

$qexp = "select * from agents where ExpDate between '$five1' and '$five2' and days5 = 'n' ";
$rexp = mysql_query($qexp) or die(mysql_error());

if(mysql_num_rows($rexp) > '0')
{
while($aexp = mysql_fetch_array($rexp))
{
//send an email
$to = $aexp[email];
$subject = "5 days to the expiration date!";
$message = "Hello $aexp[FirstName] $aexp[LastName],\nyour account at $_SERVER[HTTP_HOST] will expire in 5 days!\n\nTo renew your account, login with your username and password and follow the \"Renew Account\" link.\n\nThank you!\n$_SERVER[HTTP_HOST]";

$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
$headers .= "From: $_SERVER[HTTP_POST] <$aset[ContactEmail]>\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: PHP/" . phpversion()."\n";

mail($to, $subject, $message, $headers);

mysql_query("update agents set days5 = 'y' where AgentID = '$aexp[AgentID]' ") or die(mysql_error());
}
}

// 1 day to the Expire Date (ExpDate)
$one1 = mktime(0,0,0,date(m),date(d) + 1,date(Y));
$one2 = mktime(23,59,59,date(m),date(d) + 1,date(Y));

$qexp = "select * from agents where ExpDate between '$one1' and '$one2' and days1 = 'n' ";
$rexp = mysql_query($qexp) or die(mysql_error());

if(mysql_num_rows($rexp) > '0')
{
while($aexp = mysql_fetch_array($rexp))
{
//send an email
$to = $aexp[email];
$subject = "1 day to the expiration date!";
$message = "Hello $aexp[FirstName] $aexp[LastName],\nyour account at $_SERVER[HTTP_HOST] will expire in 1 day!\n\nTo renew your account, login with your username and password and follow the \"Renew Account\" link.\n\nThank you!\n$_SERVER[HTTP_HOST]";

$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
$headers .= "From: $_SERVER[HTTP_POST] <$aset[ContactEmail]>\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: PHP/" . phpversion()."\n";

mail($to, $subject, $message, $headers);

mysql_query("update agents set days1 = 'y' where AgentID = '$aexp[AgentID]' ") or die(mysql_error());
}
}

// 1 day AFTER the Expire Date (ExpDate) WAS PASSED

//$qexp = "select * from agents where ExpDate > ExpDate + 86400 and days1 = 'y' ";
$qexp = "select * from agents where (($t - ExpDate) > 86400) and days1 = 'y' ";
$rexp = mysql_query($qexp) or die(mysql_error());

if(mysql_num_rows($rexp) > '0')
{
while($aexp = mysql_fetch_array($rexp))
{
$DelAgents[] = $aexp[AgentID];

//get the agent's userlistings with images
$q2 = "select * from userlistings where userid = '$aexp[AgentID]' and image != '' ";
$r2 = mysql_query($q2) or die(mysql_error());

if(mysql_num_rows($r2) > '0')
{
while($a2 = mysql_fetch_array($r2))
{
$DelImages[] = explode("|", $a2[image]);

while(list(,$v) = each($DelImages))
{
//delete the images from our server
unlink("re_images/$v");
}
}

//delete the listings from our database
$q3 = "delete from userlistings where user = '$aexp[AgentID]' ";
mysql_query($q3) or die(mysql_error());

//delete the agent's banners
$q4 = "select * from banners where ClientID = '$aexp[AgentID]' ";
$r4 = mysql_query($q4) or die(mysql_error());

if(mysql_num_rows($r4) > '0')
{
while($a4 = mysql_fetch_array($r4))
{
//delete the banners fromour server
unlink("banners/$a4[BannerFile]");
$BannerIDs[] = $a4[BannerID];
}

$DelBan = implode("', '", $BannerIDs);

//delete banner info
$q5 = "delete from banners where ClientID = '$aexp[AgentID]' ";
mysql_query($q5) or die(mysql_error());

//delete stats
$q6 = "delete from stats where BannerID in ('$DelBan') ";
mysql_query($q6) or die(mysql_error());

}
}

}

$DelStr = implode("', '", $DelAgents);
mysql_query("delete from agents where AgentID in ('$DelStr')") or die(mysql_error());
}

function ptypes($x) {

$qt = "select * from types order by TypeName";
$rt = mysql_query($qt) or die(mysql_error());

if(mysql_num_rows($rt) > '0')
{
$SelectType = "<select name=PropertyType>\n\t<option value=\"\"></option>\n\t";

while($at = mysql_fetch_array($rt))
{
if($x != "0")
{
if($at[TypeName] == $x)
{
$SelectType .= "<option value=\"$at[TypeName]\" selected>$at[TypeName]</option>\n\t";
}
else
{
$SelectType .= "<option value=\"$at[TypeName]\">$at[TypeName]</option>\n\t";
}
}
else
{
$SelectType .= "<option value=\"$at[TypeName]\">$at[TypeName]</option>\n\t";
}
}

$SelectType .= "</select>";
}

return $SelectType;

}

?>

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 6 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.