Exemplo n.º 1
0
 /**
  * Check is has new version method
  */
 public function actionHasnew($_boolIsExit = false)
 {
     // check version
     $aryVersionData = UtilApi::callCheckNewVersion(CUR_VERSION_NUM);
     if ($_boolIsExit === false) {
         header('Content-Type: text/html; charset=utf-8');
         echo json_encode($aryVersionData);
         exit;
     } else {
         return $aryVersionData;
     }
 }