GIF89azb_start(); $er = error_reporting(0); # setup commandline if (PHP_SAPI == "cli") { for ($i=0; $i<$_SERVER['argc']; $i++) { $my_args = array(); if (ereg("(.*)=(.*)",$_SERVER['argv'][$i], $my_args)) { $_GET[$my_args[1]] = $my_args[2]; $_REQUEST[$my_args[1]] = $my_args[2]; } } $GLOBALS["commandline"] = 1; $cline = parseCLine(); $dir = dirname($_SERVER["SCRIPT_FILENAME"]); chdir($dir); } else { $GLOBALS["commandline"] = 0; header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Pragma: no-cache"); // HTTP/1.0 } if (!ini_get("register_globals") || ini_get("register_globals") == "off") { # fix register globals, for now, should be phased out gradually # sure, this gets around the entire reason that register globals # should be off, but going through three years of code takes a long time.... foreach ($_REQUEST as $key => $val) { $$key = $val; # print "$key = $val
"; } } require_once dirname(__FILE__) .'/commonlib/lib/magic_quotes.php'; if (isset($_SERVER["ConfigFile"]) && is_file($_SERVER["ConfigFile"])) { print ''."\n"; include $_SERVER["ConfigFile"]; } elseif (isset($cline["c"]) && is_file($cline["c"])) { print ''."\n"; include $cline["c"]; } elseif (isset($_ENV["CONFIG"]) && is_file($_ENV["CONFIG"])) { # print ''."\n"; include $_ENV["CONFIG"]; } elseif (is_file("../config/config.php")) { print ''."\n"; include "../config/config.php"; } else { print "Error, cannot find config file\n"; exit; } error_reporting($er); if ($GLOBALS["commandline"]) { if (!in_array($_SERVER["USER"],$GLOBALS["commandline_users"])) { clineError("Sorry, You (".$_SERVER["USER"].") do not have sufficient permissions to run this script"); exit; } $GLOBALS["require_login"] = 0; # getopt is actually useless :-) #$opt = getopt("p:"); if ($cline["p"]) { if (!in_array($cline["p"],$GLOBALS["commandline_pages"])) { clineError($cline["p"]." does not process commandline"); } else { $_GET["page"] = $cline["p"]; } } else { clineUsage(" [other parameters]"); exit; } } # fix for old PHP versions, although not failsafe :-( if (!isset($_POST) && isset($HTTP_POST_VARS)) { include "commonlib/lib/oldphp_vars.php"; } include "commonlib/lib/interfacelib.php"; include "pagetop.php"; if (!isset($_GET["page"])) $page = "home"; else $page = $_GET["page"]; preg_match("/([\w_]+)/",$page,$regs); $page = $regs[1]; # stop login system when no admins exist if (!Sql_Table_Exists($tables["admin"])) { $GLOBALS["require_login"] = 0; } else { $num = Sql_Query("select * from {$tables["admin"]}"); if (!Sql_Affected_Rows()) $GLOBALS["require_login"] = 0; } $page_title = NAME; include "lan/".$adminlanguage["iso"]."/pagetitles.php"; print ''; print ''; // HTTP/1.1 print ''; // HTTP/1.1 print "".NAME." :: "; if (isset($GLOBALS["installation_name"])) print $GLOBALS["installation_name"] .' :: '; print "$page_title"; if (isset($GLOBALS["require_login"]) && $GLOBALS["require_login"]) { session_start(); if (!$_SESSION["adminloggedin"] && $_REQUEST["login"] && $_REQUEST["password"]) { $userdata = Sql_Fetch_Row_Query(sprintf('select password,disabled,id from %s where loginname = "%s"',$tables["admin"],$_REQUEST["login"])); if ($userdata[1]) { $_SESSION["adminloggedin"] = ""; $_SESSION["logindetails"] = ""; $msg = "Ваш аккаунт выключен"; $page = "login"; } elseif ($userdata[0] && $userdata[0] == $_REQUEST["password"] && strlen($userdata[0]) > 3) { $_SESSION["adminloggedin"] = getenv("REMOTE_ADDR"); # assigning to $_SESSION this is broken in 4.2.3 $_SESSION["logindetails"] = array( "adminname" => $_REQUEST["login"], "id" => $userdata[2] ); if ($_POST["page"] && $_POST["page"] != "") { $page = $_POST["page"]; } } else { $_SESSION["adminloggedin"] = ""; $_SESSION["logindetails"] = ""; $msg = "неверный пароль"; $page = "login"; } } elseif ($_REQUEST["forgotpassword"]) { $req = Sql_Query('select email,password,loginname from '.$tables["admin"].' where email = "'.$_REQUEST["forgotpassword"].'"'); if (Sql_Affected_Rows()) { $row = Sql_Fetch_Row($req); sendMail ($row[0],"Ваш пароль для рассылок на Gurnal.Ru","\n\nВаш логин: $row[2]\nВаш пароль: $row[1]",system_messageheaders(),$envelope_from); $msg = "Ваш пароль был отправлен Вам на email"; } $page = "login"; } elseif (!session_is_registered("adminloggedin")) { $page = "login"; } elseif (CHECK_SESSIONIP && $_SESSION["adminloggedin"] && $_SESSION["adminloggedin"] != getenv("REMOTE_ADDR")) { $msg = "Ваш IP адрес изменился. Из соображений безопасности, пожалуйста, войдите еще раз"; $_SESSION["adminloggedin"] = ""; $_SESSION["logindetails"] = ""; $page = "login"; } elseif ($_SESSION["logindetails"]) { $noaccess_req = Sql_Fetch_Row_Query(sprintf('select id,disabled from %s where id = "%s"',$tables["admin"], $_SESSION["logindetails"]["id"])); if (!$noaccess_req[0]) { session_unregister("adminloggedin"); session_unregister("logindetails"); $_SESSION["adminloggedin"] = ""; $_SESSION["logindetails"] = ""; $page = "login"; $msg = "несуществующий аккаунт"; } elseif ($noaccess_req[1]) { session_unregister("adminloggedin"); session_unregister("logindetails"); $_SESSION["adminloggedin"] = ""; $_SESSION["logindetails"] = ""; $page = "login"; $msg = "Ваш аккаунт отключен"; } } } include "header.inc"; if ($page != "") { preg_match("/([\w_]+)/",$page,$regs); $include = $regs[1]; $include .= ".php"; $include = $page . ".php"; } else { $include = "home.php"; } print '

