Exemple #1
0
<?php

session_start();
require_once 'backend/model/Frontend.php';
$model = new Fontend();
$mod = isset($_GET['mod']) ? $_GET['mod'] : "";
$arrText = $model->getListText();
function checkCat($uri)
{
    require_once 'backend/model/Frontend.php';
    $model = new Fontend();
    $uri = str_replace("+", "", $uri);
    $p_detail = '#details/[a-z0-9\\-\\+]+\\-\\d+.html#';
    $p_detail_news = '#tin-tuc/[a-z0-9\\-\\+]+\\-\\d+.html#';
    $p_cate_news = '#danh-muc/[a-z0-9\\-\\+]+\\-\\d+.html#';
    $p_detail_event = '#su-kien/[a-z0-9\\-\\+]+\\-\\d+.html#';
    $p_tag = '#/tag/[a-z\\-]+.html#';
    $p_contact = '#/lien-he+.html#';
    $p_order = '#/quan-ly-don-hang+.html#';
    $p_orderdetail = '#/chi-tiet-don-hang+.html#';
    $p_info = '#/cap-nhat-thong-tin+.html#';
    $p_changepass = '******';
    $p_logout = '#/thoat+.html#';
    $p_hot = '#/san-pham-noi-bat+.html#';
    $p_sale = '#/san-pham-giam-gia+.html#';
    $p_cart = '#/gio-hang+.html#';
    $p_register = '#/dang-ky+.html#';
    $p_about = '#/gioi-thieu+.html#';
    $p_thanhtoan = '#/thanh-toan+.html#';
    $p_tintuc = '#/tin-tuc+.html#';
    $p_cate = '#/[a-z0-9\\-]+\\-+p+\\d+c+\\d+.html#';