Location: PHPKode > projects > CS-Server-Interface > pages/server_config.php
<html>
<head>
<link rel="stylesheet" href="../style.css" type="text/css">    
</head>
<body bgcolor="#434042">
<center>
<p>Server Einstellungen hier anpassen:
<p><hr><p>
<?PHP
include ('../include/config.php');
echo 'Du bearbeitest gerade die Datei: '. $_REQUEST["file"] .'';
echo '<p>';
$file_name = $basedir."cfg\\".$_REQUEST["file"];

$new_content = $_POST['new_content'];
if(isset($new_content) and ($new_content != ''))
 {
  $handle = fopen($file_name, 'w'); 
  fwrite($handle, stripslashes($new_content));
  fclose($handle);
  echo 'CFG geschrieben!';
 }
else
 {
  $file_content = file_get_contents($file_name);
  
  echo '<form method="post" action='. $_SERVER['PHP_SELF'] .'>';
  echo '<textarea name="new_content" cols="100" rows="30">'. $file_content .'</textarea>';
  echo '<input type="hidden" value="' . $_REQUEST["file"] . '" name="file"><br>';
  echo '<input type="submit" value="Senden" />';
  echo '</form>';
 } 
?>

</body>
</html>
Return current item: CS-Server-Interface