Skip to content
Snippets Groups Projects
  • Joel Kuder's avatar
    -> Remove short tags (<?= and <? ) · 02e30b65
    Joel Kuder authored
    -> Remove copyrights LKTechnik
    -> Remove lkt_ in filenames and path and mysql
    -> extras.lib.php no $text variable
    -> add .ressource ordner for future sql migrations and install scripts and alternate non WEB files.
    -> remove ebesucher.php because ebesucher dont have an API
    -> Change headerbanner ads to https and new URL
    -> add config.inc.php.example as example for config.inc.php
    -> remove personal variables from functions.php -> Git conflicts
    -> remove adscan -> in future no external services per default.
    02e30b65
faq.php 798 B
<?php
// Variabeln
$filename = '../lib/texte/faq.txt';
if (!isset($_POST['updaten'])) $_POST['updaten'] = '';
if (!isset($_POST['text'])) $_POST['text'] = '';
// Datei schreiben
if ($_POST['updaten'] == 'Updaten !') {
    $_POST['text'] = str_replace('\\', '', $_POST['text']);
    $fp = fopen ($filename, "w");
    fwrite ($fp, $_POST['text']);
    fclose ($fp);
}
// Datei auslesen
$fp = fopen ($filename, "r");
$inhalt = @fread ($fp, filesize ($filename));
fclose ($fp);
$inhalt = str_replace('\\', '', $inhalt);

head("FAQ's bearbeiten (html erlaubt!)");?>
<div align="center">
<br />
<form action="" method="post">
<textarea name="text" style="width:90%; height:500px;"><?php echo $inhalt;?></textarea><br>
<input type="Submit" name="updaten" value="Updaten !">
</form>
</div>
<?php foot();?>