View file wap/hosting.php

File size: 2.21Kb
<?php

include("config.php");

include("core.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

$bcon = connectdb();

if (!$bcon)

{

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

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

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

    echo "<b>Error! Cannot Connect To Database...</b><br/><br/>";

    echo "This error happens usually when backing up the database, please be patient...";

    echo "</p>";

    echo "</card>";

    echo "</wml>";

    exit();

}

$brws = explode("/",$HTTP_USER_AGENT);

$ubr = $brws[0];

$uip = getip();

$action = $_GET["action"];

$sid = $_GET["sid"];

$page = $_GET["page"];

$who = $_GET["who"];

$sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));

$sitename = $sitename[0];

$uid = getuid_sid($sid);



cleardata();



if(($action != "") && ($action!="terms"))

{

    $uid = getuid_sid($sid);

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

    {

        echo "<card id=\"main\" title=\"$sitename\">";

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

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

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

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

      echo "</p>";

      echo "</card>";

      echo "</wml>";

      exit();

    } 

}



  /////////////////////////////////////////////////LINKS PAGE CODE



  echo "<card id=\"main\" title=\"$sitename\">";

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

  echo "<b>hosting</b><br/>";

  echo "If u are interested in getting a site like this or similar<br/>u can contact our host Satanbitch at: <b>fiona@scotland.uk.to</b>";

  echo "<br/>or visit <a href=\"http://wickedempire.co.uk\">WICKEDEMPIRE</a> for any inquiries<br/>";

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

  echo "</p>";

  echo "</card>";



?>



</wml>