require('error_inc.php'); require('config_inc.php'); require('aut.php'); require('header_inc.php'); require('incbanner.php'); bannerads(); require('usermenu.php'); $usrid = $id_ses; $cash = mysql_result(mysql_query("select dcash from user where id=$usrid"), 0); if ($cshud==1){ $res = mysql_query("select * from adv_pkg where id=$pkgs"); $pkgid = mysql_result($res, $i, "id"); $cost = mysql_result($res, $i, "price"); $pkgtype = mysql_result($res, $i, "pkgtype"); if($submit == 'Place Sponsor Ad'){ if ($cost > $cash){ } else { $res = mysql_query("insert into user_spadv (userid, pkg, spadtext, spadurl, currentclicks, status) values ('$usrid', '$pkgid', '$imgurl2', '$url2', '0', 'Pending')"); } } if($submit == 'Place Banner Ad'){ if ($cost > $cash){ } else { $res = mysql_query("insert into user_advbanner (userid, pkg, banurl, siteurl, currenttimp, status) values ('$usrid', '$pkgid', '$imgurl2', '$url2', '0', 'Pending')"); } } if($submit == 'Place Text Ad'){ if ($cost > $cash){ } else { $res = mysql_query("insert into user_tads (userid, text, pkg, currentimp, status) values ('$usrid', '$text', '$pkgid', '0', 'Pending')"); } } $res = mysql_query("update user set dcash=dcash-$cost where id=$usrid"); if($pkgtype == 'sponsorad'){ $txt = "Your Sponsor Ad Was Added."; } elseif($pkgtype == 'banner'){ $txt = "Your Banner Was Added."; } elseif($pkgtype == 'textad'){ $txt = "Your Text Ad Was Added."; } echo("
$txt
Refresh
You don't have enough account cash to $txt!
"); } else { echo("$txt
Note: Admin will activate your ads after payment verification. It may take up to 48 hours before you can see your ads in \"Active\" status. "); echo("You currently have $$cash Account Cash. "); $res = mysql_query("select * from adv_pkg order by id asc"); for ($i = 0; $i < mysql_num_rows($res); $i++){ $id = mysql_result($res, $i, "id"); $pkgname = mysql_result($res, $i, "pkgname"); $pkgtype = mysql_result($res, $i, "pkgtype"); $price = mysql_result($res, $i, "price"); $howmany = mysql_result($res, $i, "howmany"); if($pkgtype == 'sponsorad'){ $txt = "Total Clicks: $howmany"; } elseif($pkgtype == 'banner'){ $txt = "Total Banner Impression: $howmany"; } elseif($pkgtype == 'textad'){ $txt = "Total Text Ad Impression: $howmany"; } echo(" |
Buy $pkgname | $pkgname Price: $$price $txt |