Remove active user Before remove user

This commit is contained in:
Ibnu Maksum
2023-09-07 09:35:00 +07:00
parent 3833afb3be
commit 14ed0236d0
3 changed files with 50 additions and 8 deletions

View File

@ -28,6 +28,12 @@ function _autoloader($class)
}
spl_autoload_register('_autoloader');
if(php_sapi_name() !== 'cli'){
echo "<pre>";
}
require_once '../config.php';
require_once 'orm.php';
require_once 'autoload/PEAR2/Autoload.php';
@ -56,6 +62,14 @@ foreach ($result as $value) {
$config[$value['setting']] = $value['value'];
}
echo "PHP Time\t" . date('Y-m-d H:i:s') . "\n";
$res = ORM::raw_execute('SELECT NOW() AS WAKTU;');
$statement = ORM::get_last_statement();
$rows = array();
while ($row = $statement->fetch(PDO::FETCH_ASSOC)) {
echo "MYSQL Time\t" . $row['WAKTU'] . "\n";
}
$_c = $config;
date_default_timezone_set($config['timezone']);