<?php
// ============================================================
// config/config.php – Konfigurasi Utama Aplikasi
// ============================================================

define('APP_NAME',    'SiPendas');
define('APP_FULL',    'Sistem Informasi Pendampingan Sekolah');
define('APP_INSTANSI','Dinas Pendidikan Kabupaten Malang');
define('APP_VERSION', '1.0.0');
define('APP_YEAR',    date('Y'));

// Base URL — sesuaikan dengan hosting
define('BASE_URL', 'https://dikmaps.my.id/laila');

// Path absolut
define('ROOT_PATH',   dirname(__DIR__));
define('UPLOAD_PATH', ROOT_PATH . '/uploads');

// Batas upload (bytes)
define('MAX_FILE_SIZE',  10 * 1024 * 1024);  // 10 MB
define('MAX_IMAGE_SIZE',  5 * 1024 * 1024);  //  5 MB

// Tipe file diizinkan
define('ALLOWED_IMAGE', ['image/jpeg','image/png','image/webp']);
define('ALLOWED_PDF',   ['application/pdf']);
define('ALLOWED_DOC',   ['application/pdf','application/msword',
                          'application/vnd.openxmlformats-officedocument.wordprocessingml.document']);

// Timezone
date_default_timezone_set('Asia/Jakarta');

// Session keamanan
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
ini_set('session.cookie_samesite', 'Lax');

session_start();
