<?php /** * Created by PhpStorm. * User: hoanvo * Date: 12/16/15 * Time: 4:42 PM */ require "libs/config.php"; include "master-pages/header.php"; $id = easy_decrypt($_GET["id"]); $sql = "SELECT * FROM " . TABLE_POSTS . " WHERE `id` = :id"; try { $stmt = $DB->prepare($sql); $stmt->bindValue(":id", db_prepare_input($id)); $stmt->execute(); $rs = $stmt->fetchAll(); } catch (Exception $ex) { echo errorMessage($ex->getMessage()); } ?> <!-- Page Content --> <div class="container logo page-content"> <div class="row"> <!-- Blog Post --> <!-- Title --> <h1><?php echo stripslashes($rs[0]["title"]); ?> </h1> <!-- Author -->
<?php /** * Created by PhpStorm. * User: hoanvo * Date: 9/28/15 * Time: 3:37 PM */ require "../libs/config.php"; $page = easy_decrypt($_GET["id"]); $pageDetails = getPageDetailsByName($page); include "../master-pages/header.php"; ?> <section class="left-content"> <?php echo stripslashes($pageDetails["page_desc"]); ?> </section> <?php include "../master-pages/footer.php";