<?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"];
<?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(); $appx->load_lib('stats', 'url', 'msg', 'form', 'nav', 'file', 'admlib', 'usrlib'); ## START ####################################################################### $appx->set_default($act, ''); $appx->set_default($step, 1); $admlibx = new admlib(); $dbu = new db(); $formix = new form(); $msgx = new msg(); $dbu->connect(); if ($act == "" || $act == 'traveler_friend') { $formix->populate($form); $pgconfig = $dbu->get_record("konfig", "id", 1); if ($_SESSION['adminsession']) { header("location: {$app['webmin']}/index.php?act=home"); } elseif ($_SESSION['membersession']) { header("location: {$app['webmin']}/index.php?act=member"); } else { include "dsp_login.php"; } exit; } /******************************************************************************* * login * gambaran : validasi login *******************************************************************************/ if ($act == "login") { $formix->init();
<?php /******************************************************************************* * Filename : index.php * Description : index file *******************************************************************************/ include "application.php"; $appx = new app(); $appx->load_lib('stats', 'msg', 'form', 'nav', 'file', 'admlib', 'usrlib', 'mapy'); ## START ####################################################################### $appx->set_default($act, 'index'); //app::set_default($step, 1); $dbu = new db(); $dbu->connect(); $urlx = new url(); $pg_config = $dbu->get_record("konfig", "id", 1); //unset($_SESSION[dummy]); if ($act == "logindulu") { if ($p_kunci == "tourismprosperity") { $_SESSION[dummy] = $p_kunci; //print_r($_SESSION[dummy]);exit; } else { unset($_SESSION[dummy]); } } if ($_SESSION[dummy] != "") { //echo $act;exit; //$_SESSION[msg]=""; if (!isset($_SESSION[member][id]) || $_SESSION[member][id] == "" || $_SESSION[member][id] == null) { if (isset($_COOKIE[rahasia]) && $_COOKIE[rahasia] != "") { $sql = "UPDATE " . $app[table][pengguna] . " SET terakhir_login = now() WHERE id='" . $_COOKIE[rahasia] . "'";