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

    
include("txtSQL.class.php");
    
$db = new txtSQL("db");
    
$db->connect("root","");
    
    
    if (
$db->db_exists("siteman")) {
        
$db->selectdb("siteman");
        include(
"siteman.class.php");
        
$Siteman = new website("2.0.x1");
        if (isset(
$_GET["module"])) {
            
$Siteman->settings["module"] = $_GET["module"];
        }
        
$modulesettings $db->select(array("table" => "modules","db" => "siteman","where" => array("name = ".$Siteman->settings["module"])));
        if (
strlen($modulesettings[0]["name"]) < 1) {
            
$modulesettings[0]["title"] = $Siteman->settings["module"]." (Not installed)";
            
$modulesettings[0]["level"] = 4;
        }
        
$Siteman->content $modulesettings[0]["title"];
        if (
$Siteman->userinfo["level"] >= $modulesettings[0]["level"]) {
            if (
file_exists("modules/".$Siteman->settings["module"]."/init.php")) {
                include(
"modules/".$Siteman->settings["module"]."/init.php");
            }
        }
        echo
'<?xml version="1.0" encoding="ISO-8859-1"?>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
        <html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>'
.$Siteman->settings["sitename"].' - '.$Siteman->content.'</title>
        <link rel="stylesheet" type="text/css" href="themes/'
;
        if (
file_exists("themes/".$Siteman->settings["theme"]."/style.css")) {
            echo 
$Siteman->settings["theme"];
        }
        else {
            echo 
"standard";
        }
        echo
'/style.css" />
        </head>
        <body>'
;
        include(
"themes/".$Siteman->settings["theme"]."/header.php");
        
        if (
$Siteman->userinfo["level"] >= $modulesettings[0]["level"]) {
            include(
"modules/".$Siteman->settings["module"]."/index.php");
        }
        
        include(
"themes/".$Siteman->settings["theme"]."/footer.php");
        echo
"</body></html>";
    }
    else {
        include(
"ins.inc");        
    }
    
$db->disconnect();

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