projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fc2a1dd
)
MTrackWeb.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 8 Apr 2011 11:11:39 +0000
(19:11 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 8 Apr 2011 11:11:39 +0000
(19:11 +0800)
MTrackWeb.php
patch
|
blob
|
history
diff --git
a/MTrackWeb.php
b/MTrackWeb.php
index
40956ef
..
2e0f492
100644
(file)
--- a/
MTrackWeb.php
+++ b/
MTrackWeb.php
@@
-359,10
+359,8
@@
class MTrackWeb extends HTML_FlexyFramework_Page
// log all errors!!!
//$this->addEvent("ERROR", false, $str);
// log all errors!!!
//$this->addEvent("ERROR", false, $str);
- /*
- if (!empty($_REQUEST['returnHTML']) ||
- (isset($_SERVER['CONTENT_TYPE']) && preg_match('#multipart/form-data#i', $_SERVER['CONTENT_TYPE']))
- ) {
+
+ if ((isset($_SERVER['CONTENT_TYPE']) && preg_match('#multipart/form-data#i', $_SERVER['CONTENT_TYPE']))) {
header('Content-type: text/html');
echo "<HTML><HEAD></HEAD><BODY>";
echo $json->encodeUnsafe(array(
header('Content-type: text/html');
echo "<HTML><HEAD></HEAD><BODY>";
echo $json->encodeUnsafe(array(
@@
-375,7
+373,7
@@
class MTrackWeb extends HTML_FlexyFramework_Page
echo "</BODY></HTML>";
exit;
}
echo "</BODY></HTML>";
exit;
}
- */
+
echo $json->encode(array(
'success'=> false,
'data'=> array(),
echo $json->encode(array(
'success'=> false,
'data'=> array(),