<?php
// Upload- Bildgroesse schreiben
if(isset($_POST["groesse1"]))
{
$groesse1 = $_POST["groesse1"];
$datenbank = "optionen/groesse.txt";
$datei = fopen($datenbank,"w+");
rewind($datei);
fwrite($datei, $groesse1);
fclose($datei);
}
else
{
$text_txt=fopen("optionen/groesse.txt","r");
$groesse1=fread($text_txt,10000);
fclose($text_txt);
}
// Upload- Ordner schreiben
if(isset($_POST["ordner1"]))
{
$ordner1 = $_POST["ordner1"];
$datenbank = "optionen/ordner.txt";
$datei = fopen($datenbank,"w+");
rewind($datei);
fwrite($datei, $ordner1);
fclose($datei);
}
else
{
$text_txt=fopen("optionen/ordner.txt","r");
$ordner1=fread($text_txt,10000);
fclose($text_txt);
}
// Upload- CHMOD
if(isset($_POST["chmod1"]))
{
$chmod1 = $_POST["chmod1"];
$datenbank = "optionen/chmod.txt";
$datei = fopen($datenbank,"w+");
rewind($datei);
fwrite($datei, $chmod1);
fclose($datei);
}
else
{
$text_txt=fopen("optionen/chmod.txt","r");
$chmod1=fread($text_txt,10000);
fclose($text_txt);
}
?>
<HTML><head><title>:: layout & design and code :: @ Martin-Schulz1.de</title>
<link rel="stylesheet" type="text/css" href="format.css">
<div style="width: 525px;">
</head><body>
<h2>Bilder- Manager :: Einstellungen</h2>
<form action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
<table border="0" cellpadding="0" cellspacing="0" width="525">
<tr>
<td>
Upload- Bildergrösse:
<input name="groesse1" type="text" size="40" class="formular" value="<?php echo $groesse1 ?>">
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
Upload- Bilderordner:
<input name="ordner1" type="text" size="40" class="formular" value="<?php echo $ordner1 ?>">
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
Upload- CHMOD:
<input name="chmod1" type="text" size="40" class="formular" value="<?php echo $chmod1 ?>">
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<br>
<hr color="#357507" size="1">
<input type="Submit" name="submit" class="button" value="Speichern"> <input type="button" value=" Startseite " class="button" onclick="document.location.href='index.html'"> <input type="button" value=" Hilfe " class="button" onclick="document.location.href='hilfe/hilfe_einstellen.html'"></td>
</tr>
<tr>
<td width="515">
</td>
</tr>
</table>
</form>
</body>
</html>