예제 #1
0
 public static function CheckSuper()
 {
     if (!Authenticate::IsSuperUser()) {
         if (defined('TUBEX_AJAX')) {
             JSON::Error('Only superuser control panel accounts can access this function');
         } else {
             include_once 'cp-superuser-only.php';
         }
         exit;
     }
 }
예제 #2
0
파일: xhr.php 프로젝트: hackingman/TradeX
function _xFunctionMissing()
{
    JSON::Error('Function argument was missing from the request');
}