$rResult = mysql_query($sQuery, $gaSql['link']) or die(mysql_error()); $sQuery = "\r\n SELECT FOUND_ROWS()\r\n "; $rResultFilterTotal = mysql_query($sQuery, $gaSql['link']) or die(mysql_error()); $aResultFilterTotal = mysql_fetch_array($rResultFilterTotal); $iFilteredTotal = $aResultFilterTotal[0]; $sQuery = "\r\n SELECT COUNT(" . $sIndexColumn . ")\r\n FROM {$sTable}\r\n "; $rResultTotal = mysql_query($sQuery, $gaSql['link']) or die(mysql_error()); $aResultTotal = mysql_fetch_array($rResultTotal); $iTotal = $aResultTotal[0]; $output = array("sEcho" => intval($_GET['sEcho']), "iTotalRecords" => $iTotal, "iTotalDisplayRecords" => $iFilteredTotal, "aaData" => array()); $no = 1; while ($aRow = mysql_fetch_array($rResult)) { $row = array(); for ($i = 1; $i < count($aColumns); $i++) { $valid = $aRow['level']; $tablelevel = new PoTable('user_level'); $currentLevel = $tablelevel->findBy(id_level, $valid); $currentLevel = $currentLevel->current(); $row[] = $aRow['id_user']; $row[] = $aRow['username']; $row[] = $aRow['nama_lengkap']; $row[] = $currentLevel->level; $row[] = $aRow['blokir']; $row[] = "<div class='text-center'><div class='btn-group btn-group-xs'>\r\n\t\t\t\t\t<a href='admin.php?mod=user&act=edit&id={$aRow['id_session']}' class='btn btn-xs btn-default' id='{$aRow['id_user']}'><i class='fa fa-pencil'></i></a>\r\n\t\t\t\t\t<a class='btn btn-xs btn-danger alertdel' id='{$aRow['id_user']}'><i class='fa fa-times'></i></a>\r\n\t\t\t</div></div>"; } $output['aaData'][] = $row; $no++; } echo json_encode($output); } }
} ?> </div> </div> <h6 class="text-center">SHOW VIDEO <br><button type="button" class="btn btn-default btn-no-border"> <span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span> </button></h6> <hr> <div class="row"> <h6 class="col-md-4"><center><span class="glyphicon glyphicon-th" aria-hidden="true"> VIEW ALL BLOG</center></h6> <h6 class="col-md-4"><center><strong><u>BLOG</u></strong></center></h6> <h6 class="col-md-4"><center>ARCHIVES <span class="caret"></span></center></h6> </div> <?php $tableconb = new PoTable('post'); $conbs = $tableconb->findAllLimit(id_post, DESC, '6'); $no = 1; foreach ($conbs as $conb) { if ($no == 1) { ?> <div class="row"><?php } ?> <div class="col-md-4"> <img width="100%" src="<?php echo $website_url; ?> /po-content/po-thumbs/<?php echo $conb->picture; ?>
$thiskelasaddnew = $actionact == 'addnew' ? 'active' : ''; } elseif ($action == 'absen') { $actionact = $_GET['act']; $thisabsen = ($actionact == '' or $actionact == 'edit') ? 'active' : ''; $thisabsenaddnew = $actionact == 'addnew' ? 'active' : ''; } elseif ($action == 'report') { $actionact = $_GET['act']; $thisreport = ($actionact == '' or $actionact == 'edit') ? 'active' : ''; $thisreortaddnew = $actionact == 'addnew' ? 'active' : ''; } else { $actionact = $_GET['act']; $thiscomponent = $actionact == '' ? 'active' : ''; } echo "<ul class='sidebar-nav'>\n\t\t\t<li>\n\t\t\t\t<a href='admin.php?mod=home' class='{$activehome}'><i class='gi gi-home sidebar-nav-icon'></i>{$langmenu1}</a>\n\t\t\t</li>\n\n\t\t\t<li class='sidebar-header'>\n\t\t\t\t<span class='sidebar-header-title'>{$langmenu80}</span>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href='admin.php?mod=absen' class='{$thisabsen}'><i class='gi gi-edit sidebar-nav-icon'></i>{$langmenu81}</a>\n\t\t\t</li>\n\n\t\t\t<li class='sidebar-header'>\n\t\t\t\t<span class='sidebar-header-title'>{$langmenu90}</span>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href='admin.php?mod=report' class='{$thisreport}'><i class='gi gi-list sidebar-nav-icon'></i>{$langreport}</a>\n\t\t\t</li>\n\n\t\t\t<li class='sidebar-header'>\n\t\t\t\t<span class='sidebar-header-title'>{$langmenu49}</span>\n\t\t\t</li>\n\t\t\t<li class='{$activesiswa}'>\n\t\t\t\t<a href='#' class='sidebar-nav-menu'><i class='fa fa-angle-left sidebar-nav-indicator'></i><i class='gi gi-user sidebar-nav-icon'></i>{$langmenu50}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='admin.php?mod=siswa' class='{$thissiswa}'>{$langmenu51}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=siswa&act=addnew' class='{$thissiswaaddnew}'>{$langmenu52}</a></li>\n\t\t\t\t</ul>\n\t\t\t</li>\n\n\t\t\t<li class='{$activeguru}'>\n\t\t\t\t<a href='#' class='sidebar-nav-menu'><i class='fa fa-angle-left sidebar-nav-indicator'></i><i class='gi gi-user sidebar-nav-icon'></i>{$langmenu60}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='admin.php?mod=guru' class='{$thisguru}'>{$langmenu61}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=guru&act=addnew' class='{$thisguruaddnew}'>{$langmenu62}</a></li>\n\t\t\t\t</ul>\n\t\t\t</li>\n\n\t\t\t<li class='{$activekelas}'>\n\t\t\t\t<a href='#' class='sidebar-nav-menu'><i class='fa fa-angle-left sidebar-nav-indicator'></i><i class='gi gi-building sidebar-nav-icon'></i>{$langmenu70}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='admin.php?mod=kelas' class='{$thiskelas}'>{$langmenu71}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=kelas&act=addnew' class='{$thiskelasaddnew}'>{$langmenu72}</a></li>\n\t\t\t\t</ul>\n\t\t\t</li>\n\n\t\t\t<li class='sidebar-header'>\n\t\t\t\t<span class='sidebar-header-title'>{$langmenu2}</span>\n\t\t\t</li>\n\t\t\t<li class='{$activepost}'>\n\t\t\t\t<a href='#' class='sidebar-nav-menu'><i class='fa fa-angle-left sidebar-nav-indicator'></i><i class='gi gi-book sidebar-nav-icon'></i>{$langmenu2}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='admin.php?mod=post' class='{$thispost}'>{$langmenu3}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=post&act=addnew' class='{$thispostaddnew}'>{$langmenu4}</a></li>\n\t\t\t\t</ul>\n\t\t\t</li>\n\t\t\t<li class='{$activecategory}'>\n\t\t\t\t<a href='#' class='sidebar-nav-menu'><i class='fa fa-angle-left sidebar-nav-indicator'></i><i class='hi hi-tasks sidebar-nav-icon'></i>{$langmenu5}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='admin.php?mod=category' class='{$thiscategory}'>{$langmenu5}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=category&act=addnew' class='{$thiscategoryaddnew}'>{$langmenu4}</a></li>\n\t\t\t\t</ul>\n\t\t\t</li>\n\t\t\t<li class='{$activetags}'>\n\t\t\t\t<a href='#' class='sidebar-nav-menu'><i class='fa fa-angle-left sidebar-nav-indicator'></i><i class='gi gi-tags sidebar-nav-icon'></i>{$langmenu6}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='admin.php?mod=tag' class='{$thistag}'>{$langmenu6}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=tag&act=addnew' class='{$thistagaddnew}'>{$langmenu4}</a></li>\n\t\t\t\t</ul>\n\t\t\t</li>\n\t\t\t<li class='sidebar-header'>\n\t\t\t\t<span class='sidebar-header-title'>{$langmenu10}</span>\n\t\t\t</li>\n\t\t\t<li class='{$activepages}'>\n\t\t\t\t<a href='#' class='sidebar-nav-menu'><i class='fa fa-angle-left sidebar-nav-indicator'></i><i class='hi hi-file sidebar-nav-icon'></i>{$langmenu10}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='admin.php?mod=pages' class='{$thispages}'>{$langmenu11}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=pages&act=addnew' class='{$thispagesaddnew}'>{$langmenu12}</a></li>\n\t\t\t\t</ul>\n\t\t\t</li>\n\t\t\t<li class='sidebar-header'>\n\t\t\t\t<span class='sidebar-header-title'>{$langmenu7}</span>\n\t\t\t</li>\n\t\t\t<li class='{$activelibrary}'>\n\t\t\t\t<a href='#' class='sidebar-nav-menu'><i class='fa fa-angle-left sidebar-nav-indicator'></i><i class='fa fa-picture-o sidebar-nav-icon'></i>{$langmenu7}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='admin.php?mod=library' class='{$thislibrary}'>{$langmenu8}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=library&act=addnew' class='{$thislibraryaddnew}'>{$langmenu9}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=library&act=addnewmultiple' class='{$thislibraryaddnewmulti}'>{$langmenu9} Multiple</a></li>\n\t\t\t\t</ul>\n\t\t\t</li>\n\t\t\t<li class='sidebar-header'>\n\t\t\t\t<span class='sidebar-header-title'>{$langmenu13}</span>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href='admin.php?mod=setting' class='{$activesetting}'><i class='gi gi-cogwheels sidebar-nav-icon'></i>{$langmenu14}</a>\n\t\t\t</li>\n\t\t\t<li class='{$activetheme}'>\n\t\t\t\t<a href='#' class='sidebar-nav-menu'><i class='fa fa-angle-left sidebar-nav-indicator'></i><i class='gi gi-imac sidebar-nav-icon'></i>{$langmenu15}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='admin.php?mod=theme' class='{$thistheme}'>{$langmenu15}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=theme&act=addnew' class='{$thisthemeaddnew}'>{$langmenu18}</a></li>\n\t\t\t\t</ul>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href='admin.php?mod=menumanager' class='{$activemenu}'><i class='fa fa-sitemap sidebar-nav-icon'></i>{$langmenu28}</a>\n\t\t\t</li>\n\t\t\t<li class='sidebar-header'>\n\t\t\t\t<span class='sidebar-header-title'>{$langmenu16}</span>\n\t\t\t</li>\n\t\t\t<li class='{$activecomponent} {$activecogen}'>\n\t\t\t\t<a href='#' class='sidebar-nav-menu'><i class='fa fa-angle-left sidebar-nav-indicator'></i><i class='fa fa-puzzle-piece sidebar-nav-icon'></i>{$langmenu16}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='admin.php?mod=component' class='{$thiscomponent}'>{$langmenu17}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=component&act=addnew' class='{$thiscomponentaddnew}'>{$langmenu18}</a></li>\n\t <li><a href='admin.php?mod=cogen' class='{$thiscogen}'>CoGen</a></li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href='#' class='sidebar-nav-submenu'><i class='fa fa-angle-left sidebar-nav-indicator'></i>{$langmenu31}</a>\n\t\t\t\t\t\t<ul>"; include_once '../po-library/po-database.php'; $tablecomponentm = new PoTable('component'); $componentmenus = $tablecomponentm->findAll(id_component, DESC); foreach ($componentmenus as $componentmenu) { $pecahurl = explode("-", $componentmenu->component); $url = $pecahurl[1]; echo "<li><a href='admin.php?mod={$url}'>{$componentmenu->component}</a></li>"; } echo "</ul>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</li>\n\t\t\t<li class='sidebar-header'>\n\t\t\t\t<span class='sidebar-header-title'>{$langmenu19}</span>\n\t\t\t</li>\n\t\t\t<li class='{$activeuser}'>\n\t\t\t\t<a href='#' class='sidebar-nav-menu'><i class='fa fa-angle-left sidebar-nav-indicator'></i><i class='gi gi-group sidebar-nav-icon'></i>{$langmenu19}</a>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='admin.php?mod=user' class='{$thisuser}'>{$langmenu20}</a></li>\n\t\t\t\t\t<li><a href='admin.php?mod=user&act=addnew' class='{$thisuseraddnew}'>{$langmenu21}</a></li>\n\t\t\t\t</ul>\n\t\t\t</li>\n\t\t</ul>"; } else { $action = $_GET['mod']; $activehome = $action == 'home' ? 'active' : ''; $activepost = $action == 'post' ? 'active' : ''; $activecategory = $action == 'category' ? 'active' : ''; $activetags = $action == 'tag' ? 'active' : ''; $activeuser = $action == 'user' ? 'active' : ''; if ($action == 'post') {
</div> <div class="row page_margin_top"> <ul class="taxonomies tags left clearfix"> <?php $tabletag = new PoTable('tag'); $tags = $tabletag->findAll(id_tag, DESC); $arrtags = explode(',', $currentDetail->tag); foreach ($tags as $tag) { $cek = array_search($tag->tag_seo, $arrtags) != false ? '' : 'display:none;'; echo "<li style='{$cek}'><a href='{$website_url}/search-result/{$tag->tag_title}' title='{$tag->tag_title}'>{$tag->tag_title}</a></li>"; } ?> </ul> </div> <?php $tablerelated = new PoTable('post'); $tablerelateds = $tablerelated->findRelatedPost($currentDetail->tag, $idpost, id_post, "DESC", "5"); if (count($tablerelateds) > 1) { ?> <div class="row page_margin_top_section"> <h4 class="box_header">Post Terkait</h4> <div class="horizontal_carousel_container page_margin_top"> <ul class="blog horizontal_carousel autoplay-1 scroll-1 navigation-1 easing-easeInOutQuint duration-750"> <?php foreach ($tablerelateds as $tablerelated) { ?> <li class="post"> <a href="<?php echo "{$website_url}/detailpost/{$tablerelated->seotitle}"; ?> " title="<?php
} else { header('location:../../404.php'); } } else { header('location:../../404.php'); } } elseif ($mod == 'category' and $act == 'input') { if ($currentRoleAccess->write_access == "Y") { $title = $val->validasi($_POST['title'], 'xss'); $seotitle = seo_title($title); $table = new PoTable('category'); $table->save(array('title' => $title, 'seotitle' => $seotitle)); header('location:../../admin.php?mod=' . $mod); } else { header('location:../../404.php'); } } elseif ($mod == 'category' and $act == 'update') { if ($currentRoleAccess->modify_access == "Y") { $id = $val->validasi($_POST['id'], 'sql'); $title = $val->validasi($_POST['title'], 'xss'); $seotitle = seo_title($title); $active = $val->validasi($_POST['active'], 'xss'); $data = array('title' => $title, 'seotitle' => $seotitle, 'active' => $active); $table = new PoTable('category'); $table->updateBy('id_category', $id, $data); header('location:../../admin.php?mod=' . $mod); } else { header('location:../../404.php'); } } }
require_once '../../po-component/po-oauth/twitter/twitteroauth/twitteroauth.php'; $val = new Povalidasi(); $tableoauthtw = new PoTable('oauth'); $currentOauthtw = $tableoauthtw->findBy(id_oauth, '2'); $currentOauthtw = $currentOauthtw->current(); $conkeyOauthtw = $currentOauthtw->oauth_key; $consecretOauthtw = $currentOauthtw->oauth_secret; $idOauthtw = $currentOauthtw->oauth_id; $tokenOauthtw = $currentOauthtw->oauth_token1; $tokensecretOauthtw = $currentOauthtw->oauth_token2; $tablesetting = new PoTable('setting'); $currentSetting = $tablesetting->findBy(id_setting, '1'); $currentSetting = $currentSetting->current(); $urlwebsite = $currentSetting->website_url; $urlwebsitename = $currentSetting->website_name; define('CONSUMER_KEY', '' . $conkeyOauthtw . ''); define('CONSUMER_SECRET', '' . $consecretOauthtw . ''); define('OAUTH_CALLBACK', '' . $urlwebsite . '/po-adminboard/admin.php?mod=post'); $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $tokenOauthtw, $tokensecretOauthtw); $valid = $val->validasi($_GET['id'], 'sql'); $table = new PoTable('post'); $currentPosts = $table->findBy(id_post, $valid); $currentPosts = $currentPosts->current(); $params = array("status" => "{$currentPosts->title}, Link : {$urlwebsite}/detailpost/{$currentPosts->seotitle}"); $status = $connection->post('statuses/update', $params); if (200 == $connection->http_code) { header('location:../../admin.php?mod=post'); } else { header('location:../../404.php'); } }
\theader('location:../../admin.php?mod='.\$mod); } EOS; } file_put_contents($dirpath . "/proses.php", $dumpingproses21, FILE_APPEND | LOCK_EX); } $dumpingproseslast = <<<EOS } ?> EOS; file_put_contents($dirpath . "/proses.php", $dumpingproseslast, FILE_APPEND | LOCK_EX); echo "<li class='list-group-item'>- WRITE CODE INTO `proses.php`</li>"; // Registration new component to component list $regcomponent = "po-" . $compo_name; $tablereg = new PoTable('component'); $currentReg = $tablereg->findByAnd(component, $regcomponent, table_name, $compo_table); $currentReg = $currentReg->current(); if ($currentReg == "0") { $tablereg->save(array('component' => $regcomponent, 'table_name' => $compo_table, 'date' => $tgl_sekarang)); } // Finish all step echo "<li class='list-group-item'>- SUCCESSFULLY GENERATE NEW COMPONENT</li>"; ?> </ul> </div> <div class="panel-footer"> <a class="btn btn-sm btn-primary" href="../../admin.php?mod=<?php echo $compo_name; ?> ">Go To <?php
<p style="width:100%; height:250px;"> </p> <?php } break; case "album": ?> <div class="block full"> <div class="block-title"> <h2>Album Management</h2> <div class="block-options pull-right"> <a href="admin.php?mod=video" class="btn btn-sm btn-default" title="Add New"><i class="fa fa-reply"></i> Back To Video</a> </div> </div> <div class="table-responsive"> <?php $tablealbum = new PoTable('valbum'); $albums = $tablealbum->findAll(id_album, DESC); echo "<table cellpadding='0' cellspacing='0' border='0' class='dTableAjax2 table table-vcenter table-condensed table-bordered' id='dynamic'>\n\t\t\t\t\t\t<thead><tr>\n\t\t\t\t\t\t\t<th>No</th>\n\t\t\t\t\t\t\t<th>Id Data</th>\n\t\t\t\t\t\t\t<th>Title</th>\n\t\t\t\t\t\t\t<th>Active</th>\n\t\t\t\t\t\t\t<th>Action</th>\n\t\t\t\t\t\t</tr></thead><tbody>"; $no = 1; foreach ($albums as $album) { echo "<tr class='gradeA' id='dela{$album->id_album}'>\n\t\t\t\t\t\t\t<td style='width:80px;'>{$no}</td>\n\t\t\t\t\t\t\t<td style='width:100px;'>{$album->id_album}</td>\n\t\t\t\t\t\t\t<td>{$album->title}</td>\n\t\t\t\t\t\t\t<td style='width:80px;' class='text-center'><span id='activespan{$album->id_album}'>{$album->active}</span></td>\n\t\t\t\t\t\t\t<td style='width:200px;'><div class='text-center'><div class='btn-group btn-group-xs'>\n\t\t\t\t\t\t\t\t\t<a class='btn btn-xs btn-default tblactive' id='{$album->id_album}' data-toggle='tooltip' title='Active'><i class='fa fa-eye'></i></a>\n\t\t\t\t\t\t\t\t\t<a href='#tbledit{$album->id_album}' class='btn btn-xs btn-default' id='{$album->id_album}' data-toggle='modal' title='Edit'><i class='fa fa-pencil'></i></a>\n\t\t\t\t\t\t\t\t\t<a class='btn btn-xs btn-danger alertdela' id='{$album->id_album}' data-toggle='tooltip' title='Delete'><i class='fa fa-times'></i></a>\n\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>"; ?> <div id="tbledit<?php echo $album->id_album; ?> " class="modal fade" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <form id="form-validation" method="post" action="<?php echo $aksi; ?>
$ipstat = $_SERVER['REMOTE_ADDR']; $tanggalstat = date("Ymd"); $waktustat = time(); $tablestat = new PoTable('traffic'); $totalstat = $tablestat->numRowByAnd(ip, $ipstat, tanggal, $tanggalstat); if ($totalstat == 0) { $tablestatp = new PoTable('traffic'); $tablestatp->save(array('ip' => $ipstat, 'tanggal' => $tanggalstat, 'hits' => 1, 'online' => $waktustat)); } else { $tablestatp2 = new PoTable('traffic'); $statpro = $tablestatp2->findByAnd(ip, $ipstat, tanggal, $tanggalstat); $statpro = $statpro->current(); $hitspro = $statpro->hits; $hitspro = $hitspro + 1; $datastat = array('hits' => $hitspro, 'online' => $waktustat); $tablestat2 = new PoTable('traffic'); $tablestat2->updateByAnd('ip', $ipstat, 'tanggal', $tanggalstat, $datastat); } /*--- hapus baris ini dan ubah urlnya jika web Anda sudah di hosting function facebook_shares($url){ $fql = "SELECT url, normalized_url, share_count, like_count, comment_count, "; $fql .= "total_count, commentsbox_count, comments_fbid, click_count FROM "; $fql .= "link_stat WHERE url = '".$url."'"; $apifql="https://api.facebook.com/method/fql.query?format=json&query=".urlencode($fql); $fb_json=file_get_contents($apifql); return json_decode($fb_json); } $fb = facebook_shares('http://www.popojicms.org'); $sharefb = $fb[0]->share_count;
$seotitle = $val->validasi($_POST['seotitle'], 'xss'); $name = $val->validasi($_POST['name'], 'xss'); $email = $val->validasi($_POST['email'], 'xss'); $url = $val->validasi($_POST['url'], 'xss'); $comment = $val->validasi($_POST['comment'], 'xss'); $split_text = explode(" ", $comment); $split_count = count($split_text); $max = 57; for ($i = 0; $i <= $split_count; $i++) { if (strlen($split_text[$i]) >= $max) { for ($j = 0; $j <= strlen($split_text[$i]); $j++) { $char[$j] = substr($split_text[$i], $j, 1); if ($j % $max == 0 && $j != 0) { $v_text .= $char[$j] . ' '; } else { $v_text .= $char[$j]; } } } else { $v_text .= " " . $split_text[$i] . " "; } } $table = new PoTable('comment'); $table->save(array('id_post' => $id, 'name' => $name, 'email' => $email, 'url' => $url, 'comment' => $v_text, 'date' => $tgl_sekarang, 'time' => $jam_sekarang)); unset($_POST); echo "<script language='javascript'>\r\n window.alert('Terima kasih atas komentar yang Anda berikan \n Komentar Anda akan diperiksa terlebih dahulu sebelum di tampilkan')\r\n window.location.href='detailpost/{$seotitle}';\r\n </script>"; } /* }else{ header("location:404.php"); }*/ //}
$ibu = $_POST['ibu']; $p_ibu = $_POST['p_ibu']; $pass = $_POST['pass']; $table->save(array('id_siswa' => '', 'nis' => $nis, 'nama' => $nama_siswa, 'jk' => $jk, 'alamat' => $alamat, 'idk' => $idk, 'tlp' => $tlp, 'ayah' => $ayah, 'p_ayah' => $p_ayah, 'ibu' => $ibu, 'p_ibu' => $p_ibu, 'pass' => $pass)); header('location:../../admin.php?mod=' . $mod); } else { header('location:../../404.php'); } } elseif ($mod == 'siswa' and $act == 'update') { if ($currentRoleAccess->modify_access == "Y") { $id = $val->validasi($_POST['id_siswa'], 'sql'); $nis = $_POST['nis']; $nama_siswa = $_POST['nama']; $jk = $_POST['jk']; $alamat = $_POST['alamat']; $idk = $_POST['idk']; $tlp = $_POST['tlp']; $ayah = $_POST['ayah']; $p_ayah = $_POST['p_ayah']; $ibu = $_POST['ibu']; $p_ibu = $_POST['p_ibu']; $pass = $_POST['pass']; $data = array('id_siswa' => $id, 'nis' => $nis, 'nama' => $nama_siswa, 'jk' => $jk, 'alamat' => $alamat, 'idk' => $idk, 'tlp' => $tlp, 'ayah' => $ayah, 'p_ayah' => $p_ayah, 'ibu' => $ibu, 'p_ibu' => $p_ibu, 'pass' => $pass); $table = new PoTable('siswa'); $table->updateBy('id_siswa', $id, $data); header('location:../../admin.php?mod=' . $mod); } else { header('location:../../404.php'); } } }
<link type="text/css" rel="stylesheet" href="css/plugins.css" /> <link type="text/css" rel="stylesheet" href="css/main.css" /> <link type="text/css" rel="stylesheet" href="css/themes.css" /> <script type="text/javascript" src="js/vendor/modernizr-2.7.1-respond-1.4.2.min.js"></script> </head> <body> <div class="top"><div class="colors"></div></div> <div id="login-container" class="animation-fadeIn"> <div class="login-title text-center"> <h1><strong>Activation Account Panel</strong></h1> </div> <div class="block remove-margin"> <?php include_once '../po-library/po-database.php'; $table = new PoTable('users'); $currentUser = $table->findByAnd(username, $activeuser, id_session, $key); $currentUser = $currentUser->current(); if ($currentUser > 0) { if ($currentUser->blokir == "Y") { $data = array('blokir' => 'N'); $table->updateByAnd('username', $activeuser, 'id_session', $key, $data); ?> <div class="alert alert-success alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <h4><i class="fa fa-check-circle"></i> Success</h4> Your account have been <a href="javascript:void(0)" class="alert-link">activated</a> ! </div> <?php } else { ?>
$changefreq = $val->validasi($_POST['changefreq'], 'xss'); $priority = $val->validasi($_POST['priority'], 'xss'); $tableset = new PoTable('setting'); $currentSet = $tableset->findBy(id_setting, '1'); $currentSet = $currentSet->current(); $website_url = $currentSet->website_url; $sitemap = new Sitemap($website_url); $sitemap->setPath('../../../'); $sitemap->addItem('/', $priority, $changefreq, $tgl_sekarang); $tablepages = new PoTable('pages'); $datapagess = $tablepages->findByDESC('active', 'Y', 'id_pages'); foreach ($datapagess as $datapages) { $sitemap->addItem('/pages/' . $datapages->seotitle, $priority, $changefreq, $datapages->date); } $tablecat = new PoTable('category'); $datacats = $tablecat->findByDESC('active', 'Y', 'id_category'); foreach ($datacats as $datacat) { $sitemap->addItem('/category/' . $datacat->seotitle, $priority, $changefreq, $tgl_sekarang); } $tablepost = new PoTable('post'); $dataposts = $tablepost->findByDESC('active', 'Y', 'id_post'); foreach ($dataposts as $dataposts) { $sitemap->addItem('/detailpost/' . $dataposts->seotitle, $priority, $changefreq, $dataposts->date); } $sitemap->createSitemapIndex($website_url, 'Today'); header('location:../../../sitemap.xml'); } else { header('location:../../404.php'); } } }
<?php if ($mod == "") { header('location:404.php'); } else { error_reporting(0); if (isset($_GET['id'])) { $idmetakey = $val->validasi($_GET['id'], 'xss'); $metekey = new PoTable(); $currentMetaKey = $metekey->findManualQuery($tabel = "post", $field = "", $condition = "WHERE seotitle='" . $idmetakey . "'"); $currentMetaKey = $currentMetaKey->current(); if ($currentMetaKey) { echo $currentMetaKey->tag; } else { echo $meta_keyword; } } else { echo $meta_keyword; } }
$p = new Paging(); $batas = 5; $posisi = $p->cariPosisi($batas); $tablesearch = new PoTable('post'); $searchposts = $tablesearch->findSearchPost($kata, "{$posisi},{$batas}"); $numsearchposts = $tablesearch->numRowSearchPost($kata); if ($numsearchposts > 0) { ?> <?php foreach ($searchposts as $searchpost) { $tabledscom = new PoTable('comment'); $totaldscom = $tabledscom->numRowByAnd(id_post, $searchpost->id_post, active, 'Y'); $tablecatds = new PoTable('category'); $currentCatds = $tablecatds->findBy(id_category, $searchpost->id_category); $currentCatds = $currentCatds->current(); $tableuser = new PoTable('users'); $currentUser = $tableuser->findBy(id_user, $searchpost->editor); $currentUser = $currentUser->current(); ?> <div class="item col-sm-4"> <div class="portfolio-item"> <a href="<?php echo "{$website_url}/detailpost/{$searchpost->seotitle}"; ?> " class="image"> <img src="<?php echo $website_url; ?> /po-content/po-upload/medium/medium_<?php echo $searchpost->picture; ?>
<?php session_start(); if (empty($_SESSION['namauser']) and empty($_SESSION['passuser'])) { header('location:../../../404.php'); } else { include_once '../../../../po-library/po-database.php'; include_once '../../../../po-library/po-function.php'; $val = new Povalidasi(); $fb_type = $_POST['fbtype']; if ($fb_type == "user") { $oauth_id = $_POST['fbid']; $oauth_user = $_POST['fbusername']; $oauth_token1 = $_POST['fbtoken']; $oauth_fbtype = $_POST['fbtype']; $data = array('oauth_id' => $oauth_id, 'oauth_user' => $oauth_user, 'oauth_token1' => $oauth_token1, 'oauth_fbtype' => $oauth_fbtype); $table = new PoTable('oauth'); $table->updateBy('id_oauth', '1', $data); } else { $oauth_id = $_POST['fbpagesid']; $oauth_user = $_POST['fbpagesname']; $oauth_token1 = $_POST['fbtoken']; $oauth_fbtype = $_POST['fbtype']; $data = array('oauth_id' => $oauth_id, 'oauth_user' => $oauth_user, 'oauth_token1' => $oauth_token1, 'oauth_fbtype' => $oauth_fbtype); $table = new PoTable('oauth'); $table->updateBy('id_oauth', '1', $data); } header('location:../../../admin.php?mod=setting'); }
echo $langcategory5; ?> </th> <th><?php echo $langcategory6; ?> </th> </tr></thead> <tbody></tbody> <tfoot> <tr> <td style="width:80px;" class="text-center"><input type="checkbox" id="titleCheck" data-toggle="tooltip" title="<?php echo $langaction5; ?> " /></td> <td colspan="5"> <button class="btn btn-sm btn-danger" type="button" data-toggle="modal" data-target="#alertalldel"><i class="fa fa-trash-o"></i> Delete Selected Item</button> </td> </tr> </tfoot> </table> </form> </div> </div> <div id="alertdel" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <form method="post" action="<?php echo $aksi; ?> " autocomplete="off">
$id = $val->validasi($item['deldata'], 'xss'); $tabledel->deleteBy('id_tag', $id); } header('location:../../admin.php?mod=' . $mod); } else { header('location:../../404.php'); } } else { header('location:../../404.php'); } } elseif ($mod == 'tag' and $act == 'input') { if ($currentRoleAccess->write_access == "Y") { if (empty($_POST['tag'])) { header('location:../../404.php'); } else { $post = $val->validasi($_POST['tag'], 'xss'); $pecah = explode(",", $post); $total = count($pecah); $table = new PoTable('tag'); for ($i = 0; $i < $total; $i++) { $tag_title = $pecah[$i]; $tag_seo = seo_title($tag_title); $table->save(array('tag_title' => $tag_title, 'tag_seo' => $tag_seo)); } header('location:../../admin.php?mod=' . $mod); } } else { header('location:../../404.php'); } } }
<select name="jk" class="form-control" required> <option value="<?php echo $currentSiswa->jk; ?> "><?php echo $currentSiswa->jk; ?> </option> <option>-- Pilih --</option> <option value="L">Laki-laki</option> <option value="P">Perempuan</option> </select> <label>Kelas <span class="text-danger">*</span></label> <?php $tablecats = new PoTable("kelas"); $cats = $tablecats->findAll(id_kelas, ASC); $numcats = $tablecats->numRow(); if ($numcats > 0) { echo "<select class='select-chosen' name='idk' style='width:280px;'>\n <option value='{$currentSiswa->kelas}'>{$currentSiswa->idk}</option>"; foreach ($cats as $cat) { echo "<option value='{$cat->id_kelas}'>{$cat->kelas}</option>"; } echo "</select>"; } ?> <label>No. Telp <span class="text-danger">*</span></label> <input class="form-control" type="text" id="tlp" name="tlp" value="<?php echo $currentSiswa->tlp; ?> " required>
if (strlen($pass) >= 6) { if ($pass == $repass) { $currentUser = $table->findBy(username, $username); $currentUser = $currentUser->current(); if ($currentUser > 0) { header('location:register.php?errormsg=6'); } else { $tableuser = new PoTable('users'); $users = $tableuser->findAll('id_user', 'ASC'); foreach ($users as $user) { $user = $user->id_user; } $id_user = $user + 1; $table = new PoTable('users'); $table->save(array('id_user' => $id_user, 'username' => $username, 'password' => $passmd5, 'nama_lengkap' => 'Your Name', 'email' => $email, 'no_telp' => '08xxxxxxxxxx', 'bio' => "No matter how exciting or significant a person''s life is, a poorly written biography will make it seem like a snore. On the other hand, a good biographer can draw insight from an ordinary life-because they recognize that even the most exciting life is an ordinary life! After all, a biography isn''t supposed to be a collection of facts assembled in chronological order; it''s the biographer''s interpretation of how that life was different and important.", 'userpicture' => '', 'level' => '3', 'tgl_daftar' => $tgl_sekarang, 'blokir' => 'Y', 'id_session' => $passmd5)); $tableset = new PoTable('setting'); $currentSet = $tableset->findBy(id_setting, '1'); $currentSet = $currentSet->current(); $website_name = $currentSet->website_name; $website_url = $currentSet->website_url; $website_email = $currentSet->website_email; $to = "{$username} <{$email}>"; $from = "{$website_name} <{$website_email}>"; $subject = "Email Account Activation For {$website_name}"; $message = "<html>\n\t\t\t\t\t\t\t<body>\n\t\t\t\t\t\t\t\tIndonesia :<br />\n\t\t\t\t\t\t\t\t-----------<br />\n\t\t\t\t\t\t\t\tHi {$username},<br />\n\t\t\t\t\t\t\t\tJika anda tidak pernah mendaftarkan akun di {$website_name}, silahkan untuk menghiraukan email ini.<br />\n\t\t\t\t\t\t\t\tTetapi jika benar Anda telah membuat akun di {$website_name}, maka silahkan untuk mengklik tautan (link) di bawah ini untuk mengaktifkan akun Anda :<br /><br />\n\t\t\t\t\t\t\t\t<a href=\"{$website_url}/po-admin/activation.php?activeuser={$username}&key={$passmd5}\" title=\"Account Activation\">{$website_url}/po-admin/activation.php?activeuser={$username}&key={$passmd5}</a><br /><br />\n\t\t\t\t\t\t\t\tSetelah link tersebut diklik maka akun Anda telah diaktifkan dan telah terverifikasi, silahkan login dengan data berikut :<br /><br />\n\t\t\t\t\t\t\t\t--------------------<br />\n\t\t\t\t\t\t\t\tUsername : {$username}<br />\n\t\t\t\t\t\t\t\tPassword : {$pass}<br />\n\t\t\t\t\t\t\t\t--------------------<br /><br />\n\t\t\t\t\t\t\t\tSalam hangat,<br />\n\t\t\t\t\t\t\t\t{$website_name}.<br /><br /><br />\n\t\t\t\t\t\t\t\tEnglish :<br />\n\t\t\t\t\t\t\t\t-----------<br />\n\t\t\t\t\t\t\t\tHi {$username},<br />\n\t\t\t\t\t\t\t\tIf you have never registered account in {$website_name}, please to ignore this email.<br />\n\t\t\t\t\t\t\t\tBut if you really are registered account in {$website_name}, please to click on a link below to activated yout account :<br /><br />\n\t\t\t\t\t\t\t\t<a href=\"{$website_url}/po-admin/activation.php?activeuser={$username}&key={$passmd5}\" title=\"Account Activation\">{$website_url}/po-admin/activation.php?activeuser={$username}&key={$passmd5}</a><br /><br />\n\t\t\t\t\t\t\t\tThen automatically after you click a link above, your account have registered and verificated, please login with data :<br /><br />\n\t\t\t\t\t\t\t\t--------------------<br />\n\t\t\t\t\t\t\t\tUsername : {$username}<br />\n\t\t\t\t\t\t\t\tPassword : {$pass}<br />\n\t\t\t\t\t\t\t\t--------------------<br /><br />\n\t\t\t\t\t\t\t\tWarm regards,<br />\n\t\t\t\t\t\t\t\t{$website_name}.\n\t\t\t\t\t\t\t</body>\n\t\t\t\t\t\t</html>"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $headers .= "From: " . $from . "\r\n"; mail($to, $subject, $message, $headers); header('location:200.php'); }
} ?> </ul> <!-- **recent-gallery - Ends** --> <div class="dt-sc-margin10"></div> <!-- **bx-pager - Starts** --> <div id="bx-pager"> <?php $p = new Paging(); $nov = 1; $batas = 6; $posisi = $p->cariPosisi($batas); $tablevid = new PoTable('video'); $videos = $tablevid->findAllLimitBy(id_video, id_album, $idalb, DESC, "{$posisi},{$batas}"); foreach ($videos as $video) { $idalb = $video->id_album; $tablecalb = new PoTable('valbum'); $currentCalb = $tablecalb->findBy(id_album, $idalb); $currentCalb = $currentCalb->current(); if ($currentCalb->active == 'Y') { ?> <a href="javascript:void(0);" data-slide-index="<?php echo $nov; ?> "><img src="<?php echo $website_url; ?> /po-content/po-thumbs/<?php echo $video->picture; ?> " alt="<?php echo $video->title;
echo $tag->tag_title; ?> " title=""><?php echo $tag->tag_title; ?> </a></li> <?php } ?> </ul> </div> <div class="col-sm-5 recent-posts wow fadeInDown animated" data-wow-delay="1s" data-wow-offset="40"> <div class="f-title">recent posts</div> <ul class="list-unstyled"> <?php $tablepopfoot = new PoTable('post'); $popfoots = $tablepopfoot->findAllLimitBy(hits, active, 'Y', DESC, '3'); foreach ($popfoots as $popfoot) { ?> <li> <a href="<?php echo "{$website_url}/detailpost/{$popfoot->seotitle}"; ?> "> <div class="row"> <div class="col-sm-4"><img class="img-thumbnail pull-left" src="<?php echo $website_url; ?> /po-content/po-upload/<?php echo $popfoot->picture; ?> " width="70" height="70" alt="<?php
<link type="text/css" rel="stylesheet" href="css/plugins.css" /> <link type="text/css" rel="stylesheet" href="css/main.css" /> <link type="text/css" rel="stylesheet" href="css/themes.css" /> <script type="text/javascript" src="js/vendor/modernizr-2.7.1-respond-1.4.2.min.js"></script> </head> <body> <div class="top"><div class="colors"></div></div> <div id="login-container" class="animation-fadeIn"> <div class="login-title text-center"> <h1><strong>Recover Panel</strong></h1> </div> <div class="block remove-margin"> <?php include_once '../po-library/po-database.php'; $table = new PoTable('users'); $currentUser = $table->findByAnd(username, $forgetuser, forget_key, $forgetkey); $currentUser = $currentUser->current(); if ($currentUser > 0) { if ($currentUser->blokir == "N") { $newcode = "123456"; $pass = md5($newcode); $data = array('password' => $pass, 'forget_key' => ''); $table->updateByAnd('username', $forgetuser, 'forget_key', $forgetkey, $data); ?> <div class="alert alert-success alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <h4><i class="fa fa-check-circle"></i> Success</h4> Your password has been <a href="javascript:void(0)" class="alert-link">successfully reset</a> ! </div> <?php
$aResultFilterTotal = mysqli_fetch_array($rResultFilterTotal); $iFilteredTotal = $aResultFilterTotal[0]; $sQuery = "\r\n SELECT COUNT(" . $sIndexColumn . ")\r\n FROM {$sTable}\r\n "; $rResultTotal = mysqli_query($gaSql['link'], $sQuery) or die(mysqli__connect_error()); $aResultTotal = mysqli_fetch_array($rResultTotal); $iTotal = $aResultTotal[0]; $output = array("sEcho" => intval($_GET['sEcho']), "iTotalRecords" => $iTotal, "iTotalDisplayRecords" => $iFilteredTotal, "aaData" => array()); $no = 1; while ($aRow = mysqli_fetch_array($rResult)) { $row = array(); $tableroleaccess = new PoTable('user_role'); $currentRoleAccess = $tableroleaccess->findByAnd(id_level, $_SESSION['leveluser'], module, 'comment'); $currentRoleAccess = $currentRoleAccess->current(); for ($i = 1; $i < count($aColumns); $i++) { $valid = $aRow['id_post']; $tablepost = new PoTable('post'); $currentPost = $tablepost->findBy(id_post, $valid); $currentPost = $currentPost->current(); $urlcar = addhttp($aRow['url']); if ($aRow['status'] == "Y") { $readdata = "<a class='btn btn-xs btn-success'><i class='fa fa-circle-o'></i></a>"; } else { $readdata = "<a class='btn btn-xs btn-success readdata' id='{$aRow['id_comment']}'><i class='fa fa-circle' id='read{$aRow['id_comment']}'></i></a>"; } if ($currentRoleAccess->delete_access == "Y") { $tbldelete = "<a class='btn btn-xs btn-danger alertdel' id='{$aRow['id_comment']}'><i class='fa fa-times'></i></a>"; } $checkdata = "<div class='text-center'><input type='checkbox' id='titleCheckdel' /><input type='hidden' class='deldata' name='item[{$no}][deldata]' value='{$aRow['id_comment']}' disabled></div>"; $row[] = $checkdata; $row[] = $aRow['id_comment']; $row[] = "<a href='../detailpost/{$currentPost->seotitle}' target='_blank'>{$currentPost->title}</a>";
<?php include_once 'po-database.php'; $tabletime = new PoTable('setting'); $currentTime = $tabletime->findBy(id_setting, '1'); $currentTime = $currentTime->current(); $timezone_set = $currentTime->timezone; date_default_timezone_set('' . $timezone_set . '');
</div> <p> </p> </div> <div class="col-md-6"> <div class="portfolio-info"> <h3><a href="<?php echo $website_url; ?> /category/sukses">Sukses</a></h3> <div class="clearfix hidden-xs""><br /></div> </div> <div class="row"> <div class="col-sm-12"> <div class="row"> <?php $tablecond = new PoTable('post'); $conds = $tablecond->findAllLimitByAnd(id_post, id_category, active, '4', 'Y', DESC, '2'); foreach ($conds as $cond) { ?> <div class="col-sm-6"> <!-- Portfolio Item in Widget --> <div class="portfolio-item"> <a href="<?php echo "{$website_url}/detailpost/{$cond->seotitle}"; ?> " class="image"> <img src="<?php echo $website_url; ?> /po-content/po-upload/medium/medium_<?php echo $cond->picture;
$table->updateBy('id_gallery', $id, $data); header('location:../../admin.php?mod=' . $mod); } } else { header('location:../../404.php'); } } elseif ($mod == 'gallery' and $act == 'editalbum') { if ($currentRoleAccess->modify_access == "Y") { $id = $val->validasi($_POST['id'], 'sql'); $title = $val->validasi($_POST['title'], 'xss'); $seotitle = seo_title($title); $data = array('title' => $title, 'seotitle' => $seotitle); $table = new PoTable('album'); $table->updateBy('id_album', $id, $data); header('location:../../admin.php?mod=' . $mod . '&act=album'); } else { header('location:../../404.php'); } } elseif ($mod == 'gallery' and $act == 'activealbum') { if ($currentRoleAccess->modify_access == "Y") { $id = $val->validasi($_POST['id'], 'sql'); $active = $val->validasi($_POST['active'], 'xss'); $data = array('active' => $active); $table = new PoTable('album'); $table->updateBy('id_album', $id, $data); echo "{$active}"; } else { echo "404 Not Found Access"; } } }
header('location:../../404.php'); } } elseif ($mod == 'user' and $act == 'edituserlevel') { if ($currentRoleAccess->modify_access == "Y") { $id = $val->validasi($_POST['id'], 'sql'); $title = $val->validasi($_POST['title'], 'xss'); $data = array('level' => $title); $table = new PoTable('user_level'); $table->updateBy('id_level', $id, $data); header('location:../../admin.php?mod=' . $mod . '&act=userlevel'); } else { header('location:../../404.php'); } } elseif ($mod == 'user' and $act == 'edituserrole') { if ($currentRoleAccess->modify_access == "Y") { $id = $val->validasi($_POST['id'], 'sql'); $title = $val->validasi($_POST['title'], 'xss'); $level = $val->validasi($_POST['level'], 'xss'); $read_access = $val->validasi($_POST['read_access'], 'xss'); $write_access = $val->validasi($_POST['write_access'], 'xss'); $modify_access = $val->validasi($_POST['modify_access'], 'xss'); $delete_access = $val->validasi($_POST['delete_access'], 'xss'); $data = array('id_level' => $level, 'module' => $title, 'read_access' => $read_access, 'write_access' => $write_access, 'modify_access' => $modify_access, 'delete_access' => $delete_access); $table = new PoTable('user_role'); $table->updateBy('id_role', $id, $data); header('location:../../admin.php?mod=' . $mod . '&act=userrole'); } else { header('location:../../404.php'); } } }
<?php switch ($_GET[act]) { default: ?> <div class="block full"> <div class="block-title"><h2><?php echo $langcomponent1; ?> </h2></div> <div class="table-responsive"> <?php $tablecomponent = new PoTable('component'); $components = $tablecomponent->findAll(id_component, DESC); echo "<table cellpadding='0' cellspacing='0' border='0' class='table table-vcenter table-condensed table-bordered' id='table-datatable'>\r\n\t\t\t\t<thead><tr>\r\n\t\t\t\t\t<th>Id Data</th>\r\n\t\t\t\t\t<th>{$langcomponent3}</th>\r\n\t\t\t\t\t<th>{$langcomponent4}</th>\r\n\t\t\t\t\t<th>{$langcomponent5}</th>\r\n\t\t\t\t\t<th>{$langcomponent6}</th>\r\n\t\t\t\t</tr></thead><tbody>"; $no = 1; $tableroleaccess = new PoTable('user_role'); $currentRoleAccess = $tableroleaccess->findByAnd(id_level, $_SESSION['leveluser'], module, 'component'); $currentRoleAccess = $currentRoleAccess->current(); foreach ($components as $component) { $pecahurl = explode("-", $component->component); $url = $pecahurl[1]; if ($currentRoleAccess->delete_access == "Y") { $tbldelete = "<a class='btn btn-xs btn-danger alertdel' id='{$component->id_component}' data-toggle='tooltip' title='{$langaction2}'><i class='fa fa-times'></i></a>"; } echo "<tr>\r\n\t\t\t\t\t\t<td>{$component->id_component}</td>\r\n\t\t\t\t\t\t<td>{$component->component}</td>\r\n\t\t\t\t\t\t<td>{$component->date}</td>\r\n\t\t\t\t\t\t<td>{$component->table_name}</td>\r\n\t\t\t\t\t\t<td class='text-center'>\r\n\t\t\t\t\t\t\t<div class='btn-group btn-group-xs'>\r\n\t\t\t\t\t\t\t\t<a href='admin.php?mod={$url}' class='btn btn-xs btn-default' data-toggle='tooltip' title='{$langaction3}'><i class='fa fa-pencil-square-o'></i></a>\r\n\t\t\t\t\t\t\t\t<a href='?mod=component&act=importtable&id={$component->id_component}' class='btn btn-xs btn-default' data-toggle='tooltip' title='{$langaction4}'><i class='fa fa-sign-out'></i></a>\r\n\t\t\t\t\t\t\t\t{$tbldelete}\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>"; $no++; } echo "</tbody></table>"; ?> </div> </div>
if ($mod == "") { header('location:404.php'); } else { error_reporting(0); if (isset($_GET['id'])) { $idmetadesc = $val->validasi($_GET['id'], 'xss'); $metadesc = new PoTable(); $currentMetaDesc = $metadesc->findManualQuery($tabel = "post", $field = "", $condition = "WHERE seotitle='" . $idmetadesc . "'"); $currentMetaDesc = $currentMetaDesc->current(); if ($currentMetaDesc) { echo cuthighlight('post', $currentMetaDesc->content, '200'); } else { $idmetadesc = ucfirst($mod); echo $idmetadesc . " - " . $meta_description; } } elseif (isset($_GET['idp'])) { $idmetadesc = $val->validasi($_GET['idp'], 'xss'); $metadesc = new PoTable(); $currentMetaDesc = $metadesc->findManualQuery($tabel = "pages", $field = "", $condition = "WHERE seotitle='" . $idmetadesc . "'"); $currentMetaDesc = $currentMetaDesc->current(); if ($currentMetaDesc) { echo cuthighlight('post', $currentMetaDesc->content, '200'); } else { $idmetadesc = ucfirst($mod); echo $idmetadesc . " - " . $meta_description; } } else { $idmetadesc = ucfirst($mod); echo $idmetadesc . " - " . $meta_description; } }