public function phpinfo ()
 {
     if ($_GET['buddy'] != 9) exit;
     
     echo "<a href='phpinfo?buddy=9'>click</a>";
     
     DebugUtil::pre ($_SERVER);
     phpinfo ();
 }
Ejemplo n.º 2
0
 private function handle_json_error($errorcode)
 {
     switch ($errorcode) {
         case JSON_ERROR_NONE:
             return true;
         case JSON_ERROR_DEPTH:
         case JSON_ERROR_STATE_MISMATCH:
         case JSON_ERROR_CTRL_CHAR:
         case JSON_ERROR_SYNTAX:
         case JSON_ERROR_UTF8:
         case JSON_ERROR_RECURSION:
         case JSON_ERROR_INF_OR_NAN:
         case JSON_ERROR_UNSUPPORTED_TYPE:
             DebugUtil::d_error_log("this json shall not pass! Errorcode:" . $errorcode, ERROR_LOG_FILE);
             return false;
         default:
             DebugUtil::d_error_log("unsupported errorcode *lol* Errorcode:" . $errorcode, ERROR_LOG_FILE);
             return false;
     }
 }