DB_FILE]); Registry::set('db', $db); // Create admin user. $password = 'admin'; $hash = password_hash($password, PASSWORD_DEFAULT); $db->insert('insert', 'users', [], [ 'first_name' => 'Admin', 'surname' => 'User', 'slug' => 'admin', 'emailaddress' => 'admin@localhost', 'password_hash' => $hash, 'creation_time' => time(), 'ip_address' => '', 'is_admin' => 1, 'reset_key' => '', ]); echo "Created admin user (admin@localhost / admin)\n"; // Create root album (id_tag = 1). $db->insert('insert', 'tags', [], [ 'id_parent' => 0, 'tag' => 'Albums', 'slug' => 'albums', 'kind' => 'Album', 'description' => '', 'count' => 0, ]); echo "Created root album (id_tag = 1)\n"; echo "\nDone. You can now log in at the web UI.\n";