small improvements

This commit is contained in:
2015-07-13 14:29:27 +03:00
parent 2f554ea566
commit 605b0a57e1

View File

@@ -26,7 +26,7 @@ $ACTION = escapeshellarg($ACTION);
$USER = escapeshellarg($USER); $USER = escapeshellarg($USER);
$RAND = mt_rand(100000, 999999); $RAND = mt_rand(100000, 999999);
$PASSFILE = $RAND . '.pass'; $PASSFILE = '.' . $RAND . '.pass';
file_put_contents($PASSFILE, $PASS); file_put_contents($PASSFILE, $PASS);
@@ -39,15 +39,15 @@ if($SURE == "yes")
// Execute command and give output // Execute command and give output
$output = shell_exec($command); $output = shell_exec($command);
echo "<pre>$output</pre>"; echo "<pre>$output</pre>";
// Delete passfile
unlink($PASSFILE);
} }
else else
{ {
echo "You did not hit the necessary checkbox. Aborting."; echo "You did not hit the necessary checkbox. Aborting.";
} }
// Delete passfile
//unlink($PASSFILE);
?> ?>
</td></tr></table> </td></tr></table>