Esempio n. 1
0
 function sanityCheck()
 {
     $_SESSION["hasAudio"] = $_REQUEST["hasAudio"] === "true";
     $reply = array();
     $reply['error'] = sanity_check($this->link);
     if ($reply['error']['code'] == 0) {
         $reply['init-params'] = make_init_params($this->link);
         $reply['runtime-info'] = make_runtime_info($this->link);
     }
     print json_encode($reply);
 }
Esempio n. 2
0
 function sanityCheck()
 {
     $_SESSION["hasAudio"] = $_REQUEST["hasAudio"] === "true";
     $_SESSION["hasSandbox"] = $_REQUEST["hasSandbox"] === "true";
     $_SESSION["hasMp3"] = $_REQUEST["hasMp3"] === "true";
     $_SESSION["clientTzOffset"] = $_REQUEST["clientTzOffset"];
     $reply = array();
     $reply['error'] = sanity_check();
     if ($reply['error']['code'] == 0) {
         $reply['init-params'] = make_init_params();
         $reply['runtime-info'] = make_runtime_info();
     }
     print json_encode($reply);
 }