diff --git a/install.php b/install.php index f4c3148d40..7ee13d623f 100644 --- a/install.php +++ b/install.php @@ -358,9 +358,8 @@ function _u() { /** 初始用户 */ $password = empty($config['userPassword']) ? substr(uniqid(), 7) : $config['userPassword']; - $hasher = new PasswordHash(8, true); - $installDb->query($installDb->insert('table.users')->rows(array('name' => $config['userName'], 'password' => $hasher->HashPassword($password), 'mail' => $config['userMail'], + $installDb->query($installDb->insert('table.users')->rows(array('name' => $config['userName'], 'password' => Typecho_Common::hash($password), 'mail' => $config['userMail'], 'url' => 'http://www.typecho.org', 'screenName' => $config['userName'], 'group' => 'administrator', 'created' => Typecho_Date::gmtTime()))); unset($_SESSION['typecho']); @@ -472,6 +471,7 @@ function _u() { } $config = str_replace($replace, array_values($dbConfig), _r('config')); + $dbConfig['dsn'] = str_replace($replace, array_values($dbConfig), $dbConfig['dsn']); } if (!isset($config) && $success && !_r('created')) { diff --git a/install/Mysql.php b/install/Mysql.php index cf345be0fa..a3c9bc84f0 100644 --- a/install/Mysql.php +++ b/install/Mysql.php @@ -99,11 +99,20 @@

+ +
  • + + +

    /cloudsql/typecho-gae:typecho'); ?>

    +
  • +
  • - - -

    + + +

    :/cloudsql/typecho-gae:typecho'); ?>

  • + +
  • @@ -119,20 +128,22 @@
  • + - + +