From 6df5343804ceadff5c812648b45e7772d47cdc85 Mon Sep 17 00:00:00 2001 From: lhy6305 <2734565242@qq.com> Date: Thu, 26 Sep 2024 19:56:25 +0800 Subject: [PATCH] ~~ssh~~ https auto update --- incl_external_flag.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/incl_external_flag.php b/incl_external_flag.php index 07237aa..f076d19 100644 --- a/incl_external_flag.php +++ b/incl_external_flag.php @@ -47,12 +47,23 @@ if(!array_key_exists($tid, $tid2proj_l)) { $proj=$tid2proj_l[$tid]; +require(__DIR__."/phplib/libvar_gsec.php"); + +if(!array_key_exists($game, $gsecret_l)) { + gen_error_400("game '".$game."' is not found in config file."); + exit; +} + +$ginfo=$gsecret_l[$game]; +unset($gsecret_l); + /* $GLOBALS["game"]=$game; $GLOBALS["action"]=$action; $GLOBALS["cid"]=$cid; $GLOBALS["tid"]=$tid; $GLOBALS["proj"]=$proj; + $GLOBALS["ginfo"]=$ginfo; */ $pf=realpath(__DIR__."/".$proj["path"]."/handle_external_flag.php");