Browse code

fix mistypo in session name

Jimako authored on 2023/06/12 12:15:30
Showing 1 changed files
... ...
@@ -23,6 +23,7 @@
23 23
 // ----------------------------------------------------------------------
24 24
 
25 25
 if(!defined("_CHARSET")) exit( );
26
+
26 27
 // Get session variables from cookie data if not logged in.
27 28
 // To bridge to another program replace (or add to) this information with the bridge to your other script.  See examples in the includes/bridges/ folder.
28 29
 if (!empty($_COOKIE[$sitekey."_useruid"])) {
... ...
@@ -38,8 +39,8 @@ if (!empty($_COOKIE[$sitekey."_useruid"])) {
38 39
 		define("uLEVEL", $userdata['level']);
39 40
 		define("isADMIN", uLEVEL > 0 ? true : false);
40 41
 		define("isMEMBER", true);
41
-		if(EMPTY($_SESSION[$sitekey."_agecontsent"])) $ageconsent = $userdata['ageconsent'];
42
-		else $ageconsent = $_SESSION[$sitekey."_agecontsent"];
42
+		if(EMPTY($_SESSION[$sitekey."_ageconsent"])) $ageconsent = $userdata['ageconsent'];
43
+		else $ageconsent = $_SESSION[$sitekey."_ageconsent"];
43 44
 	}
44 45
 }
45 46
 if(!empty($_SESSION[$sitekey."_useruid"]) && !defined("USERUID")) {
... ...
@@ -55,8 +56,8 @@ if(!empty($_SESSION[$sitekey."_useruid"]) && !defined("USERUID")) {
55 56
 		define("uLEVEL", $userdata['level']);
56 57
 		define("isADMIN", uLEVEL > 0 ? true : false);
57 58
 		define("isMEMBER", true);
58
-		if(!isset($_SESSION[$sitekey."_agecontsent"])) $ageconsent = $userdata['ageconsent'];
59
-		else $ageconsent = $_SESSION[$sitekey."_agecontsent"];
59
+		if(!isset($_SESSION[$sitekey."_ageconsent"])) $ageconsent = $userdata['ageconsent'];
60
+		else $ageconsent = $_SESSION[$sitekey."_ageconsent"];
60 61
 	}
61 62
 }
62 63
 if(!defined("USERUID")) define("USERUID", 0);