You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
3.0 KiB
PHP

<div id="HauptSeite">
<div id="Inhalt">
<div class="o" >
<div class="l" >
<div class="r" >
<div class="u" >
<div class="ro">
<div class="lo">
<div class="ru">
<div class="lu">
<?php
if (!is_dir($verz_support)){
mkdir($verz_support);
}
if ($_supportneu == 'j'){
if ($lfile = fopen($verz_support.'/'.strtotime("now").'.txt','w')){
fwrite($lfile,"Supportgrund:\n".$_supportgrund."\n\n");
fwrite($lfile,"Anfragetext.:\n".$_supporttext."\n\n");
fwrite($lfile,"Emailadresse:\n".$_supportantwort."\n\n");
fclose ($lfile);
PrintText($sprache_support_gespeichert);
}
else{
echo "<big><b>";
PrintText($sprache_support_ngespeichert);
echo "</b></big>";
}
}
else if ($sys_admin) {
if ($_supportanzeige == 'j'){
if ($_supportdelfile != ''){
$afile = $verz_support.'/'.$_supportdelfile;
if (!is_writeable($afile) || !unlink($sys_path.$afile)){
echo "<br>";
PrintFehler('Konnte File '.$sys_path.$afile.' nicht l&ouml;schen');
}
else{
echo "<br>";
EchofText("File ".$sys_path.$afile." wurde gel&ouml;scht");
}
}
if ($fudir = opendir($verz_support)){
$afile = '';
$bfile = '';
if ($_supportfile != ''){
$afile = $verz_support.'/'.$_supportfile;
$cfile = $_supportfile;
}
else{
while (false !== ($bfile = readdir($fudir))) {
if ($bfile == '.' or $bfile == '..');
else {
$afile = $verz_support.'/'.$bfile;
$cfile = $bfile;
break;
}
}
}
if ($afile != ''){
echo "<h2> Supportfile </h2>";
if ($lfile = fopen($afile, 'r')){
echo "<pre>".fread($lfile,filesize($afile))."</pre><br><br>";
fclose($lfile);
}
echo "<center>".$cfile."&nbsp;&nbsp;&nbsp;";
echo '<a href="'.HtmlHref($_self.'?ap='.$_ap.'&supportanfrage=j&supportanzeige=j&supportdelfile='.$cfile).'">'.
HtmlText('löschen').'</a></center>');
}
echo "<h2> Supporteinträge </h2><br>";
$nofound = true;
if ($bfile != ''){
$nofound = false;
echo '<a href="'.HtmlHref($_self.'?ap='.$_ap.'&supportanfrage=j&supportanzeige=j&supportfile='.$bfile).'">'.$bfile.
'</a>').'&nbsp;&nbsp;&nbsp;vom&nbsp;&nbsp;'.date('D, d.F.Y \u\m H.i.s',filemtime($verz_support."/".$bfile)).'<br>';
}
while (false !== ($bfile = readdir($fudir))) {
if ($bfile != '.' and $bfile != '..'){
$nofound = false;
echo HtmlHref('<a href="'.$_self.'?ap='.$_ap.'&supportanfrage=j&supportanzeige=j&supportfile='.$bfile.'">'.$bfile.
'</a>').'&nbsp;&nbsp;&nbsp;vom&nbsp;&nbsp;'.date('D, d.F.Y \u\m H.i.s',filemtime($verz_support."/".$bfile)).'<br>';
}
}
closedir($fudir);
if ($nofound){
echo HtmlText('Keine Supporteinträge vorhanden');
}
}
else{
echo "<h2> Keine Supporteinträge vorhanden</h2>";
}
}
else {
PrintFehler("Ungültiger Supportaufruf 1");
}
}
else {
PrintFehler("Ungültiger Supportaufruf 2");
}
?>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
&nbsp;<br>