Просмотр файла themes/web_AgS/index.php

Размер файла: 8.31Kb
<?php
$infdir = ''.BASEDIR.'themes/web_AgS/';//mape ar tēmu

function myhtml($myhtml) { 
$myhtml = str_replace(''.BASEDIR.'images/img/forums.gif',''.BASEDIR.'/themes/web_AgS/img/komment.gif',$myhtml);
$myhtml = str_replace('<img src="'.BASEDIR.'images/img/act_home.gif" alt="">','',$myhtml);
$myhtml = str_replace('<img src="'.BASEDIR.'images/img/homepage.gif" alt="">','',$myhtml);
$myhtml = str_replace('<a href="'.BASEDIR.'index.php?'.SID.'">Uz galveno</a>','',$myhtml);
$myhtml = str_replace('<img src="'.BASEDIR.'images/img/act.gif" alt="">','<img src="'.BASEDIR.'/themes/web_AgS/img/pix.gif" alt="">',$myhtml);
$myhtml = str_replace('<img src="'.BASEDIR.'images/img/act1.gif" alt="">','<img src="'.BASEDIR.'/themes/web_AgS/img/pix.gif" alt="">',$myhtml);
$myhtml = str_replace('<img src="'.BASEDIR.'images/img/act2.gif" alt="">','<img src="'.BASEDIR.'/themes/web_AgS/img/pix.gif" alt="">',$myhtml);
$myhtml = str_replace('<img src="'.BASEDIR.'images/img/act3.gif" alt="">','<img src="'.BASEDIR.'/themes/web_AgS/img/pix.gif" alt="">',$myhtml);
return $myhtml; }
ob_start(myhtml);

$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]);}
$privs = file(BASEDIR."local/privat/$log.$config_priv");
$totals = count($privs); 
$te = file(BASEDIR."local/status.dat"); 
if ($te!=""){
$udat = explode("|",$te[0]);}
############################################################################
###                             Galva                                   ####
############################################################################

