openrat-cms

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

commit 0df17137caad9dbe72416d0fc120bb1e4631c341
parent 0081e10452597e446acf80d1fff50836390410db
Author: dankert <devnull@localhost>
Date:   Thu, 16 Dec 2004 00:14:28 +0100

*** empty log message ***

Diffstat:
serviceClasses/Code.class.php | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
serviceClasses/Dynamic.class.php | 117+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
serviceClasses/Http.class.php | 33+++++++++++++++++++++++++++++++++
themes/default/css/oldenburg.css | 274+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 476 insertions(+), 0 deletions(-)

diff --git a/serviceClasses/Code.class.php b/serviceClasses/Code.class.php @@ -0,0 +1,51 @@ +<?php +// --------------------------------------------------------------------------- +// $Id$ +// --------------------------------------------------------------------------- +// DaCMS Content Management System +// Copyright (C) 2002 Jan Dankert, jandankert@jandankert.de +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// --------------------------------------------------------------------------- +// $Log$ +// Revision 1.1 2004-12-15 23:14:21 dankert +// *** empty log message *** +// +// --------------------------------------------------------------------------- + +/** + * @author $Author$ + * @version $Revision$ + * @package openrat.services + */ +class Code extends Dynamic +{ + var $code = ''; + + function execute() + { + if ( substr($this->code,0,5) != '<?php' ) + $this->code = "<?php\n".$this->code."\n?>"; + + $tmp = tempnam(0,'openratDynamic'); + $f = fopen( $tmp,'a' ); + fwrite( $f,$this->code ); + fclose( $f ); + + require( $tmp ); // Ausfuehren des temporaeren PHP-Codes + + unlink( $tmp ); + } +}+ \ No newline at end of file diff --git a/serviceClasses/Dynamic.class.php b/serviceClasses/Dynamic.class.php @@ -0,0 +1,116 @@ +<?php +// --------------------------------------------------------------------------- +// $Id$ +// --------------------------------------------------------------------------- +// DaCMS Content Management System +// Copyright (C) 2002 Jan Dankert, jandankert@jandankert.de +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// --------------------------------------------------------------------------- +// $Log$ +// Revision 1.1 2004-12-15 23:14:21 dankert +// *** empty log message *** +// +// Revision 1.5 2004/11/10 22:50:10 dankert +// Neue Methode execute() +// +// Revision 1.4 2004/10/06 09:53:39 dankert +// Benutzung auch nicht-statisch +// +// Revision 1.3 2004/05/03 20:21:34 dankert +// neu: setObjectId() +// +// Revision 1.2 2004/05/02 15:04:16 dankert +// Einf?gen package-name (@package) +// +// Revision 1.1 2004/04/24 17:03:29 dankert +// Initiale Version +// +// --------------------------------------------------------------------------- + +/** + * Service-Klasse fuer allgemeine Interface-Methoden. Insbesondere + * in Code-Elementen kann und soll auf diese Methoden zurueckgegriffen + * werden. + * @author $Author$ + * @version $Revision$ + * @package openrat.services + */ +class Dynamic +{ + var $output = ''; + var $objectid = 0; + var $page; + + function db() + { + return db_connection(); + } + + function pageid() + { + echo 'WARNING: pageid() deprecated!<br>'; + global $SESS; + return $SESS['objectid']; + } + + function getObjectId() + { + return $this->objectid; + } + + function &getObject() + { + return Session::getObject(); + } + + function setObjectId( $objectid ) + { + $this->objectid = $objectid; + } + + function getRootObjectId() + { + return Folder::getRootObjectId(); + } + + function folderid() + { + global $SESS; + return $SESS['folderid']; + } + + + function execute() + { + // overwrite this in subclasses + } + + function delOutput() + { + $this->output = ''; + } + + function output( $text ) + { + $this->output .= $text; + } + + + function getOutput() + { + return $this->output; + } +}+ \ No newline at end of file diff --git a/serviceClasses/Http.class.php b/serviceClasses/Http.class.php @@ -0,0 +1,32 @@ +<?php + +/** + * Bereitstellen von HTTP-Methoden + * + * @author $Author$ + * @version $Revision$ + * @package openrat.services + */ +class Http +{ + /** + * Aus dem HTTP-Header werden die vom Browser angeforderten Sprachen + * gelesen. + * + * @return Array + */ + function getLanguages() + { + global $SESS, + $HTTP_SERVER_VARS, + $conf_php, + $conf; + + $languages = $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE']; + $languages = explode(',',$languages); + + return $languages; + } +} + +?>+ \ No newline at end of file diff --git a/themes/default/css/oldenburg.css b/themes/default/css/oldenburg.css @@ -0,0 +1,274 @@ +/* $Id$ */ + +a:link, +a:visited +{ + color:#000080; + font-weight:normal; + text-decoration:none; +} + +a:active, +a:hover +{ + color:#000080; + font-weight:normal; + text-decoration:underline; +} + + +a.el_include:link, +a.el_include:active, +a.el_include:visited, +a.el_include:hover, +a.el_list:link, +a.el_list:active, +a.el_list:visited, +a.el_list:hover +{ + background-color: blue; +} + +a.el_longtext:link, +a.el_longtext:active, +a.el_longtext:visited, +a.el_longtext:hover, +a.el_text:link, +a.el_text:active, +a.el_text:visited, +a.el_text:hover +{ + background-color: lime; +} + + +a.el_infodate:link, +a.el_infodate:active, +a.el_infodate:visited, +a.el_infodate:hover, +a.el_info:link, +a.el_info:active, +a.el_info:visited, +a.el_info:hover +{ + background-color: white; +} + +a.el_date:link, +a.el_date:active, +a.el_date:visited, +a.el_date:hover +{ + background-color: aqua; +} + +a.el_link:link, +a.el_link:active, +a.el_link:visited, +a.el_link:hover +{ + background-color: fuchsia; +} + +a.el_number:link, +a.el_number:active, +a.el_number:visited, +a.el_number:hover +{ + background-color: lime; +} + +a.el_code:link, +a.el_code:active, +a.el_code:visited, +a.el_code:hover +{ + background-color: gray; +} + +a.el_icon:link, +a.el_icon:active, +a.el_icon:visited, +a.el_icon:hover +{ + background-color: yellow; +} + + +a.mainmenu:link, +a.mainmenu:visited +{ + color:#CCCCCC; + font-weight:bold; + text-decoration:none; +} + +a.mainmenu:active, +a.mainmenu:hover +{ + color:#CCCCCC; font-weight:bold; text-decoration:underline; +} + + +/* Allgemeine Body-Angaben */ +body +{ + color:#000000; + font-family:Arial; + font-size:12px; + background-color:white; +} + + +body, textarea +{ + scrollbar-face-color: #eeeeee; + scrollbar-shadow-color: #000000; + scrollbar-highlight-color: #000000; + scrollbar-3dlight-color: #eeeeee; + scrollbar-darkshadow-color: #eeeeee; + scrollbar-track-color: #eeeeee; + scrollbar-arrow-color: #000000; +} + +body.title +{ + margin:0px; + background-color:white; + color:black; +} + + +pre +{ + font-family:Courier; + font-size:13px; +} + +small +{ + color:grey; +} + +/* Tabellen */ +th +{ + background-color:#000080; + color:white; + font-family:Arial; + font-size:13px; + vertical-align:top; + font-weight:bold; + border-bottom:1px solid grey; +} + +td +{ color:#000000; + font-family:Arial; + font-size:13px; + vertical-align:top; +} + +td.diff_equal +{ +} +td.diff_old +{ + background-color:red; +} +td.diff_new +{ + background-color:green; +} +td.diff_notequal +{ + background-color:yellow; +} + +td.help +{ + color:black; + font-family:Verdana,Arial,Helvetica,sans-serif; + font-size:11px; +} + +td.title +{ + font-family:Verdana,Arial,Helvetica,sans-serif; + font-size:11px; +} + +/* Hauptmenue */ +td.menu +{ + background-color:#000080; + vertical-align:middle; +} + +/* Submenue */ +td.submenu +{ + border-bottom:solid 1px black; + background-color:#DFDFDF; +} + +td.f1, +td.f2 +{ + background-color:#CCCCCC; + padding:5px; + border-top:5px solid #DFDFDF; + border-left:3px solid #DFDFDF; + border-bottom:1px solid #DFDFDF; + border-right:3px solid #DFDFDF; +} + +td.act +{ + background-color:#DFDFDF; + padding:15px; + border-top:0px solid grey; +} + +.mainmenu_headline{color:#CCCCCC; font-size:13px; color:black; font-weight:bold; } +.mainmenu_name{color:white; font-weight:bold; font-size:24px; } +.mainmenu_val{color:#CCCCCC; font-weight:normal; } +.mainmenu_title{color:#CCCCCC;vertical-align:middle;font-weight:bold; font-size:24px; } + +p.copyright +{ + font-family:Verdana,Arial,Helvetica,sans-serif; + font-size:11px; + text-align:center; +} + +table.main { border:1px solid black; margin-top:30px; } + +input.submit { color:#FFFFFF; background-color:#808080; } +input.reset { color:#black; background-color:##000080; text-align:right; } +textarea.desc { font-family:Arial;font-size:13px; } +textarea.longtext { font-family:Arial;font-size:13px; width:100%; height:300; } + +input, +select, +textarea +{ + color:#000000; + background-color:#DFDFDF; +} + +input.name +{ + font-weight:bold; +} + +.filename +{ + font-family:Courier;font-size:13px; +} + +input.ansidate +{ + font-family:Courier; + font-size:13px; +}