update .gitignore

This commit is contained in:
2026-02-11 12:38:36 +07:00
parent 15103f63a1
commit 336ab7f128
4 changed files with 10 additions and 88 deletions
+8 -6
View File
@@ -1,7 +1,9 @@
# ignore cache content # ignore visual studio code
cache/*.js /.vs/
cache/*.css
# ignore app.php and mysql.php # ignore cache content
app.php **/cache/*
mysql.php !**/cache/v3
# ignore mysql.php
**/mysql.php
-80
View File
@@ -1,80 +0,0 @@
<?php
/*******************************************************************
App. Name : INVENTORY AND SALES SYSTEMS
Module : /apps/cfg/app.php
Desc. : Konfigurasi Global Aplikasi
Created By : Siau Pheng ([email protected]).
Created Date : November 7th, 2009.
Last Modified : September 24th, 2025.
(c) 2009 - 2025, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
require_once(__DIR__."/../../../../vendor/autoload.php");
require_once(__DIR__."/mysql.php");
use siaupheng\fonia3\DB\MySQL;
$db = $db ?? new MySQL();
if (($_SESSION['__WEB_APP']['APP_CODE'] ?? "")<>"2412870909") {
foreach ($_SESSION as $_key => $_val) {
if (substr($_key,0,5)=="__WEB") unset($_SESSION[$_key]);
if (substr($_key,0,5)=="__APP") unset($_SESSION[$_key]);
}
}
if (!isset($_SESSION['__WEB_APP'])) {
$real_path = str_replace("\\", "/", __DIR__);
$real_path = str_replace("apps/cfg", "", $real_path);
$web_path = str_replace($_SERVER['DOCUMENT_ROOT'], "/", $real_path);
$web_path = str_replace("//", "/", $web_path);
$real_path = str_replace("//", "/", $real_path);
$apps = [];
$apps['APP_CODE'] = "2412870909";
$apps['APP_NAME'] = "INVESA";
$apps['APP_NAMES'] = "INVENTORY AND SALES SYSTEMS";
$apps['APP_VER'] = "2.0";
$apps['APP_UPDATED'] = "September 24th, 2025.";
$apps['APP_SID'] = md5(time());
$apps['APP_LOCALE'] = ['id'=>"Indonesia", 'en'=>"English"];
$apps['DEF_LOCALE'] = "id";
$apps['AUTH_OVER'] = false;
$apps['AUTH_LEVEL'] = 1;
$apps['USER_LEVEL'] = [0=>"Administrator", 1=>"Supervisor", 9=>"Operator"];
$apps['USER_LOG'] = true;
$apps['USE_QZTRAY'] = true;
$apps['CREATOR_YEAR'] = "2012";
$apps['CREATOR_NAME'] = "3FONIA Software";
$apps['CREATOR_WEBSITE'] = "https://www.3fonia.com";
$apps['WEB_PATH'] = $web_path;
$apps['REAL_PATH'] = $real_path;
$apps['MODULE_PATH'] = "../";
$apps['PARENT_SUB'] = false;
$apps['PARENT_CODE'] = "1812803307";
$apps['PARENT_SITE'] = "http://192.168.1.200";
$apps['SERVER_ID'] = "0";
$db->Query("SELECT * FROM app_config WHERE REG_ID='".$apps['APP_CODE']."' LIMIT 1");
if ($db->Next()) $apps = array_merge($apps, $db->AllRow());
if ($apps['APP_BUILD']<>"") $apps['APP_VER'] = $apps['APP_BUILD'];
$_SESSION['__WEB_APP'] = $apps;
}
if (!isset($_SESSION['__APP_INV'])) {
$_SESSION['__APP_INV'] = [];
$db->Query("SELECT * FROM inv_config WHERE REG_ID='".$_SESSION['__WEB_APP']['APP_CODE']."' LIMIT 1");
if ($db->Next()) $_SESSION['__APP_INV'] = $db->AllRow();
$db->Query("SELECT MON_ENABLE FROM disp_config WHERE REG_ID='".$_SESSION['__WEB_APP']['APP_CODE']."' LIMIT 1");
if ($db->Next()) $_SESSION['__APP_INV'] = array_merge($_SESSION['__APP_INV'], $db->AllRow());
}
if (file_exists(__DIR__."/../../../global.php")) {
require(__DIR__."/../../../global.php");
}
?>
+1 -1
View File
@@ -18,7 +18,7 @@ $(document).ready(function(){
if ($('#ChartB').length) return false; if ($('#ChartB').length) return false;
IndexJS.load_chart(); IndexJS.load_chart();
}, 600000); }, 600000);
if ('undefined' !== typeof qz) startConnection(); if ('undefined' !== typeof qz) launchQZ();
}); });
var IndexJS = { var IndexJS = {
+1 -1
View File
@@ -91,7 +91,7 @@
<div><a href="[_REG_WEBSITE_]">&reg; [_REG_YEAR_]; [_REG_NAME_]</a> || <a href="[_CREATOR_WEBSITE_]">&copy; [_CREATOR_YEAR_]; [_CREATOR_NAME_]</a></div> <div><a href="[_REG_WEBSITE_]">&reg; [_REG_YEAR_]; [_REG_NAME_]</a> || <a href="[_CREATOR_WEBSITE_]">&copy; [_CREATOR_YEAR_]; [_CREATOR_NAME_]</a></div>
<div class="ms-auto d-none d-md-block"> <div class="ms-auto d-none d-md-block">
<div class="dropdown dropup"> <div class="dropdown dropup">
<a class="dropdown-toggle p-2" id="divQZStatus" role="button" data-bs-toggle="dropdown" aria-expanded="false"></a> <a class="dropdown-toggle p-2 border rounded-end" id="divQZStatus" role="button" data-bs-toggle="dropdown" aria-expanded="false"></a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="divQZStatus"> <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="divQZStatus">
<li><a class="dropdown-item" href="#" onclick="startConnection();"><i class="text-success bi-printer me-2"></i>Hubungkan</a></li> <li><a class="dropdown-item" href="#" onclick="startConnection();"><i class="text-success bi-printer me-2"></i>Hubungkan</a></li>
<li><a class="dropdown-item" href="#" onclick="endConnection();"><i class="text-danger bi-printer-fill me-2"></i>Putuskan</a></li> <li><a class="dropdown-item" href="#" onclick="endConnection();"><i class="text-danger bi-printer-fill me-2"></i>Putuskan</a></li>