本文整理汇总了PHP中PoTable类的典型用法代码示例。如果您正苦于以下问题:PHP PoTable类的具体用法?PHP PoTable怎么用?PHP PoTable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PoTable类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: mysql_query
$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);
}
}
开发者ID:rad4n,项目名称:erekutoro,代码行数:31,代码来源:datatable.php
示例2: PoTable
}
?>
</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;
?>
开发者ID:rad4n,项目名称:kelinci,代码行数:31,代码来源:home.php
示例3: elseif
$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') {
开发者ID:arakoswara,项目名称:ABSENSI,代码行数:31,代码来源:menu.php
示例4: PoTable
</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
开发者ID:arakoswara,项目名称:iris-web,代码行数:31,代码来源:detailpost.php
示例5: header
} 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');
}
}
}
开发者ID:rad4n,项目名称:erekutoro,代码行数:31,代码来源:proses.php
示例6: Povalidasi
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');
}
}
开发者ID:nazara13,项目名称:phpindonesia.or.id-profile,代码行数:31,代码来源:twitter.php
示例7: file_put_contents
\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
开发者ID:rad4n,项目名称:kelinci,代码行数:31,代码来源:proses.php
示例8: PoTable
<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;
?>
开发者ID:nazara13,项目名称:phpindonesia.or.id-profile,代码行数:31,代码来源:video.php
示例9: date
$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;
开发者ID:rad4n,项目名称:cfcd,代码行数:30,代码来源:index.php
示例10: explode
$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");
}*/
//}
开发者ID:rad4n,项目名称:erekutoro,代码行数:31,代码来源:po-postcom.php
示例11: header
$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');
}
}
}
开发者ID:arakoswara,项目名称:ABSENSI,代码行数:31,代码来源:proses.php
示例12: PoTable
<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 {
?>
开发者ID:rad4n,项目名称:erekutoro,代码行数:31,代码来源:activation.php
示例13: PoTable
$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');
}
}
}
开发者ID:rad4n,项目名称:erekutoro,代码行数:31,代码来源:proses.php
示例14: header
<?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;
}
}
开发者ID:rad4n,项目名称:erekutoro,代码行数:20,代码来源:meta-key.php
示例15: Paging
$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;
?>
开发者ID:rad4n,项目名称:kelinci,代码行数:31,代码来源:searchresult.php
示例16: session_start
<?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');
}
开发者ID:rad4n,项目名称:kelinci,代码行数:29,代码来源:proses.php
示例17: PoTable
<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>
开发者ID:arakoswara,项目名称:ABSENSI,代码行数:31,代码来源:siswa.php
示例18: header
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 {$webs
|
请发表评论