Initial Upload

This commit is contained in:
Matt Batchelder
2025-12-02 10:32:59 -05:00
commit 05ce0da296
2240 changed files with 467811 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
<?php
/*
* Spring Signage Ltd - http://www.springsignage.com
* Copyright (C) 2015 Spring Signage Ltd
* (NullSession.php)
*/
namespace Xibo\Helper;
class NullSession
{
/**
* Set UserId
* @param $userId
*/
function setUser($userId)
{
$_SESSION['userid'] = $userId;
}
/**
* Updates the session ID with a new one
*/
public function regenerateSessionId()
{
}
/**
* Set Expired
* @param $isExpired
*/
function setIsExpired($isExpired)
{
}
/**
* Store a variable in the session
* @param string $key
* @param mixed $secondKey
* @param mixed|null $value
* @return mixed
*/
public static function set($key, $secondKey, $value = null)
{
if (func_num_args() == 2) {
return $secondKey;
} else {
return $value;
}
}
/**
* Get the Value from the position denoted by the 2 keys provided
* @param string $key
* @param string [Optional] $secondKey
* @return bool
*/
public static function get($key, $secondKey = NULL)
{
return false;
}
}