/**[N]**
* JIBAS Education Community
* Jaringan Informasi Bersama Antar Sekolah
*
* @version: 32.0 (Feb 05, 2025)
* @notes:
*
* Copyright (C) 2024 JIBAS (http://www.jibas.net)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
**[N]**/ ?>
/**[N]**
* JIBAS Education Community
* Jaringan Informasi Bersama Antar Sekolah
*
* @version: 32.0 (Feb 05, 2025)
* @notes:
*
* Copyright (C) 2024 JIBAS (http://www.jibas.net)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
**[N]**/ ?>
// ------------------------------------------------------------
// PATCH MANAGEMENT FRAMEWORK
// ------------------------------------------------------------
if (file_exists('../include/global.patch.manager.php'))
{
require_once('../include/global.patch.manager.php');
ApplyGlobalPatch("..");
}
elseif (file_exists('../../include/global.patch.manager.php'))
{
require_once('../../include/global.patch.manager.php');
ApplyGlobalPatch("../..");
}
elseif (file_exists('../../../include/global.patch.manager.php'))
{
require_once('../../../include/global.patch.manager.php');
ApplyGlobalPatch("../../..");
}
require_once('module.patch.manager.php');
ApplyModulePatch();
// ------------------------------------------------------------
// MAIN CONFIGURATION
// ------------------------------------------------------------
if (file_exists('../include/mainconfig.php'))
{
require_once('../include/mainconfig.php');
}
elseif (file_exists('../../include/mainconfig.php'))
{
require_once('../../include/mainconfig.php');
}
elseif (file_exists('../../../include/mainconfig.php'))
{
require_once('../../../include/mainconfig.php');
}
// ------------------------------------------------------------
// DEFAULT CONSTANTS
// ------------------------------------------------------------
// Override global variable db_name
$db_name = "jbsfina";
// Full URL to academik module
$full_url = "http://$G_SERVER_ADDR/keuangan/";
$G_ENABLE_QUERY_ERROR_LOG = false;
// ------------------------------------------------------------
// FORMAT SPECIAL CHARACTERS WITHIN ALL REQUEST
// ------------------------------------------------------------
function FmtReq_PreventInjection($value)
{
$result = $value;
$loValue = strtolower($result);
$arrKeyFound = array();
$arrKey = array("union ", "union*", "select ", "select*", "-- ");
for($i = 0; $i < count($arrKey); $i++)
{
$key = $arrKey[$i];
$keyLen = strlen($key);
$pos = strpos($loValue, $key);
if ($pos === false)
continue;
$search = substr($result, $pos, $keyLen);
$arrKeyFound[] = $search;
}
for($i = 0; $i < count($arrKeyFound); $i++)
{
$search = $arrKeyFound[$i];
$replace = substr($search, 0, 1) . " " . substr($search, 1);
$result = str_replace($search, $replace, $result);
}
return $result;
}
function FmtReq_FormatValue($value)
{
$value = str_replace("'", "`", $value); //'
$value = str_replace('"', "`", $value); //"
$value = addslashes($value);
return FmtReq_PreventInjection($value);
}
function FmtReq_TraverseRequestArray(&$arr)
{
foreach($arr as $key => $value)
{
if (is_array($arr[$key]))
FmtReq_TraverseRequestArray($arr[$key]);
else
$arr[$key] = FmtReq_FormatValue($value);
}
}
foreach($_REQUEST as $key => $value)
{
if (is_array($_REQUEST[$key]))
FmtReq_TraverseRequestArray($_REQUEST[$key]);
else
$_REQUEST[$key] = FmtReq_FormatValue($value);
}
?>
Warning: session_name(): Cannot change session name when headers already sent in /var/www/sister.smkmutu/public_html/keuangan/index.php on line 27
Warning: session_start(): Cannot start session when headers already sent in /var/www/sister.smkmutu/public_html/keuangan/index.php on line 28
/**[N]**
* JIBAS Education Community
* Jaringan Informasi Bersama Antar Sekolah
*
* @version: 32.0 (Feb 05, 2025)
* @notes:
*
* Copyright (C) 2024 JIBAS (http://www.jibas.net)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
**[N]**/ ?>
require_once('include/config.php');
session_name("jbskeu");
session_start();
if (isset($_SESSION['namakeuangan']))
{
header("Location:../keuangan/main.php");
exit();
}
?>