Example #1
0
 private static function buildMessage($file, $line, $message)
 {
     return ' version:' . Config::get('system_version') . ' file:' . basename($file) . ' line:' . $line . ' user:' . Session::getSiteData('user_id') . ' message:' . $message;
 }
Example #2
0
 public static function exitWithSuccess()
 {
     header("Content-type:application/json; charset=utf-8");
     $msg04 = "The authentication was successful. ";
     // '認証に成功しました
     echo json_encode(array('success' => true, 'msg' => Api::htmlEncode($msg04), 'role_aprv' => Session::getSiteData('role_aprv'), 'role_upld' => Session::getSiteData('role_upld'), 'user_id' => Api::htmlEncode(Session::getSiteData('user_id')), 'grp_name' => Api::htmlEncode(Session::getSiteData('grp_name'))));
     exit;
 }