Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/cceadmin/
Upload File :
Current File : /var/www/cesa.co.za/cceadmin/guideline-view.php

<?php

session_start();
ob_start();

include_once("ewcfg7.php");
include_once("ewmysql7.php");
include_once("phpfn7.php");
include_once("userfn7.php");
include_once($_SERVER['DOCUMENT_ROOT'] . "/php/includes/sqlFunctions.php");

if (!isset($_SESSION[EW_SESSION_STATUS]) || ($_SESSION[EW_SESSION_STATUS] != "login")) {
    header("Location: /cceadmin/login.php");
    die();
}

$sqlfWP = new sqlFunctions(WP_HOST, WPDB_USER, WPDB_PASS, WPDB_DB);
$post_id = intval($_REQUEST['ID']);
$sql = "SELECT p.ID, p.post_title, p.post_content, p.post_status, p.post_type 
        FROM wp_4_posts p 
        WHERE p.ID = $post_id 
        AND p.post_status = 'publish' 
        AND p.post_type = 'post'";
$post = $sqlfWP->getRow($sql);
$baseUrl = '/cceadmin';

include "header.php";
?>
<?php include($_SERVER['DOCUMENT_ROOT'] . "/php/templates/bce/guideline-view.php"); ?>
<?php
include "footer.php";