Habbo se pasa!
  Título de la nueva página
 

"; $temp = fopen("config.php","w"); if (!fwrite($temp, $config)) { fclose($temp); return false; } else { fclose($temp); return true; } } /////////////////////////////////////////////////////////////////////////////////////////////// $step = $_GET['step']; if($step < 0 || $step > 5 || !is_numeric($step)){ $step = 0; } /////////////////////////////////////////////////////////////////////////////////////////////// echo " HoloCMS - Setup

HoloCMS

n"; /////////////////////////////////////////////////////////////////////////////////////////////// if($step == 0){ echo "

Welcome to HoloCMS

n"; echo "

Welcome to HoloCMS. Before you can start using your new website, we'll need to set up a few things. In order for the installation to be successfull, you will need to know all of the following things.

n"; echo "
    n"; echo "
  1. MySQL Database name
  2. n"; echo "
  3. MySQL Username
  4. n"; echo "
  5. MySQL Password
  6. n"; echo "
  7. MySQL Host (if not on localhost)
  8. n"; echo "
n"; echo "

In order for this installation to complete successfully, the installer script must have access to write to config.php. For assistance with giving write permissions or connecting to your MySQL database, please consult your host/ISP.

n"; echo "

Please be aware that this installer will override (and thus empty) any existing (and required) CMS tables in your MySQL Database, and possibly modify Holograph Emulator tables where needed. Please read the compatability information below for optimal performance and integration.

n"; echo "

HoloCMS Version: ".$holocms['version']." ".$holocms['stable']." [".$holocms['title']."]
nHoloCMS Build Date: ".$holocms['date']."
nHolograph Emulator Compatability: Build for Revision ".$holograph['revision']." (".$holograph['type'].")

n"; echo "

New InstallationUpgrade

n"; /////////////////////////////////////////////////////////////////////////////////////////////// } elseif($step == 1){ if(isset($_POST['name'])){ $write = WriteConfig($_POST['host'], $_POST['username'], $_POST['pass'], $_POST['name'], $_POST['path']); if(!$write){ $message = "Unable to write config file, this script may not have the correct read/write permissions; please CHMOD config.php to 777, but remember to return it to normal after you finish using the installer."; } else { $db_connect = @mysql_connect($_POST['host'], $_POST['username'], $_POST['pass']); $db_select = @mysql_select_db($_POST['name']); if (!$db_connect) { $message = "Unable to connect to MySQL server. Please double-check the hostname, username, and password you have provided."; } elseif (!$db_select) { $message = "Unable to select database. Please double-check the database name you have provided."; } else { $hideform = true; } } } if(empty($_POST['name'])){ $_POST['name'] = "holodb"; } if(empty($_POST['username'])){ $_POST['username'] = "root"; } if(empty($_POST['host'])){ $_POST['host'] = "localhost"; } if(empty($_POST['path'])){ $_POST['path'] = "http://www.mysite.com/cms/"; } if($hideform !== true){ echo "

MySQL / Site Path

n"; if(isset($message)){ echo "

" . $message . "

"; } echo "

Please enter your MySQL database credentials below, and the path to your site. If you're not sure about the MySQL settings, please contact your host.

Database Name The name of the shared Holograph Emulator / HoloCMS database.
User Name Your MySQL username, usually 'root'.
Password The password linked to the MySQL Username.
Database Host 90% chance you won't need to change this value.
Site Path The full path to your HoloCMS directory, with a ending slash (/).

"; } else { echo "

Successfully connected to MySQL database.

n"; echo "

The configuration file has been written and the MySQL connection has been set up successfully. Press 'Start Installation' to start the automated installation process, or press 'Change Settings' to go back to the previous step.

Warning
This will rebuild any existing HoloCMS database tables and add new ones where needed, and thus also reset them. You will be given to oppertunity to create a admin user later on during the installation process.

"; echo "

Start InstallationGo back

n"; } /////////////////////////////////////////////////////////////////////////////////////////////// } elseif($step == 2){ // We've written the config, so let's use that require_once('config.php'); require_once('./includes/mysql.php'); // note that the script would have died in a mysql error if there was a problem with the mysql config by now // so we should be safe to do anything we please here! echo "

Installation

n"; echo "

The installation is now in process, this should take only a second or two on an average system to complete.

n"; echo "

