/**[N]** * JIBAS Education Community * Jaringan Informasi Bersama Antar Sekolah * * @version: 30.0 (Jan 24, 2024) * @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/mainconfig.php'); require_once('include/db_functions.php'); // --- Patch Management Framework --- require_once('include/global.patch.manager.php'); ApplyGlobalPatch("."); // --- LiveUpdate Status ---- session_name("jbsmain"); session_start(); $lid = -1; // current liveupdate id $dbconnect = @mysql_connect($db_host, $db_user, $db_pass); if ($dbconnect) { $dbselect = @mysql_select_db("jbsclient", $dbconnect); if ($dbselect) { $sql = "SELECT nilai FROM jbsclient.liveupdateconfig WHERE tipe='MIN_UPDATE_ID'"; $result = @mysql_query($sql, $dbconnect); $row = @mysql_fetch_row($result); $minid = $row[0]; $sql = "SELECT MAX(liveupdateid) FROM jbsclient.liveupdate"; $result = @mysql_query($sql, $dbconnect); $row = @mysql_fetch_row($result); $maxinstalled = is_null($row[0]) ? 0 : $row[0]; $lid = $minid >= $maxinstalled ? $minid : $maxinstalled; } @mysql_close($dbconnect); } ?>