commit 4f99fc3b2e707124527c6bb34faf0e24d988e772
parent 83e4ae729ced1b612f4afd3874b8b6cb0d368cc1
Author: dankert <devnull@localhost>
Date: Tue, 23 Feb 2010 23:52:35 +0100
build.ini einlesen und Build-Nummer im Titel ausgeben.
Diffstat:
4 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/actionClasses/TitleAction.class.php b/actionClasses/TitleAction.class.php
@@ -30,7 +30,7 @@ class TitleAction extends Action
*/
function show()
{
- $this->setTemplateVar('css_body_class','title');
+ $this->setTemplateVar('buildinfo',OR_TITLE.' '.OR_VERSION.' - build '.config('build','build') );
$db = Session::getDatabase();
$this->setTemplateVar('dbname',$db->conf['comment'].(readonly()?' ('.lang('readonly').')':''));
diff --git a/do.php b/do.php
@@ -106,7 +106,7 @@ if ( !is_array( $conf ) || isset($REQ['reload']) )
$prefs = new Preferences();
$conf = $prefs->load();
$conf['action'] = $prefs->load(OR_ACTIONCLASSES_DIR);
-
+ $conf['build'] = parse_ini_file('build.ini');
// Sprache lesen und zur Konfiguration hinzufuegen
if ( $conf['i18n']['use_http'] )
diff --git a/themes/default/pages/html/title/show.tpl.php b/themes/default/pages/html/title/show.tpl.php
@@ -70,8 +70,7 @@
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
-?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?><?php $a5_class='text';$a5_var='cms_title';$a5_escape=true;$a5_cut='both'; ?><?php
- $a5_title = '';
+?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?><?php $a5_title=$buildinfo;$a5_class='text';$a5_var='cms_title';$a5_escape=true;$a5_cut='both'; ?><?php
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php
$langF = $a5_escape?'langHtml':'lang';
@@ -79,7 +78,7 @@
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
-?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_var,$a5_escape,$a5_cut) ?></td><?php $a4_width='40%';$a4_style='text-align:center;';$a4_class='title'; ?><?php $column_idx++; ?><td
+?></<?php echo $tmp_tag ?>><?php unset($a5_title,$a5_class,$a5_var,$a5_escape,$a5_cut) ?></td><?php $a4_width='40%';$a4_style='text-align:center;';$a4_class='title'; ?><?php $column_idx++; ?><td
width="40%"
style="text-align:center;"
class="title"
diff --git a/themes/default/templates/title/show.tpl.src.php b/themes/default/templates/title/show.tpl.src.php
@@ -7,7 +7,7 @@ page class:title
image icon:database align:left
text title:message:database var:dbname maxlength:25
text raw:_-_
- text var:cms_title
+ text var:cms_title title:var:buildinfo
// Titel anzeigen