- 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.
28 lines
582 B
PHP
28 lines
582 B
PHP
<?php
|
|
namespace front\factory;
|
|
|
|
class Settings
|
|
{
|
|
public static function settings_details()
|
|
{
|
|
global $mdb;
|
|
|
|
if ( !$settings = \Cache::fetch( 'settings_details' ) )
|
|
{
|
|
$results = $mdb -> select( 'pp_settings', '*' );
|
|
if ( is_array( $results ) ) foreach ( $results as $row )
|
|
$settings[ $row['param'] ] = $row['value'];
|
|
|
|
\Cache::store( 'settings_details', $settings );
|
|
}
|
|
|
|
return $settings;
|
|
}
|
|
|
|
public static function visit_counter()
|
|
{
|
|
global $mdb;
|
|
return $mdb -> get( 'pp_settings', 'value', [ 'param' => 'visits'] );
|
|
}
|
|
}
|