header('Content-type:text/html; charset=utf-8');
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
echo '<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$config_home.'/pages/rss_news.php">';
echo '<link rel="shortcut icon" href="'.$config_home.'/favicon.ico"><title>'.$config_title.$my_title.'</title>';
echo'<style type="text/css">
body, td, tr {text-decoration: none; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; color: #666;}
body {
scrollbar-face-color: #DEE3E7;
	scrollbar-highlight-color: #FFFFFF;
	scrollbar-shadow-color: #DEE3E7;
	scrollbar-3dlight-color: #D1D7DC;
	scrollbar-arrow-color:  #006699;
	scrollbar-track-color: #EFEFEF;
	scrollbar-darkshadow-color: #98AAB1;
margin: 5px; padding: 5px; background: #fff; color: #666;}
hr	{height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}

legend {color: #ccc; width: 100%; font-size: 12px; font-weight: bold; border-bottom: solid 1px #f7f7f7; padding-bottom: 5px; margin-bottom: 5px;}
fieldset {border: solid 1px #fff; padding-bottom: 10px;}
form {margin: 0px; padding: 0px;}
a:active, a:visited, a:link {color: navy; text-decoration: none; font-size: 13px;}
a:hover {color: red; text-decoration: none; font-size: 13px;}
.main {-moz-border-radius: 3em 3em 0em 0em; border-bottom: 1px solid #ccc; color: #666; background: #f7f7f7;}
.b {background: url('.$infdir.'img/diva.gif); background-repeat: repeat-x; margin: 2px 0px; border: 2px solid red; font-weight: bold; padding: 2px; 
background-color: #031b03; text-align: left; color: lime; }
.d {background: url('.$infdir.'img/cell.gif); background-repeat: repeat-x; padding: 2px; font-weight: bold; text-align: center; border: 2px dashed red; border-collapse:collapse; 
background-color: #031b03; color: yellow;}
input,textarea {border: 1px dotted black; background-color: white; color: black; font-weight:bold;}
.d {background-color: #0000FF;  text-align: center; font-size: 11px; color: #FFFF00; }
h1, h2, h3 {font-size: 12px; color: #ccc; border-bottom: solid 1px #f7f7f7; padding-bottom: 5px; padding-left: 5px; margin-bottom: 5px;}
.tdhead {margin: 0px; border-top: 2px solid #DCDCFB; border-left: 2px solid #DCDCFB; border-right: 2px solid #ACACFA; border-bottom: 2px solid #ACACFA; padding: 2px; vertical-align: middle; background-color: #BFBFFC;  font-size: 11px; color: #FFFF00;text-align: center; background: url('.$infdir.'img/cell2.gif); background-repeat: repeat-x;  font-weight:bold;}
.on{border:1px solid black;}
a.on:active, a.on:visited, a.on:link {color: gray; text-decoration: none; font-size: 13px;}
a.on:hover { color: red; text-decoration: none; font-size: 13px;}
';
echo'</style></head><body>';
echo '<!--Tēma by ahujenaijs čuvaks AgS-->';


echo'<table cellpadding="0" cellspacing="1" width="100%" bgcolor="#999999">
<tr><td width="100%"></td></tr></table>';
echo'<table cellpadding="0" cellspacing="0" width="100%" border="0"><tr>
<td><img src="'.$infdir.'img/top1.gif" width="491" height="144" border="0" alt=""></td>
<td style="background-color:#FAFAFA;" width="100%"></td>
<td><img src="'.$infdir.'img/top2.gif" width="502" height="144" border="0" alt=""></td></tr></table>';
echo'<table cellpadding="0" cellspacing="1" width="100%" bgcolor="#999999">
<tr><td width="100%"></td></tr></table>';

echo'</div><div class="on">';
echo'<table width="100%" class="tdhead" border="2px" cellpadding="1" cellspacing=0><tr>
<td class="tdhead"><a href="'.BASEDIR.'?'.SID.'">Sākums</a></td>
<td class="tdhead"><a href="'.BASEDIR.'dl/?'.SID.'">Ielādes</a></td>
<td class="tdhead"><a href="'.BASEDIR.'go.php?ver=xhtml&amp;'.SID.'">WAP versija</a></td>
<td class="tdhead"><a href="'.BASEDIR.'chat/?'.SID.'">Čatiņš</a></td>
<td class="tdhead"><a href="'.BASEDIR.'news/?'.SID.'">Jaunumi</a></td>
<td class="tdhead"><a href="'.BASEDIR.'libary/?'.SID.'">Bibliotēka</a></td>
<td class="tdhead"><a href="'.BASEDIR.'book/?'.SID.'">Viesene</a></td>
<td class="tdhead"><a href="'.BASEDIR.'gallery/?'.SID.'">Galerija</a></td>
<td class="tdhead"><a href="'.BASEDIR.'board/?'.SID.'">Sludinājumi</a></td>
</tr></table>';
echo'</div><div>';

echo'<table cellpadding="0" cellspacing="1" width="100%" bgcolor="#999999">
<tr><td width="100%"></td></tr></table>';//linija
///////////////////////////////
if ($_SESSION['log']!="" && md5($_SESSION['par'])!="" && md5($_SESSION['par'])==$provpar && $_SESSION['log']==$provlog ) {$niks=$log;}else{$niks="zaķīt";}	

//--------------------------------------------------
echo'<table><tr><td height="19"><table><tr>
<td><div class="header"><img src="'.$infdir.'img/home.gif" alt=""> Sveiks '.$niks.'!</div></td></tr>
</table> <table border="0" width="70%" cellspacing="0" cellpadding="6">
<tr><td width="180" valign=top style="border-right: 1px dotted #999999;">
<table border="0" width="95%" cellspacing="0" cellpadding="0">
<tr>';

if ($_SESSION['log']!="" && md5($_SESSION['par'])!="" && md5($_SESSION['par'])==$provpar && $_SESSION['log']==$provlog ) {	
echo '</tr><tr><td width="100%">';

if ($dostup==101 || $dostup==102 || $dostup==103 || $dostup==104 || $dostup==105){
echo'</div><div class="b"><img src="'.BASEDIR.'images/img/partners.gif" alt=""> <b>Administrācija</b></div><div><hr>';}
if ($dostup==101 || $dostup==102){
echo'<img src="'.BASEDIR.'images/img/act2.gif" alt=""> <a href="'.BASEDIR.''.$config_mpanel.'/?'.SID.'">ADMIN-PANELIS</a><hr><br>';} 
if ($dostup==103 || $dostup==105){
echo'<img src="'.BASEDIR.'images/img/act2.gif" alt=""> <a href="'.BASEDIR.''.$config_mpanel.'/?'.SID.'">MODER-PANELIS</a><hr><br>';}	

include_once(BASEDIR."local/datamain/menu.dat");
echo '<br>';
//</td></tr>
}else{
echo '</tr><tr><td width="100%"></div><div class="b"><img src="'.BASEDIR.'images/img/partners.gif" alt=""> <b>Autorizācija</b></div><div><hr>';
echo'<form method="post" action="'.$config_home.'/input.php">';
echo'Niks:<br><input name="log" value="'.$_COOKIE['cookname'].'"><br>';
echo'Parole:<br><input name="par" type="password"><br>';
if($config_cookies==1){
echo 'Atcerēties mani:';
echo '<input name="cookietrue" type="checkbox" value="1" checked><br>';}
echo'<input value="Ienākt" type="submit"></form><hr><br>';
//echo '</td></tr>';
}
include_once(BASEDIR."local/datamain/partners.dat");
echo '<br>';
include_once(BASEDIR."local/datamain/statistik.dat");
echo '<br>';
echo'</div><div class="b"><img src="'.BASEDIR.'images/img/partners.gif" alt=""> <b>Reklāma</b></div><div><hr>';
include_once(BASEDIR."local/datamain/reklama_head.dat");
include_once(BASEDIR."local/datamain/reklama_foot.dat");
echo'<hr>';
echo'</td></tr></table></td>';
echo'<td width="520" valign="top" align="right">';
echo '<table cellpadding="10" border="0"  cellspacing="0" width="100%"><tr><td>';
?>