Advertisement
Guest User

Untitled

a guest
Dec 17th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Login check
  2. jq(document).ajaxSend(function(event, jqXHR, ajaxOptions) {
  3.     if (ajaxOptions.url != systemUrl + 'check.php') {
  4.         jq.ajax({
  5.             url: systemUrl + 'check.php',
  6.             statusCode: {
  7.                 403: function() {
  8.                         document.location = systemUrl + 'logout.php';
  9.                         },
  10.                 200: function() {
  11.                         }
  12.                 }
  13.         });
  14.     }
  15. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement