Ejemplo n.º 1
0
$pages->addModule('usersettings', true, false, 1, 0, false, 'user');
$pages->addModule('viewadmin', true, true, 2, 0, false, 'user');
$pages->addModule('formpostnews', true, false, 3, 0, false, 'user');
$pages->addModule('logout', true, false, 4, 0, false, 'user');
$pages->addModule('postnews    ', true, false, 0, 0, false, 'user');
$pages->addModule('admin/addpage', false, true, 0, 0, true);
$pages->addModule('admin/editpage', false, true, 0, 0, true);
$pages->addModule('admin/savemanually', false, true, 0, 0, false);
$pages->addModule('admin/index', false, true, 0, 1, true);
$pages->addModule('admin/general', false, true, 0, 2, true);
$pages->addModule('admin/database', false, true, 0, 3, true);
$pages->addModule('admin/users', false, true, 0, 4, true);
$pages->addModule('admin/news', false, true, 0, 5, true);
$pages->addModule('admin/pages', false, true, 0, 6, true);
$pages->addModule('admin/extensions', false, true, 0, 7, true);
$languages = $i10nMan->getAllSupportedLanguages();
foreach ($languages as $language) {
    $i10nMan->loadLanguage($language);
    $pages->installLanguage($language);
}
$username = addslashes($_POST['admin-account']);
$email = addslashes($_POST['admin-email']);
$password = addslashes($_POST['admin-password']);
$user = new user($DB, $i10nMan);
$settings = array('language' => 'english', 'skin' => 'MorgOS Default', 'contentlanguage' => 'english');
$user->insertUser($username, $email, $password, true, $settings);
echo '<?xml version="1.0"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>