function __construct() { $this->sysKrn = sysKrn::getInstance(); $this->sysKrn->krn_audit_log(AUDIT_EXTREME, __DIR__, __FILE__, __LINE__, __CLASS__, __METHOD__, __FUNCTION__, "::constructor (" . __CLASS__ . ")"); $this->sysKrn->krn_audit_log(AUDIT_EXTREME, __DIR__, __FILE__, __LINE__, __CLASS__, __METHOD__, __FUNCTION__, " IP: " . $this->getUserHostAddress()); return true; }
function __construct($pBDEngine) { // Inicializamos la identificación de BD $this->setEngine($pBDEngine); $this->TimeQuery = 0; $this->sysBDBackup = sysBDBackup::getInstance(SERVER_HOST, SERVER_USER, SERVER_PASS, SERVER_BD, SERVER_CHARSET, SERVER_PORT); // Lanzamos la instancia // $this->sysKrn::getInstance()->procudure... // or // $this->sysKrn = sysKrn::getInstance(); // $this->sysKrn->procedure... $this->sysKrn = sysKrn::getInstance(); $this->sysCheckTables = array(TABLA_USUARIOS, TABLA_INVITADOS, TABLA_CONFIGURACION, TABLA_URL, TABLA_PGP, TABLA_COUNTRY, TABLA_REGION, TABLA_ADDRESS, TABLA_TIPO_VIA); $this->sysKrnSqlFormatter = sysKrnSqlFormatter::getInstance(); $this->sysKrn->krn_audit_log(AUDIT_EXTREME, __DIR__, __FILE__, __LINE__, __CLASS__, __METHOD__, __FUNCTION__, "::constructor (" . __CLASS__ . ")"); return true; }
function __construct($host, $username, $password, $dbName, $charset = SERVER_CHARSET, $port) { $this->sysKrn = sysKrn::getInstance(); $this->sysKrn->krn_audit_log(AUDIT_EXTREME, __DIR__, __FILE__, __LINE__, __CLASS__, __METHOD__, __FUNCTION__, "::constructor (" . __CLASS__ . ")"); $this->host = $host; $this->username = $username; $this->password = $password; $this->dbName = $dbName; $this->charset = $charset; $this->port = $port; $this->sysKrn->krn_audit_log(AUDIT_EXTREME, __DIR__, __FILE__, __LINE__, __CLASS__, __METHOD__, __FUNCTION__, str_pad(' Start: ', 20, " ", STR_PAD_RIGHT) . date("Y-m-d H:i:s", time())); // Si hay que hacer backup if ($this->krn_check_time_backup_file()) { $this->database_pointer = $this->krn_initializeDatabase(); $this->krn_backupTables(TABLES, OUTPUT_DIR); } $this->sysKrn->krn_audit_log(AUDIT_EXTREME, __DIR__, __FILE__, __LINE__, __CLASS__, __METHOD__, __FUNCTION__, str_pad(' Backup Stop: ', 20, " ", STR_PAD_RIGHT) . date("Y-m-d H:i:s", time())); }
function __construct() { $this->sysKrn = sysKrn::getInstance(); $this->sysCryptAES = new Crypt_AES(); $this->sysCryptRSA = new Crypt_RSA(); $this->sysKrn->krn_audit_log(AUDIT_EXTREME, __DIR__, __FILE__, __LINE__, __CLASS__, __METHOD__, __FUNCTION__, "::constructor (" . __CLASS__ . ")"); return true; }