View file site.php

File size: 1.95Kb
<?php

error_reporting(0);
require_once"./includes/functions/gzip.php";
include('start.php');
include("config.php");
include("./includes/".$ver."/banned");

list($msec, $sec) = explode(chr(32), microtime()); 
$headtime = $sec + $msec;

$nocache = rand(0, 999999999);

//////////////HTML

$my_title = "Chat Site Hosting";
  if (!isset($_COOKIE['theme'])) $_COOKIE['theme'] = 1;
        include_once "themes/" . intval($_COOKIE['theme']) . "/index.php";

  // AUTH
        $id = intval($_SESSION['id']);
        $password = mysql_escape_string($_SESSION['password']);
        $q = mysql_query("SELECT * FROM `chat_users` WHERE `id` = '" . $id . "' AND `password` = '" . md5($password) . "';");

        if (mysql_affected_rows() == 0) {
            echo "Not logged in!<br/>\n";
            include_once "themes/" . intval($_COOKIE['theme']) . "/foot.php";
            exit();
        } else {
            $nickname = mysql_result($q, 0, 'nickname');
        } 
        // END AUTH
/*
//ONLINE
$online = time() + 60;
$update = mysql_query("UPDATE `chat_users` SET `time` = '".$online."', `place` = 0, `ip` = '".getenv('REMOTE_ADDR')."', `ua` = '".htmlspecialchars(getenv('HTTP_USER_AGENT'))."' WHERE `id` = '".$id."';");
//END ONLINE
*/

//ONLINE IN CHAT
$query = mysql_query("SELECT COUNT(*) FROM `chat_users` WHERE `time` > ".time().";");
$online = mysql_result($query, 0);
//END ONLINE
 echo "<font color=red face='comic sans ms'>Hello Everyone... Do You Like This Site???<br/>Yes !!!!<br/> Do u want a site like this????<br/> Yes!!!! <br/>Then What Are You Waiting For.... What You Need To Do Is Just PM <a href=\"info.php?".SID."&amp;ver=html&amp;uid=2&amp;nocache=$nocache\"><b>ArNaB</a></b> For This.<br/> The site cost is not too big also.U just have to pay 2400 INR/year and Get a <B>yourname.in</B> website.<br/>Thank You For Reading.</font><br/><br/>";

echo "<a href=\"menu.php?".SID."&amp;ver=html\">Hall</a><br/>\n";
include_once "themes/".intval($_COOKIE['theme'])."/foot.php";



?>