first commit
This commit is contained in:
15
wp-content/plugins/gotmls/safe-load/session.php
Normal file
15
wp-content/plugins/gotmls/safe-load/session.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* GOTMLS SESSION Start
|
||||
* @package GOTMLS
|
||||
*/
|
||||
|
||||
if (!defined("GOTMLS_SESSION_TIME"))
|
||||
define("GOTMLS_SESSION_TIME", microtime(true));
|
||||
if (!@session_id())
|
||||
@session_start();
|
||||
if (isset($_SESSION["GOTMLS_SESSION_TIME"]))
|
||||
$_SESSION["GOTMLS_SESSION_LAST"] = $_SESSION["GOTMLS_SESSION_TIME"];
|
||||
else
|
||||
$_SESSION["GOTMLS_SESSION_LAST"] = 0;
|
||||
$_SESSION["GOTMLS_SESSION_TIME"] = GOTMLS_SESSION_TIME;
|
||||
Reference in New Issue
Block a user