Where Is These Files ad.php please Give Me............. header("Content-type: text/html; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"; echo "<html xmlns="http://www.w3.org/1999/xhtml">"; ?>
<?php $pwd = $_GET["pwd"]; $uid = $_GET["uid"]; include ("func.php"); include ("conf.php"); connect($dbserver,$dbname,$dbuser,$dbpass); resetcou(); sitein(); /////////////////////////////////////////////main page if($action=="") { echo "<head><title>HostPayne top sites</title>"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />"; echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" /> <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/> <meta name=\"description\" content=\"Chatheaven :)\"> <meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\"></head>"; echo "<body>"; $rgs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM sites WHERE dhits>='1'")); ?> <?php include ("ad.php"); $time = date("H:i"); echo "$time "; ?>External image (may be gone)Top 20
<?php echo "<a href=\"index.php?action=counter&uid=$uid&pwd=$pwd\"><img src=\"images/goblet_gold.gif\" alt=\"*\"/>Counter Top($rgs[0])</a> "; echo "<a href=\"index.php?action=search2&uid=$uid&pwd=$pwd\"><img src=\"images/Search2.gif\" alt=\"*\"/>Search Engine</a>"; ?> <?php $sql = mysql_query("SELECT * FROM sites WHERE name = '$name1' "); $query = "SELECT * from sites WHERE hin >='2' and banned='0' ORDER BY RAND(" . time() . " * " . time() . ") LIMIT 1"; $result = mysql_query($query); $num_rows = mysql_num_rows($result); $rowrandy = mysql_fetch_array($result); $sitename = $rowrandy["sitename"]; $id = $rowrandy["id"]; $snm=htmlspecialchars($sitename); $rgs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM sites")); if($rgs>0){ echo "**Random Site** "; echo "<a href=\"index.php?action=vsite&sid=".$id."&uid=$uid&pwd=$pwd\"><img src=\"images/site.gif\" alt=\"*\"/>$snm</a> ";} echo "**Categories:** "; ?> <?php $cats = mysql_query("SELECT * FROM cats;"); while ($cat = mysql_fetch_array($cats)) { $sno = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM sites WHERE cid='".$cat[0]."' and banned='0' AND hin >= '2'")); $admintext = ""; if(isadmin($uid,$pwd)) { $admintext= ": <a href=\"delcat.php?cid=$cat[0]&uid=$uid&pwd=$pwd\">[X]</a>"; } ?>[?>&uid=<?=$uid?>&pwd=<?=$pwd?>"]External image (may be gone)<?=$cat[1]?>(<?=$sno[0]?>)](#)<?=$admintext?>
<?php } ?> <?php $rgs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM sites")); echo "**$rgs[0]** Registered sites! "; $cvs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM sites where hin>='2'")); echo "**$cvs[0]** Send hits to us! "; $lrd = mysql_fetch_array(mysql_query("SELECT text FROM misc where dscr='CLR'")); $lrd = strtotime($lrd[0]); $nrd = mktime(0,0,0,date("m",$lrd),date("d",$lrd)+1,date("Y",$lrd)); $active = mysql_fetch_array(mysql_query("SELECT active,email,sitename,id FROM sites")); $ttr = $nrd -time(); $dz = ceil($ttr/60/60/24); $date = date("H:i:s"); $hr = date("H"); $hour = (23-$hr); $mn = date("i"); $min = (60-$mn); $min1 = $min-1; echo "Counters will reset in **$hour** hours **$min1** minutes. "; $res = login($uid,$pwd); if($res==1) { ?> <?php }else{ ?> <?php } echo "<a href=\"index.php?action=readtc\">Terms & Conditions</a> "; $server = $_SERVER [ 'HTTP_HOST' ]; if($server=="top.hostpayne.co.za") { echo" <a href=\"http://mRADAR.com/?i=42097\">mRADAR.com</a> <a href=\"http://besttop.mobi/in.php?id=26304\">BestTop.Mobi</a> <img src=\"http://waptrack.net/counthits.asp?id=12115\" alt=\"WapTrack Toplist\" /> "; } echo""; echo "$server "; echo""; ?> </body> </html> <?php } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Terms And Conditions if($action=="readtc") { echo "<head><title>Register-T/C</title>"; echo "<link rel="StyleSheet" type="text/css" href="style/style.css" />"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="Chatheaven :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate"></head>"; echo "<body>"; ?>
<?php include ("ad.php"); ?>Terms And Conditions
External image (may be gone) You may not create more than one account, if you have more than one site you still can register them using the same account
External image (may be gone) The link to our service should be in the same page as the page you registered here
External image (may be gone) The contents of your site should match the description and the category you register here
External image (may be gone) We have zero tolerence against cheating, so don't try
External image (may be gone) you can't register more than page for each domain
External image (may be gone) Any violation of the rules will have your account terminated
External image (may be gone) you must send us two hits before we show the link to your site
<?php if($reg=="1") { ?> <?php }else{ ?>External image (may be gone)Home
<?php } ?> </body> </html> <?php } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Register if($action=="reg") { echo "<head><title>Register-T/C</title>"; echo "<link rel="StyleSheet" type="text/css" href="style/style.css" />"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="Chatheaven :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate"></head>"; echo "<body>";
?>
<?php include ("ad.php"); ?>Registration
External image (may be gone) Do not include spaces or special characters in userid or password
External image (may be gone) No vulgar words are accepted in UserID
External image (may be gone) UserID and Password must contain at least 4 characters
External image (may be gone) UserID must begin with a letter
External image (may be gone) UserID and Password should Not contain any uppercase letter
<?php echo "<form action=\"register.php\" method=\"post\">"; echo "UserID: <input name=\"uid\" format=\"*x\" size=\"8\" maxlength=\"30\"/> "; echo "Password: <input type=\"password\" name=\"pwd\" size=\"8\" maxlength=\"30\"/> "; echo "Confirm Password: <input type=\"password\" name=\"cpwd\" size=\"8\" maxlength=\"30\"/> "; echo "<input type=\"submit\" value=\"Register\"/>"; ?>External image (may be gone)Home
</body> </html> <?php } ///////////////////////////////////////////////////////////////////////////// log in if($action=="login") { echo "<head><title>Log in</title>"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />"; echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" /> <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/> <meta name=\"description\" content=\"Chatheaven :)\"> <meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\"></head>"; echo "<body>";?>
<?php include ("ad.php"); ?>Log in
<?php echo "<form action=\"cpanel.php\" method=\"post\">"; echo "UserID: <input name=\"uid\" format=\"*x\" size=\"8\" maxlength=\"30\"/> "; echo "Password: <input type=\"password\" name=\"pwd\" size=\"8\" maxlength=\"30\"/> "; echo "<input type=\"submit\" value=\"Log In\"/>"; ?>External image (may be gone)Home
</body> </html> <?php }?>
<?php ///////////////////////////////////////////////////////////////////////////// vsites if($action=="vsites") { $catnm = mysql_fetch_array(mysql_query("SELECT name FROM cats where id='".$cid."'")); echo "<head><title>$catnm[0]</title>"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />"; echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" /> <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/> <meta name=\"description\" content=\"Chatheaven :)\"> <meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\"></head>"; echo "<body>"; ?> <?php include ("ad.php"); ?> <?php echo " "; if($pg==0)$pg=1; $pg--; $lmt = $pg*10; $pg++; $cou =$lmt+1; $scount = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM sites where cid='".$cid."' and banned='0' AND hin >= '2'")); $pgs = ceil($scount[0]/10); $sql ="SELECT * FROM sites where cid='".$cid."' AND banned='0' AND hin >= '2' ORDER BY hin DESC LIMIT ".$lmt.", 20;"; $sites = mysql_query($sql); while ($site = mysql_fetch_array($sites)) { $snm=htmlspecialchars($site[1]); echo "$cou. <a href=\"index.php?action=vsite&sid=$site[0]&uid=$uid&pwd=$pwd\"><img src=\"images/site.gif\" alt=\"*\"/>$snm ($site[6]/$site[7])</a> "; $cou++; } $npage = $pg+1; $ppage = $pg-1; if($pg<$pgs) { $nlink = "<a href=\"index.php?action=vsites&pg=$npage&uid=$uid&pwd=$pwd&cid=$cid\">Next</a>"; } if($pg >1) { $plink = "<a href=\"index.php?action=vsites&pg=$ppage&uid=$uid&pwd=$pwd&cid=$cid\">Prev</a>"; } echo " Active sites:$scount[0] "; echo "$plink $pg/$pgs $nlink "; ?>External image (may be gone)Home
</body> </html> <?php } ///////////////////////////////////////////////////////////////////////////// vsites if($action=="counter") { $catnm = mysql_fetch_array(mysql_query("SELECT name FROM cats where id='".$cid."'")); echo "<head><title>Counter Top</title>"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />"; echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" /> <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/> <meta name=\"description\" content=\"Chatheaven :)\"> <meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\"></head>"; echo "<body>";?>
<?php include ("ad.php"); ?> <?php echo " "; if($pg==0)$pg=1; $pg--; $lmt = $pg*10; $pg++; $cou =$lmt+1; $scount = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM sites where banned='0' AND dhits >= '1'")); $pgs = ceil($scount[0]/10); $sql ="SELECT * FROM sites where banned='0' AND dhits >= '1' ORDER BY dhits DESC LIMIT ".$lmt.", 20;"; $sites = mysql_query($sql); while ($site = mysql_fetch_array($sites)) { $snm=htmlspecialchars($site[1]); echo "$cou. <a href=\"index.php?action=vsite&sid=$site[0]&uid=$uid&pwd=$pwd\"><img src=\"images/site.gif\" alt=\"*\"/>$snm ($site[8])</a> "; $cou++; } $npage = $pg+1; $ppage = $pg-1; if($pg<$pgs) { $nlink = "<a href=\"index.php?action=vsites&pg=$npage&uid=$uid&pwd=$pwd&cid=$cid\">Next</a>"; } if($pg >1) { $plink = "<a href=\"index.php?action=vsites&pg=$ppage&uid=$uid&pwd=$pwd&cid=$cid\">Prev</a>"; } echo " Active sites:$scount[0] "; echo "$plink $pg/$pgs $nlink "; ?>External image (may be gone)Home
</body> </html> <?php }///////////////////////////////////////////////////////////////////////////// vsites if($action=="top20") { $catnm = mysql_fetch_array(mysql_query("SELECT name FROM cats where id='".$cid."'")); echo "<head><title>$catnm[0]</title>"; echo "<link rel="StyleSheet" type="text/css" href="style/style.css" />"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="Chatheaven :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate"></head>"; echo "<body>";
?>
<?php include ("ad.php"); ?> <?php echo " "; $sql ="SELECT * FROM sites where banned='0' AND hin >= '2' ORDER BY hin DESC LIMIT 0, 20;"; $sites = mysql_query($sql); $cou =1; while ($site = mysql_fetch_array($sites)) { $snm=htmlspecialchars($site[1]); echo "$cou. <a href=\"index.php?action=vsite&sid=$site[0]&uid=$uid&pwd=$pwd\"><img src=\"images/site.gif\" alt=\"*\"/>$snm ($site[6]/$site[7])</a> "; $cou++; } echo " "; ?>External image (may be gone)Home
</body> </html> <?php } if($action=="vsite") {$sql ="SELECT * FROM sites where id='".$sid."' and banned='0';"; $sites = mysql_fetch_array(mysql_query($sql)); $snm=htmlspecialchars($sites[1]); $slk=htmlspecialchars($sites[3]); $dscr =htmlspecialchars($sites[11]); $ilk = htmlspecialchars($sites[4]); echo "<head><title>$snm</title>"; echo "<link rel="StyleSheet" type="text/css" href="style/style.css" />"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="Chatheaven :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate"></head>"; echo "<body>";
?>
<?php ?> <?php $catnm = mysql_fetch_array(mysql_query("SELECT name FROM cats where id='".$sites[2]."'")); if(($ilk != "") && ($ilk != "http://")) { echo " "; echo "<img src=\"$ilk\" alt=\"*\"/>"; echo " "; } echo " "; echo "<img src=\"images/site.gif\" alt=\"*\"/>"; echo "<a href=\"out.php?sid=$sites[0]\">$snm</a> "; echo "**ID:** $sites[0] **Description:**$dscr "; echo "**Category:**<a href=\"index.php?action=vsites&uid=$uid&pwd=$pwd?&cid=$sites[2]\">$catnm[0]</a> "; //echo "**Month's Hits**: $sites[8] "; echo "**Total Hits:**$sites[9] "; echo"**URL:**<a href=\"out.php?sid=$sites[0]\">$slk</a> "; echo "**In/out:**$sites[6]/$sites[7] "; if(isadmin($uid,$pwd)) { $unm = mysql_fetch_array(mysql_query("SELECT name FROM tusers WHERE id='".$sites[5]."'")); echo " <a href=\"edts.php?uid=$uid&pwd=$pwd&sid=$sid\">Edit This Site</a>"; echo " <a href=\"banu.php?uid=$uid&pwd=$pwd&who=$sites[5]\">Ban $unm[0]</a>"; } echo " "; ?>External image (may be gone)Home
</body> </html> <?php } if($action=="search2") { echo "<head><title>$snm</title>"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />"; echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" /> <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/> <meta name=\"description\" content=\"Chatheaven :)\"> <meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\"></head>"; echo "<body>";echo "
"; echo "<form action="index.php?action=search&sid=$id&uid=$uid&pwd=$pwd" method="post">"; echo "Site Keywords: <input name="q" format="*x" size="8" maxlength="128"/> "; echo "<input type="submit" value="»Search"/> ";
echo "--- <a href="index.php?uid=$uid&pwd=$pwd">Top sites</a>";
echo ""; echo " "; echo "</body>"; echo "</html>";
} if($action=="search") { echo "<head><title>$snm</title>"; echo "<link rel="StyleSheet" type="text/css" href="style/style.css" />"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="Chatheaven :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate"></head>"; echo "<body>";
echo " "; // Database Connection
// If current page number, use it // if not, set one!
if(!isset($_GET['page'])){ $page = 1; } else { $page = $_GET['page']; }
// Define the number of results per page $max_results = 10;
// Figure out the limit for the query based // on the current page number. $from = (($page * $max_results) - $max_results);
// Perform MySQL query on only the current page number's results
$sql = mysql_query("SELECT * FROM sites WHERE keywords LIKE '%".$search."%' AND hin>='2' and banned ='0' ORDER BY hin desc LIMIT $from, $max_results"); while($row = mysql_fetch_array($sql)){ // Build your formatted results here. $sname = $row['sitename']; $id = $row['id']; $from=$from+1; $snm=htmlspecialchars($sname); echo "$from. <a href="index.php?action=vsite&sid=$id&uid=$uid&pwd=$pwd"><img src="images/site.gif" alt="*"/>$snm</a> "; }
// Figure out the total number of results in DB: $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM sites WHERE cid = '$cid' AND hin>='2'"),0);
// Figure out the total number of pages. Always round up using ceil() $total_pages = ceil($total_results / $max_results);
// Build Previous Link if($page > 1){ $prev = ($page - 1); echo " <a href="".$_SERVER['PHP_SELF']."?page=$prev&cid=$cid&uid=$uid&pwd=$pwd">Previous</a>"; } // Build Next Link if($page < $total_pages){ $next = ($page + 1); echo " <a href="".$_SERVER['PHP_SELF']."?page=$next&cat=$cid&uid=$uid&pwd=$pwd">Next</a> "; }
$i = 1; $i <= $total_pages; $i++ ;
print "--- <a href="index.php?uid=$uid&pwd=$pwd">Top sites</a>"; echo " "; echo "</body></html>";
}