Example #1
0
<?php

/*
# ----------------------------------------------------------------------
# RECIPES: CONTROL
# ----------------------------------------------------------------------
*/
/* --- CONSTRUCT CLASS --- */
$_get = new BLOG_GET();
$_update = new BLOG_UPDATE();
$req_category = '';
$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'])) {
Example #2
0
<?php
/*
# ----------------------------------------------------------------------
# BLOG: CONTROL
# ----------------------------------------------------------------------
*/


/* --- CONSTRUCT CLASS --- */
$_get    = new BLOG_GET();
$_update = new BLOG_UPDATE();

$category_id   = filter_var($_REQUEST['cat_id'], FILTER_SANITIZE_NUMBER_INT);

$dataNews      = $_get->get_news_category_by_id($category_id);
$allNews       = $_get->get_all_news_by_cat($category_id);
$allImg = $_get->get_news_image($allNews->news_id);
?>
Example #3
0
<?php
/*
# ----------------------------------------------------------------------
# BLOG: CONTROL
# ----------------------------------------------------------------------
*/


/* --- CONSTRUCT CLASS --- */
$_get    = new BLOG_GET();
$_update = new BLOG_UPDATE();


$req_category = '';
$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);
Example #4
0
<?php

/*
# ----------------------------------------------------------------------
# BLOG: CONTROL
# ----------------------------------------------------------------------
*/
/* --- CONSTRUCT CLASS --- */
$_get = new BLOG_GET();
$_update = new BLOG_UPDATE();
$prepared_news_title = $_get->get_all_news_title();
$array_news_title = array();
foreach ($prepared_news_title as $news_title) {
    array_push($array_news_title, $news_title->news_title);
}
$news_date = filter_var($_REQUEST['news_date'], FILTER_SANITIZE_STRING);
$news_alias = filter_var($_REQUEST['news_alias'], FILTER_SANITIZE_STRING);
//$secure_news_title = $_get->secure_blog_detail($anti_link, $get_post_news_title, $array_news_title);
$blog_detail = $_get->get_blog_detail($news_alias);
$category = $_get->get_all_news_category();
$archive = $_get->get_all_archive();
$totalPrev = $_get->countPrevBlog($blog_detail->news_date);
$totalNext = $_get->countNextBlog($blog_detail->news_date);
if ($totalPrev->rows > 0) {
    $prevBlog = $_get->prevBlog($blog_detail->news_date);
} else {
    $prevBlog = 'none';
}
if ($totalNext->rows > 0) {
    $nextBlog = $_get->nextBlog($blog_detail->news_date);
} else {
Example #5
0
<?php

/*
# ----------------------------------------------------------------------
# HOME: CONTROL
# ----------------------------------------------------------------------
*/
/* --- CONSTRUCT CLASS --- */
$_get = new BLOG_GET();
$_update = new BLOG_UPDATE();
/* --- SLIDESHOW --- */
$count_slideshow = $_get->count_slideshow();
$get_slideshow = $_get->get_slideshows();
$countService = $_get->countService();
if ($countService->rows > 0) {
    $getService = $_get->getService();
}
Example #6
0
<?php
/*
# ----------------------------------------------------------------------
# BLOG: CONTROL
# ----------------------------------------------------------------------
*/


/* --- CONSTRUCT CLASS --- */
$_get    = new BLOG_GET();
$_update = new BLOG_UPDATE();


$prepared_news_title = $_get->get_all_news_title();
$array_news_title    = array();

foreach($prepared_news_title as $news_title){
   array_push($array_news_title, $news_title->news_title);
}


$news_alias = filter_var($_REQUEST['news_alias'], FILTER_SANITIZE_STRING);
$news_id    = filter_var($_REQUEST['news_id'], FILTER_SANITIZE_NUMBER_INT);

//$secure_news_title = $_get->secure_blog_detail($anti_link, $get_post_news_title, $array_news_title);
$blog_detail   = $_get->get_blog_detail($news_id);
$category      = $_get->get_all_news_category();
$archive       = $_get->get_all_archive();
$allImg        = $_get->get_all_news_image($news_id);
$mainCategory  = $_get->get_main_category($blog_detail->news_category);
Example #7
0
<?php

/*
# ----------------------------------------------------------------------
# HOME: CONTROL
# ----------------------------------------------------------------------
*/
/* --- CONSTRUCT CLASS --- */
$_get = new BLOG_GET();
$_update = new BLOG_UPDATE();
/* --- SLIDESHOW --- */
$count_slideshow = $_get->count_slideshow();
$get_slideshow = $_get->get_slideshows();
$get_our_philosophy = $_get->get_home_slideshows();
$data_our_philosophy = '';
if (!empty($get_our_philosophy[0]->textarea)) {
    $data_our_philosophy = json_decode($get_our_philosophy[0]->textarea);
}
// var_dump($data_our_philosophy);
// die;
$countService = $_get->countService();
if ($countService->rows > 0) {
    $getService = $_get->getService();
}
Example #8
0
<?php

/*
# ----------------------------------------------------------------------
# BLOG: CONTROL
# ----------------------------------------------------------------------
*/
/* --- CONSTRUCT CLASS --- */
$_get = new BLOG_GET();
$_update = new BLOG_UPDATE();
$prepared_news_title = $_get->get_all_news_title();
$array_news_title = array();
foreach ($prepared_news_title as $news_title) {
    array_push($array_news_title, $news_title->news_title);
}
$news_date = filter_var($_REQUEST['news_date'], FILTER_SANITIZE_STRING);
$news_alias = filter_var($_REQUEST['news_alias'], FILTER_SANITIZE_STRING);
//$secure_news_title = $_get->secure_blog_detail($anti_link, $get_post_news_title, $array_news_title);
$blog_detail = $_get->get_blog_detail($news_alias);
$category = $_get->get_all_news_category();
$archive = $_get->get_all_archive();
Example #9
0
<?php

/*
# ----------------------------------------------------------------------
# SERVICE: CONTROL
# ----------------------------------------------------------------------
*/
$_get = new BLOG_GET();
$_update = new BLOG_UPDATE();
if (isset($_REQUEST['param'])) {
    $categoryAlias = filter_var($_REQUEST['param'], FILTER_SANITIZE_STRING);
    $countCategory = $_get->countCategory($categoryAlias);
    if ($countCategory->rows > 0) {
        $getCategory = $_get->getCategory($categoryAlias);
        $countService = $_get->countService($getCategory->category_id);
        if ($countService->rows > 0) {
            $getService = $_get->getService($getCategory->category_id);
        }
    }
} else {
    $getFullService = $_get->getFullService();
}
/* --- PROMO BANNER --- */
$count_promo = $_get->count_promo_banner();
$get_promo = $_get->get_promo_banner('15');
$footer = $_get->getFooterService('11');