mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-08 10:16:51 +01:00
Ignore set last visit for AJAX pages - Fixes template change redirect
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
define('MYAAC_ADMIN', true);
|
const MYAAC_ADMIN = true;
|
||||||
|
const IGNORE_SET_LAST_VISIT = true;
|
||||||
|
|
||||||
require '../../common.php';
|
require '../../common.php';
|
||||||
require SYSTEM . 'functions.php';
|
require SYSTEM . 'functions.php';
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
use MyAAC\DataLoader;
|
use MyAAC\DataLoader;
|
||||||
|
|
||||||
const MYAAC_ADMIN = true;
|
const MYAAC_ADMIN = true;
|
||||||
|
const IGNORE_SET_LAST_VISIT = true;
|
||||||
|
|
||||||
require '../../common.php';
|
require '../../common.php';
|
||||||
require SYSTEM . 'functions.php';
|
require SYSTEM . 'functions.php';
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
use MyAAC\Settings;
|
use MyAAC\Settings;
|
||||||
|
|
||||||
const MYAAC_ADMIN = true;
|
const MYAAC_ADMIN = true;
|
||||||
|
const IGNORE_SET_LAST_VISIT = true;
|
||||||
|
|
||||||
require '../../common.php';
|
require '../../common.php';
|
||||||
require SYSTEM . 'functions.php';
|
require SYSTEM . 'functions.php';
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
define('MYAAC_ADMIN', true);
|
const MYAAC_ADMIN = true;
|
||||||
|
const IGNORE_SET_LAST_VISIT = true;
|
||||||
|
|
||||||
require '../../common.php';
|
require '../../common.php';
|
||||||
require SYSTEM . 'init.php';
|
require SYSTEM . 'init.php';
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
define('MYAAC_ADMIN', true);
|
const MYAAC_ADMIN = true;
|
||||||
|
const IGNORE_SET_LAST_VISIT = true;
|
||||||
|
|
||||||
require '../../common.php';
|
require '../../common.php';
|
||||||
require SYSTEM . 'functions.php';
|
require SYSTEM . 'functions.php';
|
||||||
|
|||||||
@@ -34,8 +34,10 @@ if($logged) {
|
|||||||
$twig->addGlobal('account_logged', $account_logged);
|
$twig->addGlobal('account_logged', $account_logged);
|
||||||
}
|
}
|
||||||
|
|
||||||
setSession('last_visit', time());
|
if (!defined('IGNORE_SET_LAST_VISIT') || !IGNORE_SET_LAST_VISIT) {
|
||||||
if(defined('PAGE')) {
|
setSession('last_visit', time());
|
||||||
setSession('last_page', PAGE);
|
if(defined('PAGE')) {
|
||||||
|
setSession('last_page', PAGE);
|
||||||
|
}
|
||||||
|
setSession('last_uri', $_SERVER['REQUEST_URI']);
|
||||||
}
|
}
|
||||||
setSession('last_uri', $_SERVER['REQUEST_URI']);
|
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* @link https://my-aac.org
|
* @link https://my-aac.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
const IGNORE_SET_LAST_VISIT = true;
|
||||||
|
|
||||||
// we need some functions
|
// we need some functions
|
||||||
require '../common.php';
|
require '../common.php';
|
||||||
require SYSTEM . 'functions.php';
|
require SYSTEM . 'functions.php';
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
const IGNORE_SET_LAST_VISIT = true;
|
||||||
|
|
||||||
require '../common.php';
|
require '../common.php';
|
||||||
require SYSTEM . 'init.php';
|
require SYSTEM . 'init.php';
|
||||||
require SYSTEM . 'functions.php';
|
require SYSTEM . 'functions.php';
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
use MyAAC\CreateCharacter;
|
use MyAAC\CreateCharacter;
|
||||||
use MyAAC\Models\Account;
|
use MyAAC\Models\Account;
|
||||||
|
|
||||||
|
const IGNORE_SET_LAST_VISIT = true;
|
||||||
|
|
||||||
// we need some functions
|
// we need some functions
|
||||||
require '../common.php';
|
require '../common.php';
|
||||||
require SYSTEM . 'functions.php';
|
require SYSTEM . 'functions.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user