You are looking at the output from MyClass::ViewSource
<?php
$http_origin = $_SERVER['HTTP_ORIGIN'];
if ($http_origin == "https://zdych.de" || $http_origin == "http://zdych.de" || $http_origin == "http://app.zdych.de"|| $http_origin == "https://app.zdych.de")
{
header("Access-Control-Allow-Origin: $http_origin");
}
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'])) {
header('Access-Control-Allow-Headers: X-Requested-With, content-type, access-control-allow-origin, access-control-allow-methods, access-control-allow-headers');
}
exit;
}
include_once 'epiphany-src/Epi.php';
include_once 'classes/Upload.class.php';
include_once 'classes/Utils.class.php';
include_once 'classes/Car.class.php';
include_once 'classes/Shopping.class.php';
Epi::setPath('base', 'epiphany-src');
Epi::setSetting('exceptions', true);
Epi::init('route','database');
EpiDatabase::employ('mysql','d024986c','localhost','d024986c','!gen!pass_2016');
Utils::SetLogLevel(Utils::LOG_LEVEL_INFO);
getRoute()->get('/', array('Test', 'ViewSource'));
getRoute()->post('/car/refuel/add', array('Car', 'AddRefuelingData'));
getRoute()->get('/car/refuel/list', array('Car', 'ListRefuelingData'));
getRoute()->post('/shopping/bill/add', array('Shopping', 'AddShoppingBillData'));
getRoute()->get('/shopping/bill/list', array('Shopping', 'ListShoppingBillData'));
getRoute()->post('/upload/image', array('Upload', 'UploadImage'));
getRoute()->run();
/*
* ******************************************************************************************
* Define functions and classes which are executed by EpiCode based on the $_['routes'] array
* ******************************************************************************************
*/
class Test
{
static public function ViewSource()
{
echo '<h1>You are looking at the output from MyClass::ViewSource</h1>
<ul>
<li><a href="/simple-site">Call MyClass::MyMethod</a></li>
<li><a href="/simple-site/sample">Call MyClass::MyOtherMethod</a></li>
<li><a href="/simple-site/somepath/source">View the source of this page</a></li>
</ul>';
highlight_file(__FILE__);
}
}
?>