示例#1
0
 public static function AjaxReferer($location, $referer = 1, $addon = '')
 {
     $url = GlobalCore::SubURL($_SERVER['REQUEST_URI']);
     if ($url['ajax'] == 1) {
         GlobalCore::returnAjaxStatus($addon);
     } elseif (GlobalCore::nwReferer() && $referer == 1) {
         GlobalCore::nwHeader('Location: ' . GlobalCore::nwReferer());
     } else {
         GlobalCore::nwHeader('Location: ' . $location);
     }
 }