13c13 < sleep(3); //(5); // dirname(__FILE__) . --- > sleep(5); // dirname(__FILE__) . 15c15 < $reopch=exec("cat " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'reopen.txt' . " | grep 'fcgi' | grep '??' | head -1 | cut -d'M' -f 1 | rev | cut -d' ' -f 1 > " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'reopen.mm'); --- > $reopch=exec("cat " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'reopen.txt' . " | grep '/mysqld ' | head -1 | cut -d':' -f 2 > " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'reopen.mm'); 25c25 < $opch=exec("cat " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'open.txt' . " | grep 'fcgi' | grep '??' | head -1 | cut -d'M' -f 1 | rev | cut -d' ' -f 1 > " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'open.mm'); --- > $opch=exec("cat " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'open.txt' . " | grep '/mysqld ' | head -1 | cut -d':' -f 2 > " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'open.mm'); 28c28 < $reopch=exec("cat " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'reopen.txt' . " | grep 'fcgi' | grep '??' | head -1 | cut -d'M' -f 1 | rev | cut -d' ' -f 1 > " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'reopen.mm'); --- > $reopch=exec("cat " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'reopen.txt' . " | grep '/mysqld ' | head -1 | cut -d':' -f 2 > " . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'reopen.mm'); 57c57 < $reopch=exec("ps -ef | grep 'MAMP' | grep 'fcgi' | grep '??' | head -1 | cut -d'M' -f 1 | rev | cut -d' ' -f 1 "); --- > $reopch=exec("ps -ef | grep 'MAMP' | grep '/mysqld ' | head -1 | cut -d':' -f 2"); 87c87 < $reopch=exec("ps -ef | grep 'MAMP' | grep 'fcgi' | grep '??' | head -1 | cut -d'M' -f 1 | rev | cut -d' ' -f 1 "); --- > $reopch=exec("ps -ef | grep 'MAMP' | grep '/mysqld ' | head -1 | cut -d':' -f 2"); 122c122 < $reopch=exec("cat " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'reopen.txt' . " | grep 'fcgi' | grep '??' | head -1 | cut -d'M' -f 1 | rev | cut -d' ' -f 1 > " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'reopen.mm'); --- > $reopch=exec("cat " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'reopen.txt' . " | grep '/mysqld ' | head -1 | cut -d':' -f 2 > " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'reopen.mm'); 133c133 < $opch=exec("cat " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'open.txt' . " | grep 'fcgi' | grep '??' | head -1 | cut -d'M' -f 1 | rev | cut -d' ' -f 1 > " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'open.mm'); --- > $opch=exec("cat " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'open.txt' . " | grep '/mysqld ' | head -1 | cut -d':' -f 2 > " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'open.mm'); 136c136 < $reopch=exec("cat " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'reopen.txt' . " | grep 'fcgi' | grep '??' | head -1 | cut -d'M' -f 1 | rev | cut -d' ' -f 1 > " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'reopen.mm'); --- > $reopch=exec("cat " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'reopen.txt' . " | grep '/mysqld ' | head -1 | cut -d':' -f 2 > " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'reopen.mm'); 147d146 < // if (("$opch" != "$reopch" && "$opch" != " " && "$opch" != "") || (strpos($reopcont, '/httpd') !== false && "$opch" != " " && "$opch" != "" && strpos($opcont, '/httpd') === false)) { 166c165 < $reopch=exec("ps -ef | grep 'MAMP' | grep 'fcgi' | grep '??' | head -1 | cut -d'M' -f 1 | rev | cut -d' ' -f 1 "); --- > $reopch=exec("ps -ef | grep 'MAMP' | grep '/mysqld ' | head -1 | cut -d':' -f 2"); 180,193c179 < //passthru("osascript -e 'tell application \"Terminal\" to do script \"echo '" . $reopch . "' > " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . "xxcall_izx.cvx ; open http://localhost:8888/index.php ; exit\"'"); < //if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'xxcol.xxx')) { < // unlink($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'xxcol.xxx'); < //} < //if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'xxcol.zzz')) { < // unlink($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'xxcol.zzz'); < //} < //if ("$opch" != "$reopch") { < // file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'xxcol.xxx', '' . $opch . '$' . "\n" . $reopch . '$'); < //} < //if ((strpos($reopcont, '/httpd') !== false && strpos($opcont, '/httpd') === false)) { < // file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'xxcol.zzz', 'yes /httpd in ' . $reopcont . '' . "\n ... \no /httpd in " . $opcont . ''); < //} < passthru("osascript -e 'tell application \"Terminal\" to do script \" open http://localhost:8888/index.php ; exit\"'"); --- > passthru("osascript -e 'tell application \"Terminal\" to do script \"open http://localhost:8888/index.php ; exit\"'"); 205c191 < $reopch=exec("ps -ef | grep 'MAMP' | grep 'fcgi' | grep '??' | head -1 | cut -d'M' -f 1 | rev | cut -d' ' -f 1 "); --- > $reopch=exec("ps -ef | grep 'MAMP' | grep '/mysqld ' | head -1 | cut -d':' -f 2"); 210c196 < //file_put_contents('before.all', "It's moi! Called from " . $called_from); --- > file_put_contents('before.all', "It's moi! Called from " . $called_from);