Exemplo n.º 1
0
 function getDBGeneral()
 {
     include APPPATH . 'config/database.php';
     if (isCloudServer()) {
         return $db['servidorDedicadoGeneral']['database'];
     } else {
         return $db['pcLocalGeneral']['database'];
     }
 }
Exemplo n.º 2
0
 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;
 }