function getDBGeneral() { include APPPATH . 'config/database.php'; if (isCloudServer()) { return $db['servidorDedicadoGeneral']['database']; } else { return $db['pcLocalGeneral']['database']; } }
public function delete() { if (!isCloudServer()) { if (@is_file($this->logPath)) { if (@unlink($this->logPath)) { echo 'PHP Error Log deleted'; } else { echo 'There has been an error trying to delete the PHP Error log ' . $this->logPath; } } else { echo 'The log cannot be found in the specified route ' . $this->logPath . '.'; } } exit; }