started rhein port

This commit is contained in:
Ulf Gebhardt 2014-05-18 18:13:01 +02:00
parent 60dbb883b1
commit d096041557
516 changed files with 258 additions and 156 deletions

13
api.php Normal file
View File

@ -0,0 +1,13 @@
<?php
require_once '../system/autoload.inc.php'; //SYSTEM Classes
require_once 'rhein/autoload.inc.php'; //Project Classes
require_once 'config.php';
SYSTEM\system::start($rhein_config);
\SYSTEM\system::include_ExceptionShortcut();
\SYSTEM\system::include_ResultShortcut();
\SYSTEM\system::register_errorhandler_dbwriter();
\SYSTEM\system::register_errorhandler_jsonoutput();
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_rhein',array_merge($_POST,$_GET));
new \SYSTEM\LOG\COUNTER("API was called sucessfully.");

18
config.php Normal file
View File

@ -0,0 +1,18 @@
<?php
$rhein_config = array( array(config_ids::SYS_CONFIG_ERRORREPORTING, E_ALL | E_STRICT),
array(config_ids::SYS_CONFIG_PATH_BASEURL, 'http://www.mojotrollz.eu/web/rhein/'),
array(config_ids::SYS_CONFIG_PATH_BASEPATH, '/home/web/webdir/rhein/'),
array(config_ids::SYS_CONFIG_DB_TYPE, SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_TYPE_MYS),
array(config_ids::SYS_CONFIG_DB_HOST, '127.0.0.1'),
array(config_ids::SYS_CONFIG_DB_PORT, ''),
array(config_ids::SYS_CONFIG_DB_USER, 'mojotrolls_mysql'),
array(config_ids::SYS_CONFIG_DB_PASSWORD, 'dajsabeaisvd345'),
array(config_ids::SYS_CONFIG_DB_DBNAME, 'host_rhein'),
array(config_ids::SYS_SAI_CONFIG_NAVIMG, '/web/system/sai/page/img/logo.png'),//not working, cuz paths are not set yet! \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/default_page/img/logo.png')),
array(config_ids::SYS_SAI_CONFIG_BASEURL, 'http://mojotrollz.eu/web/rhein/sai.php?'),
array(config_ids::SYS_SAI_CONFIG_TITLE, 'Fewo Rhein - Admin Bereich'),
array(config_ids::SYS_SAI_CONFIG_COPYRIGHT, '<a href="http://www.mojotrollz.eu/web/rhein/" target="_blank">danube</a>, &copy; WebCraft Media 2013'),
array(config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL, '../system/'),
array(config_ids::SYS_CONFIG_LANGS, array('deDE', 'enUS')),
array(config_ids::SYS_CONFIG_DEFAULT_LANG, 'deDE'),
array(config_ids::WEBCRAFT_BILLING_TOKEN, 'DANUBEdhasda3afdsjadfa3'));

View File

@ -1,3 +0,0 @@
<?php if (basename ($_SERVER['SCRIPT_NAME']) == basename (__FILE__)) die ("no direct access allowed"); ?>
<font size="1px">&copy; 2008 Ulf Gebhardt - visit <a href="http://www.yeminy.org/" target="_blank">www.yeminy.org</a></font>

View File

@ -1,3 +0,0 @@
<?php if (basename ($_SERVER['SCRIPT_NAME']) == basename (__FILE__)) die ("no direct access allowed"); ?>
<font size="1px"><a href="http://www.yeminy.org">Yeminy-Webdesigne</a></font>

View File

@ -1,20 +0,0 @@
<? if (basename ($_SERVER['SCRIPT_NAME']) == basename (__FILE__)) die ("no direct access allowed"); ?>
<h2>Ferienwohnung Rhein</h2>
<div><img src="images/house_overview.jpg" align="left" style="width:420px" alt="Bild von der Wohnung"/>
</div>
<div style="clear: both">
<br/>
Herzlich Willkommen auf der Website der Ferienwohnung Rhein
<hr/>
<br/>
<b>Ferienwohnung Rhein</b><br/>
R. u. H. Rhein<br/>
Lange Hart 30<br/>
64673 Zwingenberg<br/>
Deutschland<br/>
Telefon: 06251/75466<br/>
Fax: 06251/704470<br/>
EMail: <a href="mailto:info@fewo-rhein-zwbg.de">Info@FeWo-Rhein-Zwbg.de</a> oder per <a href="index.php?page=anfrage">Formular</a><br/>
</div>

View File

