View file webs/index.php

File size: 11.82Kb
<?php
#================================================#
#      === тема webs для Wap-motor 19.x ===      #
#             Made by:  Shur1k                   #
#             Site:  wap.rovno.ua                #
#             Рисую флеш логотипы[swf]           #
#             ICQ: 9400902                       #
#================================================#

header("Content-type:text/html; charset=utf-8");
echo'
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>'.site_title($php_self).'</title>
	
<link rel="stylesheet" href="'.$config['home'].'/themes/webs/webs.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="RSS News" href="'.$config['home'].'/news/rss.php" />
<style type="text/css">';


echo'
</style>
<meta name="keywords" content="'.$config['keywords'].'" />
<meta name="description" content="'.$config['description'].'" />
<meta name="generator" content="Wap-Motor '.MOTOR_VERSION.'" />
</head>
<body>';
echo '</head><body><center>';	



function myh($myh) { 
$myh = str_replace("<img src=\"../smiles/","<img src=\"../images/smiles/",$myh);
$myh = str_replace("images/img/act.gif",BASEDIR."themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/key.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/act_home.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/homepage.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/act1.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/act2.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/act3.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/act.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/act1.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/act2.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/act3.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/new.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/new1.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/new2.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/reload.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/error.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/mail.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/mail2.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/back.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/stat.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/many.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/panel.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/person.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/forums.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/files.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/edit.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/rss.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/dir.gif","themes/webs/img/dir.png",$myh);
$myh = str_replace("images/img/opendir.gif","themes/webs/img/dir.png",$myh);
$myh = str_replace("images/img/new_dir.gif","themes/webs/img/dir.png",$myh);
$myh = str_replace("images/img/top20_dir.gif","themes/webs/img/dir.png",$myh);
$myh = str_replace("images/img/faq.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/arhiv.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/chat.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/dot.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/dot2.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/zakr.gif","themes/webs/img/zakr.png",$myh);
$myh = str_replace("images/img/lock.gif","themes/webs/img/lock.png",$myh);
$myh = str_replace("images/img/open.gif","themes/webs/img/open.png",$myh);
$myh = str_replace("images/img/close.gif","themes/webs/img/close.png",$myh);
$myh = str_replace("images/img/chel.gif","themes/webs/img/chel.png",$myh);
$myh = str_replace("images/img/anonim.gif","themes/webs/img/chel.png",$myh);
$myh = str_replace("images/img/security.gif","themes/webs/img/chel.png",$myh);
$myh = str_replace("images/img/women.gif","themes/webs/img/chel.png",$myh);
$myh = str_replace("images/img/search.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("find.gif","find.png",$myh);
$myh = str_replace("images/img/rating10.gif","themes/webs/img/raiting10.png",$myh);
$myh = str_replace("images/img/rating0.gif","themes/webs/img/raiting0.png",$myh);
$myh = str_replace("images/img/rating1.gif","themes/webs/img/raiting1.png",$myh);
$myh = str_replace("images/img/rating2.gif","themes/webs/img/raiting2.png",$myh);
$myh = str_replace("images/img/rating3.gif","themes/webs/img/raiting3.png",$myh);
$myh = str_replace("images/img/rating4.gif","themes/webs/img/raiting4.png",$myh);
$myh = str_replace("images/img/rating5.gif","themes/webs/img/raiting5.png",$myh);
$myh = str_replace("images/img/rating6.gif","themes/webs/img/raiting6.png",$myh);
$myh = str_replace("images/img/rating7.gif","themes/webs/img/raiting7.png",$myh);
$myh = str_replace("images/img/rating8.gif","themes/webs/img/raiting8.png",$myh);
$myh = str_replace("images/img/rating9.gif","themes/webs/img/raiting9.png",$myh);
$myh = str_replace("images/img/themes.gif","themes/webs/img/partners.png",$myh);
$myh = str_replace("images/img/online.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/custom.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/warning.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/ignor.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("images/img/replies.gif","themes/webs/img/act.gif",$myh);
$myh = str_replace("kento.ru","mycsstyle.xmod.mobi",$myh);
$myh = str_replace("visavi.net","mycsstyle.xmod.mobi",$myh);
$myh = str_replace("pizdec.ru","mycsstyle.xmod.mobi",$myh);


$myh = preg_replace('#\<img src\=\"'.BASEDIR.'images\/img\/partners.gif\" alt\=\"\"\> (.*?)\<br\>\<br\>#si', '<div class=e><b>\1</b></div>', $myh);
$myh = preg_replace('#\<img src\=\"'.BASEDIR.'images\/img\/menu.gif\" alt\=\"\"\> (.*?)\<br\>\<br\>#si', '<div class=e><b>\1</b></div>', $myh);
$myh = preg_replace('#\<img src\=\"'.BASEDIR.'images\/img\/motors.gif\" alt\=\"\"\> (.*?)\<br\>\<br\>#si', '<div class=e><b>\1</b></div>', $myh);
$myh = preg_replace('#\<img src\=\"'.BASEDIR.'images\/img\/profiles.gif\" alt\=\"\"\> (.*?)\<br\>\<br\>#si', '<div class=e><b>\1</b></div>', $myh);
$myh = preg_replace('#\<img src\=\"'.BASEDIR.'images\/img\/mails.gif\" alt\=\"\"\> (.*?)\<br\>\<br\>#si', '<div class=e><b>\1</b></div>', $myh);
$myh = preg_replace('#\<img src\=\"'.BASEDIR.'images\/img\/banners.gif\" alt\=\"\"\> (.*?)\<br\>\<br\>#si', '<div class=e><b>\1</b></div>', $myh);
$myh = preg_replace('#\<img src\=\"'.BASEDIR.'images\/img\/down.gif\" alt\=\"\"\> (.*?)\<br\>\<br\>#si', '<div class=e><b>\1</b></div>', $myh);
$myh = preg_replace('#\<img src\=\"'.BASEDIR.'images\/img\/bsearch.gif\" alt\=\"\"\> (.*?)\<br\>\<br\>#si', '<div class=e><b>\1</b></div>', $myh);
$myh = preg_replace('#\<img src\=\"'.BASEDIR.'images\/img\/down.gif\" alt\=\"\"\> (.*?)\<br\>\<br\>#si', '<div class=e><b>\1</b></div>', $myh);

return $myh; }
ob_start(myh);


$text = file(BASEDIR."local/profil/$log.prof"); 
if ($text!=""){
$udata = explode(":||:",$text[0]);
$provlog=trim($udata[0]);
$provpar=trim($udata[1]);
$dostup=trim($udata[7]);
$privat=trim($udata[10]);}
$userprivat = count(file(BASEDIR."local/privat/$log.$config_priv"));
$totals = count($privs); 
$te = file(BASEDIR."local/status.dat"); 
if ($te!=""){
$udat = explode("|",$te[0]);}



//----------------------------------Верхний блок--------------------------------//
echo'<table align="center" cellpadding="0" cellspacing="0" width="1000px">
<tr><td width="100%">';
echo'<table cellpadding="0" cellspacing="0" width="1000px" border="0">
                <tr>
                    <td class=top>
					<br>
					<img src="'.BASEDIR.'themes/webs/site/logo.png" border="0" alt=""><br>'.$config_logos.'<br><br></td>
					
                </tr>';

				
echo'				<tr>
				   <td><div  class=head_navig>';

if (is_admin(array(101,102))){			   
echo'<a href="'.ADMINDIR.'index.php?'.SID.'"><img src="'.BASEDIR.'themes/webs/buttons/r_adm.png" border="0" alt="Админка "></a>';
if (is_admin(array(103,105))){
echo'<a href="'.ADMINDIR.'index.php?'.SID.'"><img src="'.BASEDIR.'themes/webs/buttons/r_adm.png" border="0" alt="Админ-панель "></a>';
}}
else{
echo'<a href="'.BASEDIR.'pages/login.php?&amp'.SID.'"><img src="'.BASEDIR.'themes/webs/buttons/r_enter.png" border="0" alt="Вход "></a>';}
echo'<a href="'.BASEDIR.'board/"><img src="'.BASEDIR.'themes/webs/buttons/mmenu.png" border="0" alt="Обьявления "></a>';
echo'<a href="'.BASEDIR.'forum/?&amp'.SID.'"><img src="'.BASEDIR.'themes/webs/buttons/forum.png" border="0" alt="Форум "></a>';
echo'<a href="'.BASEDIR.'book/?&amp'.SID.'"><img src="'.BASEDIR.'themes/webs/buttons/book.png" border="0" alt="Гостевая "></a>';
echo'<a href="'.BASEDIR.'chat/?&amp'.SID.'"><img src="'.BASEDIR.'themes/webs/buttons/chat.png" border="0" alt="Чат "></a>';
echo'<a href="'.BASEDIR.'down/?&amp'.SID.'"><img src="'.BASEDIR.'themes/webs/buttons/down.png" border="0" alt="Загрузки ">               </a>';
     if ($config['showtime']==1){
     echo '<font color="red">*****'.date_fixed($sitetime,'j F Y').'</font> <font color="blue">['.date_fixed($sitetime,'H:i').']*****</font>';
} 



				   		
 echo'             </div></td>
				</tr>
            </table>';
			include_once (BASEDIR."includes/isset.php");
//----------------------------------Верхний блок--------------------------------//



echo'<table cellpadding="0" cellspacing="0" width="1000px" bgcolor="#FFFFFF">';
echo'<tr><td width="25%" valign="top">';
echo'<table cellpadding="5" cellspacing="0" width="100%"><tr><td class=f>';



//----------------------------------Левый блок--------------------------------//
include_once(BASEDIR.'local/datamain/times.dat');
include_once(BASEDIR.'local/datamain/zagruzki.dat');
include_once(BASEDIR.'local/datamain/pk.dat');
include_once(BASEDIR.'local/datamain/onlinegames.dat');
include_once(BASEDIR.'local/datamain/onlineservise.dat');
include_once(BASEDIR.'local/datamain/info.dat');
include_once(BASEDIR.'local/datamain/dosug.dat');
include_once(BASEDIR.'local/datamain/statistik.dat');

echo '<br><div class=e>Трафик</div><leaft>';
if($config['gzip']==1){
echo '<span style="color:#00ff00">Сжатие GZIP включено</span><br /><br />';
}else{
echo '<span style="color:#ff0000">Сжатие GZIP выключено</span><br /><br />';
}

if(empty($_SESSION['traffic'])){$_SESSION['traffic'] = 0;}
if(empty($_SESSION['traffic2'])){$_SESSION['traffic2'] = 0;}

echo 'Общий трафик: <b>'.formatsize($_SESSION['traffic2']).'</b><br />';
echo 'Трафик с учетом сжатия: <b>'.formatsize($_SESSION['traffic']).'</b><br />';
$traffic3 = $_SESSION['traffic2'] - $_SESSION['traffic'];
echo 'Сэкономленно за сеанс: <b>'.formatsize($traffic3).'</b><br /><br />';

echo 'Переходов по сайту: <b>'.(int)$_SESSION['counton'].'</b><br />';
echo 'Время проведенное на сайте: <b>'.$_SESSION['timeon'].'</b><br /><br />';

//----------------------------------Левый блок--------------------------------//


	

echo'</td></tr></table>';
echo'</td><td width="50%" valign="top">';
echo'<table cellpadding="10" cellspacing="0" width="100%"><tr><td class="main">';

?>