Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Login check
- jq(document).ajaxSend(function(event, jqXHR, ajaxOptions) {
- if (ajaxOptions.url != systemUrl + 'check.php') {
- jq.ajax({
- url: systemUrl + 'check.php',
- statusCode: {
- 403: function() {
- document.location = systemUrl + 'logout.php';
- },
- 200: function() {
- }
- }
- });
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement