Fixed : Few stupid mistakes

This commit is contained in:
Arslan Hassan 2014-11-22 11:30:12 +00:00
parent 0c918f692b
commit d87b464ac5
2 changed files with 9 additions and 4 deletions

View file

@ -31,7 +31,7 @@ if(isset($_POST['experiment']))
switch($mode)
{
default:
echo json_encode(array("err"=>"DUDE!!Why The Hell You Are Playing With The Code :/"));
echo json_encode(array("err"=>"Well hellow :/"));
break;
case "getPreDetails":

View file

@ -497,9 +497,11 @@
$cmd = "PATH=\$PATH:/bin:/usr/bin:/usr/local/bin bash -c \"$cmd\"";
}
$data = shell_exec( $cmd );
if( $data === false )
echo "<p>FAILED: $cmd</p></div>";
echo '<p><pre>' . htmlentities( $data ) . '</pre></p></div>';
return $data;
// if( $data === false )
// echo "<p>FAILED: $cmd</p></div>";
// echo '<p><pre>' . htmlentities( $data ) . '</pre></p></div>';
}
/**
@ -3977,6 +3979,9 @@
function check_install($type)
{
if(DEVELOPMENT_MODE) return true;
global $while_installing,$Cbucket;
switch($type)
{