예제 #1
0
 public static function test_database()
 {
     try {
         \includes\SQL::singleton();
     } catch (Exception $e) {
         return false;
     }
     return \includes\SQL::getVar('connect_errno') == 0;
 }