Просмотр файла dl/thm/AgS_web/index.php

Размер файла: 8.41Kb
<?php
#********************************** AgS MOD DOWNLOAD CENTR SEA *************************************#
#***************************************************************************************************#
#  /||||||||||||||| *********************  /||||||||||||||| *********************  /||||||||||||||| #
# | ||||||||||||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# | |||||/////||||| ********************* | |||||/////////  ********************* | |||||/////////  #
# | |||||   | ||||| ****** E-MAIL ******* | |||||           ****** WAP/WEB ****** | |||||           #
# | |||||   | ||||| *** [email protected] *** | |||||           * http://ags.h2m.ru * | ||||||||||||||| #
# | |||||   | ||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# | |||||   | ||||| ********************* | |||||/////||||| ********************* |///////////||||| #
# | ||||||||||||||| ****** SKYPE ******** | |||||   | ||||| ***** MOD AUTHOR ****           | ||||| #
# | |||||////|||||| ***** agrizz15 ****** | |||||   | ||||| ***** Agris Cišs ****  /||||||||||||||| #
# | |||||   | ||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# |/////    |/////  ********************* |///////////////  ********************* |///////////////  #
#***************************************************************************************************#
#********************************* MOD by AgS in 2010 @ LATVIA *************************************#


$JgT_web_dir = 'AgS_web';

/* Skina galva ar HTML */
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="shortcut icon" href="thm/'.$JgT_web_dir.'/css.img/favico.gif">';



echo '<title>'.$setup['dl_name'].'</title>';
echo '<link href="'.BASE.'thm/'.$JgT_web_dir.'/css.img/AgS.css" rel="stylesheet" type="text/css" />';
echo '</head><body>';
echo '<!--Theme by AgS-->';




// Aizvietojam nevajadzīgo ar WEBam vajadzīgo 
function mytheme($mytheme) {
global $JgT_web_dir ;

$mytheme = str_replace('<img src="'.BASE.'pic/main/dot.gif" alt="">','<img src="'.BASE.'thm/'.$JgT_web_dir.'/back.png" alt="">',$mytheme);

$mytheme = str_replace('<img src="'.BASE.'pic/main/home.gif" alt="">','<img src="'.BASE.'thm/'.$JgT_web_dir.'/homepage.png" alt="">',$mytheme);

$mytheme = str_replace('<img src="'.BASE.'pic/main/search.gif" alt="">','<img src="'.BASE.'thm/'.$JgT_web_dir.'/search.png" alt="">',$mytheme);

$mytheme = str_replace('<img src="'.BASE.'pic/main/info.gif" alt="">','<img src="'.BASE.'thm/'.$JgT_web_dir.'/forums.png" alt="">',$mytheme);

$mytheme = str_replace('<img src="'.BASE.'pic/main/dir.gif" alt="">','<img src="'.BASE.'thm/'.$JgT_web_dir.'/dir.png" alt="">',$mytheme);

$mytheme = str_replace('<img src="'.BASE.'pic/main/comments.gif" alt="">','<img src="'.BASE.'thm/'.$JgT_web_dir.'/chat.png" alt="">',$mytheme);


$mytheme = str_replace('<img src="'.BASE.'pic/main/head.gif" alt="">','<img src="'.BASE.'thm/'.$JgT_web_dir.'/menu.png" alt="">',$mytheme);

$mytheme = str_replace('<img src="'.BASE.'pic/main/adddir.gif" alt="">','<img src="'.BASE.'thm/'.$JgT_web_dir.'/new_dir.png" alt="">',$mytheme);

$mytheme = str_replace('<img src="'.BASE.'pic/main/panel.gif" alt="">','<img src="'.BASE.'thm/'.$JgT_web_dir.'/panel.png" alt="">',$mytheme);

$mytheme = str_replace('<img src="'.BASE.'pic/main/top20_dir.gif" alt="">','<img src="'.BASE.'thm/'.$JgT_web_dir.'/top20_dir.png" alt="">',$mytheme);


$mytheme = str_replace(' | <a href="statistika.php?'.SID.'">'.sys_stat.'</a>','',$mytheme); 


return $mytheme; }
ob_start(mytheme);



/* Lapas augšas daļa */
echo '<div align="center">';
echo '<table cellpadding="0" cellspacing="0">';
echo '<tr>';
echo '<Td bgcolor="4c4c4c" width="2" height="2"></Td>';
echo '<td bgcolor="4c4c4c" height="2"></td>';
echo '<td bgcolor="4c4c4c" width="2" height="2"></td>';
echo '</tr>';
echo '<tr>';
echo '<Td bgcolor="4c4c4c" width="2"></Td>';
echo '<td bgcolor="141414"><div class="margin">';

echo '<table cellpadding="0" cellspacing="0" width="869">';
echo '<tr>';
echo '<Td height="37" class="a_ebtoday" align="center">';
//////////
echo '</Td>';
echo '</tr>';
echo '</table>';
echo '<table cellpadding="0" cellspacing="0" width="869">';
echo '<tr>';

