require_once("../conn.php");
require_once("access.php");
include_once("LeftStyles.php");
if(isset($_POST[s1]))
{
$ImageName = $_FILES['images'][name];
if(!empty($ImageName))
{
$t = time();
$NewImageName = "$t$ImageName";
copy($_FILES[images][tmp_name], "../header_images/$NewImageName");
$q1 = "update yellow_settings set
SiteTitle = '$_POST[SiteTitle]',
SiteKeywords = '$_POST[SiteKeywords]',
SiteDescription = '$_POST[SiteDescription]',
PayPalEmail = '$_POST[PayPalEmail]',
CompanyAddress = '$_POST[CompanyAddress]',
ContactEmail = '$_POST[ContactEmail]',
Welcome = '$_POST[Welcome]',
AdSense = '$_POST[AdSense]',
Currencya = '$_POST[Currencya]',
Sitefee = '$_POST[Sitefee]',
HeaderImg='$NewImageName',
SellerID='$_POST[SellerID]',
Partner='$_POST[Partner]',
Article='$_POST[Article]',
Polls='$_POST[Polls]',
News='$_POST[News]',
Payment='$_POST[Payment]',
Agreement = '$_POST[Agreement]' ";
}
else
{
$q1 = "update yellow_settings set
SiteTitle = '$_POST[SiteTitle]',
SiteKeywords = '$_POST[SiteKeywords]',
SiteDescription = '$_POST[SiteDescription]',
PayPalEmail = '$_POST[PayPalEmail]',
CompanyAddress = '$_POST[CompanyAddress]',
ContactEmail = '$_POST[ContactEmail]',
Welcome = '$_POST[Welcome]',
AdSense = '$_POST[AdSense]',
Currencya = '$_POST[Currencya]',
Sitefee = '$_POST[Sitefee]',
SellerID='$_POST[SellerID]',
Partner='$_POST[Partner]',
Article='$_POST[Article]',
Polls='$_POST[Polls]',
News='$_POST[News]',
Payment='$_POST[Payment]',
Agreement = '$_POST[Agreement]' ";
}
mysql_query($q1) or die(mysql_error());
echo "
CLASSIFIEDS v2.0
|