コード例 #1
0
ファイル: control.php プロジェクト: nickyudha/hillpak-v2
$req_date = '';
$req_record = '';
if (isset($_REQUEST['category'])) {
    $req_category = $_REQUEST['category'];
    $post_category = filter_var($req_category, FILTER_SANITIZE_STRING);
}
if (isset($_REQUEST['date'])) {
    $req_date = $_REQUEST['date'];
    $post_category = filter_var($req_category, FILTER_SANITIZE_STRING);
}
if (isset($_REQUEST['record'])) {
    $req_record = $_REQUEST['record'];
    $post_category = filter_var($req_category, FILTER_SANITIZE_STRING);
}
$prepared_news_category = $_get->secure_category_id();
$prepared_creted_date = $_get->secure_created_date();
$archive = $_get->get_all_archive();
$category = $_get->get_all_news_category('Yes');
$qpp = 12;
if (isset($_REQUEST['record'])) {
    $req_page = filter_var($_REQUEST['record'], FILTER_SANITIZE_NUMBER_INT);
    $record = ($req_page - 1) * $qpp;
} else {
    $req_page = 1;
    $record = 0;
}
if (isset($_REQUEST['cat_news']) && $_REQUEST['cat_news'] != 'all-category') {
    $req_category = filter_var($_REQUEST['cat_news'], FILTER_SANITIZE_STRING);
    $current_category = $req_category;
    $get_category_id = $_get->get_category_by_alias($req_category);
    $req_category = $get_category_id->category_id;