@ -1,7 +0,0 @@
<? if (basename ($_SERVER['SCRIPT_NAME']) == basename (__FILE__)) die ("no direct access allowed"); ?>
<meta name="author" content="Ulf Gebhardt" />
<meta name="description" content="Heini's H&uuml;tte" />
<meta name="date" content="2008-2-2" />
<meta name="keywords" lang="de" content="Ferienwohnung, Wanderunterkunft, Pension, Zwingenberg, Bergstra&szlig;e" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

View File

@ -1,5 +0,0 @@
<?php if (basename ($_SERVER['SCRIPT_NAME']) == basename (__FILE__)) die ("no direct access allowed"); ?>
<br/><br/>
<b>Stichworte:</b> <a href="">Ferienwohnung</a>, <a href="">Wanderunterkunft</a>, <a href="">Zwingenberg</a>, <a href="">Bergstra&szlig;e</a>
<br/><br/>

View File

@ -1,3 +0,0 @@
<?php if (basename ($_SERVER['SCRIPT_NAME']) == basename (__FILE__)) die ("no direct access allowed"); ?>
Ferienwohnung Rhein

View File

@ -1,4 +0,0 @@
<?php if (basename ($_SERVER['SCRIPT_NAME']) == basename (__FILE__)) die ("no direct access allowed"); ?>
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0; padding: 0 0 0 1px;" align="right" src="images/valid-css.jpg" alt="Valid CSS!" /></a>
<a href="http://validator.w3.org/check?uri=referer"><img style="border:0;" align="right" src="images/valid-xhtml10.jpg" alt="Valid XHTML 1.0 Transitional!" /></a>

121
index.php
View File

@ -1,114 +1,13 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="index.css" type="text/css" />
<link rel="shortcut icon" href="images/favico.gif" />
<?php include("content/meta.php") ?>
<title><?php include("content/title.php"); ?></title>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAd8T2YK0lOCLFeMqrYc2O1RStBS1POjc6f-MQn8XSSGdYfsrKkhTtJNQeylV0F6_0O9FqT3xkIAJKpA" type="text/javascript"></script>
<script src="js/googlemap.js" type="text/javascript"></script>
</head>
<?php echo getBodyTag($_REQUEST['page']); ?>
<div id="mainbox">
<div id="header">
<div id="header_title"></div>
</div>
<div id="menu">
<?php echo getMenu($_REQUEST['page']) ?>
</div>
<div id="inhalt"><?php getContent($_REQUEST['page']); ?><? include("content/validations.php"); ?></div>
</div>
<div id="footer">
<div id="copyright"><?php include("content/copyright.php"); ?></div>
<div id="info"><?php include("content/info.php"); ?></div>
</div>
<div id="stichworte"><?php include("content/stichworte.php"); ?></div>
</body>
</html>
<?php
require_once '../system/autoload.inc.php'; //SYSTEM Classes
require_once 'rhein/autoload.inc.php'; //Project Classes
function getMenu($i)
{
$result = "<div id='abovemenu'>&emsp; </div>";
require_once 'config.php';
\SYSTEM\system::start($rhein_config);
\SYSTEM\system::include_ExceptionShortcut();
\SYSTEM\system::include_ResultShortcut();
\SYSTEM\system::register_errorhandler_dbwriter();
\SYSTEM\system::register_errorhandler_jsonoutput();
$b = false;
$result2 = "";
if($i == "wohnung")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=wohnung">Wohnung</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=wohnung">Wohnung</a></div>';
if($i == "preise")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=preise">Preise</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=preise">Preise</a></div>';
if($i == "lageanreise")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=lageanreise">Lage &amp; Anreise</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=lageanreise">Lage &amp; Anreise</a></div>';
if($i == "anfrage")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=anfrage">Anfrage</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=anfrage">Anfrage</a></div>';
if($i == "galerie")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=galerie">Galerie</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=galerie">Galerie</a></div>';
if($i == "referenzen")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=referenzen">Referenzen</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=referenzen">Referenzen</a></div>';
if($i == "impressum")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=impressum">Impressum</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=impressum">Impressum</a></div>';
if($i == "agbs")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=agbs">AGBs</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=agbs">AGBs</a></div>';
if($b) $result .= '<div class="menuitem"><a class="menulink" href="index.php">Home</a></div>'; else $result .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php">Home</a></div>';
return $result.$result2;
}
function getContent($i)
{
$contentdir = "content/";
echo "<br/>";
if($i == "impressum") return include($contentdir."impressum.php");
if($i == "galerie") return include($contentdir."galerie.php");
if($i == "agbs") return include($contentdir."agbs.php");
if($i == "wohnung") return include($contentdir."wohnung.php");
if($i == "preise") return include($contentdir."preise.php");
if($i == "lageanreise") return include($contentdir."lageanreise.php");
if($i == "anfrage") return include($contentdir."anfrage.php");
if($i == "referenzen") return include($contentdir."referenzen.php");
return include($contentdir."main.php");
}
function getBodyTag($i)
{
if($i == "lageanreise") echo '<body onload="initialize()" onunload="GUnload()">'; else echo '<body>';
}
?>
echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_rhein', array_merge($_POST,$_GET), 1, false, true)->html();
new \SYSTEM\LOG\COUNTER("Page was called sucessfully.");

