commit 6956093c4bbd1559ab4f954fb91a0c55452d62f8
parent 4f7b2e4bb318afb4dbfb51646a666787e1e1cc5b
Author: dankert <devnull@localhost>
Date: Sat, 17 Feb 2007 14:05:32 +0100
Benutzername fest eintragen, wenn "force_username" gesetzt.
Diffstat:
1 file changed, 490 insertions(+), 297 deletions(-)
diff --git a/themes/default/pages/html/index/showlogin.tpl.php b/themes/default/pages/html/index/showlogin.tpl.php
@@ -1,9 +1,10 @@
-<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?php header('Content-Type: text/html; charset='.lang('CHARSET'))
+?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<!-- $Id$ -->
<head>
- <title><?php echo $cms_title ?></title>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+ <title><?php echo $attr_title ?></title>
+ <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" />
<meta name="MSSmartTagsPreventParsing" content="true" />
<meta name="robots" content="noindex,nofollow" />
<link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" />
@@ -14,8 +15,7 @@
<body class="<?php echo $attr_class ?>">
-
-<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'index','subaction'=>'login','name'=>'','target'=>'_top','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='index' ?><?php $attr_subaction='login' ?><?php $attr_name='' ?><?php $attr_target='_top' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php
+<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('action'=>'index','subaction'=>'login','name'=>'','target'=>'_top','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='index' ?><?php $attr_subaction='login' ?><?php $attr_name='' ?><?php $attr_target='_top' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php
if (empty($attr_action))
$attr_action = $actionName;
if (empty($attr_subaction))
@@ -153,31 +153,17 @@
elseif ( isset($attr_present) )
{
if ( !isset($$attr_present) )
- $exec = !empty($attr_present);
+ $exec = false;
elseif ( is_array($$attr_present) )
$exec = (count($$attr_present)>0);
elseif ( is_bool($$attr_present) )
- $exec = true;
+ $exec = $$attr_present;
elseif ( is_numeric($$attr_present) )
$exec = $$attr_present>=0;
else
$exec = true;
}
- // Vergleich auf nicht-leer
- elseif ( isset($attr_notempty) )
- {
- if ( !isset($$attr_notempty) )
- $exec = !empty($attr_notempty);
- elseif ( is_array($$attr_notempty) )
- $exec = (count($$attr_notempty)>0);
- elseif ( is_bool($$attr_notempty) )
- $exec = true;
- elseif ( is_numeric($$attr_notempty) )
- $exec = $$attr_notempty>=0;
- else
- $exec = !empty( $$attr_notempty );
- }
else
{
Html::debug( $attr );
@@ -190,6 +176,23 @@
if ( !empty($attr_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
if ( $exec )
{
?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('false'=>$this->mustChangePassword) ?><?php $attr_false=$this->mustChangePassword ?><?php
@@ -238,31 +241,17 @@
elseif ( isset($attr_present) )
{
if ( !isset($$attr_present) )
- $exec = !empty($attr_present);
+ $exec = false;
elseif ( is_array($$attr_present) )
$exec = (count($$attr_present)>0);
elseif ( is_bool($$attr_present) )
- $exec = true;
+ $exec = $$attr_present;
elseif ( is_numeric($$attr_present) )
$exec = $$attr_present>=0;
else
$exec = true;
}
- // Vergleich auf nicht-leer
- elseif ( isset($attr_notempty) )
- {
- if ( !isset($$attr_notempty) )
- $exec = !empty($attr_notempty);
- elseif ( is_array($$attr_notempty) )
- $exec = (count($$attr_notempty)>0);
- elseif ( is_bool($$attr_notempty) )
- $exec = true;
- elseif ( is_numeric($$attr_notempty) )
- $exec = $$attr_notempty>=0;
- else
- $exec = !empty( $$attr_notempty );
- }
else
{
Html::debug( $attr );
@@ -275,6 +264,23 @@
if ( !empty($attr_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
if ( $exec )
{
?><?php unset($attr) ?><?php unset($attr_false) ?><?php $attr = array() ?><?php
@@ -352,31 +358,17 @@
elseif ( isset($attr_present) )
{
if ( !isset($$attr_present) )
- $exec = !empty($attr_present);
+ $exec = false;
elseif ( is_array($$attr_present) )
$exec = (count($$attr_present)>0);
elseif ( is_bool($$attr_present) )
- $exec = true;
+ $exec = $$attr_present;
elseif ( is_numeric($$attr_present) )
$exec = $$attr_present>=0;
else
$exec = true;
}
- // Vergleich auf nicht-leer
- elseif ( isset($attr_notempty) )
- {
- if ( !isset($$attr_notempty) )
- $exec = !empty($attr_notempty);
- elseif ( is_array($$attr_notempty) )
- $exec = (count($$attr_notempty)>0);
- elseif ( is_bool($$attr_notempty) )
- $exec = true;
- elseif ( is_numeric($$attr_notempty) )
- $exec = $$attr_notempty>=0;
- else
- $exec = !empty( $$attr_notempty );
- }
else
{
Html::debug( $attr );
@@ -389,6 +381,23 @@
if ( !empty($attr_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
if ( $exec )
{
?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('title'=>'','target'=>'_top','url'=>$conf['login']['logo']['url'],'class'=>'') ?><?php $attr_title='' ?><?php $attr_target='_top' ?><?php $attr_url=$conf['login']['logo']['url'] ?><?php $attr_class='' ?><?php
@@ -398,35 +407,17 @@
$tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:''));
?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo $attr_title ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php $attr = array('url'=>$conf['login']['logo']['file'],'align'=>'left') ?><?php $attr_url=$conf['login']['logo']['file'] ?><?php $attr_align='left' ?><?php
if (isset($attr_elementtype)) {
-?><img src="<?php echo $image_dir.'icon_el_'.$$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
-} elseif(!empty($attr_config)) {
- global $conf;
- $c = $conf;
- $path = explode('/',$attr_config);
- foreach($path as $part)
- $c = $c[$part];
- $tmp_url = $c;
-?><img src="<?php echo $tmp_url ?>" border="0" align="<?php echo $attr_align ?>"><?php
- }
-elseif (isset($attr_type)) {
-?><img src="<?php echo $image_dir.'icon_'.$$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
+?><img src="<?php echo $image_dir.'icon_el_'.$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
+} elseif (isset($attr_type)) {
+?><img src="<?php echo $image_dir.'icon_'.$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
} elseif (isset($attr_icon)) {
?><img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
} elseif (isset($attr_url)) {
?><img src="<?php echo $attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php
} elseif (isset($attr_file)) {
-?><img src="<?php echo $image_dir.$$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_url) ?><?php unset($attr_align) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php
+?><img src="<?php echo $image_dir.$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_url) ?><?php unset($attr_align) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php
}
- unset($attr_true);
- unset($attr_false);
- unset($attr_notempty);
- unset($attr_empty);
- unset($attr_contains);
- unset($attr_present);
- unset($attr_invert);
- unset($attr_value);
- unset($attr_var);
?><?php unset($attr) ?><?php $attr = array('empty'=>$conf['login']['logo']['url']) ?><?php $attr_empty=$conf['login']['logo']['url'] ?><?php
// Wahr-Vergleich
@@ -473,31 +464,17 @@ elseif (isset($attr_type)) {
elseif ( isset($attr_present) )
{
if ( !isset($$attr_present) )
- $exec = !empty($attr_present);
+ $exec = false;
elseif ( is_array($$attr_present) )
$exec = (count($$attr_present)>0);
elseif ( is_bool($$attr_present) )
- $exec = true;
+ $exec = $$attr_present;
elseif ( is_numeric($$attr_present) )
$exec = $$attr_present>=0;
else
$exec = true;
}
- // Vergleich auf nicht-leer
- elseif ( isset($attr_notempty) )
- {
- if ( !isset($$attr_notempty) )
- $exec = !empty($attr_notempty);
- elseif ( is_array($$attr_notempty) )
- $exec = (count($$attr_notempty)>0);
- elseif ( is_bool($$attr_notempty) )
- $exec = true;
- elseif ( is_numeric($$attr_notempty) )
- $exec = $$attr_notempty>=0;
- else
- $exec = !empty( $$attr_notempty );
- }
else
{
Html::debug( $attr );
@@ -510,63 +487,44 @@ elseif (isset($attr_type)) {
if ( !empty($attr_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
if ( $exec )
{
?><?php unset($attr) ?><?php unset($attr_empty) ?><?php $attr = array('url'=>$conf['login']['logo']['file'],'align'=>'left') ?><?php $attr_url=$conf['login']['logo']['file'] ?><?php $attr_align='left' ?><?php
if (isset($attr_elementtype)) {
-?><img src="<?php echo $image_dir.'icon_el_'.$$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
-} elseif(!empty($attr_config)) {
- global $conf;
- $c = $conf;
- $path = explode('/',$attr_config);
- foreach($path as $part)
- $c = $c[$part];
- $tmp_url = $c;
-?><img src="<?php echo $tmp_url ?>" border="0" align="<?php echo $attr_align ?>"><?php
- }
-elseif (isset($attr_type)) {
-?><img src="<?php echo $image_dir.'icon_'.$$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
+?><img src="<?php echo $image_dir.'icon_el_'.$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
+} elseif (isset($attr_type)) {
+?><img src="<?php echo $image_dir.'icon_'.$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
} elseif (isset($attr_icon)) {
?><img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
} elseif (isset($attr_url)) {
?><img src="<?php echo $attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php
} elseif (isset($attr_file)) {
-?><img src="<?php echo $image_dir.$$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_url) ?><?php unset($attr_align) ?><?php $attr = array() ?><?php
+?><img src="<?php echo $image_dir.$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_url) ?><?php unset($attr_align) ?><?php $attr = array() ?><?php
}
- unset($attr_true);
- unset($attr_false);
- unset($attr_notempty);
- unset($attr_empty);
- unset($attr_contains);
- unset($attr_present);
- unset($attr_invert);
- unset($attr_value);
- unset($attr_var);
?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
}
- unset($attr_true);
- unset($attr_false);
- unset($attr_notempty);
- unset($attr_empty);
- unset($attr_contains);
- unset($attr_present);
- unset($attr_invert);
- unset($attr_value);
- unset($attr_var);
?><?php unset($attr) ?><?php $attr = array() ?><?php
}
- unset($attr_true);
- unset($attr_false);
- unset($attr_notempty);
- unset($attr_empty);
- unset($attr_contains);
- unset($attr_present);
- unset($attr_invert);
- unset($attr_value);
- unset($attr_var);
?><?php unset($attr) ?><?php $attr = array('present'=>$conf['login']['motd']) ?><?php $attr_present=$conf['login']['motd'] ?><?php
// Wahr-Vergleich
@@ -613,31 +571,17 @@ elseif (isset($attr_type)) {
elseif ( isset($attr_present) )
{
if ( !isset($$attr_present) )
- $exec = !empty($attr_present);
+ $exec = false;
elseif ( is_array($$attr_present) )
$exec = (count($$attr_present)>0);
elseif ( is_bool($$attr_present) )
- $exec = true;
+ $exec = $$attr_present;
elseif ( is_numeric($$attr_present) )
$exec = $$attr_present>=0;
else
$exec = true;
}
- // Vergleich auf nicht-leer
- elseif ( isset($attr_notempty) )
- {
- if ( !isset($$attr_notempty) )
- $exec = !empty($attr_notempty);
- elseif ( is_array($$attr_notempty) )
- $exec = (count($$attr_notempty)>0);
- elseif ( is_bool($$attr_notempty) )
- $exec = true;
- elseif ( is_numeric($$attr_notempty) )
- $exec = $$attr_notempty>=0;
- else
- $exec = !empty( $$attr_notempty );
- }
else
{
Html::debug( $attr );
@@ -650,6 +594,23 @@ elseif (isset($attr_type)) {
if ( !empty($attr_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
if ( $exec )
{
?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array() ?><?php
@@ -701,7 +662,10 @@ elseif (isset($attr_type)) {
$tmp_text = lang($tmpArray[$attr_text]);
}
elseif (!empty($attr_text))
- $tmp_text = lang($$attr_text);
+ if ( isset($$attr_text))
+ $tmp_text = lang($$attr_text);
+ else
+ $tmp_text = lang($attr_text);
elseif (!empty($attr_textvar))
$tmp_text = lang($$attr_textvar);
elseif (!empty($attr_key))
@@ -723,15 +687,6 @@ elseif (isset($attr_type)) {
?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
}
- unset($attr_true);
- unset($attr_false);
- unset($attr_notempty);
- unset($attr_empty);
- unset($attr_contains);
- unset($attr_present);
- unset($attr_invert);
- unset($attr_value);
- unset($attr_var);
?><?php unset($attr) ?><?php $attr = array('true'=>$conf['login']['nologin']) ?><?php $attr_true=$conf['login']['nologin'] ?><?php
// Wahr-Vergleich
@@ -778,31 +733,17 @@ elseif (isset($attr_type)) {
elseif ( isset($attr_present) )
{
if ( !isset($$attr_present) )
- $exec = !empty($attr_present);
+ $exec = false;
elseif ( is_array($$attr_present) )
$exec = (count($$attr_present)>0);
elseif ( is_bool($$attr_present) )
- $exec = true;
+ $exec = $$attr_present;
elseif ( is_numeric($$attr_present) )
$exec = $$attr_present>=0;
else
$exec = true;
}
- // Vergleich auf nicht-leer
- elseif ( isset($attr_notempty) )
- {
- if ( !isset($$attr_notempty) )
- $exec = !empty($attr_notempty);
- elseif ( is_array($$attr_notempty) )
- $exec = (count($$attr_notempty)>0);
- elseif ( is_bool($$attr_notempty) )
- $exec = true;
- elseif ( is_numeric($$attr_notempty) )
- $exec = $$attr_notempty>=0;
- else
- $exec = !empty( $$attr_notempty );
- }
else
{
Html::debug( $attr );
@@ -815,6 +756,23 @@ elseif (isset($attr_type)) {
if ( !empty($attr_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
if ( $exec )
{
?><?php unset($attr) ?><?php unset($attr_true) ?><?php $attr = array() ?><?php
@@ -866,7 +824,10 @@ elseif (isset($attr_type)) {
$tmp_text = lang($tmpArray[$attr_text]);
}
elseif (!empty($attr_text))
- $tmp_text = lang($$attr_text);
+ if ( isset($$attr_text))
+ $tmp_text = lang($$attr_text);
+ else
+ $tmp_text = lang($attr_text);
elseif (!empty($attr_textvar))
$tmp_text = lang($$attr_textvar);
elseif (!empty($attr_key))
@@ -888,15 +849,6 @@ elseif (isset($attr_type)) {
?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_key) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
}
- unset($attr_true);
- unset($attr_false);
- unset($attr_notempty);
- unset($attr_empty);
- unset($attr_contains);
- unset($attr_present);
- unset($attr_invert);
- unset($attr_value);
- unset($attr_var);
?><?php unset($attr) ?><?php $attr = array('true'=>$conf['security']['readonly']) ?><?php $attr_true=$conf['security']['readonly'] ?><?php
// Wahr-Vergleich
@@ -943,31 +895,17 @@ elseif (isset($attr_type)) {
elseif ( isset($attr_present) )
{
if ( !isset($$attr_present) )
- $exec = !empty($attr_present);
+ $exec = false;
elseif ( is_array($$attr_present) )
$exec = (count($$attr_present)>0);
elseif ( is_bool($$attr_present) )
- $exec = true;
+ $exec = $$attr_present;
elseif ( is_numeric($$attr_present) )
$exec = $$attr_present>=0;
else
$exec = true;
}
- // Vergleich auf nicht-leer
- elseif ( isset($attr_notempty) )
- {
- if ( !isset($$attr_notempty) )
- $exec = !empty($attr_notempty);
- elseif ( is_array($$attr_notempty) )
- $exec = (count($$attr_notempty)>0);
- elseif ( is_bool($$attr_notempty) )
- $exec = true;
- elseif ( is_numeric($$attr_notempty) )
- $exec = $$attr_notempty>=0;
- else
- $exec = !empty( $$attr_notempty );
- }
else
{
Html::debug( $attr );
@@ -980,6 +918,23 @@ elseif (isset($attr_type)) {
if ( !empty($attr_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
if ( $exec )
{
?><?php unset($attr) ?><?php unset($attr_true) ?><?php $attr = array() ?><?php
@@ -1031,7 +986,10 @@ elseif (isset($attr_type)) {
$tmp_text = lang($tmpArray[$attr_text]);
}
elseif (!empty($attr_text))
- $tmp_text = lang($$attr_text);
+ if ( isset($$attr_text))
+ $tmp_text = lang($$attr_text);
+ else
+ $tmp_text = lang($attr_text);
elseif (!empty($attr_textvar))
$tmp_text = lang($$attr_textvar);
elseif (!empty($attr_key))
@@ -1053,15 +1011,6 @@ elseif (isset($attr_type)) {
?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_key) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
}
- unset($attr_true);
- unset($attr_false);
- unset($attr_notempty);
- unset($attr_empty);
- unset($attr_contains);
- unset($attr_present);
- unset($attr_invert);
- unset($attr_value);
- unset($attr_var);
?><?php unset($attr) ?><?php $attr = array('true'=>$conf['security']['nopublish']) ?><?php $attr_true=$conf['security']['nopublish'] ?><?php
// Wahr-Vergleich
@@ -1108,31 +1057,17 @@ elseif (isset($attr_type)) {
elseif ( isset($attr_present) )
{
if ( !isset($$attr_present) )
- $exec = !empty($attr_present);
+ $exec = false;
elseif ( is_array($$attr_present) )
$exec = (count($$attr_present)>0);
elseif ( is_bool($$attr_present) )
- $exec = true;
+ $exec = $$attr_present;
elseif ( is_numeric($$attr_present) )
$exec = $$attr_present>=0;
else
$exec = true;
}
- // Vergleich auf nicht-leer
- elseif ( isset($attr_notempty) )
- {
- if ( !isset($$attr_notempty) )
- $exec = !empty($attr_notempty);
- elseif ( is_array($$attr_notempty) )
- $exec = (count($$attr_notempty)>0);
- elseif ( is_bool($$attr_notempty) )
- $exec = true;
- elseif ( is_numeric($$attr_notempty) )
- $exec = $$attr_notempty>=0;
- else
- $exec = !empty( $$attr_notempty );
- }
else
{
Html::debug( $attr );
@@ -1145,6 +1080,23 @@ elseif (isset($attr_type)) {
if ( !empty($attr_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
if ( $exec )
{
?><?php unset($attr) ?><?php unset($attr_true) ?><?php $attr = array() ?><?php
@@ -1196,7 +1148,10 @@ elseif (isset($attr_type)) {
$tmp_text = lang($tmpArray[$attr_text]);
}
elseif (!empty($attr_text))
- $tmp_text = lang($$attr_text);
+ if ( isset($$attr_text))
+ $tmp_text = lang($$attr_text);
+ else
+ $tmp_text = lang($attr_text);
elseif (!empty($attr_textvar))
$tmp_text = lang($$attr_textvar);
elseif (!empty($attr_key))
@@ -1218,15 +1173,6 @@ elseif (isset($attr_type)) {
?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_key) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
}
- unset($attr_true);
- unset($attr_false);
- unset($attr_notempty);
- unset($attr_empty);
- unset($attr_contains);
- unset($attr_present);
- unset($attr_invert);
- unset($attr_value);
- unset($attr_var);
?><?php unset($attr) ?><?php $attr = array('false'=>$conf['login']['nologin']) ?><?php $attr_false=$conf['login']['nologin'] ?><?php
// Wahr-Vergleich
@@ -1273,31 +1219,17 @@ elseif (isset($attr_type)) {
elseif ( isset($attr_present) )
{
if ( !isset($$attr_present) )
- $exec = !empty($attr_present);
+ $exec = false;
elseif ( is_array($$attr_present) )
$exec = (count($$attr_present)>0);
elseif ( is_bool($$attr_present) )
- $exec = true;
+ $exec = $$attr_present;
elseif ( is_numeric($$attr_present) )
$exec = $$attr_present>=0;
else
$exec = true;
}
- // Vergleich auf nicht-leer
- elseif ( isset($attr_notempty) )
- {
- if ( !isset($$attr_notempty) )
- $exec = !empty($attr_notempty);
- elseif ( is_array($$attr_notempty) )
- $exec = (count($$attr_notempty)>0);
- elseif ( is_bool($$attr_notempty) )
- $exec = true;
- elseif ( is_numeric($$attr_notempty) )
- $exec = $$attr_notempty>=0;
- else
- $exec = !empty( $$attr_notempty );
- }
else
{
Html::debug( $attr );
@@ -1310,6 +1242,23 @@ elseif (isset($attr_type)) {
if ( !empty($attr_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
if ( $exec )
{
?><?php unset($attr) ?><?php unset($attr_false) ?><?php $attr = array() ?><?php
@@ -1390,7 +1339,10 @@ elseif (isset($attr_type)) {
$tmp_text = lang($tmpArray[$attr_text]);
}
elseif (!empty($attr_text))
- $tmp_text = lang($$attr_text);
+ if ( isset($$attr_text))
+ $tmp_text = lang($$attr_text);
+ else
+ $tmp_text = lang($attr_text);
elseif (!empty($attr_textvar))
$tmp_text = lang($$attr_textvar);
elseif (!empty($attr_key))
@@ -1424,7 +1376,145 @@ elseif (isset($attr_type)) {
if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
$attr['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'','default'=>'','type'=>'text','name'=>'login_name','value'=>'','size'=>'25','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='login_name' ?><?php $attr_value='' ?><?php $attr_size='25' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input name="<?php echo $attr_name ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php unset($attr_onchange) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
+?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_class) ?><?php $attr = array('not'=>'1','present'=>'force_username') ?><?php $attr_not='1' ?><?php $attr_present='force_username' ?><?php
+
+ // Wahr-Vergleich
+// Html::debug($attr);
+
+ if ( isset($attr_true) )
+ {
+ if (gettype($attr_true) === '' && gettype($attr_true) === '1')
+ $exec = $$attr_true == true;
+ else
+ $exec = $attr_true == true;
+ }
+
+ // Falsch-Vergleich
+ elseif ( isset($attr_false) )
+ {
+ if (gettype($attr_false) === '' && gettype($attr_false) === '1')
+ $exec = $$attr_false == false;
+ else
+ $exec = $attr_false == false;
+ }
+ // Inhalt-Vergleich mit Wertliste
+ elseif( isset($attr_contains) )
+ $exec = in_array($$attr_var,explode(',',$attr_contains));
+
+ // Inhalt-Vergleich
+ elseif( isset($attr_var) )
+ $exec = $$attr_var == $attr_value;
+
+ // Vergleich auf leer
+ elseif ( isset($attr_empty) )
+ {
+ if ( !isset($$attr_empty) )
+ $exec = empty($attr_empty);
+ elseif ( is_array($$attr_empty) )
+ $exec = (count($$attr_empty)==0);
+ elseif ( is_bool($$attr_empty) )
+ $exec = true;
+ else
+ $exec = empty( $$attr_empty );
+ }
+
+ // Vergleich auf Vorhandensein
+ elseif ( isset($attr_present) )
+ {
+ if ( !isset($$attr_present) )
+ $exec = false;
+ elseif ( is_array($$attr_present) )
+ $exec = (count($$attr_present)>0);
+ elseif ( is_bool($$attr_present) )
+ $exec = $$attr_present;
+ elseif ( is_numeric($$attr_present) )
+ $exec = $$attr_present>=0;
+ else
+ $exec = true;
+ }
+
+ else
+ {
+ Html::debug( $attr );
+ echo("error in IF line ".__LINE__);
+ echo("assume: FALSE");
+ $exec = false;
+ }
+
+ // Ergebnis umdrehen
+ if ( !empty($attr_invert) )
+ $exec = !$exec;
+
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
+ if ( $exec )
+ {
+?><?php unset($attr) ?><?php unset($attr_not) ?><?php unset($attr_present) ?><?php $attr = array('class'=>'','default'=>'','type'=>'text','name'=>'login_name','value'=>'','size'=>'25','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='login_name' ?><?php $attr_value='' ?><?php $attr_size='25' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php unset($attr_onchange) ?><?php $attr = array() ?><?php
+ }
+
+?><?php unset($attr) ?><?php $attr = array() ?><?php
+ if ( !$last_exec )
+ {
+?><?php unset($attr) ?><?php $attr = array('class'=>'','default'=>'','type'=>'hidden','name'=>'login_name','value'=>$force_username,'size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='hidden' ?><?php $attr_name='login_name' ?><?php $attr_value=$force_username ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php unset($attr_onchange) ?><?php $attr = array('class'=>'text','value'=>$force_username) ?><?php $attr_class='text' ?><?php $attr_value=$force_username ?><?php
+ if(empty($attr_title))
+ if (!empty($attr_key))
+ $attr_title = lang($attr_key).'_HELP';
+ else
+ $attr_title = '';
+
+?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php
+ $attr_title = '';
+ if (!empty($attr_array))
+ {
+ //geht nicht:
+ //echo $$attr_array[$attr_var].'%';
+ $tmpArray = $$attr_array;
+ if (!empty($attr_var))
+ $tmp_text = $tmpArray[$attr_var];
+ else
+ $tmp_text = lang($tmpArray[$attr_text]);
+ }
+ elseif (!empty($attr_text))
+ if ( isset($$attr_text))
+ $tmp_text = lang($$attr_text);
+ else
+ $tmp_text = lang($attr_text);
+ elseif (!empty($attr_textvar))
+ $tmp_text = lang($$attr_textvar);
+ elseif (!empty($attr_key))
+ $tmp_text = lang($attr_key);
+ elseif (!empty($attr_var))
+ $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present';
+ elseif (!empty($attr_raw))
+ $tmp_text = str_replace('_',' ',$attr_raw);
+ elseif (!empty($attr_value))
+ $tmp_text = $attr_value;
+ else
+ { Html::debug($attr);echo 'text error';
+ }
+
+ if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );
+
+ echo $tmp_text;
+?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?php $attr = array() ?><?php
+ }
+?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
$row_class_idx++;
if ($row_class_idx > count($row_classes))
$row_class_idx=1;
@@ -1473,7 +1563,10 @@ elseif (isset($attr_type)) {
$tmp_text = lang($tmpArray[$attr_text]);
}
elseif (!empty($attr_text))
- $tmp_text = lang($$attr_text);
+ if ( isset($$attr_text))
+ $tmp_text = lang($$attr_text);
+ else
+ $tmp_text = lang($attr_text);
elseif (!empty($attr_textvar))
$tmp_text = lang($$attr_textvar);
elseif (!empty($attr_key))
@@ -1553,31 +1646,17 @@ elseif (isset($attr_type)) {
elseif ( isset($attr_present) )
{
if ( !isset($$attr_present) )
- $exec = !empty($attr_present);
+ $exec = false;
elseif ( is_array($$attr_present) )
$exec = (count($$attr_present)>0);
elseif ( is_bool($$attr_present) )
- $exec = true;
+ $exec = $$attr_present;
elseif ( is_numeric($$attr_present) )
$exec = $$attr_present>=0;
else
$exec = true;
}
- // Vergleich auf nicht-leer
- elseif ( isset($attr_notempty) )
- {
- if ( !isset($$attr_notempty) )
- $exec = !empty($attr_notempty);
- elseif ( is_array($$attr_notempty) )
- $exec = (count($$attr_notempty)>0);
- elseif ( is_bool($$attr_notempty) )
- $exec = true;
- elseif ( is_numeric($$attr_notempty) )
- $exec = $$attr_notempty>=0;
- else
- $exec = !empty( $$attr_notempty );
- }
else
{
Html::debug( $attr );
@@ -1590,6 +1669,23 @@ elseif (isset($attr_type)) {
if ( !empty($attr_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
if ( $exec )
{
?><?php unset($attr) ?><?php unset($attr_true) ?><?php $attr = array() ?><?php
@@ -1641,7 +1737,10 @@ elseif (isset($attr_type)) {
$tmp_text = lang($tmpArray[$attr_text]);
}
elseif (!empty($attr_text))
- $tmp_text = lang($$attr_text);
+ if ( isset($$attr_text))
+ $tmp_text = lang($$attr_text);
+ else
+ $tmp_text = lang($attr_text);
elseif (!empty($attr_textvar))
$tmp_text = lang($$attr_textvar);
elseif (!empty($attr_key))
@@ -1724,7 +1823,10 @@ elseif (isset($attr_type)) {
$tmp_text = lang($tmpArray[$attr_text]);
}
elseif (!empty($attr_text))
- $tmp_text = lang($$attr_text);
+ if ( isset($$attr_text))
+ $tmp_text = lang($$attr_text);
+ else
+ $tmp_text = lang($attr_text);
elseif (!empty($attr_textvar))
$tmp_text = lang($$attr_textvar);
elseif (!empty($attr_key))
@@ -1761,15 +1863,6 @@ elseif (isset($attr_type)) {
?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'password2','default'=>'','class'=>'','size'=>'25','maxlength'=>'256') ?><?php $attr_name='password2' ?><?php $attr_default='' ?><?php $attr_class='' ?><?php $attr_size='25' ?><?php $attr_maxlength='256' ?><input type="password" name="<?php echo $attr_name ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_default) ?><?php unset($attr_class) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
}
- unset($attr_true);
- unset($attr_false);
- unset($attr_notempty);
- unset($attr_empty);
- unset($attr_contains);
- unset($attr_present);
- unset($attr_invert);
- unset($attr_value);
- unset($attr_var);
?><?php unset($attr) ?><?php $attr = array() ?><?php
$row_class_idx++;
if ($row_class_idx > count($row_classes))
@@ -1819,7 +1912,10 @@ elseif (isset($attr_type)) {
$tmp_text = lang($tmpArray[$attr_text]);
}
elseif (!empty($attr_text))
- $tmp_text = lang($$attr_text);
+ if ( isset($$attr_text))
+ $tmp_text = lang($$attr_text);
+ else
+ $tmp_text = lang($attr_text);
elseif (!empty($attr_textvar))
$tmp_text = lang($$attr_textvar);
elseif (!empty($attr_key))
@@ -1853,19 +1949,19 @@ elseif (isset($attr_type)) {
if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
$attr['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'dbids','name'=>'dbid','default'=>'actdbid','onchange'=>'','class'=>'') ?><?php $attr_list='dbids' ?><?php $attr_name='dbid' ?><?php $attr_default='actdbid' ?><?php $attr_onchange='' ?><?php $attr_class='' ?><select size="1" name="<?php echo $attr_name ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php
+?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'dbids','name'=>'dbid','default'=>'actdbid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='dbids' ?><?php $attr_name='dbid' ?><?php $attr_default='actdbid' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php
if (count($$attr_list)==1) echo ' disabled="disabled"'
?>><?php
foreach( $$attr_list as $box_key=>$box_value )
{
echo '<option class="'.$attr_class.'" value="'.$box_key.'"';
- if (isset($$attr_name)&&$box_key==$$attr_name || isset($$attr_default)&&$box_key == $$attr_default)
+ if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_default)
echo ' selected="selected"';
echo '>'.$box_value.'</option>';
}
?></select><?php
if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" value="'.$box_key.'" />'
-?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?php unset($attr_default) ?><?php unset($attr_onchange) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'screenwidth','default'=>'9999') ?><?php $attr_name='screenwidth' ?><?php $attr_default='9999' ?><input type="hidden" name="<?php echo $attr_name ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_default) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
+?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?php unset($attr_default) ?><?php unset($attr_onchange) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'screenwidth','default'=>'9999') ?><?php $attr_name='screenwidth' ?><?php $attr_default='9999' ?><input type="hidden" name="<?php echo $attr_name ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_default) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
$row_class_idx++;
if ($row_class_idx > count($row_classes))
$row_class_idx=1;
@@ -1910,15 +2006,6 @@ document.forms[0].screenwidth.value=window.innerWidth;
<?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
}
- unset($attr_true);
- unset($attr_false);
- unset($attr_notempty);
- unset($attr_empty);
- unset($attr_contains);
- unset($attr_present);
- unset($attr_invert);
- unset($attr_value);
- unset($attr_var);
?><?php unset($attr) ?><?php $attr = array() ?> </table>
</td>
</tr>
@@ -1960,7 +2047,10 @@ document.forms[0].screenwidth.value=window.innerWidth;
$tmp_text = lang($tmpArray[$attr_text]);
}
elseif (!empty($attr_text))
- $tmp_text = lang($$attr_text);
+ if ( isset($$attr_text))
+ $tmp_text = lang($$attr_text);
+ else
+ $tmp_text = lang($attr_text);
elseif (!empty($attr_textvar))
$tmp_text = lang($$attr_textvar);
elseif (!empty($attr_key))
@@ -1979,14 +2069,117 @@ document.forms[0].screenwidth.value=window.innerWidth;
$tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array('field'=>'login_name') ?><?php $attr_field='login_name' ?>
+?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array('present'=>'force_username') ?><?php $attr_present='force_username' ?><?php
+
+ // Wahr-Vergleich
+// Html::debug($attr);
+
+ if ( isset($attr_true) )
+ {
+ if (gettype($attr_true) === '' && gettype($attr_true) === '1')
+ $exec = $$attr_true == true;
+ else
+ $exec = $attr_true == true;
+ }
+
+ // Falsch-Vergleich
+ elseif ( isset($attr_false) )
+ {
+ if (gettype($attr_false) === '' && gettype($attr_false) === '1')
+ $exec = $$attr_false == false;
+ else
+ $exec = $attr_false == false;
+ }
+ // Inhalt-Vergleich mit Wertliste
+ elseif( isset($attr_contains) )
+ $exec = in_array($$attr_var,explode(',',$attr_contains));
+
+ // Inhalt-Vergleich
+ elseif( isset($attr_var) )
+ $exec = $$attr_var == $attr_value;
+
+ // Vergleich auf leer
+ elseif ( isset($attr_empty) )
+ {
+ if ( !isset($$attr_empty) )
+ $exec = empty($attr_empty);
+ elseif ( is_array($$attr_empty) )
+ $exec = (count($$attr_empty)==0);
+ elseif ( is_bool($$attr_empty) )
+ $exec = true;
+ else
+ $exec = empty( $$attr_empty );
+ }
+
+ // Vergleich auf Vorhandensein
+ elseif ( isset($attr_present) )
+ {
+ if ( !isset($$attr_present) )
+ $exec = false;
+ elseif ( is_array($$attr_present) )
+ $exec = (count($$attr_present)>0);
+ elseif ( is_bool($$attr_present) )
+ $exec = $$attr_present;
+ elseif ( is_numeric($$attr_present) )
+ $exec = $$attr_present>=0;
+ else
+ $exec = true;
+ }
+
+ else
+ {
+ Html::debug( $attr );
+ echo("error in IF line ".__LINE__);
+ echo("assume: FALSE");
+ $exec = false;
+ }
+
+ // Ergebnis umdrehen
+ if ( !empty($attr_invert) )
+ $exec = !$exec;
+
+ // Ergebnis umdrehen
+ if ( !empty($attr_not) )
+ $exec = !$exec;
+
+ unset($attr_true);
+ unset($attr_false);
+ unset($attr_notempty);
+ unset($attr_empty);
+ unset($attr_contains);
+ unset($attr_present);
+ unset($attr_invert);
+ unset($attr_not);
+ unset($attr_value);
+ unset($attr_var);
+
+ $last_exec = $exec;
+
+ if ( $exec )
+ {
+?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('field'=>'login_password') ?><?php $attr_field='login_password' ?>
<script name="JavaScript" type="text/javascript">
<!--
document.forms[0].<?php echo $attr_field ?>.focus();
document.forms[0].<?php echo $attr_field ?>.select();
// -->
</script>
-<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?>
+<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?><?php
+ }
+
+?><?php unset($attr) ?><?php $attr = array() ?><?php
+ if ( !$last_exec )
+ {
+?><?php unset($attr) ?><?php $attr = array('field'=>'login_name') ?><?php $attr_field='login_name' ?>
+<script name="JavaScript" type="text/javascript">
+<!--
+document.forms[0].<?php echo $attr_field ?>.focus();
+document.forms[0].<?php echo $attr_field ?>.select();
+// -->
+</script>
+<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?><?php
+ }
+?><?php unset($attr) ?><?php $attr = array() ?>
<!-- $Id$ -->
<?php if ($showDuration) { ?>