remove old compatible fonia3

add 404 page request
fixed minor on table
This commit is contained in:
2023-12-31 10:49:03 +07:00
parent 7b7868ba10
commit 14c7d51d4d
3 changed files with 20 additions and 83 deletions
+6 -1
View File
@@ -32,9 +32,9 @@ final class App {
$this->__form = new \siaupheng\fonia3\Web\Form($this->__db);
$this->apps = $_SESSION['__WEB_APP'];
$this->apps['TEMPLATE'] = "index.php";
if (isset($_SESSION['__WEB_USER'])) {
$this->auser = $_SESSION['__WEB_USER'];
$this->apps['TEMPLATE'] = "index.php";
$this->auser['user_info'] = tgl_sql2str($this->auser['Last_Date'], true) ." // ". $this->auser['Last_IP'].'<input type="hidden" id="Desktop_User_ID" value="'.intval($this->auser['UserID']).'"><input type="hidden" id="Desktop_User_Level" value="'.intval($this->auser['Level']).'"><input type="hidden" id="Desktop_User_UID" value="'.$this->auser['Username'].'">';
$this->auser['user_img'] = "profile.png";
if (file_exists($this->apps['REAL_PATH']."assets/images/profiles/".$this->auser['UserID'].".png")) {
@@ -56,6 +56,11 @@ final class App {
$this->apps['TEMPLATE'] = "404.php";
}
// gunakan template khusus sesuai request
if (($aoption['PAGE_404']['value'] ?? 0) == 1) {
$this->apps['TEMPLATE'] = "404.php";
}
// loading template file
$buffer = "";
if (file_exists($this->apps['REAL_PATH']."assets/templates/".$this->apps['TEMPLATE'])) {
-1
View File
@@ -295,7 +295,6 @@ final class Table {
}
$adata['data'][] = $abaris;
}
} else {
$adata = $this->json_table($nama_tabel, $baris_tabel);
}