Вход Регистрация
Файл: index.php
Строк: 112
<?php

//error_reporting(E_ALL | E_STRICT) ;
//ini_set('display_errors', 'On');

include_once ('conf.php');
include_once (
MOD_DIR 'func.php');
include_once 
INC "/bd.php";
define('STOOKE'1);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
    <title>salesite.tioo.ru - биржа продажи сайтов и доменов. Где купить сайт или домен? Как продать сайт?</title>
    <meta name="keywords" content="биража продажи сайтов, продажа сайтов, покупка сайтов, продать сайт, купить сайт, купить домен" />
    <meta name="description" content="salesite.tioo.ru - это одна из самых крупнейших бирж продажи и покупки сайтов и доменов." />
    <link href="http://salesite.tioo.ru/style.css" rel="stylesheet" type="text/css" />
    <base href="http://salesite.tioo.ru/" />
    <link rel="icon" href="http://salesite.tioo.ru/favicon.ico" type="image/x-icon"/>
    <link rel="shortcut icon" href="http://salesite.tioo.ru/favicon.ico" type="image/x-icon"/> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
    <script src="http://salesite.tioo.ru/plugins/js/prototype.js" type="text/javascript"></script>
    <script src="http://salesite.tioo.ru/plugins/js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
    <script src="http://salesite.tioo.ru/plugins/js/lightbox.js" type="text/javascript"></script>
    <link rel="stylesheet" href="http://salesite.tioo.ru/plugins/js/lightbox.css" type="text/css" media="screen" />
    
     <script type="text/javascript">  
     function testKey(e)  
     {  
       // Make sure to use event.charCode if available  
       var key = (typeof e.charCode == 'undefined' ? e.keyCode : e.charCode);  
       
       // Ignore special keys  
       if (e.ctrlKey || e.altKey || key < 32)  
         return true;  
       
       key = String.fromCharCode(key);  
       return /w/.test(key);  
     }  
     </script> 

</head>

<body>
<div id="all">

  <?php
include "inc/header.php";

if (isset(
$_COOKIE['id']) and isset($_COOKIE['hash'])) {
    
$userid $_COOKIE['id'];
    
$userhash $_COOKIE['hash'];

    
$query mysql_query("SELECT * FROM `users` WHERE id='$userid' and hash='$userhash'",
        
$db);
    
$user mysql_fetch_array($query);
    
$login $user['login'];
    if (
$userhash != $user['hash'] and $userid != $user['id']) {
        include 
"inc/login.php";
    } else {
        include 
"inc/userpanel.php";
    }
} else {
    include 
"inc/login.php";
}

?>
    
    <div id="sort">
        <?php
include "inc/sort1.php";
include 
"inc/sort2.php";
?>
        
    </div>
    
    <div id="centerblok">
        <?php

include "inc/leftmenu.php";
if (isset(
$_GET['module'])) {
    
$module $_GET['module'];
} else
    
$module 'NULL';

if (
how_is() == true) {
    
//Если пользователь вошел
    
$modulearray = array('content''personalmail''view''user''pages''addproject''projects''adm''support''allcat''balance''advcont''transaction''tools''tos');
    if (
in_array($module$modulearray))
        include 
"inc/" $_GET['module'] . ".php";
    else
        include 
"inc/content.php";
} elseif (
how_is() == false) {
    
//Если пользователь не вошел
    
$modulearray = array('reg''content''view''pages''user''adm''support''allcat''tools''tos''repass');
    if (
in_array($module$modulearray))
        include 
"inc/" $_GET['module'] . ".php";
    else
        include 
"inc/content.php";
} else
    echo 
"<div class='rightcenterblok'><div class='rcb5' style='padding:20px;'><center>У вас не достаточно прав доступа. Пожалуйста, зарегистрируйтесь.</center></div></div>";

?>
    </div>

        <?php include "inc/footer.php"?>
</div>

</body>
</html>
<?
    
    $html 
ob_get_contents();
    
ob_end_clean();
    exit(
$html);

?>
Онлайн: 1
Реклама