Location: PHPKode > projects > NewsP > admin/index.php
<?php include("auth.php");
session_start();
$aktuellurl = "../";
$www= $_SERVER['HTTP_HOST'];
$platz= $_SERVER['PHP_SELF'];
$ar_platz = explode('/',$platz);
$ar_dc1=count($ar_platz)-1;
$ar_dc2 = $ar_dc1-1;
unset ($ar_platz[$ar_dc1],$ar_platz[$ar_dc2]);
$teil_link = implode('/',$ar_platz);
$logo="http://$www$teil_link/templates/php_newsboy_k.gif";
$language = urlencode($HTTP_POST_VARS["language"]); 
if (file_exists('step1.php') && empty($language)) {
include("step1.php");
}else{
$must_renew = $_SESSION['renew'];
$username = $_SESSION['username'];
$ur1 = $_SESSION['ur1'];
$ur2 = $_SESSION['ur2'];
$ur3 = $_SESSION['ur3'];
$ur4 = $_SESSION['ur4'];
$seite =htmlentities($_GET["p"]);
if ($must_renew == 'ja'){
$seite = 'userdata';
}
$call_eddi = $HTTP_POST_VARS["call_eddi"]; 
if ($seite == "")
{$seite = "intern";
$call_eddi = "ja";}
$trans_n = array("ä"=>"&auml;","ö" =>"&ouml;","ü" =>"&uuml;","Ä" =>"&Auml;","Ö" =>"&Ouml;","Ü" =>"&Uuml;","ß" =>"&szlig;");
if ($username == "Admin"){
$checks = array("Hisn45hzlenu");
}else{
$checks = array("<?","?>","<scri");
}
$speicher = "../settings/m_settings.txt";
$zaehlfile = fopen("$speicher","r"); 
$inhalt_zaehlfile = fgets($zaehlfile);  
fclose($zaehlfile); 
$domains = unserialize($inhalt_zaehlfile);

$sprache="$domains[language]";
$sprachfile = "../settings/$sprache.txt";
$zaehlfile = fopen("$sprachfile","r"); 
$inhalt_zaehlfile = fgets($zaehlfile);  
fclose($zaehlfile); 
$lg = unserialize($inhalt_zaehlfile);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html lang="de">
<head>
<title>NewsP</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
 <meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="gerd2.css">
<? if ($call_eddi =="ja"){
if($domains[editor] == "CKEditor"){
echo"<script type=\"text/javascript\" src=\"../ckeditor/ckeditor.js\"></script>";
}
if($domains[editor] == "OpenWYSIWYG"){
echo"<script type=\"text/javascript\" src=\"scripts/wysiwyg.js\"></script><script type=\"text/javascript\" src=\"scripts/wysiwyg-settings.js\"></script><script type=\"text/javascript\">WYSIWYG.attach('textarea1');</script>";
}
}
?>
</head>
<BODY>
<div id="Seite">
<? include("navi_aktuell.txt"); ?>
  <div id="Inhalt">
<TABLE width=100% BORDER=0 cellspacing="5" cellpadding="10">
<TR>
	<TD valign="top">
<? 
if($seite == 'coments'||$seite == 'userdata'||$seite == 'settings'||$seite == 'layout'||$seite == 'newsbox'||$seite == 'sprache'||$seite == 'eintragen'||$seite == 'intern'){
include("$seite.inc.php"); 
echo "<BR>&nbsp;<CENTER><I><FONT SIZE=-1>Newsscript by <A HREF=\"http://www.newsp.eu\" TARGET=\"_blank\">newsp.eu</A></FONT></I></CENTER><P>";
}else{
echo'nö';
}
?>
	 </TD>
<TD><p style="padding-top:600px"></TD>
</div>
</TR>
</TABLE>
  </div>
</div>
</body>
</html>
<?}?>
Return current item: NewsP