예제 #1
0
파일: index.php 프로젝트: billtucker/onweb
<?php

/**
 * Created by IntelliJ IDEA.
 * User: Bill
 * Date: 9/8/2015
 * Time: 11:17 AM
 */
include_once $_SERVER["DOCUMENT_ROOT"] . "/onairpro" . "/onweb-config.php";
include_once $utilities . "utility.php";
$pageUrl = urlencode("http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}");
$headerToUse = getHeaderIncludeFileName(urldecode($pageUrl));
$log->debug("Header To Use: " . $headerToUse);
include_once $headerFooter . $headerToUse;
?>

    <br>
    <h2>On-Air Pro Spot Viewer Test</h2>
    <br>
<?php 
include_once $headerFooter . "footer.php";
예제 #2
0
include_once $_SERVER["DOCUMENT_ROOT"] . "/onweb/onweb-config.php";
include_once $utilities . "utility.php";
$pageUrl = urlencode("http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}");
if (isset($_GET['errorMessage'])) {
    $message = urldecode($_GET['errorMessage']);
} else {
    $message = "No specific error message provided for display";
}
if (isset($_GET['messageTitle'])) {
    $messageTitle = urldecode($_GET['messageTitle']);
} else {
    $messageTitle = "System Error";
}
$log->error("Error page called with error message: " . $message . " with title: " . $messageTitle);
//include header file dynamically from the page URL
include_once $headerFooter . getHeaderIncludeFileName(urldecode($pageUrl));
?>

<div class="clearfix">&nbsp;</div>
<div class="container-fluid"><!-- start container div -->
    <!--<p>Base Directory: C:/wamp/www/</p>-->
    <div class="row">
        <div class="co2-md-3 col-xs-3 col-lg-3">&nbsp;</div>
        <div class="col-md-6 col-xs-6 col-lg-6">
            <h2 class="text-center" style="color: red"><?php 
echo $messageTitle;
?>
</h2>
            <p>The system encountered the following error while processing your request:</p>
        </div>
        <div class="col-md-3 col-xs-3 col-lg-3">&nbsp;</div>