9
rhein/autoload.inc.php Normal file
View File

@ -0,0 +1,9 @@
<?php
require_once dirname(__FILE__).'/path/autoload.inc.php';
require_once dirname(__FILE__).'/page/autoload.inc.php';
//require_once dirname(__FILE__).'/dbd/autoload.inc.php';
//require_once dirname(__FILE__).'/docu/autoload.inc.php';
//require_once dirname(__FILE__).'/api/autoload.inc.php';
require_once dirname(__FILE__).'/config/autoload.inc.php';
//require_once dirname(__FILE__).'/sai/autoload.inc.php';
//require_once dirname(__FILE__).'/sai/register_modules.php';

View File

@ -0,0 +1,2 @@
<?php
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'');

View File

@ -0,0 +1,5 @@
<?php
class config_ids extends \SYSTEM\CONFIG\config_ids {
const WEBCRAFT_BILLING_TOKEN = 1000;
}

View File

@ -0,0 +1,3 @@
<?php
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'');
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/default_page','');

View File

@ -0,0 +1,16 @@
<?php
class default_page extends SYSTEM\PAGE\Page {
public static function js(){
return '';
}
public static function css(){
return '<link rel="stylesheet" href="'.\SYSTEM\WEBPATH(new PPAGE(),'default_page/index.css').'" type="text/css" />';
}
public function html() {
$vars = array();
$vars['js'] = self::js();
$vars['css'] = self::css();
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PPAGE(),'default_page/rhein.tpl'), $vars);
}
}

View File

@ -0,0 +1,83 @@
<?php echo getMenu($_REQUEST['page']) ?>
<?php getContent($_REQUEST['page']); ?><? include("content/validations.php"); ?>
<?php
function getMenu($i)
{
$result = "<div id='abovemenu'>&emsp; </div>";
$b = false;
$result2 = "";
if($i == "wohnung")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=wohnung">Wohnung</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=wohnung">Wohnung</a></div>';
if($i == "preise")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=preise">Preise</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=preise">Preise</a></div>';
if($i == "lageanreise")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=lageanreise">Lage &amp; Anreise</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=lageanreise">Lage &amp; Anreise</a></div>';
if($i == "anfrage")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=anfrage">Anfrage</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=anfrage">Anfrage</a></div>';
if($i == "galerie")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=galerie">Galerie</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=galerie">Galerie</a></div>';
if($i == "referenzen")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=referenzen">Referenzen</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=referenzen">Referenzen</a></div>';
if($i == "impressum")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=impressum">Impressum</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=impressum">Impressum</a></div>';
if($i == "agbs")
{
$b = true;
$result2 .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php?page=agbs">AGBs</a></div>';
} else $result2 .= '<div class="menuitem"><a class="menulink" href="index.php?page=agbs">AGBs</a></div>';
if($b) $result .= '<div class="menuitem"><a class="menulink" href="index.php">Home</a></div>'; else $result .= '<div class="aktmenuitem"><a class="aktmenulink" href="index.php">Home</a></div>';
return $result.$result2;
}
function getContent($i)
{
$contentdir = "content/";
echo "<br/>";
if($i == "impressum") return include($contentdir."impressum.php");
if($i == "galerie") return include($contentdir."galerie.php");
if($i == "agbs") return include($contentdir."agbs.php");
if($i == "wohnung") return include($contentdir."wohnung.php");
if($i == "preise") return include($contentdir."preise.php");
if($i == "lageanreise") return include($contentdir."lageanreise.php");
if($i == "anfrage") return include($contentdir."anfrage.php");
if($i == "referenzen") return include($contentdir."referenzen.php");
return include($contentdir."main.php");
}
?>

View File

