예제 #1
0
 public function password()
 {
     if (self::$database) {
         if (preg_match_all(sprintf(Initialize::$replace["RDBSet"], "Password"), Compose::databaseFile3(), $code)) {
             new Compile($code);
             Initialize::databasePassword($code[1][0]);
             Initialize::databaseCode($code[0][0], "password");
         } else {
             die("Could not find password");
         }
     } else {
         die("Database not defined, call Database::database() to define");
     }
 }