mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
cache announce userInfo
This commit is contained in:
@@ -6,5 +6,6 @@ $rootpath= dirname(__DIR__) . '/';
|
||||
require_once $rootpath . 'include/constants.php';
|
||||
require_once $rootpath . 'include/globalfunctions.php';
|
||||
require_once $rootpath . 'include/functions_announce.php';
|
||||
require_once $rootpath . 'vendor/autoload.php';
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/constants.php';
|
||||
require $rootpath . 'vendor/autoload.php';
|
||||
require_once $rootpath . 'vendor/autoload.php';
|
||||
if (!file_exists($rootpath . '.env')) {
|
||||
$installScriptRelativePath = 'install/install.php';
|
||||
$installScriptFile = $rootpath . "public/$installScriptRelativePath";
|
||||
|
||||
@@ -2812,6 +2812,9 @@ function base64 ($string, $encode=true) {
|
||||
function loggedinorreturn($mainpage = false) {
|
||||
global $CURUSER,$BASEURL;
|
||||
if (!$CURUSER) {
|
||||
if (CURRENT_SCRIPT == 'ajax') {
|
||||
exit(fail('Not login!', $_POST));
|
||||
}
|
||||
if ($mainpage)
|
||||
header("Location: " . get_protocol_prefix() . "$BASEURL/login.php");
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user