Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(basename($_SERVER["SCRIPT_FILENAME"]) == basename(__FILE__)) { header ("HTTP/1.1 404 Not Found"); exit; }
- echo '<span style="font-size: 13px;"><b>» Informationen bearbeiten</b></span><br><hr><br>';
- if(isset($_REQUEST['absenden']))
- {
- $information = $_REQUEST['information'];
- if($information=="")
- {
- echo '<div style="text-align: right; color: #B40404; float: right; margin-top: -45px;">✖ Bitte überprüfe, ob alle Felder ausgefüllt sind.</div>';
- ?>
- <form action="<?php $PHP_SELF; ?>" style="margin-right: 20px;" method="post">
- <blockquote>
- <div style="float: left;">
- » Information Frontend<br><textarea name="information" wrap="virtual" style="padding: 3px; margin-bottom: 5px; border:1px solid #CCCCCC; background-color:#FAFAFA; width: 300px; height: 50px;"><?php echo $information; ?></textarea>
- </div>
- <br><br>
- </div>
- </blockquote><br><br><br><br><br><br><br><br><hr>
- <input type="text" value="<?php echo $username; ?>" style="padding: 3px; text-align: center; margin-bottom: 5px; border:1px solid #CCCCCC; background-color:#FAFAFA; width: 150px;" disabled>
- <input type="text" value="<?php echo date("d.m.Y",$timestamp); ?>" style="padding: 3px; text-align: center; margin-bottom: 5px; border:1px solid #CCCCCC; background-color:#FAFAFA; width: 150px;" disabled>
- <input type="submit" name="absenden" value="Information bearbeiten" style="float: right; margin-right: -7px; padding: 3px; margin-bottom: 5px; border:1px solid #CCCCCC; background-color: #F2F2F2; width: 200px;">
- </form>
- <?php
- if(isset($_POST['submit']))
- {
- $pfad = $path_db_info;
- $datei = fopen($pfad, "w");
- fwrite($datei, $information);
- fclose($datei);
- }
- echo '
- <blockquote style="margin-top: -5px; margin-left: 20px; margin-right: 35px;">
- <div style="margin-top: 2px; background-color: #317994; width: 100%; height: auto; padding: 5px;">
- <div style="float: left; width: 190px;">'.$information.'</div>
- </a>
- </div>
- </blockquote>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement