Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3136 from emanuele45/verifications_again
Verifications again
- Loading branch information
Showing
19 changed files
with
1,411 additions
and
1,137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
/** | ||
* | ||
* | ||
* @name ElkArte Forum | ||
* @copyright ElkArte Forum contributors | ||
* @license BSD http://opensource.org/licenses/BSD-3-Clause | ||
* | ||
* @version 2.0 dev | ||
* | ||
*/ | ||
|
||
namespace ElkArte\sources\subs; | ||
|
||
use \ElkArte\ValuesContainer; | ||
|
||
/** | ||
* | ||
*/ | ||
class SessionIndex extends ValuesContainer | ||
{ | ||
protected $_idx = ''; | ||
|
||
/** | ||
* Constructor | ||
* | ||
* @param string $idx The index of to be used in $_SESSION | ||
* @param mixed[]|null $data Any array of data used to initialize the object (optional) | ||
*/ | ||
public function __construct($idx, $data = null) | ||
{ | ||
$this->_idx = $idx; | ||
|
||
if (!isset($_SESSION[$this->_idx])) | ||
{ | ||
$_SESSION[$this->_idx] = $data === null ? array() : (array) $data; | ||
} | ||
|
||
$this->data = &$_SESSION[$this->_idx]; | ||
} | ||
} |
Oops, something went wrong.