- Created `unlogged-layout.php` and `unlogged.php` for the login page layout. - Implemented `main-view.php` for system update management with progress tracking. - Added `user-2fa.php` for two-factor authentication verification. - Developed `user-edit.php` for editing user details and privileges. - Introduced `users-list.php` for displaying and managing user accounts. - Added `.htaccess` configuration for URL rewriting and security settings.
36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?
|
|
if ( $this -> params['label'] )
|
|
{
|
|
$out .= '<div class="form-group">';
|
|
$out .= '<label class="col-lg-3 control-label">' . $this -> params['label'] . ':</label>';
|
|
$out .= '<div class="col-lg-9 pt5">';
|
|
}
|
|
|
|
$out .= '<div class="switch switch-primary round switch-inline">';
|
|
$out .= '<input ';
|
|
|
|
if ( $this -> params['id'] )
|
|
$out .= 'id="' . $this -> params['id'] . '" ';
|
|
else
|
|
$out .= 'id="' . $this -> params['name'] . '" ';
|
|
$out .= 'name="' . $this -> params['name'] . '" type="checkbox"';
|
|
|
|
if ( $this -> params['checked'] )
|
|
$out .= 'checked="checked" ';
|
|
|
|
$out .= '>';
|
|
$out .= '<label for="';
|
|
if ( $this -> params['id'] )
|
|
$out .= $this -> params['id'];
|
|
else
|
|
$out .= $this -> params['name'];
|
|
$out .= '"></label>';
|
|
$out .= '</div>';
|
|
|
|
if ( $this -> params['label'] )
|
|
{
|
|
$out .= '</div>';
|
|
$out .= '</div>';
|
|
}
|
|
|
|
echo $out; |