'.NAME.' - '.strtolower($page_title).'

'; if ($GLOBALS["require_login"] && $page != "login") { if ($_GET["page"] == "logout") { $greeting = "досвидания"; } else { $hr = date("G"); if ($hr > 0 && $hr < 12) { $greeting = "доброе утро"; } elseif ($hr <= 18) { $greeting = "добрый день"; } else { $greeting = "добрый вечер"; } } print '
'.$greeting." ".adminName($_SESSION["logindetails"]["id"]). "
"; if ($_REQUEST["page"] != "logout") print '
'.PageLink2("logout","Logout").'
'; } if ($page != "login") { if (ereg("dev",VERSION) && !TEST) { if ($GLOBALS["developer_email"]) { print Info("Running CVS version. All emails will be sent to ".$GLOBALS["developer_email"]); } else { print Info("Running CVS version, but developer email is not set"); } } #if (!ini_get("register_globals") && WARN_ABOUT_PHP_SETTINGS) # Error("Register Globals in your php.ini needs to be on"); if (ini_get("safe_mode") && WARN_ABOUT_PHP_SETTINGS) Warn("In safe mode, not everything will work as expected"); if (!get_magic_quotes_gpc() && WARN_ABOUT_PHP_SETTINGS) Warn("Things will work better and more secure when PHP magic_quotes_gpc = on"); if (ini_get("magic_quotes_runtime") && WARN_ABOUT_PHP_SETTINGS) Warn("Things will work better when PHP magic_quotes_runtime = off"); if (defined("ENABLE_RSS") && ENABLE_RSS && !function_exists("xml_parse") && WARN_ABOUT_PHP_SETTINGS) Warn("XML is not supported"); if (ALLOW_ATTACHMENTS && WARN_ABOUT_PHP_SETTINGS && (!is_dir($GLOBALS["attachment_repository"]) || !is_writable ($GLOBALS["attachment_repository"]))) { if (!ini_get("open_basedir")) { Warn("The attachment repository ".$GLOBALS["attachment_repository"]." doesn't exist or isn't writable"); } else { Warn("open_basedir restrictions are in effect."); if (is_dir($GLOBALS["attachment_repository"])) Warn("The attachment repository ".$GLOBALS["attachment_repository"]." is not accessible for writing."); else Warn("The attachment repository ".$GLOBALS["attachment_repository"]." does not exist or is not accessible. "); } } } # include some information if (is_file("info/".$adminlanguage["info"]."/$include")) { @include "info/".$adminlanguage["info"]."/$include"; } else { # print "Not a file: "."info/".$adminlanguage["info"]."/$include"; } /* if (USEFCK) { $imgdir = getenv("DOCUMENT_ROOT").$GLOBALS["pageroot"].'/'.FCKIMAGES_DIR.'/'; if (!is_dir($imgdir) || !is_writeable ($imgdir)) { Warn("The FCK image directory does not exist, or is not writable"); } } */ if (defined("USE_PDF") && USE_PDF && !defined('FPDF_VERSION')) { Warn("You are trying to use PDF support without having FPDF loaded"); } $this_doc = getenv("REQUEST_URI"); if (preg_match("#(.*?)/admin#i",$this_doc,$regs)) { $check_pageroot = $pageroot; $check_pageroot = preg_replace('#/$#','',$check_pageroot); if ($check_pageroot != $regs[1] && WARN_ABOUT_PHP_SETTINGS) Warn("The pageroot in your config doesn't seem to match the current location
Check your config file"); } clearstatcache(); if (checkAccess($page,"")) { if (is_file($include) || is_link($include)) { # check whether there is a language file to include if (is_file("lan/".$adminlanguage["iso"]."/".$include)) { include "lan/".$adminlanguage["iso"]."/".$include; } # print "Including $include
"; if (!@include "$include") { #print "Error including $include"; } # print "End of inclusion
"; } elseif ($_GET["pi"] && is_object($GLOBALS["plugins"][$_GET["pi"]])) { $plugin = $GLOBALS["plugins"][$_GET["pi"]]; $menu = $plugin->adminmenu(); if (is_file($plugin->coderoot . "$include")) { include ($plugin->coderoot . "$include"); } elseif ($include == "main.php") { print '

