* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.0, as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301 USA * */ /* Install php-xml module for utf8_encode() */ $_login = $argv[1]; $_password = $argv[2]; $_email = $argv[3]; $_title = utf8_encode($argv[4]); $_host = $argv[5]; $_root = $argv[6]; $_public = true; $_deprecated = ''; $_language= ''; $_SERVER['CONTEXT_DOCUMENT_ROOT'] = "/home/$_login/public_html"; $_SERVER['HTTP_HOST'] = $_host; $_SERVER['REQUEST_URI'] = "/~$_login/wp-admin/install.php"; $_SERVER['SCRIPT_NAME'] = "/~$_login/wp-admin/install.php"; $_SERVER['SERVER_NAME'] = $_host; define('WP_INSTALLING', true); define( 'WP_DEBUG', true ); /* WordPress Application */ require_once("$_root/wp-load.php"); /* WordPress DB Class */ require_once("$_root/wp-includes/wp-db.php"); /* WordPress Upgrade API */ require_once("$_root/wp-admin/includes/upgrade.php"); wp_install($_title, $_login, $_email, $_public, $_deprecated, wp_slash($_password), $_language); ?>