openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 129c55b1877c53f2c1e0950c403e76324cef334d
parent aa65a80c814d42f6dd580a7e2f8e6eed451a4e55
Author: Jan Dankert <devnull@localhost>
Date:   Sun,  6 Nov 2011 21:28:56 +0100

Datei mit Start-Layout umbenannt.

Diffstat:
index.php | 4++--
themes/default/layout/index.php | 103+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 105 insertions(+), 2 deletions(-)

diff --git a/index.php b/index.php @@ -1 +1 @@ -<?php require('init.php'); require('themes/default/layout/login.php'); ?>- \ No newline at end of file +<?php require('init.php'); require('themes/default/layout/index.php'); ?>+ \ No newline at end of file diff --git a/themes/default/layout/index.php b/themes/default/layout/index.php @@ -0,0 +1,103 @@ +<?php + if (!defined('OR_VERSION')) die('Forbidden'); + if (!headers_sent()) header('Content-Type: text/html; charset=UTF-8') +?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> + <title><?php echo OR_TITLE.' '.OR_VERSION ?></title> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" > +<?php if ( isset($refresh_url) ) { ?> + <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> +<?php } ?> + <meta name="MSSmartTagsPreventParsing" content="true" > + <meta name="robots" content="noindex,nofollow" > +<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" > +<?php + } +?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) + { + ?> + <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo $meta['title'] ?>" ><?php + } ?> + <link rel="stylesheet" type="text/css" href="<?php echo OR_THEMES_EXT_DIR ?>default/css/layout.css" > + <link rel="stylesheet" type="text/css" href="<?php echo OR_THEMES_EXT_DIR ?>default/css/user/default.css" > + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery-1.5.min.js"></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/openrat.js"></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>../editor/editor/ckeditor.js"></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>../editor/editor/adapters/jquery.js"></script> + <!-- + <script src="/~dankert/cms-test/cms09/themes/default/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script> + <script src="/~dankert/cms/themes/default/js/xxxxxxxxxxxjquery-plugin-orSearchBox.js"></script> + <link rel="stylesheet" type="text/css" href="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery-ui/css/pepper-grinder/jquery-ui-1.8.9.custom.css" > + --> +</head> + +<?php +$ping_url = @$viewCache['header']['ping_url' ]; +$ping_timeout = @$viewCache['header']['ping_timeout']; + ?> +<?php if (!empty($ping_url)) { ?> +<script type="text/javascript"> + <!-- + function ping() { + $.getJSON('<?php echo str_replace('&amp;','&',$ping_url) ?>', function(json) {}); + window.setTimeout("ping()", <?php echo $ping_timeout*1000 ?>); + } + + //window.setTimeout("ping()", <?php echo $ping_timeout*1000 ?>); + window.setTimeout("ping()", 5000); + + // --> + </script> +<?php } ?> + + +<body> + +<script type="text/javascript"> +<!-- +// Konstanten +var OR_THEMES_EXT_DIR = '<?php echo OR_THEMES_EXT_DIR ?>'; +var OR_CONTROLLER_FILE = '<?php echo OR_CONTROLLER_FILE ?>'; +var REQ_PARAM_TOKEN = '<?php echo REQ_PARAM_TOKEN ?>'; +var REQ_PARAM_ACTION = '<?php echo REQ_PARAM_ACTION ?>'; +var REQ_PARAM_SUBACTION = '<?php echo REQ_PARAM_SUBACTION ?>'; +var REQ_PARAM_TARGETSUBACTION = '<?php echo REQ_PARAM_TARGETSUBACTION ?>'; +var REQ_PARAM_ID = '<?php echo REQ_PARAM_ID ?>'; +var REQ_PARAM_OBJECT_ID = '<?php echo REQ_PARAM_OBJECT_ID ?>'; +var REQ_PARAM_LANGUAGE_ID = '<?php echo REQ_PARAM_LANGUAGE_ID ?>'; +var REQ_PARAM_MODEL_ID = '<?php echo REQ_PARAM_MODEL_ID ?>'; +var REQ_PARAM_PROJECT_ID = '<?php echo REQ_PARAM_PROJECT_ID ?>'; +var REQ_PARAM_ELEMENT_ID = '<?php echo REQ_PARAM_ELEMENT_ID ?>'; +var REQ_PARAM_TEMPLATE_ID = '<?php echo REQ_PARAM_TEMPLATE_ID ?>'; +var REQ_PARAM_DATABASE_ID = '<?php echo REQ_PARAM_DATABASE_ID ?>'; +var REQ_PARAM_TARGET = '<?php echo REQ_PARAM_TARGET ?>'; +// --> +</script> + + +<?php global $viewCache; /* Debug-Information */ if (@$showDuration||true) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($viewCache,true));echo "\n-->";} ?> + +<div id="header"> +</div> + +<div id="workbench"> +</div> + +<script type="text/javascript"> +<!-- +document.writeln("<div class=\"invisible\">"); +// --> +</script> +<noscript><em>Javascript is required to view this site</em></noscript> +<script type="text/javascript"> +<!-- +document.writeln("</div>"); +// --> +</script> + +</body> +</html>