Dropping existing tables where needed.."; // Valid, current tables mysql_query ("DROP TABLE IF EXISTS `cms_alerts`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_content`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_forum_posts`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_forum_threads`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_help`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_homes_catalouge`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_homes_group_linker`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_homes_stickers`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_homes_inventory`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_minimail`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_news`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_system`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_tags`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_transactions`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_wardrobe`;") or die(mysql_error()); // Old/dev-only tables mysql_query ("DROP TABLE IF EXISTS `cms_threads`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_posts`;") or die(mysql_error()); mysql_query ("DROP TABLE IF EXISTS `cms_homes`;") or die(mysql_error()); echo "done!
n"; echo "Creating tables.."; mysql_query ("CREATE TABLE `cms_alerts` ( `id` int(11) NOT NULL auto_increment, `userid` int(11) NOT NULL, `alert` text NOT NULL, `type` enum('1','2') NOT NULL default '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;") or die(mysql_error()); mysql_query("CREATE TABLE IF NOT EXISTS `cms_content` ( `contentkey` text NOT NULL, `contentvalue` text NOT NULL, `setting_title` text NOT NULL, `setting_desc` text NOT NULL, `fieldtype` enum('1','2','3') NOT NULL default '1', `category` int(11) NOT NULL default '1' ) ENGINE=MyISAM DEFAULT CHARSET=latin1;") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_forum_posts` ( `id` int(11) NOT NULL auto_increment, `threadid` int(11) NOT NULL default '0', `message` text NOT NULL, `author` varchar(25) NOT NULL, `date` varchar(30) NOT NULL, `edit_date` varchar(30) NOT NULL, `edit_author` varchar(25) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_forum_threads` ( `id` int(4) NOT NULL auto_increment, `type` tinyint(4) NOT NULL, `title` varchar(30) NOT NULL, `author` varchar(25) NOT NULL, `date` varchar(35) NOT NULL, `lastpost_author` varchar(25) NOT NULL, `lastpost_date` varchar(35) NOT NULL, `views` int(11) NOT NULL, `posts` tinyint(4) NOT NULL, `unix` varchar(40) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_help` ( `id` int(11) NOT NULL auto_increment, `username` varchar(25) collate latin1_general_ci NOT NULL, `ip` varchar(50) collate latin1_general_ci NOT NULL, `message` mediumtext collate latin1_general_ci NOT NULL, `date` varchar(50) collate latin1_general_ci NOT NULL, `picked_up` enum('0','1') collate latin1_general_ci NOT NULL, `subject` varchar(50) collate latin1_general_ci NOT NULL, `roomid` int(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='HoloCMS' AUTO_INCREMENT=0 ;") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_homes_catalouge` ( `id` int(11) NOT NULL auto_increment, `name` text NOT NULL, `type` varchar(1) NOT NULL, `subtype` varchar(1) NOT NULL, `data` text NOT NULL, `price` int(11) NOT NULL, `amount` int(11) NOT NULL default '1', `category` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_homes_group_linker` ( `userid` int(11) NOT NULL, `groupid` int(11) NOT NULL, `active` varchar(1) NOT NULL default '0' ) ENGINE=MyISAM DEFAULT CHARSET=latin1;") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_homes_inventory` ( `id` int(11) NOT NULL auto_increment, `userid` int(11) NOT NULL, `type` varchar(1) NOT NULL, `subtype` varchar(1) NOT NULL, `data` text NOT NULL, `amount` varchar(3) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_homes_stickers` ( `id` int(11) NOT NULL auto_increment, `userid` int(11) NOT NULL, `x` varchar(6) NOT NULL default '1' COMMENT 'left', `y` varchar(6) NOT NULL default '1' COMMENT 'top', `z` varchar(6) NOT NULL default '1' COMMENT 'z-index', `data` text NOT NULL, `type` varchar(1) NOT NULL default '1', `subtype` varchar(1) NOT NULL default '0' COMMENT 'Widget Type (if widget)', `skin` text NOT NULL, `groupid` int(11) NOT NULL default '-1', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;") or die(mysql_error()); mysql_query("CREATE TABLE `cms_minimail` ( `userid` int(11) NOT NULL, `senderid` int(11) NOT NULL, `subject` varchar(30) NOT NULL, `date` varchar(30) NOT NULL, `message` text NOT NULL, `read` enum('0','1') NOT NULL default '0', `id` int(11) NOT NULL auto_increment, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_news` ( `num` int(4) NOT NULL auto_increment, `title` text collate latin1_general_ci NOT NULL, `category` text collate latin1_general_ci NOT NULL, `topstory` varchar(100) collate latin1_general_ci NOT NULL, `short_story` text collate latin1_general_ci NOT NULL, `story` longtext collate latin1_general_ci NOT NULL, `date` date NOT NULL, `author` text collate latin1_general_ci NOT NULL, PRIMARY KEY (`num`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='HoloCMS' AUTO_INCREMENT=0 ;") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_system` ( `sitename` varchar(30) collate latin1_general_ci NOT NULL, `shortname` varchar(30) collate latin1_general_ci NOT NULL, `site_closed` enum('0','1') collate latin1_general_ci NOT NULL COMMENT 'Maintenance Mode', `enable_sso` enum('0','1') collate latin1_general_ci NOT NULL, `language` varchar(2) collate latin1_general_ci NOT NULL, `ip` varchar(50) collate latin1_general_ci NOT NULL, `port` varchar(5) collate latin1_general_ci NOT NULL, `texts` varchar(250) collate latin1_general_ci NOT NULL, `variables` varchar(250) collate latin1_general_ci NOT NULL, `dcr` varchar(250) collate latin1_general_ci NOT NULL, `reload_url` varchar(250) collate latin1_general_ci NOT NULL, `localhost` enum('0','1') collate latin1_general_ci NOT NULL COMMENT 'Local server?', `start_credits` int(11) NOT NULL default '0', `admin_notes` text collate latin1_general_ci NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='HoloCMS';") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_tags` ( `id` int(255) NOT NULL auto_increment, `ownerid` int(11) NOT NULL default '0', `tag` varchar(25) collate latin1_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='HoloCMS' AUTO_INCREMENT=0 ;") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_transactions` ( `id` int(11) NOT NULL auto_increment, `date` varchar(20) NOT NULL, `amount` varchar(10) NOT NULL, `descr` text NOT NULL, `userid` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;") or die(mysql_error()); mysql_query ("CREATE TABLE `cms_wardrobe` ( `userid` int(11) NOT NULL, `slotid` varchar(1) NOT NULL, `figure` text NOT NULL, `gender` varchar(1) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;") or die(mysql_error()); echo "done!
n"; echo "Inserting data and building default content.."; mysql_query("INSERT INTO `cms_news` (`num`, `title`, `category`, `topstory`, `short_story`, `story`, `date`, `author`) VALUES (2, 'Installation Complete', 'HoloCMS', 'http://images.habbohotel.com/c_images/Top_Story_Images/Rel22_commu_topstory_300x187.gif', 'Welcome, to your brand new HoloCMS installation!', 'Hello, and thank you very much for choosing HoloCMS; a rich and complete website and content management system for Holograph Emulator, that you''ve just installed .. successfully. And guess what? Everything seems to be working just fine!rnrnI hope you enjoy using HoloCMS and Holograph Emulator - if you need any future support, just ask away on the RaGEZONE Habbo board.rnrnYou can edit or delete this example news article by logging into Housekeeping (accessible through the green ''Housekeeping'' tab in the navigation). Once you are logged in in Housekeeping, you will find yourself on the Dashboard. You will find the page ''Manage News Articles'' under the site tab.rnrnThanks again, and have fun!rnrnrnOn behalf of everyone involved,', '0000-00-00', 'Meth0d');") or die(mysql_error()); mysql_query("INSERT INTO `cms_system` (`sitename`, `shortname`, `site_closed`, `enable_sso`, `language`, `ip`, `port`, `texts`, `variables`, `dcr`, `reload_url`, `localhost`, `start_credits`, `admin_notes`) VALUES ('Holo Hotel', 'Holo', '0', '1', 'en', '127.0.0.1', '21', 'http://www.habbohotel.co.uk/gamedata/external?id=external_texts', 'http://www.habbohotel.co.uk/gamedata/external?id=external_variables', 'http://images.habbohotel.co.uk/dcr/r22_20080519_1524_5590_66afcf07d8b708feecf6e2e0e797ec09/habbo.dcr', '".$path."client.php', '0', 500, 'You can use this to keep notes for yourself, other mods or admins, etc');") or die(mysql_error()); mysql_query("UPDATE users SET postcount = '0'") or die(mysql_error()); mysql_query("INSERT INTO `cms_content` (`contentkey`, `contentvalue`, `setting_title`, `setting_desc`, `fieldtype`, `category`) VALUES ('credits1', 'Credits are the hotel's currency. You can use them to buy all kinds of things, from rubber ducks and sofas, to Habbo Club membership, jukeboxes and teleports.', 'Credits Content Box 1', 'The text within a content box on the credits page.', '1', '3'), ('credits2', 'To buy furniture or play games, you need credits. We provide you with free credits on registration, and if you run out, there are several ways you can earn more credits:

  • * Refer a friend to the hotel and earn credits
  • * Ask a staff member ingame
  • * Redeem a voucher if you have one
  • * Trade your furniture with others for credit furniture
  • ', 'Credits Content Box 2', 'The text within a content box on the credits page.', '1', '3'), ('credits1-heading', 'What are credits?', 'Credits Content Box 1 Heading', 'The title (heading) of Credit Content Box 1.', '1', '3'), ('credits2-heading', 'Get credits!', 'Credit Content Box 2 Heading', 'The title (heading) of Credit Content Box 2.', '1', '3'), ('staff1', 'You can find the staff members all over the hotel -- in the public rooms, their own rooms, or that dark little corner in your room. But how can you call them if you actually need them!? Easy. If it's urgent, use the Call for Help system ingame by using the blue questionmark in the right bottom of your screen. If it isn't urgent, use the Help Tool on the website.', 'Staff Content Box 1', 'The text within a content box on the staff page (if enabled).', '1', '2'), ('staff2', 'So you want that sexy staff badge next to your name in the hotel and on the site? Do you want to join Holo Hotel's moderation team? Keep your eyes focused on this section and the news -- if we're looking for staff it will be announced there, and surely you won't miss it!', 'Staff Content Box 2', 'The text within a content box on the staff page (if enabled).', '1', '2'), ('staff1-heading', 'Need our help?', 'Staff Content Box 1 Heading', 'The title (heading) of Staff Content Box 1.', '1', '2'), ('staff2-heading', 'Joining the Team', 'Staff Content Box 2 Heading', 'The title (heading) of Staff Content Box 2.', '1', '2'), ('staff1-color', 'green', 'Staff Content Box 1 Color', 'Only valid colors defined in CSS such as ''orange'', ''blue'', etc', '3', '2'), ('staff2-color', 'green', 'Staff Content Box 2 Color', 'Only valid colors defined in CSS such as ''orange'', ''blue'', etc', '3', '2'), ('mod_staff-enabled', '1', 'Staff Module Enabled', 'This determines wether the Staff Module (staff.php) will be displayed/enabled.', '2', '2'), ('client-widescreen', '1', 'Client in Widescreen', 'This determines wether the game client should display in widescreen mode or not.', '2', '1'), ('birthday-notifications', '1', 'Birthday Notifications Enabled', 'This will determine wether a ''Happy birthday'' message will be shown on a user''s birthday.', '2', '1'), ('allow-group-purchase', '1', 'Group Purchasing Enabled', 'This determines wether new groups can be created or not.', '2', '1'), ('forum-enabled', '1', 'Forum Enabled', 'This determines wether the Discussion Board will be shown/enabled.', '2', '4'), ('smilies-enabled', '1', 'Smilies Enabled', 'This determines wether Smilies will be shown on the Discussion Board and on Homes.', '2', '4'), ('enable-flash-promo', '1', 'Enable Flash Promo', 'This determines wether the Flash Promo on the login page will be displayed. If disabled, a HTML version will be used.', '2', '1'), ('allow-guests', '1', 'Allow guests?', 'This determines wether guest mode is enabled. Guest Mode allows you to visit (parts of) your site (with limitations) without logging in.', '2', '1'), ('hc-maxmonths', '6', 'HC Months Limit', 'This will limit the allowed amount of subscribed Club months per user at once to this number. Set to ''0'' to have no limit.', '1', '1');") or die(mysql_error()); echo "done!
    n"; echo "Transforming HoloDB tables where needed (most will not return errors on failure)..done!
    n"; @mysql_query("ALTER TABLE `users` CHANGE `id` `id` INT( 15 ) NOT NULL AUTO_INCREMENT"); // do not die in error! @mysql_query("ALTER TABLE `groups_details` ADD `type` VARCHAR( 1 ) NOT NULL ;"); @mysql_query("ALTER TABLE `groups_details` CHANGE `type` `type` INT( 1 ) NOT NULL DEFAULT '0' "); @mysql_query("ALTER TABLE `groups_memberships` CHANGE `iscurrent` `is_current` ENUM( '0', '1' ) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT '0' "); @mysql_query("ALTER TABLE `groups_memberships` ADD `is_pending` ENUM( '0', '1' ) NOT NULL DEFAULT '0';"); @mysql_query("ALTER TABLE `groups_details` CHANGE `id` `id` INT( 10 ) NOT NULL AUTO_INCREMENT "); @mysql_query("UPDATE groups_details SET type = '2' WHERE type = ''"); echo "Building homes catalouge (303 records).."; mysql_query("INSERT INTO `cms_homes_catalouge` (`id`, `name`, `type`, `subtype`, `data`, `price`, `amount`, `category`) VALUES (1, 'Genie Fire Head', '1', '0', 'geniefirehead', 2, 1, '19'), (2, 'Trax SFX', '1', '0', 'trax_sfx', 1, 1, '3'), (3, 'Trax Disco', '1', '0', 'trax_disco', 1, 1, '3'), (4, 'Trax 8 Bit', '1', '0', 'trax_8_bit', 1, 1, '3'), (5, 'Trax Electro', '1', '0', 'trax_electro', 1, 1, '3'), (6, 'Trax Reggae', '1', '0', 'trax_reggae', 1, 1, '3'), (7, 'Trax Ambient', '1', '0', 'trax_ambient', 1, 1, '3'), (8, 'Trax Bling', '1', '0', 'trax_bling', 1, 1, '3'), (9, 'Trax Heavy', '1', '0', 'trax_heavy', 1, 1, '3'), (10, 'Trax Latin', '1', '0', 'trax_latin', 1, 1, '3'), (11, 'Trax Rock', '1', '0', 'trax_rock', 1, 1, '3'), (12, 'Animated Falling Rain', '4', '0', 'bg_rain', 3, 1, '27'), (13, 'Notes', '3', '0', 'stickienote', 2, 5, '29'), (14, 'Animated Blue Serpentine', '4', '0', 'bg_serpentine_darkblue', 3, 1, '27'), (15, 'Animated Red Serpentine', '4', '0', 'bg_serpntine_darkred', 3, 1, '27'), (16, 'Animated Brown Serpentine', '4', '0', 'bg_serpentine_1', 3, 1, '27'), (17, 'Animated Pink Serpentine', '4', '0', 'bg_serpentine_2', 3, 1, '27'), (18, 'Denim', '4', '0', 'bg_denim', 3, 1, '27'), (19, 'Lace', '4', '0', 'bg_lace', 3, 1, '27'), (20, 'Stiched', '4', '0', 'bg_stitched', 3, 1, '27'), (21, 'Wood', '4', '0', 'bg_wood', 3, 1, '27'), (22, 'Cork', '4', '0', 'bg_cork', 3, 1, '27'), (23, 'Stone', '4', '0', 'bg_stone', 3, 1, '27'), (24, 'Bricks', '4', '0', 'bg_pattern_bricks', 3, 1, '27'), (25, 'Ruled Paper', '4', '0', 'bg_ruled_paper', 3, 1, '27'), (26, 'Grass', '4', '0', 'bg_grass', 3, 1, '27'), (27, 'Hotel', '4', '0', 'bg_hotel', 3, 1, '27'), (28, 'Bubble', '4', '0', 'bg_bubble', 3, 1, '27'), (29, 'Bobba Skulls', '4', '0', 'bg_pattern_bobbaskulls1', 3, 1, '27'), (30, 'Deep Space', '4', '0', 'bg_pattern_space', 3, 1, '27'), (31, 'Submarine', '4', '0', 'bg_image_submarine', 3, 1, '27'), (32, 'Metal II', '4', '0', 'bg_metal2', 3, 1, '27'), (33, 'Broken Glass', '4', '0', 'bg_broken_glass', 3, 1, '27'), (34, 'Clouds', '4', '0', 'bg_pattern_clouds', 3, 1, '27'), (35, 'Comic', '4', '0', 'bg_comic2', 3, 1, '27'), (36, 'Floral 1', '4', '0', 'bg_pattern_floral_01', 3, 1, '27'), (37, 'A', '1', '0', 'a', 1, 1, '5'), (38, 'B', '1', '0', 'b_2', 1, 1, '5'), (39, 'C', '1', '0', 'c', 1, 1, '5'), (40, 'D', '1', '0', 'd', 1, 1, '5'), (41, 'E', '1', '0', 'e', 1, 1, '5'), (42, 'F', '1', '0', 'f', 1, 1, '5'), (43, 'G', '1', '0', 'g', 1, 1, '5'), (44, 'H', '1', '0', 'h', 1, 1, '5'), (45, 'I', '1', '0', 'i', 1, 1, '5'), (46, 'J', '1', '0', 'j', 1, 1, '5'), (47, 'K', '1', '0', 'k', 1, 1, '5'), (48, 'L', '1', '0', 'l', 1, 1, '5'), (49, 'M', '1', '0', 'm', 1, 1, '5'), (50, 'N', '1', '0', 'n', 1, 1, '5'), (51, 'O', '1', '0', 'o', 1, 1, '5'), (52, 'P', '1', '0', 'p', 1, 1, '5'), (53, 'Q', '1', '0', 'q', 1, 1, '5'), (54, 'R', '1', '0', 'r', 1, 1, '5'), (55, 'S', '1', '0', 's', 1, 1, '5'), (56, 'T', '1', '0', 't', 1, 1, '5'), (57, 'U', '1', '0', 'u', 1, 1, '5'), (58, 'V', '1', '0', 'v', 1, 1, '5'), (59, 'W', '1', '0', 'w', 1, 1, '5'), (60, 'X', '1', '0', 'x', 1, 1, '5'), (61, 'Y', '1', '0', 'y', 1, 1, '5'), (62, 'Z', '1', '0', 'z', 1, 1, '5'), (63, 'Bling Star', '1', '0', 'bling_star', 1, 1, '6'), (64, 'Bling A', '1', '0', 'bling_a', 1, 1, '6'), (65, 'Bling B', '1', '0', 'bling_b', 1, 1, '6'), (66, 'Bling C', '1', '0', 'bling_c', 1, 1, '6'), (67, 'Bling D', '1', '0', 'bling_d', 1, 1, '6'), (68, 'Bling E', '1', '0', 'bling_e', 1, 1, '6'), (69, 'Bling F', '1', '0', 'bling_f', 1, 1, '6'), (70, 'Bling G', '1', '0', 'bling_g', 1, 1, '6'), (71, 'Bling H', '1', '0', 'bling_h', 1, 1, '6'), (72, 'Bling I', '1', '0', 'bling_i', 1, 1, '6'), (73, 'Bling J', '1', '0', 'bling_j', 1, 1, '6'), (74, 'Bling K', '1', '0', 'bling_k', 1, 1, '6'), (75, 'Bling L', '1', '0', 'bling_l', 1, 1, '6'), (76, 'Bling M', '1', '0', 'bling_m', 1, 1, '6'), (77, 'Bling N', '1', '0', 'bling_n', 1, 1, '6'), (78, 'Bling O', '1', '0', 'bling_o', 1, 1, '6'), (79, 'Bling P', '1', '0', 'bling_p', 1, 1, '6'), (80, 'Bling Q', '1', '0', 'bling_q', 1, 1, '6'), (81, 'Bling R', '1', '0', 'bling_r', 1, 1, '6'), (82, 'Bling S', '1', '0', 'bling_s', 1, 1, '6'), (83, 'Bling T', '1', '0', 'bling_t', 1, 1, '6'), (84, 'Bling U', '1', '0', 'bling_u', 1, 1, '6'), (85, 'Bling V', '1', '0', 'bling_v', 1, 1, '6'), (86, 'Bling W', '1', '0', 'bling_w', 1, 1, '6'), (87, 'Bling X', '1', '0', 'bling_x', 1, 1, '6'), (88, 'Bling Y', '1', '0', 'bling_y', 1, 1, '6'), (89, 'Bling Z', '1', '0', 'bling_z', 1, 1, '6'), (90, 'Bling Underscore', '1', '0', 'bling_underscore', 1, 1, '6'), (91, 'Bling Comma', '1', '0', 'bling_comma', 1, 1, '6'), (92, 'Bling Dot', '1', '0', 'bling_dot', 1, 1, '6'), (93, 'Bling Exclamation', '1', '0', 'bling_exclamation', 1, 1, '6'), (94, 'Bling Question', '1', '0', 'bling_question', 1, 1, '6'), (95, 'European Letter 3', '1', '0', 'a_with_circle', 1, 1, '5'), (96, 'European Letter 1', '1', '0', 'a_with_dots', 1, 1, '5'), (97, 'European Letter 2', '1', '0', 'o_with_dots', 1, 1, '5'), (98, 'Dot', '1', '0', 'dot', 1, 1, '5'), (99, 'Acsent 1', '1', '0', 'acsent1', 1, 1, '5'), (100, 'Acsent 2', '1', '0', 'acsent2', 1, 1, '5'), (101, 'Underscore', '1', '0', 'underscore', 1, 1, '5'), (102, 'Holograph Emulator', '1', '0', 'sticker_holograph', 5, 1, '19'), (103, 'Chain 1', '1', '0', 'chain_horizontal', 1, 1, '7'), (104, 'Chain 2', '1', '0', 'chain_vertical', 1, 1, '7'), (105, 'Ruler 1', '1', '0', 'ruler_horizontal', 1, 1, '7'), (106, 'Ruler 2', '1', '0', 'ruler_vertical', 1, 1, '7'), (107, 'Vine 1', '1', '0', 'vine', 1, 1, '7'), (108, 'Vine 2', '1', '0', 'vine2', 1, 1, '7'), (109, 'Leaves 1', '1', '0', 'leafs1', 1, 1, '7'), (110, 'Leaves 2', '1', '0', 'leafs2', 1, 1, '7'), (111, 'Zipper', '1', '0', 'sticker_zipper_v_tile', 1, 1, '7'), (112, 'Zipper', '1', '0', 'sticker_zipper_h_tile', 1, 1, '7'), (113, 'Zipper', '1', '0', 'sticker_zipper_h_normal_lock', 1, 1, '7'), (114, 'Zipper', '1', '0', 'sticker_zipper_h_bobba_lock', 1, 1, '7'), (115, 'Zipper', '1', '0', 'sticker_zipper_h_end', 1, 1, '7'), (116, 'Zipper', '1', '0', 'sticker_zipper_v_end', 1, 1, '7'), (117, 'Zipper', '1', '0', 'sticker_zipper_v_bobba_lock', 1, 1, '7'), (118, 'Zipper', '1', '0', 'sticker_zipper_v_normal_lock', 1, 1, '7'), (119, 'Wormhand', '1', '0', 'wormhand', 5, 1, '8'), (120, 'Gentleman', '1', '0', 'sticker_gentleman', 2, 1, '8'), (121, 'Chewed Bubblegum', '1', '0', 'chewed_bubblegum', 1, 1, '8'), (122, 'Cactus', '1', '0', 'sticker_cactus_anim', 2, 1, '8'), (123, 'Spaceduck', '1', '0', 'sticker_spaceduck', 1, 1, '8'), (124, 'Moonpig', '1', '0', 'sticker_moonpig', 2, 1, '8'), (125, 'Swimming fish', '1', '0', 'swimming_fish', 2, 1, '8'), (126, 'Boxer', '1', '0', 'sticker_boxer', 2, 1, '8'), (127, 'Wunder Frank', '1', '0', 'wunderfrank', 1, 1, '8'), (128, 'Submarine', '1', '0', 'sticker_submarine', 2, 1, '8'), (129, 'Clown', '1', '0', 'sticker_clown_anim', 2, 1, '8'), (130, 'Stars', '1', '0', 'blingblingstars', 2, 1, '9'), (131, 'Hearts', '1', '0', 'blinghearts', 2, 1, '9'), (132, 'Heartbeat', '1', '0', 'sticker_heartbeat', 2, 1, '9'), (133, 'Cat in a box', '1', '0', 'sticker_catinabox', 2, 1, '9'), (134, 'Bear', '1', '0', 'bear', 2, 1, '9'), (135, 'Vampire', '1', '0', 'gothic_draculacape ', 3, 1, '10'), (136, 'Giant Evil Bunny', '1', '0', 'evil_giant_bunny', 2, 1, '10'), (137, 'Zombie Bunny!', '1', '0', 'zombiepupu', 2, 1, '10'), (138, 'Skelly', '1', '0', 'skeletor_001', 2, 1, '10'), (139, 'Skull 1', '1', '0', 'skull', 2, 1, '10'), (140, 'Skull 2', '1', '0', 'skull2', 2, 1, '10'), (141, 'Scuba capsule', '1', '0', 'scubacapsule_anim', 2, 1, '10'), (142, 'Bobbaskull', '1', '0', 'sticker_bobbaskull', 2, 1, '10'), (143, 'Pack 1', '1', '0', 'sticker_flower1', 3, 5, '11'), (144, 'Pack 2', '1', '0', 'icecube_big', 3, 10, '11'), (145, 'Pack 3', '1', '0', 'leafs2', 5, 7, '11'), (146, 'Pack 4', '1', '0', 'vine2', 3, 5, '11'), (147, 'Pack 5', '1', '0', 'chain_horizontal', 3, 5, '11'), (148, 'Pack 6', '1', '0', 'icecube_small', 3, 10, '11'), (149, 'Arrow up', '1', '0', 'sticker_arrow_up', 2, 1, '12'), (150, 'Arrow down', '1', '0', 'sticker_arrow_down', 2, 1, '12'), (151, 'Arrow left', '1', '0', 'sticker_arrow_left', 2, 1, '12'), (152, 'Arrow right', '1', '0', 'sticker_arrow_right', 2, 1, '12'), (153, 'Ponting hand right', '1', '0', 'sticker_pointing_hand_1', 2, 1, '12'), (154, 'Ponting hand up', '1', '0', 'sticker_pointing_hand_2', 2, 1, '12'), (155, 'Ponting hand down', '1', '0', 'sticker_pointing_hand_3', 2, 1, '12'), (156, 'Pointing hand left', '1', '0', 'sticker_pointing_hand_4', 2, 1, '12'), (157, 'Nail 1', '1', '0', 'nail2', 2, 1, '12'), (158, 'Nail 2', '1', '0', 'nail3', 2, 1, '12'), (159, 'Red pin', '1', '0', 'needle_1', 1, 1, '12'), (160, 'Green pin', '1', '0', 'needle_2', 1, 1, '12'), (161, 'Blue pin', '1', '0', 'needle_3', 1, 1, '12'), (162, 'Purple pin', '1', '0', 'needle_4', 1, 1, '12'), (163, 'Yellow pin', '1', '0', 'needle_5', 1, 1, '12'), (164, 'Grass Meadow', '1', '0', 'grass', 2, 1, '13'), (165, 'Flower', '1', '0', 'sticker_flower1', 1, 1, '13'), (166, 'Yellow Flower', '1', '0', 'sticker_flower_big_yellow', 1, 1, '13'), (167, 'Pink Flower', '1', '0', 'sticker_flower_pink', 1, 1, '13'), (168, 'Bobba badge', '1', '0', 'sticker_bobbaskull', 1, 1, '14'), (169, 'Coffee badge', '1', '0', 'i_love_coffee', 1, 1, '14'), (170, 'Bam!', '1', '0', 'sticker_effect_bam', 1, 1, '14'), (171, 'Burp!', '1', '0', 'sticker_effect_burp', 1, 1, '14'), (172, 'Whoosh!', '1', '0', 'sticker_effect_woosh', 1, 1, '14'), (173, 'Zap!', '1', '0', 'sticker_effect_zap', 1, 1, '14'), (174, 'Whoosh 2', '1', '0', 'sticker_effect_whoosh2', 1, 1, '14'), (175, 'Small Ice Cube', '1', '0', 'icecube_small', 1, 1, '15'), (176, 'Snowball Machine', '1', '0', 'ss_snowballmachine', 1, 1, '15'), (177, 'Big Ice Cube', '1', '0', 'icecube_big', 1, 1, '15'), (178, 'Boots and Gloves', '1', '0', 'bootsitjalapaset_red', 2, 1, '15'), (179, 'Boots and Gloves', '1', '0', 'ss_bootsitjalapaset_blue', 2, 1, '15'), (180, 'Red SnowStorm Costume', '1', '0', 'ss_costume_red', 2, 1, '15'), (181, 'Blue SnowStorm Costume', '1', '0', 'ss_costume_blue', 2, 1, '15'), (182, 'Splash!', '1', '0', 'ss_hits_by_snowball', 1, 1, '15'), (183, 'SnowStorm Duck!', '1', '0', 'extra_ss_duck_left', 1, 1, '15'), (184, 'Snowtree', '1', '0', 'ss_snowtree', 2, 1, '15'), (185, 'SnowStorm Duck!', '1', '0', 'extra_ss_duck_right', 1, 1, '15'), (186, 'Snowman', '1', '0', 'ss_snowman', 2, 1, '15'), (187, 'Lumihiutale', '1', '0', 'ss_snowflake2', 1, 1, '15'), (188, 'Snow Queen', '1', '0', 'ss_snowqueen', 2, 1, '15'), (189, 'Battle 1', '1', '0', 'battle1', 1, 1, '16'), (190, 'Battle 2', '1', '0', 'battle3', 1, 1, '16'), (191, 'HC Hat', '1', '0', 'hc_hat', 5, 1, '18'), (192, 'Left Eye', '1', '0', 'eyeleft', 2, 1, '18'), (193, 'Right Eye', '1', '0', 'eyeright', 2, 1, '18'), (194, 'Angel Wings', '1', '0', 'angelwings_anim', 3, 1, '18'), (195, 'Gray Beard', '1', '0', 'sticker_gurubeard_gray', 1, 1, '18'), (196, 'Brown Beard', '1', '0', 'sticker_gurubeard_brown', 1, 1, '18'), (197, 'Supernerd', '1', '0', 'sticker_glasses_supernerd', 1, 1, '18'), (198, 'Goofy Glasses', '1', '0', 'sticker_glasses_elton', 1, 1, '18'), (199, 'Blue Eyes', '1', '0', 'sticker_eyes_blue', 1, 1, '18'), (200, 'Animated Eyes', '1', '0', 'sticker_eye_anim', 2, 1, '18'), (201, 'Evil Eye', '1', '0', 'sticker_eye_evil_anim', 2, 1, '18'), (202, 'Eraser', '1', '0', 'sticker_eraser', 1, 1, '20'), (203, 'star', '1', '0', 'star', 1, 1, '20'), (204, 'Pencil', '1', '0', 'sticker_pencil', 1, 1, '20'), (205, 'Dreamer', '1', '0', 'sticker_dreamer', 3, 1, '20'), (206, 'Pencil 2', '1', '0', 'sticker_pencil_2', 1, 1, '20'), (207, 'Lone Wolf', '1', '0', 'sticker_lonewolf', 3, 1, '20'), (208, 'Prankster', '1', '0', 'sticker_prankster', 3, 1, '20'), (209, 'Prankster', '1', '0', 'sticker_prankster', 3, 1, '20'), (210, 'Romantic', '1', '0', 'sticker_romantic', 3, 1, '20'), (211, 'Red lamp', '1', '0', 'redlamp', 2, 1, '20'), (212, 'Lightbulb', '1', '0', 'lightbulb', 2, 1, '20'), (213, 'Bullet hole', '1', '0', 'bullet1', 2, 1, '20'), (214, 'Spill 1', '1', '0', 'spill1', 1, 1, '20'), (215, 'Spill 2', '1', '0', 'spill2', 1, 1, '20'), (216, 'Spill 3', '1', '0', 'spill3', 1, 1, '20'), (217, 'Coffee stain', '1', '0', 'sticker_coffee_stain', 1, 1, '20'), (218, 'Hole', '1', '0', 'sticker_hole', 1, 1, '20'), (219, 'Flames', '1', '0', 'sticker_flames', 2, 1, '20'), (220, 'Paperclip 1', '1', '0', 'paper_clip_1', 1, 1, '20'), (221, 'Paperclip 2', '1', '0', 'paper_clip_2', 1, 1, '20'), (222, 'Paperclip 3', '1', '0', 'paper_clip_3', 1, 1, '20'), (223, 'Highlight 1', '1', '0', 'highlighter_1', 1, 1, '20'), (224, 'Highlight', '1', '0', 'highlighter_mark5', 1, 1, '20'), (225, 'Highlight', '1', '0', 'highlighter_mark6', 1, 1, '20'), (226, 'Highlight', '1', '0', 'highlighter_mark4b', 1, 1, '20'), (227, 'Highlight 2', '1', '0', 'highlighter_2', 1, 1, '20'), (228, 'Highlight', '1', '0', 'highlighter_mark1', 1, 1, '20'), (229, 'Highlight', '1', '0', 'highlighter_mark2', 1, 1, '20'), (230, 'Highlight', '1', '0', 'highlighter_mark3', 1, 1, '20'), (231, 'Plaster', '1', '0', 'plaster1', 1, 1, '20'), (232, 'Plaster', '1', '0', 'plaster2', 1, 1, '20'), (233, 'Croc', '1', '0', 'sticker_croco', 1, 1, '20'), (234, 'Fish', '1', '0', 'fish', 1, 1, '20'), (235, 'Parrot', '1', '0', 'parrot', 1, 1, '20'), (236, 'Sleeping Holo', '1', '0', 'sticker_sleeping_habbo', 2, 1, '20'), (237, 'Burger', '1', '0', 'burger', 1, 1, '20'), (238, 'Juice', '1', '0', 'juice', 1, 1, '20'), (239, 'Coffee Stain Blue', '1', '0', 'sticker_coffee_steam_blue', 1, 1, '20'), (240, 'Coffee Stain Gray', '1', '0', 'sticker_coffee_steam_grey', 1, 1, '20'), (241, 'Cassette 1', '1', '0', 'cassette1', 1, 1, '20'), (242, 'Cassette 2', '1', '0', 'cassette2', 1, 1, '20'), (243, 'Cassette 3', '1', '0', 'cassette3', 1, 1, '20'), (244, 'Cassette 4', '1', '0', 'cassette4', 1, 1, '20'), (245, 'Football', '1', '0', 'football', 1, 1, '20'), (246, 'Floral 2', '4', '0', 'bg_pattern_floral_02', 2, 1, '27'), (247, 'Floral 3', '4', '0', 'bg_pattern_floral_03', 2, 1, '27'), (248, 'Cars', '4', '0', 'bg_pattern_cars', 2, 1, '27'), (249, 'Carpants', '4', '0', 'bg_pattern_carpants', 2, 1, '27'), (250, 'Plasto', '4', '0', 'bg_pattern_plasto', 2, 1, '27'), (251, 'Tinny room', '4', '0', 'bg_pattern_tinyroom', 2, 1, '27'), (252, 'Hearts', '4', '0', 'bg_pattern_hearts', 2, 1, '27'), (253, 'Abstract 1', '4', '0', 'bg_pattern_abstract1', 2, 1, '27'), (254, 'Bathroom tile', '4', '0', 'bg_bathroom_tile', 2, 1, '27'), (255, 'Fish', '4', '0', 'bg_pattern_fish', 2, 1, '27'), (256, 'Deepred', '4', '0', 'bg_pattern_deepred', 2, 1, '27'), (257, 'Background', '4', '0', 'bg_colour_02', 2, 1, '27'), (258, 'Background', '4', '0', 'bg_colour_03', 2, 1, '27'), (259, 'Background', '4', '0', 'bg_colour_04', 2, 1, '27'), (260, 'Background', '4', '0', 'bg_colour_05', 2, 1, '27'), (261, 'Background', '4', '0', 'bg_colour_06', 2, 1, '27'), (262, 'Background', '4', '0', 'bg_colour_07', 2, 1, '27'), (263, 'Background', '4', '0', 'bg_colour_08', 2, 1, '27'), (264, 'Background', '4', '0', 'bg_colour_09', 2, 1, '27'), (265, 'Background', '4', '0', 'bg_colour_10', 2, 1, '27'), (266, 'Background', '4', '0', 'bg_colour_11', 2, 1, '27'), (267, 'Background', '4', '0', 'bg_colour_12', 2, 1, '27'), (268, 'Background', '4', '0', 'bg_colour_13', 2, 1, '27'), (269, 'Background', '4', '0', 'bg_colour_14', 2, 1, '27'), (270, 'Background', '4', '0', 'bg_colour_15', 2, 1, '27'), (271, 'Background', '4', '0', 'bg_colour_17', 2, 1, '27'), (272, 'Tonga', '4', '0', 'bg_tonga', 2, 1, '27'), (273, 'HoloCMS', '1', '0', 'sticker_holocms', 5, 1, '19'), (274, 'Pedobear Seal of Approval', '1', '0', 'sticker_pedo', 50, 1, '19'), (275, 'Alhambra Group Background', '4', '0', 'alhambragroup', 0, 1, '50'), (276, 'Themepark Background 1', '4', '0', 'themepark_bg_01', 0, 1, '50'), (277, 'Themepark Background 2', '4', '0', 'themepark_bg_02', 0, 1, '50'), (278, 'Unofficial Fansites Background', '4', '0', 'bg_unofficial_fansites', 0, 1, '50'), (279, 'Unofficial Fansites Background 2', '4', '0', 'bg_official_fansites2', 0, 1, '50'), (280, 'Welcoming Party Background', '4', '0', 'welcoming_party', 0, 1, '50'), (281, 'Random Habbos Background', '4', '0', 'random_habbos', 0, 1, '50'), (282, 'Habborella Sea Background', '4', '0', 'habborella_sea_bg', 0, 1, '50'), (283, 'Penelope Background', '4', '0', 'penelope', 0, 1, '50'), (284, 'Orca Background', '4', '0', 'orca', 0, 1, '50'), (285, 'sttriniansgroup Background', '4', '0', 'sttriniansgroup', 0, 1, '50'), (286, 'sttriniansblackboard Background', '4', '0', 'sttriniansblackboard', 0, 1, '50'), (287, 'Habbo X Background', '4', '0', 'habbox', 0, 1, '50'), (288, 'Christmas 2007 BG 1', '4', '0', 'christmas2007bg_001', 0, 1, '50'), (289, 'Kerrang Background 2', '4', '0', 'bg_kerrang2', 0, 1, '50'), (291, 'VoiceOfTeens Background', '4', '0', 'bg_voiceofteens', 0, 1, '50'), (292, 'Makeover Background', '4', '0', 'makeover', 0, 1, '50'), (293, 'SnowStorm Background', '4', '0', 'snowstorm_bg', 0, 1, '50'), (294, 'Habbo Group Background', '4', '0', 'habbogroup', 0, 1, '50'), (295, 'Wobble Squabble Background', '4', '0', 'bg_wobble_squabble', 0, 1, '50'), (296, 'VIP Background', '4', '0', 'bg_vip', 0, 1, '50'), (297, 'Lido Background', '4', '0', 'bg_lidoo', 0, 1, '50'), (298, 'Lido (Flat) Background', '4', '0', 'bg_lido_flat', 0, 1, '50'), (299, 'Infobus (Yellow) Background', '4', '0', 'bg_infobus_yellow', 0, 1, '50'), (300, 'Infobus (White) Background', '4', '0', 'bg_infobus_white', 0, 1, '50'), (301, 'Infobus (Blue) Background', '4', '0', 'bg_infobus_blue', 0, 1, '50'), (302, 'Battle Ball (2) Background', '4', '0', 'bg_battle_ball2', 0, 1, '50'), (303, 'Grunge Wall Background', '4', '0', 'grungewall', 0, 1, '50');") or die(mysql_error()); echo "done!

    n"; echo "

    The tables have been created, truncated and modified where needed, and required data has been inserted. Your site is technically ready for use now, but let's take a moment to set up an administrator account for you first.

    "; echo "

    Proceedn"; /////////////////////////////////////////////////////////////////////////////////////////////// } elseif($step == 3){ // We've written the config, so let's use that require_once('config.php'); require_once('./includes/mysql.php'); if(isset($_POST['username'])){ $name = $_POST['username']; $password = $_POST['password']; $password2 = $_POST['password-retyped']; $email = $_POST['email']; $filter = preg_replace("/[^a-zd]/i", "", $name); $email_check = preg_match("/^[a-z0-9_.-]+@([a-z0-9]+([-]+[a-z0-9]+)*.)+[a-z]{2,7}$/i", $email); if($password !== $password2){ $fail = true; $error = "The passwords do not match."; } elseif($email_check !== 1){ $fail = true; $error = "Invalid e-mail address."; } elseif($filter !== $name){ $fail = true; $error = "Invalid username."; } else { $sql = mysql_query("SELECT id FROM users WHERE name = '".addslashes($name)."' LIMIT 1") or die(mysql_error()); $already_exists = mysql_num_rows($sql); if($already_exists > 0){ $fail = true; $error = "Username already in use!"; } else { $password = HoloHash($password); $scredits = 5000; $dob = "1-1-1980"; $figure = "hr-802-61.hd-190-1.ch-260-62.lg-280-110.sh-295-91.fa-1207-103"; $gender = "M"; mysql_query("INSERT INTO users (name,password,email,birth,figure,sex,rank,hbirth,ipaddress_last,postcount,tickets,credits,lastvisit) VALUES ('".$name."','".$password."','".$email."','".$dob."','".$figure."','".$gender."','7','".$date_normal."','".$remote_ip."','0','0','".$scredits."','".$date_full."')") or die(mysql_error()); $check = mysql_query("SELECT id FROM users WHERE name = '".addslashes($name)."' ORDER BY id ASC LIMIT 1") or die(mysql_error()); $row = mysql_fetch_assoc($check); $userid = $row['id']; $fail = false; } } } elseif(isset($_GET['do']) && $_GET['do'] == "skip"){ $fail = false; } if(!isset($_POST['username'])){ $_POST['username'] = "admin"; } if(!isset($_POST['email'])){ $_POST['email'] = "defaultuser@meth0d.org"; } if(!isset($fail) || $fail == true || isset($error)){ if(isset($error)){ echo "

    ".$error."

    n"; } echo "

    Alright, we've finished the installation. Now let's take a moment to set up an administrator account for you. Fill in the form below, and an administrator account will automaticly be created for you.

    "; echo "

    Skip this step

    "; echo "
    "; echo "
    Username The username you will use to log in.
    Password The password you will use to log in with your username.
    Confirm Password Please re-type your password here.
    E-Mail Address Your e-mail address.

    "; echo "
    "; } elseif($fail == false){ echo "

    Installation Complete

    "; echo "

    HoloCMS was installed successfully, and an admin user was created! You can now proceed to your new site or the Admin CP (Housekeeping).

    "; echo "

    Remember to delete install.php and upgrade.php, or you will not be able to use your site.

    "; exit; } } /////////////////////////////////////////////////////////////////////////////////////////////// echo "n "; ?>
     
       
     
    Este sitio web fue creado de forma gratuita con PaginaWebGratis.es. ¿Quieres también tu sitio web propio?
    Registrarse gratis