ادامه مطلب
code simple
<?php /* |-------------------------------------------------------------------------- | ACCOUNTMANAGER - حسابداری ساده مستقل | File: simple_accounting.php | Code ID: ACM-SIMPLE-003 | PHP: 7.4.33 |-------------------------------------------------------------------------- | تمام دادهها فقط در جداول simple_* ذخیره میشوند. | اجرای فایل SQL با نام simple_accounting_schema.sql قبل از استفاده الزامی است. */ require_once __DIR__ . '/config.php'; require_once __DIR__ . '/functions.php'; require_login(); if (session_status() !== PHP_SESSION_ACTIVE) { session_start(); } $pdo = db(); $userId = (int) current_user_id(); $companyId = (int) ($_SESSION['acm_active_company_id'] ?? …