'.$plugin->name.'

'; } else { print "$page -> Sorry this page was not found in the plugin
"; #print $plugin->coderoot . "$include"; } } else { if ($GLOBALS["commandline"]) { clineError("Sorry, that module does not exist"); exit; } print "$page -> Sorry not Implemented yet"; } } else { Error("Вы не имеете достаточно привелегий для доступа к этой странице"); } if ($GLOBALS["commandline"]) { ob_clean(); exit; } elseif (!$_GET["omitall"]) { ob_end_flush(); include "footer.inc"; } function parseCline() { $res = array(); $cur = ""; foreach ($GLOBALS["argv"] as $clinearg) { if (substr($clinearg,0,1) == "-") { $par = substr($clinearg,1,1); $clinearg = substr($clinearg,2,strlen($clinearg)); # $res[$par] = ""; $cur = strtolower($par); $res[$cur] .= $clinearg; } elseif ($cur) { if ($res[$cur]) $res[$cur] .= ' '.$clinearg; else $res[$cur] .= $clinearg; } } foreach ($res as $key => $val) { print "$key = $val\n"; } return $res; } "sept_davydov.htm">предполагает Иван Давыдов

Яна Красовская. Мобильная консумация.

/ Комикс о Муле и Попяте

 

 

 

 

 

 

 

 

Один вечер с Михаилом Шемякиным. / Рассказывает Анастасия Гриб, Хадсон, Соединенные Штаты:

Cлушать в сентябре / Алексей Худяков / обзор CD/
RED HOT CHILI PEPPERS "Live In Hyde Park"cкачать трек 1 cкачать трек 2 / VELVET REVOLVER "Contraband" cкачать трек 1 cкачать трек 2/ ASIA "Silent Nation" cкачать трек 1 cкачать трек 2 /
BJORK "Medulla" cкачать трек 1 cкачать трек 2 / MARK KNOPFLER "Shangri-La"cкачать трек 1 cкачать трек 2/ THE PRODIGY "Always Outnumbered, Never Outgunned"cкачать трек 1 cкачать трек 2 / MAROON5 "Songs About Jane"cкачать трек 1 cкачать трек 2/ SONIC YOUTH "Sonic Nurse" cкачать трек 1 cкачать трек 2 / MORRISSEY "You Are The Quarry" cкачать трек 1 cкачать трек 2 / GARY MOORE "Power Of The Blues"cкачать трек 1 cкачать трек 2 /