@ -0,0 +1,62 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="images/favico.gif" /> <!-- TODO ${x}-->
<title>Ferienwohnung Rhein</title> <!-- TODO ${x}-->
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAd8T2YK0lOCLFeMqrYc2O1RStBS1POjc6f-MQn8XSSGdYfsrKkhTtJNQeylV0F6_0O9FqT3xkIAJKpA" type="text/javascript"></script> <!-- TODO ${x}-->
<script src="js/googlemap.js" type="text/javascript"></script>
<meta name="author" content="Ulf Gebhardt" /> <!-- TODO ${x}-->
<meta name="description" content="Heini's H&uuml;tte" /> <!-- TODO ${x}-->
<meta name="date" content="2008-2-2" /> <!-- TODO ${x}-->
<meta name="keywords" lang="de" content="Ferienwohnung, Wanderunterkunft, Pension, Zwingenberg, Bergstra&szlig;e" /> <!-- TODO ${x}-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- TODO ${x}-->
${js}
${css}
</head>
<body>
<div id="mainbox">
<div id="header">
<div id="header_title"></div>
</div>
<div id="menu">
<div id='abovemenu'>&emsp; </div>
</div>
<div id="inhalt">
<h2>Ferienwohnung Rhein</h2>
<div><img src="images/house_overview.jpg" align="left" style="width:420px" alt="Bild von der Wohnung"/>
</div>
<div style="clear: both">
<br/>
Herzlich Willkommen auf der Website der Ferienwohnung Rhein
<hr/>
<br/>
<b>Ferienwohnung Rhein</b><br/>
R. u. H. Rhein<br/>
Lange Hart 30<br/>
64673 Zwingenberg<br/>
Deutschland<br/>
Telefon: 06251/75466<br/>
Fax: 06251/704470<br/>
EMail: <a href="mailto:info@fewo-rhein-zwbg.de">Info@FeWo-Rhein-Zwbg.de</a> oder per <a href="index.php?page=anfrage">Formular</a><br/>
</div>
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0; padding: 0 0 0 1px;" align="right" src="images/valid-css.jpg" alt="Valid CSS!" /></a>
<a href="http://validator.w3.org/check?uri=referer"><img style="border:0;" align="right" src="images/valid-xhtml10.jpg" alt="Valid XHTML 1.0 Transitional!" /></a>
</div>
</div>
<div id="footer">
<div id="copyright">
<font size="1px">&copy; 2008 Ulf Gebhardt - visit <a href="http://www.yeminy.org/" target="_blank">www.yeminy.org</a></font>
</div>
<div id="info">
<font size="1px"><a href="http://www.yeminy.org">Yeminy-Webdesigne</a></font>
</div>
</div>
<div id="stichworte">
<br/><br/>
<b>Stichworte:</b> <a href="">Ferienwohnung</a>, <a href="">Wanderunterkunft</a>, <a href="">Zwingenberg</a>, <a href="">Bergstra&szlig;e</a>
<br/><br/>
</div>
</body>
</html>

View File

@ -0,0 +1,7 @@
<?php
class page_rhein extends \SYSTEM\API\api_default {
public static function default_page(){
return new default_page();
}
}

5
rhein/path/PLIB.php Normal file
View File

@ -0,0 +1,5 @@
<?php
class PLIB extends \SYSTEM\PATH {
public static function getPath(){
return \SYSTEM\C_ROOT.'lib/'.\SYSTEM\C_SUBPATH;}
}

5
rhein/path/PPAGE.php Normal file
View File

@ -0,0 +1,5 @@
<?php
class PPAGE extends \SYSTEM\PATH {
public static function getPath(){
return \SYSTEM\C_ROOT.'rhein/page/'.\SYSTEM\C_SUBPATH;}
}

5
rhein/path/PSAI.php Normal file
View File

@ -0,0 +1,5 @@
<?php
class PSAI extends \SYSTEM\PATH {
public static function getPath(){
return \SYSTEM\C_ROOT.'webcraft/sai/'.\SYSTEM\C_SUBPATH;}
}

View File

@ -0,0 +1,2 @@
<?php
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'');

13
sai.php Normal file
View File

@ -0,0 +1,13 @@
<?php
require_once '../system/autoload.inc.php'; //SYSTEM Classes
require_once 'rhein/autoload.inc.php'; //Project Classes
require_once 'config.php'; //Server config
SYSTEM\system::start($rhein_config); //Start System time + config
SYSTEM\system::include_ExceptionShortcut(); //allow ERROR() instead of \SYSTEM\LOG\ERROR()
SYSTEM\system::include_ResultShortcut(); //allow JsonResult() instead of \SYSTEM\LOG\JsonResult()
SYSTEM\system::register_errorhandler_dbwriter(); //write errors to database (must be first errorhandler to register)
SYSTEM\system::register_errorhandler_jsonoutput(); //print errors as json to caller
$sai = new SYSTEM\SAI\saigui();
echo $sai->html();

Some files were not shown because too many files have changed in this diff Show More