/* Logo ar linku */
echo '<td height="194"><img src="thm/'.$JgT_web_dir.'/css.img/header.jpg" border="0" usemap="#Map" />';
echo '<map name="Map" id="Map">';
echo '<area shape="circle" coords="166,81,100" href="http://ags.h2m.ru" />';
echo '<area shape="rect" coords="166,72,550,98" href="http://ags.h2m.ru" />';
echo '</map>';

echo '</td>';
echo '</tr>';
echo '</table><br>';


// Kreisais flangs 
echo '<table cellpadding="0" cellspacing="0" width="869"><tr>';


echo '<table cellpadding="0" cellspacing="0" width="869"><tr>';
echo '<td width="204" class="left_ebtoday" valign="top">';

echo'<table cellpadding="0" cellspacing="0" width="193" class="title"><tr>';
echo '<td align="left">';
echo '<div class="nav_h"><img src="thm/'.$JgT_web_dir.'/profiles.png" border="0" />'.sys_stat.'</div></td>';
echo '</tr></table>';
echo '<table cellpadding="0" cellspacing="0" width="193" class="title_ebtoday"><tr>';
echo '<td align="left">';

if($setup['stat_change']){

/* Kopējā svara iegūšana no DB */
$all_size = mysql_fetch_row(mysql_query('SELECT SUM(`size`) FROM `'.$MY_pre.'faili` WHERE `size` > 0'));

/* Visi faili no DB */
$all_files = mysql_fetch_row(mysql_query('SELECT COUNT(*) FROM `'.$MY_pre.'faili` WHERE `size` > 0'));

/* Visi kačājumi */
$all_loads = mysql_fetch_row(mysql_query('SELECT SUM(`loads`) FROM `'.$MY_pre.'faili` WHERE `size` > 0'));

/* Visas jaunās ielādes */
$new_all_files = mysql_fetch_row(mysql_query('SELECT COUNT(*) FROM `'.$MY_pre.'faili` WHERE `timeupload` > '.($time-(86400*$setup['day_new'])).' AND `size` > 0'));

/* Statistikas izvade */
echo '<small>'.sys_allfil.': '.(int)$all_files[0].'<br>';
echo sys_allfilnew.': '.(int)$new_all_files[0].'<br>';
echo sys_allfildw.': '.(int)$all_loads[0].'<br>';
echo sys_allfilweig.': '.izmers($all_size[0]).'<br>';
echo 'MAX ONLINE: '.$max_onlinen[0].'</small><br>';

}
echo 'IP: '.$ip.'<br>';
echo dl_059.': '.$brow.'<br>';

echo'<br></td></tr></table>';





echo '<table cellpadding="0" cellspacing="0" width="193" class="titlenobg"><tr>';
echo '<td align="left">';
echo'</td>';
echo '</tr></table>';
echo '<table cellpadding="0" cellspacing="0" width="193" class="title_AgS"><tr>';
echo '<td align="left"><br>';

echo'<form method="post" action="'.BASE.'ses.php?act=skins&amp;'.SID.'">';
echo'<select name="skins" onchange="this.form.submit();"><option value="0">'.sys_chtheme.'</option>';

$skindir = opendir(BASE."thm"); 
while ($skinfile = readdir ($skindir)){
if (is_dir(BASE."thm/$skinfile")) {
if($skinfile=="."||$skinfile=="..") continue;

echo'<option value="'.$skinfile.'">'.$skinfile.'</option>';
 }}
echo'</select>';
closedir ($skindir);

echo'</form>';


echo'<form method="post" action="'.BASE.'ses.php?act=lng&amp;'.SID.'">';
echo'<select name="lngu" onchange="this.form.submit();"><option value="0">'.dl_106.'</option>';

$skindir = opendir(BASE."lng"); 
while ($skinfile = readdir ($skindir)){
if (is_dir(BASE."lng/$skinfile")) {
if($skinfile=="."||$skinfile=="..") continue;

echo'<option value="'.$skinfile.'">'.$skinfile.'</option>';
 }}
echo'</select>';
closedir ($skindir);

echo'</form>';
echo'<br></td></tr></table>';





/*

echo '<table cellpadding="0" cellspacing="0" width="193" class="title"><tr>';
echo '<td align="left">';
echo '<div class="nav_h"><img src="thm/'.$JgT_web_dir.'/profiles.png" border="0" />  Links</div></td>';
echo '</tr></table>';
echo '<table cellpadding="0" cellspacing="0" width="193" class="title_ebtoday"><tr>';
echo '<td align="left">';

////
echo'<br></td></tr></table>';

*/

 //Centra flangs */
echo '<td  width="665" valign="top" align="center">';
echo '<table cellpadding="0" cellspacing="0" width="647" class="mainc">';
echo '<tr>';
echo '<td class="b1" width="5"></td>';
echo '<td class="b2" width="637"></td>';
echo '<td class="b3" width="5"></td>';
echo '</tr>';
echo '<tr>';
echo '<td class="b4" width="5"></td>';
echo '<td class="b6" width="637"><br/>';
echo '<div class="a" id="up"></div>';                     

?>