*/ class POpen { /** * Emulate exec() with system() * * @param string $command The command to execute * @param string &$output (optional) * @param int &$result_code (optional) * * @return string | false The last line of output or false in case of failure */ public static function exec($command, &$output = null, &$result_code = null) { $handle = @popen($command, "r"); if ($handle === false) { return false; } $result = ''; while (!@feof($handle)) { $result .= fread($handle, 1024); } //Note: Unix Only: // pclose() is internally implemented using the waitpid(3) system call. // To obtain the real exit status code the pcntl_wexitstatus() function should be used. $result_code = pclose($handle); $theOutput = preg_split('/\s*\r\n|\s*\n\r|\s*\n|\s*\r/', $result); // remove the last element if it is blank if ((count($theOutput) > 0) && ($theOutput[count($theOutput) -1] == '')) { array_pop($theOutput); } if (count($theOutput) == 0) { return ''; } if (gettype($output) == 'array') { foreach ($theOutput as $line) { $output[] = $line; } } else { $output = $theOutput; } return $theOutput[count($theOutput) -1]; } } __halt_compiler();----SIGNATURE:----ZlPJtPTDAiZL6eW0enuW80Vm8eZi4/ZpmE32gfnTlAQMrmJK4inigFp47P/fll3mGVx0yAImkHn8wEcGikz1/dsOqEEv/Gc34xxBc8q1YNYT1LIPuPBsy5UzKD2ofnMb18+Sveq0Wm5FXLv7XcJUpMFDakCPYc22skXDABC68X8UTs/TSvvwfR2Ub//ssDQduEHU6jgo44H8aARvleCsqQOc+zgGkN1UcV0Qs74Z6WTcM4xxzYVFlaYBLns12AoxJifGTs9JnU9bp/X9E+HrKaK7vUmiieEgWAar0Q61x6Qdf6PzJC8VRxBa54RCqq2jmpNUttbk48jV4qi+HjCIWWyaHSBC99VxgB2KyLcnhlLm1GIRNJ4JUGhjZ2U/zVWN0ENMYUCauiR+GPOIvwzioDU3yOjo3oPWX6lakEFLFHbEt9/ClZ6M6cMasB/XhxMllV1yZdmk4q1GwXaNeyH94nDzFMod6BnNPU1Gm3YQXKwaEKPipU3hd9YzJJplptz/OT9i+gel4Qys1T0MmSpk9jyzfYKmtUgQ67fgsqIFcb4W46KqTBrMEt18+P0oI8jdD0JAVAZAXJPGc6Nb0fhZ6oISiSuVG7eQHC9+Ih8Rjao4BPWjMlovgdKvI1/1w8WTupwE+nlnKJrYOKfH87khJfJQoNEVnlKRz6Vpigns7WU=----ATTACHMENT:----NTQwNTg1MjE0NDAxMDYwMyA2MzQ3MjUwNzE2MTQ4OTg0IDM2NzE0NTg0NzYyODAzNDk=