View file wapirate/wml/server.php

File size: 3.17Kb
<?php

header("Content-type: text/vnd.wap.wml");

header("Cache-Control: no-store, no-cache, must-revalidate");

echo("<?xml version=\"1.0\"?>");

echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; 

?>

<wml>

<?php

///////////////////////////////////////////////

// VISIT http://fimizone.org                 //

// LOVE CALCULATOR SCRIPT DONE BY LAMAR      //

// VISIT http://fimizone.org/forum           //

// ADD YOUR SITES TO http://fimizone.org/top //

///////////////////////////////////////////////

include("captainsafeconfig.php");

include("captainsafecore.php");

$bcon = connectdb();

$sid = $_GET["sid"];

if (!$bcon)

{

    echo "<card id=\"main\" title=\"wapirate (ERROR!)\">";

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

    echo "<img src=\"images/exit.gif\" alt=\"*\"/><br/>";

    echo "ERROR! cannot connect to database<br/><br/>";

    echo "This error happens usually when backing up the database, please be patient, The site will be up any minute<br/><br/>";

    echo "<b>THANK YOU VERY MUCH</b>";

    echo "</p>";

    echo "</card>";

    echo "</wml>";

    exit();

}

$action = $_GET["action"];

$sid = $_GET["sid"];

$uid = getuid_sid($sid);

if((islogged($sid)==false)||($uid==0))

{

        echo "<card id=\"main\" title=\"wapirate\">";

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

      echo "You are not logged in<br/>";

      echo "Or Your session has expired.<br/><br/>";

      echo "<a href=\"index.php\">Login</a>";

      echo "</p>";

      echo "</card>";

      echo "</wml>";

      exit();

}

if(isbanned($uid))

    {

        echo "<card id=\"main\" title=\"wapirate\">";

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

      echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>";

      echo "You are <b>Banned</b><br/>";

      $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));

      $remain = $banto[0]- time();

      $rmsg = gettimemsg($remain);

      echo "Time to finish your penalty: $rmsg<br/><br/>";

      //echo "<a href=\"index.php\">Login</a>";

      echo "</p>";

      echo "</card>";

      echo "</wml>";

      exit();

    }



if($action=="servermenu")

{

addonline(getuid_sid($sid),"Server Menu","");

        echo "<card id=\"main\" title=\"Server Menu\">";

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

        echo "</small></p>";

        



   echo "<p align=\"left\">"; echo "<small>"; 

echo "<b>Switch Server/Version</b><br/><br/>"; 

echo "<a href=\"/index.php?action=main&amp;sid=$sid\">&#187;wml v1</a><br/>";

echo "<a href=\"/v2/index.php?action=main&amp;sid=$sid\">&#187;wml v2</a><br/>";

echo "<a href=\"/v3/index.php?action=main&amp;sid=$sid\">&#187;wml v3</a><br/>";

echo "<a href=\"/xhtml/index.php?action=main&amp;sid=$sid\">&#187;xhtml</a><br/>";

   echo "<br/><small><a href=\"index.php?action=cpanel&amp;sid=$sid\"><b>Back To CPanel</b></a><br/>";

   echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";

   echo "<b>Home</b></a><br/>";

   echo "&#169; wapirate</small>";

   echo "</p>";

   echo "</card>";

}





?></wml>