File size: 1.29Kb
<html>
<title>Publisher History</title>
<?php include "inc/def.php"; ?>
<?php include "inc/usrchk.php";
if($guest==1) {
header("location:index.php");
} ?>
<?php include "inc/header.php"; ?>
<div class="line">Balance Info.</div>
<?php
$getu = mysql_query("SELECT * FROM users WHERE user='$user'");
$getu1 = mysql_fetch_array($getu);
$id = $getu1['id'];
$bal = $getu1['bal'];
$pnt = $getu1['point'];
$pay=$getu1['pay'];
$getimp = mysql_query("SELECT * FROM imp WHERE uid='$id'");
$imp = mysql_num_rows($getimp);
$getclk = mysql_query("SELECT * FROM clicks WHERE uid='$id'");
$clk = mysql_num_rows($getclk);
$pb=(100*$bal)/0.0025;
print "<div class='lwt'><b>My Points : <font color=red>$pnt </font></b></div>";
print "<div class='lwt'><b>My Balance:<font color=red>$bal$ </font></b></div>";
$rs=($bal/0.02);
if($rs<0)
$rs=0;
$r=round($rs);
print "<div class='lwt'><b>My Balance(in Rs) : <font color=red>Rs.$r </font></b></div>";
print "<div class='lwt'><b>Total Valid & Invalid Impressions : <font color=red>$imp</font></b></div>";
print "<div class='lgn'><b>Total Valid & Invalid Clicks : <font color=red>$clk</font></b></div>";
?>
<?php
if($pay==0)
{
?>
<div class="lgn"><img src="pics/ar.png" border="0" /><a href="payreq.php"><b>Request Payout</b></a></div>
<?php
}
?>
<?php include "inc/footer.php"; ?>
</html>