openrat-cms

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

commit 72fa73bdb8ebb132a25283ad41fa4ae7be1a766b
parent 3d4781475a7a3504d820cea34d5a158b9f448a23
Author: Jan Dankert <devnull@localhost>
Date:   Sat,  2 Dec 2017 02:01:18 +0100

Komponente "password" umgestellt auf eine Klasse. Diese Komponente ist leer.

Diffstat:
themes/default/include/html/password/Password.class.php | 40++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/password/password-begin.inc.php | 2--
2 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/themes/default/include/html/password/Password.class.php b/themes/default/include/html/password/Password.class.php @@ -0,0 +1,39 @@ +<?php + +class PasswordComponent extends Component +{ + + public $name; + + public $default; + + public $class; + + public $size = 40; + + public $maxlength = 256; + + public function begin() + { + echo '<div class="inputholder">'; + + echo '<input type="password"'; + echo ' name="' . $this->htmlvalue($this->name) . '"'; + echo ' id="<?php echo REQUEST_ID ?>_' . $this->htmlvalue($this->name) . '"'; + + echo ' size="' . $this->htmlvalue($this->size) . '"'; + echo ' maxlength="' . $this->htmlvalue($this->maxlength) . '"'; + echo ' class="' . $this->htmlvalue($this->class) . '"'; + + if (isset($this->default)) + echo ' value="' . $this->htmlvalue($this->default) . '"'; + else + echo ' value="<?php echo @$' . $this->varname($this->name) . '?>"'; + + echo '" />'; + + echo '</div>'; + } +} + +?>+ \ No newline at end of file diff --git a/themes/default/include/html/password/password-begin.inc.php b/themes/default/include/html/password/password-begin.inc.php @@ -1 +0,0 @@ -<div class="inputholder"><input type="password" name="<?php echo $attr_name ?>" id="<?php echo REQUEST_ID ?>_<?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 ?>" /></div>- \ No newline at end of file