/** * LRC Inventory Management Portal * Application Configuration * * @author LRC (Private) Limited * @version 1.0 */ // Error Reporting error_reporting(E_ALL); ini_set('display_errors', 0); ini_set('log_errors', 1); // Timezone date_default_timezone_set('Asia/Karachi'); // Session Configuration ini_set('session.cookie_httponly', 1); ini_set('session.use_only_cookies', 1); ini_set('session.cookie_secure', 1); // Set to 1 for HTTPS ini_set('session.cookie_samesite', 'Strict'); // Database Configuration define('DB_HOST', 'localhost'); define('DB_NAME', 'lrcpkcom_lrc_inventory'); define('DB_USER', 'lrcpkcom_farhan11'); define('DB_PASS', 'Farhan2k17#'); define('DB_CHARSET', 'utf8mb4'); // Application Configuration define('APP_NAME', 'LRC Inventory Management Portal'); define('APP_SHORT_NAME', 'LRC Inventory'); define('COMPANY_NAME', 'LRC (Private) Limited'); define('APP_VERSION', '1.0.0'); define('APP_URL', 'https://it-inventory.lrcpk.com/'); // Path Configuration define('BASE_PATH', dirname(__DIR__) . '/'); define('UPLOAD_PATH', BASE_PATH . 'uploads/'); define('EXPORT_PATH', BASE_PATH . 'exports/'); define('INVENTORY_IMG_PATH', UPLOAD_PATH . 'inventory/'); define('PROFILE_IMG_PATH', UPLOAD_PATH . 'profiles/'); // URL paths define('ASSETS_URL', APP_URL . 'assets/'); define('CSS_URL', ASSETS_URL . 'css/'); define('JS_URL', ASSETS_URL . 'js/'); define('PLUGINS_URL', ASSETS_URL . 'plugins/'); define('UPLOAD_URL', APP_URL . 'uploads/'); // Security define('CSRF_TOKEN_NAME', 'csrf_token'); define('CSRF_TOKEN_EXPIRY', 3600); // 1 hour define('PASSWORD_MIN_LENGTH', 6); define('MAX_LOGIN_ATTEMPTS', 5); define('LOGIN_TIMEOUT', 900); // 15 minutes // Pagination define('ITEMS_PER_PAGE', 25); define('MAX_EXPORT_ROWS', 5000); // File Upload define('MAX_FILE_SIZE', 20971520); // 20MB define('ALLOWED_IMAGE_TYPES', ['jpg', 'jpeg', 'png', 'gif', 'webp']); define('ALLOWED_FILE_TYPES', ['jpg', 'jpeg', 'png', 'gif', 'pdf', 'xlsx', 'csv']); // Inventory Defaults define('LOW_STOCK_THRESHOLD', 5); define('DEFAULT_CURRENCY', 'PKR'); // Item Status Constants define('ITEM_STATUSES', serialize([ 'New', 'Used', 'Damaged', 'Repairable', 'Non Repairable', 'Scrap', 'Disposed', 'Lost' ])); // Start Session if (session_status() === PHP_SESSION_NONE) { session_start(); } // Load database require_once __DIR__ . '/database.php'; // Load core functions require_once BASE_PATH . 'includes/functions.php'; require_once BASE_PATH . 'includes/session.php'; require_once BASE_PATH . 'includes/csrf.php'; require_once BASE_PATH . 'includes/auth.php'; require_once BASE_PATH . 'includes/audit.php';
Fatal error: Uncaught Error: Call to undefined function initSession() in /home2/lrcpkcom/public_html/it-inventory.lrcpk.com/index.php:16 Stack trace: #0 {main} thrown in /home2/lrcpkcom/public_html/it-inventory.lrcpk.com/index.php on line 16