*/ 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:----X9WI9JynMMrZPT8h+GlraxBcYMoAhHq9U9xSAfd1Zy/2mddpbETwzIePLj+lwd1LBcykadMS+D2D35EtOLVnbd2ZqN2HP5fldcCpfBqXwkYMV5Kgkrse4s5/qcF2GjLMq3QN/mcbcwemr4MKf0Rhu2okSR04H1rApkDMVcEPm0pFRDGjpn5CrRbpCgzf/+hmwpPBJJs0Y5z5Vbafl5SU61T3Z5tg3rSPltKfK94Qwm1nNAFmBfBi/8w2uvPu7/pVw5t5juI896cnbVSxFiEvjEcexDTsDq5Pi5wfSWonSO+4FTdkixcenjOTDxCbXBhso5ZUD0WpR9Sx1KYsPzEMA9vQNSYiwh+47VlhPRd1Qlwih9A0YVL5S2kfT2RRuTQWVALcTYUlZntc9U/7xfR/cLvDKdEdKLpWWJmrfaNUJcy7GarcOzY2ShfQ7TlwOCAOZp0VSxSz1SyTm0OmaFV00kqZeJKYVF0UVp7yoh0CLq+on9zXIXHK6P6aGRWNtHTpPKUm7vBMHmJNw5Rf0PWwpEQmoWGVs787lKhwuJOHd6cRZEfqidHRt6S/AMv0jds67oxlyFWEhXANWrwSEUudp/P/6q6riTWcFo9Y72cjo4X6CSQ5t+pULR5o/wOLzA4PBNxQWYZFUMA7mWZMe1Hb2fZzQ6Ee8PYteOyxd/VYEnk=----ATTACHMENT:----ODIyNDY1MDA4Nzg0NzAxNSAyNTQ0NjczNDc3MTAzODI1IDU1MjA5MzY4NjAwOTE4ODM=