function display_block_sosmedia($model = '') { global $app; $dbu = new db(); $config = $dbu->get_record("configuration", "id", 1); if (!$model) { include "{$app['path']}/bagian/bag_sosmedia.php"; } else { include "{$app['path']}/bagian/bag_sosmedia_" . $model . ".php"; } }
*******************************************************************************/ if ($act == "set_hot") { $admlib->validate('tour_edit'); $dbu->set_hot("berita", "id", $p_id, $hot, "hit"); $_SESSION['msg'] = "status hot destinasi berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_destinasi"); $formix->init(); $page = $dbu->get_record("destinasi", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("tourcms_destinasi"); $admlib->validate('tour_add'); $formix->init(); if ($step == 1) { $formix->populate($form); //print_r($app[me]);
/******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $dbu->set_status("pengguna", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status user berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->set_aktip("usercms_mana"); $formix->init(); $page = $dbu->get_record("pengguna", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("usercms_mana"); $admlib->validate('pgn_del,pgn_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
/******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $dbu->set_status("action", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status user berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->set_aktip("sett_action"); $formix->init(); $page = $dbu->get_record("action", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("sett_action"); $admlib->validate('sett_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
<?php $stats = new stats(); $dbu = new db(); $appx = new app(); $appx->load_lib('feed'); $feedex = new feed(); $stats->log_stats($rs_act["nama"], $act, $p_id, $sub, $step, $cat, $status, $tab); $app['nopage'] = $rs_act["action"]; //echo $p_id;exit; $pid = str_replace("-", "%", $p_id); $idnya = $dbu->lookup("id", $app[table][komunitas], "nama LIKE '%" . $pid . "%'"); $komm = $dbu->get_record($app[table][komunitas], "id = '" . $idnya . "'"); $komm[logo] = $appx->cekFile('/komunitas/logo/', $komm[logo], 'default.png'); $komm[logo] = $app[data_www] . '/komunitas/logo/' . $komm[logo]; include "fill/fill_community_detail.php";
<?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();
function get_top_parent($id, &$parent) { global $app; // $appx = new app(); $dbu = new db(); $adminlib = new admlib(); $data = $dbu->get_record('product_parent', 'id', $id); $parent[] = $data['name']; if ($data['parent_id'] != 0) { $admlib->get_top_parent($data['parent_id'], $parent); } else { $parent = array_reverse($parent); $parent = implode(" => ", $parent); } return $parent; }
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("destinasi_kategori", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status destinasi_kategori berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_kategori"); $formix->init(); $page = $dbu->get_record("destinasi_kategori", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("tourcms_kategori"); $admlib->validate('tour_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('community'); $dbu->set_status("komunitas_destinasi", "id", $sub, $status, "status"); $_SESSION['msg'] = "status biaya berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_destinasi"); $formix->init(); $page = $dbu->get_record("kota", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("communitycms_master"); $admlib->validate('community_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('geol_edit'); $dbu->set_status("provinsi", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status provinsi berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('geol_view'); $admlib->set_aktip("geocms_provinsi"); $formix->init(); $page = $dbu->get_record("provinsi", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("geocms_provinsi"); $admlib->validate('geol_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
function set_lang($model = '') { global $app; if (!$model) { $config = db::get_record("configuration", "id", 1); $bahasa = $config[default_lang]; } else { if ($model == "eng") { $bahasa = "ina"; } elseif ($model == "ina") { $bahasa = "eng"; } //$app[bahasa] = $model; } return $bahasa; }
</li> <?php } ?> </ul> <img class="bg_destination_category" src="<?php echo $app["css_www"]; ?> /img/bg-destination-category.jpg"> </div><!-- /.content_category --> <div class="latest_update add_fix"> <h1>Latest Update<span class="border"></span></h1> <ul class="update_list add_fix"> <?php while ($rsnew = $dbu->fetch($rstip)) { $newskat = $dbu->get_record('berita_kategori', "id='" . $rsnew[id_kat] . "' and id_bahasa='id'"); $newsbhs = $dbu->get_record('berita_bahasa', "id_berita='" . $rsnew[id] . "' and id_bahasa='id'"); ?> <li> <a href="<?php echo $app["www"] . "/" . $dbu->lookup('nama', 'action', "action='51'") . "/" . $urlx->shortLink($newsbhs[judul]) . "_" . $rsnew[id] . "/"; ?> "> <div class="img_box"> <div class="icon"><img src="<?php echo $app["data_www"]; ?> /berita/icon/<?php echo $newskat[icon]; ?>
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('community_edit'); $dbu->set_status("komunitas", "id", $p_id, $status, "status"); $_SESSION['msg'] = "status komunitas \"" . $dbu->lookup("nama", "komunitas", "id='" . $p_id . "'") . "\" berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('community_view'); $admlib->set_aktip("communitycms_master"); $formix->init(); $page = $dbu->get_record("komunitas", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("communitycms_master"); $admlib->validate('community_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('community'); $dbu->set_status("komunitas_destinasi", "id", $sub, $status, "status"); $_SESSION['msg'] = "status biaya berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("communitycms_member"); $formix->init(); $page = $dbu->get_record("kota", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("communitycms_member"); $admlib->validate('community_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('geol_edit'); $dbu->set_status("kota", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status kota berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('geol_view'); $admlib->set_aktip("geocms_kota"); $formix->init(); $page = $dbu->get_record("kota", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("geocms_kota"); $admlib->validate('geol_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
<?php $stats = new stats(); $dbu = new db(); $appx = new app(); $appx->load_lib('feed'); $feedex = new feed(); $stats->log_stats($rs_act["nama"], $act, $p_id, $sub, $step, $cat, $status, $tab); $app['nopage'] = $rs_act["action"]; //echo $p_id;exit; $pid = str_replace("-", "%", $p_id); $idnya = $dbu->lookup("id", $app[table][pengguna], "username LIKE '%" . $pid . "%'"); $dprof = $dbu->get_record("pengguna", "id = '" . $idnya . "'"); $dprof[avatar] = $appx->cekFile("/pengguna/avatar/", $dprof[avatar]); $rsact = $dbu->get_recordset("pengguna_feed", "id_user='******' and status='aktif' ORDER BY tgl_post desc LIMIT 10"); //$rsnegara=$dbu->get_recordset("negara", "status ='aktif'"); $feed = ""; while ($dfeed = $dbu->fetch($rsact)) { if ($dfeed[tabel] == "cekin") { $feed = $feedex->feedCheckIn($dfeed, $_SESSION[bhs], $dprof); } } //exit; include "fill/fill_profil.php";
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("transport", "id", $sub, $status, "status"); $_SESSION['msg'] = "status rute berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_destinasi"); $formix->init(); $page = $dbu->get_record("kota", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("tourcms_destinasi"); $admlib->validate('tour_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("destinasi_keg", "id", $sub, $status, "status"); $_SESSION['msg'] = "status kegiatan berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_destinasi"); $formix->init(); $page = $dbu->get_record("kota", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("tourcms_destinasi"); $admlib->validate('tour_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
$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(); $formix->validate('', 'p_judul,p_judul_cms,p_domain'); if ($formix->is_error()) { $msgx->build_msg(); header("location: index.php?act=update&error=1&referer=" . $urlx->get_referer()); exit; } $data = $dbu->get_record("konfig", "id", 1); $id = rand(1, 999) . date("dmYHis");
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("berita_kategori", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status berita_kategori berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_kategori"); $formix->init(); $page = $dbu->get_record("berita_kategori", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("tourcms_kategori"); $admlib->validate('tour_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('geol_edit'); $dbu->set_status("negara", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status negara berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('geol_edit'); $admlib->set_aktip("geocms_negara"); $formix->init(); $page = $dbu->get_record("negara", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->validate('geol_add'); $admlib->set_aktip("geocms_negara"); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('sett_edit'); $dbu->set_status("konfig_bahasa", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status konfig bahasa berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('geol_view'); $admlib->set_aktip("sett_conbhs"); $formix->init(); $page = $dbu->get_record("provinsi", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("sett_conbhs"); $admlib->validate('sett_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('geol_edit'); $dbu->set_status("bahasa", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status bahasa berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('geol_view'); $admlib->set_aktip("geocms_bhs"); $formix->init(); $page = $dbu->get_record("bahasa", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("geocms_bhs"); $admlib->validate('geol_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
*******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("destinasi_bahasa", "id", $p_id, $status, "status"); $_SESSION['msg'] = "status destinasi_bahasa berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_kota"); $formix->init(); $page = $dbu->get_record("destinasi_bahasa", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit; } /******************************************************************************* * Action : add *******************************************************************************/ if ($act == "add") { $admlib->set_aktip("tourcms_kota"); $admlib->validate('tour_add'); $formix->init(); if ($step == 1) { $formix->populate($form); include "tmp_add.php";
<?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] . "'";