View file wapirate/top/cpanel.php

File size: 3.15Kb
<?php

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\">";



echo "<head><title>wapirate.net 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=\"wapirate.net :)\"> 

<meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\"></head>";

echo "<body>";

?>



<p align="center">

<?php

$logm = $_GET["logm"];

if($logm=="gt")

{

  $uid=$_GET["uid"];

$pwd=$_GET["pwd"];

  }else{

$uid=$_POST["uid"];

$pwd=$_POST["pwd"];

}



include("func.php"); 

include("conf.php"); 

connect($dbserver,$dbname,$dbuser,$dbpass);

$res=login($uid,$pwd);

echo "<img src=\"logo.gif\" alt=\"wapirate.net\"/><br/>";

echo "<br/>";



if($res == 0)

{

    echo "<b>$uid's Control Panel</b>";

    echo "</p>";

    echo "<p>";

    echo "<img src=\"images/point.gif\" alt=\"!\"/>For support, suggestions and comments please contact an owner at <a href=\"http://wapirate.net\">wapirate.net</a><br/>";

    echo "<img src=\"images/point.gif\" alt=\"!\"/>To increase your traffic just put the following WML code in your site<br/>";

    echo "&lt;a href=&quot;http://top.wapirate.net/in.php?sid=<font color=\"red\"><b>YourSiteID</b></font>&quot;&gt;Top Sites&lt;/a&gt;<br/>";

    echo "<img src=\"images/point.gif\" alt=\"!\"/>Or even better, you can use our button<br/>";

    echo "&lt;a href=&quot;http://top.wapirate.net/in.php?sid=<font color=\"red\"><b>YourSiteID</b></font>&quot;&gt;&lt;img src=&quot;http://top.wapirate.net/advert.gif&quot; alt=&quot;TopSites&quot;/&gt;&lt;/a&gt;<br/><img src=\"images/advert.gif\" alt=\"wapirate\"/><br/><br/>";

    //show control panel

    $theid = mysql_fetch_array(mysql_query("SELECT * from tusers where name='".$uid."'"));

    $usites = mysql_query("SELECT * FROM sites where uid='".$theid[0]."'");

    while($asite = mysql_fetch_array($usites))

    {

      $snm=htmlspecialchars($asite[1]);

      echo "<img src=\"images/site.gif\" alt=\"*\"/>(ID:<font color=\"red\"><b>$asite[0]</b></font>)<a href=\"edts.php?uid=$uid&amp;pwd=$pwd&amp;sid=$asite[0]\">$snm</a> <a href=\"delst.php?uid=$uid&amp;pwd=$pwd&amp;sid=$asite[0]\">[X]</a><br/>";

    }

    echo "</p>";

    echo "<p align=\"center\">";

    echo "<a href=\"addsite.php?uid=$uid&amp;pwd=$pwd\">Add A Site</a><br/>";

    if(isadmin($uid,$pwd)){

    echo "<a href=\"reset.php?uid=$uid&amp;pwd=$pwd\">Reset Counter</a><br/>";

    echo "<a href=\"addcat.php?uid=$uid&amp;pwd=$pwd\">Add A Category</a><br/>";

    }

}else if($res == 1){

    echo "Log in information uncorrect<br/><br/>";

}else{

  echo "You are banned!<br/>";

}

echo "<br/><a href=\"index.php?uid=$uid&amp;pwd=$pwd\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";

?>

</p>

</body>

</html>