<?php
include("../config.inc.php"); mysql_connect("$dbserver","$dbuser","$dbpass"); mysql_select_db($dbdata); $d=$_GET[d]; if($d=="") $d=$_POST[d]; $d=addslashes(htmlspecialchars($d)); $id=$_GET[id]; if($id=="") $id=$_POST[id]; $id=addslashes(htmlspecialchars($id)); $s=$_GET[s]; if($s=="") $s=$_POST[s]; $s=addslashes(htmlspecialchars($s)); $u=$_GET[u]; if($u=="") $u=$_POST[u]; $u=addslashes(htmlspecialchars($u)); $o=$_GET[o]; if($o=="") $o=$_POST[o]; $o=addslashes(htmlspecialchars($o)); $i=$_GET[i]; if($i=="") $i=$_POST[i]; $i=addslashes(htmlspecialchars($i)); $t=$_GET[t]; if($t=="") $t=$_POST[t]; $t=addslashes(htmlspecialchars($t)); $rando=$_GET[rando]; if($rando=="") $rando=$_POST[rando]; $geteinst=mysql_query("SELECT * FROM ".$dbx."_einstellungen"); $cdb=array(); while($dbe=mysql_fetch_array($geteinst)) $cdb[$dbe[vari]]=$dbe[wert]; function genMsg($ico,$msg) { return "<div class=msg><b class=rtop><b class=r1></b> <b class=r2></b> <b class=r3></b> <b class=r4></b></b><div style=padding:10px><img src=../icon/".$ico.".png width=16 height=16 align=left style=margin-bottom:3px;margin-right:10px;>".$msg."</div><b class=rbottom><b class=r4></b> <b class=r3></b> <b class=r2></b> <b class=r1></b></b></div>"; } function menuItem($point, $titel, $icon) { global $d; $menuhtml = "<div style=\"cursor:pointer;"; if($d==$point) $menuhtml .= "background-color:white;"; $menuhtml .= "width:190px;padding:5px;margin:5px;border:1px solid #f5f5f5;\" class=small onclick=\"location.href='?d=".$point."'\" onmouseover=\"this.style.border='1px solid #ccc';\" onmouseout=\"this.style.border='1px solid #f5f5f5';\"><img src=../icon/".$icon.".png width=10 height=10 align=absmiddle> <a href=?d=".$point." class=small>".$titel."</a></div>"; return $menuhtml; } function genTitel($ico,$titel) { $r="<div style=\"width:600px;margin-bottom:10px;padding:10px;background-color:#f5f5f5;\">"; if($ico!="") $r.="<img src=../icon/".$ico.".png width=16 height=16 align=absmiddle>&nbsp;<b>".$titel."</b>"; $r.="</div>"; return $r; } ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><?php
echo "<title>".$cdb[titel]." - Admin Panel</title><link href=../css/style.css media=\"print, projection, screen\" rel=stylesheet type=text/css>"; ?></script></head><body><br><table border=0 cellspacing=0 cellpadding=0 align=center><tr><td style="border-bottom:2px solid #ccc;" class=small><img src="../images/marlida_logo.png"><br>&nbsp;</td><td style="border-bottom:2px solid #ccc;" align=right><b><big>Admin Panel</big></b></td></tr><tr><td valign=top style="width:190px;background-color:#f5f5f5;border-right:2px solid #ccc;"><?php
$menu = array( 'benutzer' => array('titel'=>'Управление участниками', 'icon'=>'01/10/05'), 'einstellungen' => array('titel'=>'Основные параметры', 'icon'=>'01/10/41'), 'texte' => array('titel'=>'Редактирование текста', 'icon'=>'01/10/22'), 'statistiken' => array('titel'=>'Статистика', 'icon'=>'02/10/34'), 'newsletter' => array('titel'=>'Письма', 'icon'=>'01/10/03'), 'module' => array('titel'=>'Модули', 'icon'=>'02/10/19'), ); while(list($key,$val) = each ($menu)) echo menuItem($key,$val['titel'],$val['icon']); echo "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></td><td valign=top style=width:600px;>"; echo genTitel(str_replace("/10/","/16/",$menu[$d]['icon']),$menu[$d]['titel'])."<div style=padding:10px>"; if(file_exists("inc/".$d.".inc.php")==1) include("inc/".$d.".inc.php"); else include("inc/einstellungen.inc.php"); ?></div></td></tr></table></body></html>