|
@@ -19,7 +19,9 @@ function run_fcgi()
|
|
|
Base::mobile_init();
|
|
|
|
|
|
while(($ret = fcgi_accept()) >= 0)
|
|
|
- {
|
|
|
+ {
|
|
|
+ ob_start();
|
|
|
+
|
|
|
define('StartTime',microtime(true));
|
|
|
define('TIMESTAMP',time());
|
|
|
|
|
@@ -30,16 +32,21 @@ function run_fcgi()
|
|
|
if(file_exists($file))
|
|
|
{
|
|
|
if(pays_execute($file)) {
|
|
|
- fcgi_echo("Content-Type: application/xml; charset=UTF-8\r\n\r\n");
|
|
|
+ echo("Content-Type: application/xml; charset=UTF-8\r\n\r\n");
|
|
|
require $file;
|
|
|
} else {
|
|
|
- fcgi_echo("Content-Type: text/html; charset=UTF-8\r\n\r\n");
|
|
|
+ echo("Content-Type: text/html; charset=UTF-8\r\n\r\n");
|
|
|
Base::mobile_control();
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception $ex) {
|
|
|
joutput_error($ex->getCode(),$ex->getMessage().'@@@@@'.$ex->getTraceAsString());
|
|
|
}
|
|
|
+
|
|
|
+ $contents = ob_get_contents();
|
|
|
+ fcgi_echo($contents);
|
|
|
+ ob_end_clean();
|
|
|
+
|
|
|
fcgi_finish();
|
|
|
}
|
|
|
|