View file public_html/vipadz/index.php

File size: 18.35Kb
<?php

/************************************

Script : Adnetwork
Website : http://facebook.com/pranto007

Script is created and provided by Pranto (http://facebook.com/pranto007)
**************************************/
include '../db.php';
include '../functions.php';

headtag("$SiteName - Admin Panel Beta");

if($adminlog==1){
$aid=dump_adata("id");
$rank=dump_adata("rank");

if($rank=="1")
{
$ranking='(Head Admin)';
}
else if($rank=="2")
{
$ranking='(Sub Admin)';
}
else if($rank=="3")
{
$ranking='(Account Manager)';
}

echo '<div class="title">Welcome, <b><font color="red">'.dump_adata("name").'</font> '.$ranking.'</b></div>';

$auser=mysql_query("SELECT * FROM userdata WHERE status='ACTIVE'");
$tuser=mysql_num_rows(mysql_query("SELECT * FROM userdata"));
$iuser=mysql_query("SELECT * FROM userdata WHERE status='INACTIVE'");
$wall=mysql_query("SELECT * FROM forum_question WHERE status='Pending'");
$buser=mysql_query("SELECT * FROM userdata WHERE status LIKE '%blocked %'");
$unuser=mysql_query("SELECT * FROM userdata WHERE staff='0'");
$asite=mysql_query("SELECT * FROM sites WHERE status='<font color=\'green\'>Active</font>'");
$psite=mysql_query("SELECT * FROM sites WHERE status='<font color=\'red\'>Pending</font>'");
$blsite=mysql_query("SELECT * FROM sites WHERE status='<font color=\'red\'>Blocked</font>'");
$bsite=mysql_query("SELECT * FROM sites WHERE status='<font color=\'red\'>Rejected</font>'");
$rads=mysql_query("SELECT * FROM advertise WHERE status='Running'");
$puads=mysql_query("SELECT * FROM advertise WHERE status='Paused'");
$pads=mysql_query("SELECT * FROM advertise WHERE status='Pending'");
$sads=mysql_query("SELECT * FROM advertise WHERE status='Stopped'");
$reads=mysql_query("SELECT * FROM advertise WHERE status='Rejected'");
$uc_act=mysql_query("SELECT * FROM ucuser WHERE userid='1'");
$uc_inact=mysql_query("SELECT * FROM ucuser WHERE userid='0'");
$uc_val=mysql_query("SELECT * FROM ucuser WHERE userid='2'");
$reffer_act=mysql_query("SELECT * FROM ref WHERE validated='1'");
$reffer_inact=mysql_query("SELECT * FROM ref WHERE validated='0'");


$ausers=mysql_num_rows($auser);
$iusers=mysql_num_rows($iuser);
$busers=mysql_num_rows($buser);
$unusers=mysql_num_rows($unuser);
$asites=mysql_num_rows($asite);
$psites=mysql_num_rows($psite);
$blsites=mysql_num_rows($blsite);
$bsites=mysql_num_rows($bsite);
$rad=mysql_num_rows($rads);
$puad=mysql_num_rows($puads);
$pad=mysql_num_rows($pads);
$sad=mysql_num_rows($sads);
$read=mysql_num_rows($reads);
$ucact=mysql_num_rows($uc_act);
$ucinact=mysql_num_rows($uc_inact);
$ucval=mysql_num_rows($uc_val);
$refferact=mysql_num_rows($reffer_act);
$refferinact=mysql_num_rows($reffer_inact);


$ticket=mysql_query("SELECT * FROM ticket_question WHERE status='Waiting For Admin\'s Reply'");

if(mysql_num_rows($ticket)>0){

$tickets=mysql_num_rows($ticket);

echo '<a href="pticket.php"><div class="error">There Are '.$tickets.' Tickets Waiting For Reply!</div></a>';
}


if(mysql_num_rows($pads)>0){

$padv=mysql_num_rows($pads);


echo '<a href="advertise.php?act=pending"><div class="error">There Are '.$padv.' Advertise Waiting For Activation!</div></a>';
}

if(mysql_num_rows($psites)>0){

$ps=mysql_num_rows($pste);


echo '<a href="sites.php?act=pending"><div class="error">There Are '.$pste.' Sites Waiting For Approval!</div></a>';
}

if(mysql_num_rows($wall)>0){

$pwall=mysql_num_rows($wall);


echo '<a href="wallpost.php"><div class="error">There Are '.$pwall.' Wall Post Waiting For Approval!</div></a>';
}

if(mysql_num_rows($uc_inact)>0){

$udv=mysql_num_rows($uc_inact);


echo '<a href="ucweb.php"><div class="error">There Are '.$udv.' UcWeb Waiting For Activation!</div></a>';
}


$chinvo=mysql_query("SELECT * FROM invoice WHERE status='<font color=\'red\'>Pending</font>'");

if(mysql_num_rows($chinvo)>0){
$invo=mysql_num_rows($chinvo);
echo '<a href="unpayinvo.php"><div class="error">There Are '.$invo.' Unpaid Payments!</div></a>';
}

$chdomain=mysql_query("SELECT * FROM domains WHERE status='<font color=\'red\'>Pending</font>'");

if(mysql_num_rows($chdomain)>0){
$domain=mysql_num_rows($chdomain);
echo '<a href="unregdomains.php"><div class="error">There Are '.$domain.' Pending Domains!</div></a>';
}

$dinvo=mysql_query("SELECT * FROM invoice WHERE status='<font color=\'blue\'>Disputed</font>'");

if(mysql_num_rows($dinvo)>0){
$dsinvo=mysql_num_rows($dinvo);
echo '<a href="disputedinvo.php"><div class="error">There Are '.$dsinvo.' Disputed Recharges!</div></a>';
}

$chappr=mysql_query("SELECT * FROM approvebal WHERE status='PENDING'");

if(mysql_num_rows($chappr)>0){
$appr=mysql_num_rows($chappr);
echo '<a href="unapprove_bal.php"><div class="error">There Are '.$appr.' Balance Waiting For Approval !</div></a>';
}


$adinvo=mysql_query("SELECT * FROM adinvoice WHERE status='<font color=\'red\'>Pending</font>'");

if(mysql_num_rows($adinvo)>0){

$adinvoices=mysql_num_rows($adinvo);

echo '<a href="adinvoices.php"><div class="error">There Are '.$adinvoices.' Funds Waiting For Approval!</div></a>';
}




$total_invo=mysql_num_rows(mysql_query("SELECT * FROM invoice"));
$paid_invo=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE status LIKE '%Paid%'"));
$pending_invo=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE status LIKE '%Pending%'"));
$failed_invo=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE status LIKE '%Failed%'"));
$disputed_invo=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE status LIKE '%Disputed%'"));
$validated_invo=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE status LIKE '%Validated%'"));
$rejected_invo=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE status LIKE '%Rejected%'"));
$total_appr=mysql_num_rows(mysql_query("SELECT * FROM approvebal"));
$approved_appr=mysql_num_rows(mysql_query("SELECT * FROM approvebal WHERE status LIKE '%Approved%'"));
$pending_appr=mysql_num_rows(mysql_query("SELECT * FROM approvebal WHERE status LIKE '%Pending%'"));
$rejected_appr=mysql_num_rows(mysql_query("SELECT * FROM approvebal WHERE status LIKE '%Rejected%'"));


$payments=mysql_num_rows(mysql_query("SELECT * FROM invoice"));
$mobiler_pay=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE method='Recharge'"));
$dthr_pay=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE method='DTH Recharge'"));
$airtel_pay=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE method='AirtelMoney'"));
$bank_pay=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE method='Bank'"));
$paypal_pay=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE method='PayPal'"));
$skrill_pay=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE method='MoneyBookers'"));
$bdr_pay=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE method='BD Recharge'"));

$total_invo=mysql_num_rows(mysql_query("SELECT * FROM invoice"));
$paid_invo=mysql_num_rows(mysql_query("SELECT * FROM invoice WHERE status LIKE '%Paid%'"));

$total_news=mysql_num_rows(mysql_query("SELECT * FROM news"));
$total_reply=mysql_num_rows(mysql_query("SELECT * FROM newsreplys"));
echo '<div class="form"><form method="get" action="search.php"><input type="text" name="q" value="Search User"/><input type="submit" value="Search"/></form></div>';
echo '<div class="title">Main Panel</div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="stats.php">Statistics</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="domains.php">Domain Panel</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="settings.php">Site Settings</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="ticket.php">Tickets</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="reffer.php">Affialative</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="notifyall.php">Notify All Users</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="wall.php">Wall</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="topusers.php">Top Users</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="appspayall.php">Apps Payment To All Users</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="appspayments.php">Apps Payments</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="smsall.php">Sms All Users</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="adinvoices.php">Advertise Funds</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="moderators.php">Moderators</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="rcapi.php">Recharge Api Users</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="adapi.php">Ad Api Users</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="adfundblocker.php">AD Fund Blocker</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="disputeblocker.php">Dispute Blocker</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="gatewaypayments.php">GateWay Payments</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="ipblocklist.php">IP Blocklist</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="blacklistwords.php">Blacklist Words</a></div>';

//echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="pendingucpay.php">Pending Ucweb Payments</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="luckygame.php">Lucky Game</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="sms.php">Sms Panel</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="appclicks.php">Apps Clicks Record</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="admlinks.php">Admin Advertises</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="appeals.php">Appeals</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="news.php">News</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="admins.php">Staff</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="transfers.php">Transfer History</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="account.php">Account Setting</a></div>';

echo '<div class="title">Users Panel</div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="users.php">All Users</a> <font color="red">('.$tuser.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="users.php?act=active">Active Users</a> <font color="red">('.$ausers.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="users.php?act=inactive">Inactive Users</a> <font color="red">('.$iusers.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="users.php?act=blocked">Blocked Users</a> <font color="red">('.$busers.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="users.php?act=unstaff">UnAssignt Staff Users</a> <font color="red">('.$unusers.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="searchuser.php">Search Users</a></div>';

echo '<div class="title">Sites Panel</div>';


echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="sites.php">All Sites</a> <font color="red">('.($asites+$bsites).')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="sites.php?act=active">Active Sites</a> <font color="red">('.$asites.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="sites.php?act=pending">Pending Sites</a> <font color="red">('.$psites.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="sites.php?act=blocked">Blocked Sites</a> <font color="red">('.$blsites.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="sites.php?act=rejected">Rejected Sites</a> <font color="red">('.$bsites.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="searchsites.php">Search Sites</a></div>';

echo '<div class="title">Balance Panel</div>';


echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="balances.php">All Balances</a> <font color="red">('.$total_appr.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="balances.php?act=approved">Approved Balances</a> <font color="red">('.$approved_appr.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="balances.php?act=pending">Pending Balances</a> <font color="red">('.$pending_appr.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="balances.php?act=rejected">Rejected Balances</a> <font color="red">('.$rejected_appr.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="searchbal.php">Search Balances</a></div>';


echo '<div class="title">Payments Panel</div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="payments.php">All Payments</a> <font color="red">('.$payments.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="payments.php?act=mobilerecharge">Mobile Recharge Payments</a> <font color="red">('.$mobiler_pay.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="payments.php?act=dthrecharge">DTH Recharge Payments</a> <font color="red">('.$dthr_pay.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="payments.php?act=airtelmoney">AirtelMoney Payments</a> <font color="red">('.$airtel_pay.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="payments.php?act=bank">Bank Payments</a> <font color="red">('.$bank_pay.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="payments.php?act=paypal">PayPal Payments</a> <font color="red">('.$paypal_pay.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="payments.php?act=skrill">MoneyBookers Payments</a> <font color="red">('.$skrill_pay.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="payments.php?act=bdrecharge">BD Recharge Payments</a> <font color="red">('.$bdr_pay.')</font></div>';

echo '<div class="title">Advertise Panel</div>';


echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="advertise.php">All Advertises</a> <font color="red">('.($rad+$puad+$pad+$sad+read).')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="advertise.php?act=running">Running Advertises</a> <font color="red">('.$rad.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="advertise.php?act=pending">Pending Advertises</a> <font color="red">('.$pad.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="advertise.php?act=paused">Paused Advertises</a> <font color="red">('.$puad.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="advertise.php?act=rejected">Rejected Advertises</a> <font color="red">('.$read.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="advertise.php?act=stopped">Stopped Advertises</a> <font color="red">('.$sad.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="searchadv.php">Search Advertises</a></div>';



$cps=mysql_query("SELECT id FROM cps");


echo '<div class="title">Subscriptions Panel</div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="cpslist.php">Subscriptions List</a> <font color="red">('.(mysql_num_rows($cps)).')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="cpslist.php?act=add">Add Subscriptions</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="cpspay.php">Pay Subscriptions</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="cpspayments.php">Subscriptions Payments</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="cpsusers.php">Subscriptions Users</a></div>';

echo '<div class="title">Ucweb Panel</div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="alluc.php">All Ucweb Promortions</a> <font color="red">('.($ucact+$ucinact+$ucval).')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="approveduc.php">Approved Ucweb Promortions</a> <font color="red">('.$ucact.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="ucweb.php">Pending Ucweb Promortions</a> <font color="red">('.$ucinact.')</font></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="ucval.php">Validated Ucweb Promortions</a> <font color="red">('.$ucval.')</font></div>';

//echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="payucweb.php">Pay Ucweb Payments</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="ucreport.php">Ucweb Reports</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="searchuc.php">Search Ucweb Promortions</a></div>';


echo '<div class="title">Mail Panel</div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="mail.php">Mail User</a></div>';

echo '<div class="ad"><img src="/arrow.png" height="16" width="16"/> <a href="mailall.php">Mail All Users</a></div>';

echo '</div>';

echo '<div class="ad"><img src="/home.png"/> <a href="/">Home</a> | <a href="logout.php">Logout</a></div>';
include '../foot.php';



}
else {

header('Location:login.php?redir=index');

}


?>