<?php include "../../application.php"; $appx = new app(); $dbu = new db(); $appx->load_lib('url', 'msg', 'form', 'nav', 'admlib', 'lang.eng'); $formix = new form(); $admlib = new admlib(); $msgx = new msg(); $urlx = new url(); $appx->set_default($act, 'browse'); $appx->set_default($step, 1); $dbu->connect(); $admlib->validate("tour"); /******************************************************************************* * Action : browse *******************************************************************************/ if ($act == "browse") { $admlib->set_aktip("tourcms_destinasi"); $page = $_REQUEST['page']; // get the requested page $paging = 50; // get how many rows we want to have into the grid $sidx = $_REQUEST['sidx']; // get index row - i.e. user click to sort $sord = $_REQUEST['sord']; // get the direction $where = "WHERE 1=1 AND a.id_reff ='" . $p_id . "'"; $tab_provinsi = ""; if (isset($_REQUEST["kcari"])) { $_SESSION["kcari"] = $_REQUEST["kcari"];
} /******************************************************************************* * aksi : logout * deskripsi : clear all cookies redirect to admin to login form *******************************************************************************/ if ($act == "logout") { if (!empty($_SESSION['adminsession'])) { $_SESSION['adminsession'] = array(); session_unset($_SESSION['adminsession']); //session_unset($_SESSION['inline_edit']); //session_destroy(); $msgx->set_msg($app[lang][info]['adm_logout'], 1); $msgx->build_msg(1); } else { session_unset($_SESSION['membersession']); $msgx->set_msg($app[lang][info]['member_logout'], 1); $msgx->build_msg(1); } header("location: {$app['webmin']}/index.php"); exit; } /******************************************************************************* * aksi : dashboard * deskripsi : cms front screen *******************************************************************************/ if ($act == "home") { $admlibx->validate(); $admlibx->set_aktip("cmshome"); $config = $dbu->get_record("konfig", "id", 1); include "home/tmp_home.php"; }
<?php include "../../application.php"; $appx = new app(); $dbu = new db(); $appx->load_lib('url', 'msg', 'form', 'nav', 'admlib', 'lang.eng'); $formix = new form(); $admlib = new admlib(); $msgx = new msg(); $urlx = new url(); $appx->set_default($act, 'browse'); $appx->set_default($step, 1); $dbu->connect(); $admlib->validate("sett"); /******************************************************************************* * Action : browse *******************************************************************************/ if ($act == "browse") { $admlib->set_aktip("sett_conbhs"); $page = $_REQUEST['page']; // get the requested page $paging = 50; // get how many rows we want to have into the grid $sidx = $_REQUEST['sidx']; // get index row - i.e. user click to sort $sord = $_REQUEST['sord']; // get the direction $where = "WHERE 1=1"; $tab_negara = ""; if (isset($_REQUEST["kcari"])) { $_SESSION["kcari"] = $_REQUEST["kcari"];
<?php include "../../application.php"; $appx = new app(); $dbu = new db(); $appx->load_lib('url', 'msg', 'form', 'file', 'nav', 'admlib', 'lang.eng'); $formix = new form(); $admlib = new admlib(); $msgx = new msg(); $urlx = new url(); $filex = new file(); $appx->set_default($act, 'update'); $appx->set_default($step, 1); $dbu->connect(); $admlib->validate("sett"); /******************************************************************************* * Action : change *******************************************************************************/ if ($act == "update") { $admlib->validate('sett_edit,sett_add'); $formix->init(); if ($step == "1") { $admlib->set_aktip("sett_configbhs"); $config = $dbu->get_record("konfig", "id", 1); $form = $config; $formix->populate($form); include "tmp_config.php"; exit; } if ($step == "2") { $formix->serialize_form();
<?php include "../../application.php"; $appx = new app(); $dbu = new db(); $appx->load_lib('url', 'msg', 'form', 'nav', 'admlib', 'lang.eng'); $formix = new form(); $admlib = new admlib(); $msgx = new msg(); $urlx = new url(); $appx->set_default($act, 'browse'); $appx->set_default($step, 1); $dbu->connect(); $admlib->validate("pgn"); /******************************************************************************* * Action : browse *******************************************************************************/ if ($act == "browse") { $admlib->set_aktip("usercms_mana"); $page = $_REQUEST['page']; // get the requested page $paging = 50; // get how many rows we want to have into the grid $sidx = $_REQUEST['sidx']; // get index row - i.e. user click to sort $sord = $_REQUEST['sord']; // get the direction $where = "WHERE 1=1"; if (isset($_REQUEST["kcari"])) { $_SESSION["kcari"] = $_REQUEST["kcari"]; $_SESSION["fcari"] = $_REQUEST["fcari"];
<?php include "../../application.php"; $appx = new app(); $dbu = new db(); $appx->load_lib('url', 'msg', 'form', 'nav', 'admlib', 'lang.eng'); $formix = new form(); $admlib = new admlib(); $msgx = new msg(); $urlx = new url(); $appx->set_default($act, 'browse'); $appx->set_default($step, 1); $dbu->connect(); $admlib->validate("geol"); /******************************************************************************* * Action : browse *******************************************************************************/ if ($act == "browse") { $admlib->set_aktip("geocms_bhs"); $page = $_REQUEST['page']; // get the requested page $paging = 50; // get how many rows we want to have into the grid $sidx = $_REQUEST['sidx']; // get index row - i.e. user click to sort $sord = $_REQUEST['sord']; // get the direction $where = "WHERE 1=1"; $tab_negara = ""; if (isset($_REQUEST["kcari"])) { $_SESSION["kcari"] = $_REQUEST["kcari"];
<?php include "../../application.php"; $appx = new app(); $dbu = new db(); $appx->load_lib('url', 'msg', 'form', 'nav', 'admlib', 'lang.eng'); $formix = new form(); $admlib = new admlib(); $msgx = new msg(); $urlx = new url(); $appx->set_default($act, 'browse'); $appx->set_default($step, 1); $dbu->connect(); $admlib->validate("geol"); /******************************************************************************* * Action : browse *******************************************************************************/ if ($act == "browse") { $admlib->set_aktip("geocms_negara"); $page = $_REQUEST['page']; // get the requested page $paging = 50; // get how many rows we want to have into the grid $sidx = $_REQUEST['sidx']; // get index row - i.e. user click to sort $sord = $_REQUEST['sord']; // get the direction $where = "WHERE 1=1"; if (isset($_REQUEST["kcari"])) { $_SESSION["kcari"] = $_REQUEST["kcari"]; $_SESSION["fcari"] = $_REQUEST["fcari"];
<?php include "../../application.php"; $appx = new app(); $dbu = new db(); $appx->load_lib('url', 'msg', 'form', 'nav', 'admlib', 'lang.eng'); $formix = new form(); $admlib = new admlib(); $msgx = new msg(); $urlx = new url(); $appx->set_default($act, 'browse'); $appx->set_default($step, 1); $dbu->connect(); $admlib->validate("community"); /******************************************************************************* * Action : browse *******************************************************************************/ if ($act == "browse") { $admlib->set_aktip("tourcms_destinasi"); $page = $_REQUEST['page']; // get the requested page $paging = 50; // get how many rows we want to have into the grid $sidx = $_REQUEST['sidx']; // get index row - i.e. user click to sort $sord = $_REQUEST['sord']; // get the direction $where = "WHERE 1=1 AND a.id_komunitas ='" . $p_id . "'"; $tab_provinsi = ""; if (isset($_REQUEST["kcari"])) { $_SESSION["kcari"] = $_REQUEST["kcari"];