rendered paste body<?php// Text Editorif(empty($_GET['source'])){ $source = 'users'.$_GET['source']; $name = basename($source); $path = str_replace("$name","",$source); $file1 = fopen($source, r); $file = file_get_contents($file1);} else { $name = 'New File'; $path = '<span style="font-weight: bold; color: #F00;">UNSAVED</span>'; $file = '';}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html> <head> <link rel="stylesheet" type="text/css" href="sys-app.css" /> </head> <body><h1>Text Editor</h1>Path: <?php echo $path; ?><br />File: <?php echo $name; ?><br /><form method="post" action="process.php"> <textarea rows="15" cols="80"><?php echo $file; ?> </textarea><br /> <input type="submit" name="save" value="Submit" /></form></body></html>