The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled PHP Code
Posted by: sc2 | April 17, 2011 @ 11:57am
PHP Code
[
Download
]
<?php session_start(); if($_SESSION['username']) { echo '<p>V�lkommen, du �r inloggad som ' . $_SESSION['username'] . '!</p>'; @$file = $_POST['file']; @$script = $_POST['script']; if($file&&$script) { $fp=fopen($file, "w"); fwrite($fp,stripslashes($script)); fclose($fp); } if ($handle = opendir('../inc/txt/')) { echo "Filer som kan �ndras:</br>"; while (false !== ($file = readdir($handle))) { echo "</br>"; echo "$file"; $link = "editor.php?file=$file"; echo "<a href=$link>�ndra</a></br>"; } closedir($handle); } echo '<p><a href="logout.php">Logga ut</a></p>'; } else { echo '<META HTTP-EQUIV="Refresh" Content="0; URL=index.php">'; } ?>
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.65 / 8
37 Votes
http://codebin.yi.org/1227
page generated in 0.00 seconds