Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
// Hier ein paar Kommentare ...
$var1 = $_GET['var1'];
$var2 = $_POST['var2'];
$var3 = $_GET['var3'];
$var = "Diese werden nicht geändert";
$_GET['Feldname']
$_POST['Feldname']
$config_file_content = file($config_file);
for ($x = 0; $x < count($config_file_content); $x++) {
if (substr($config_file_content[$x],0,1) == "$" && !strstr($config_file_content[$x], "array")) {
$index = preg_replace('/^\$(.*)\[\'(.*)\'\](.*)$/i', '$2', $config_file_content[$x]);
$index = trim($index);
if ($index == "activated") {
$config_file_content[$x] = '$config[\'activated\'] = 1;' . "\n";
}
else {
foreach($_POST as $key => $value) {
if ($key == $index) {
$new = '$config[\''.$index.'\'] = "'.$_POST[$index].'";' . "\n";
$config_file_content[$x] = $new;
}
}
}
}
$new_content .= $config_file_content[$x];
}
unlink($config_file);
$fh = fopen($config_file, "a+");
$write = fwrite($fh, $new_content);
fclose($fh);
$handle = fopen("config.ini","a");
fwrite($handle,"var=\"ich_bin_variabel\"\n");
fclose($handle);
$var = parse_ini_file("config.ini",false);
var_dump($var);