Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['install'])){
- if(isset($_POST['forumTitle']) && isset($_POST['mysqlDatabase']) && isset($_POST['mysqlUsername']) && isset($_POST['mysqlPassword']) && isset($_POST['adminUsername']) && isset($_POST['adminEmail'])){
- $ftitle = $_POST['forumTitle'];
- $fdbname = $_POST['mysqlDatabase'];
- $fdbuser = $_POST['mysqlUsername'];
- $fdbpass = $_POST['mysqlPassword'];
- $fadmin = $_POST['adminUsername'];
- $femail = $_POST['adminEmail'];
- if( $_SERVER['HTTPS']){
- $flink = "https://".$_SERVER['HTTP_HOST'];
- }else{
- $flink = "http://".$_SERVER['HTTP_HOST'];
- }
- $conn = mysqli_connect('localhost',$fdbuser,$fdbpass);
- $dbcon = mysqli_select_db($conn,$fdbname);
- if(!$conn){
- die("Connection failed : " . mysqli_error());
- }else if(!$dbcon){
- die("Database Connection failed : " . mysqli_error());
- }else{
- $query = mysqli_query($conn,"CREATE TABLE `000_access_tokens` (
- `id` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- `last_activity` int(11) NOT NULL,
- `lifetime` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_api_keys` (
- `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;");
- $query = mysqli_query($conn,"CREATE TABLE `000_auth_tokens` (
- `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `payload` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
- `created_at` timestamp NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_discussions` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
- `comments_count` int(10) unsigned NOT NULL DEFAULT '0',
- `participants_count` int(10) unsigned NOT NULL DEFAULT '0',
- `number_index` int(10) unsigned NOT NULL DEFAULT '0',
- `start_time` datetime NOT NULL,
- `start_user_id` int(10) unsigned DEFAULT NULL,
- `start_post_id` int(10) unsigned DEFAULT NULL,
- `last_time` datetime DEFAULT NULL,
- `last_user_id` int(10) unsigned DEFAULT NULL,
- `last_post_id` int(10) unsigned DEFAULT NULL,
- `last_post_number` int(10) unsigned DEFAULT NULL,
- `hide_time` datetime DEFAULT NULL,
- `hide_user_id` int(10) unsigned DEFAULT NULL,
- `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `is_private` tinyint(1) NOT NULL DEFAULT '0',
- `is_approved` tinyint(1) NOT NULL DEFAULT '1',
- `is_locked` tinyint(1) NOT NULL DEFAULT '0',
- `is_sticky` tinyint(1) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_discussions_tags` (
- `discussion_id` int(10) unsigned NOT NULL,
- `tag_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`discussion_id`,`tag_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_email_tokens` (
- `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `email` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- `created_at` timestamp NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_flags` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `post_id` int(10) unsigned NOT NULL,
- `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `user_id` int(10) unsigned DEFAULT NULL,
- `reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `reason_detail` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `time` datetime NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_groups` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name_singular` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `name_plural` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `color` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `icon` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_mentions_posts` (
- `post_id` int(10) unsigned NOT NULL,
- `mentions_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`post_id`,`mentions_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_mentions_users` (
- `post_id` int(10) unsigned NOT NULL,
- `mentions_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`post_id`,`mentions_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_migrations` (
- `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `extension` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_notifications` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `sender_id` int(10) unsigned DEFAULT NULL,
- `type` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `subject_type` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `subject_id` int(10) unsigned DEFAULT NULL,
- `data` blob,
- `time` datetime NOT NULL,
- `is_read` tinyint(1) NOT NULL DEFAULT '0',
- `is_deleted` tinyint(1) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_password_tokens` (
- `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- `created_at` timestamp NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_permissions` (
- `group_id` int(10) unsigned NOT NULL,
- `permission` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- PRIMARY KEY (`group_id`,`permission`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_posts` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `discussion_id` int(10) unsigned NOT NULL,
- `number` int(10) unsigned DEFAULT NULL,
- `time` datetime NOT NULL,
- `user_id` int(10) unsigned DEFAULT NULL,
- `type` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `content` text COLLATE utf8mb4_unicode_ci,
- `edit_time` datetime DEFAULT NULL,
- `edit_user_id` int(10) unsigned DEFAULT NULL,
- `hide_time` datetime DEFAULT NULL,
- `hide_user_id` int(10) unsigned DEFAULT NULL,
- `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `is_private` tinyint(1) NOT NULL DEFAULT '0',
- `is_approved` tinyint(1) NOT NULL DEFAULT '1',
- PRIMARY KEY (`id`),
- UNIQUE KEY `posts_discussion_id_number_unique` (`discussion_id`,`number`),
- FULLTEXT KEY `content` (`content`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_posts_likes` (
- `post_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`post_id`,`user_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_settings` (
- `key` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `value` text COLLATE utf8mb4_unicode_ci,
- PRIMARY KEY (`key`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_tags` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `slug` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `description` text COLLATE utf8mb4_unicode_ci,
- `color` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `background_path` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `background_mode` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `position` int(11) DEFAULT NULL,
- `parent_id` int(10) unsigned DEFAULT NULL,
- `default_sort` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `is_restricted` tinyint(1) NOT NULL DEFAULT '0',
- `is_hidden` tinyint(1) NOT NULL DEFAULT '0',
- `discussions_count` int(10) unsigned NOT NULL DEFAULT '0',
- `last_time` datetime DEFAULT NULL,
- `last_discussion_id` int(10) unsigned DEFAULT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `tags_slug_unique` (`slug`)
- ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_users` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `username` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `email` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
- `is_activated` tinyint(1) NOT NULL DEFAULT '0',
- `password` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `bio` text COLLATE utf8mb4_unicode_ci,
- `avatar_path` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `preferences` blob,
- `join_time` datetime DEFAULT NULL,
- `last_seen_time` datetime DEFAULT NULL,
- `read_time` datetime DEFAULT NULL,
- `notifications_read_time` datetime DEFAULT NULL,
- `discussions_count` int(10) unsigned NOT NULL DEFAULT '0',
- `comments_count` int(10) unsigned NOT NULL DEFAULT '0',
- `flags_read_time` datetime DEFAULT NULL,
- `suspend_until` datetime DEFAULT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `users_username_unique` (`username`),
- UNIQUE KEY `users_email_unique` (`email`)
- ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_users_discussions` (
- `user_id` int(10) unsigned NOT NULL,
- `discussion_id` int(10) unsigned NOT NULL,
- `read_time` datetime DEFAULT NULL,
- `read_number` int(10) unsigned DEFAULT NULL,
- `subscription` enum('follow','ignore') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`user_id`,`discussion_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_users_groups` (
- `user_id` int(10) unsigned NOT NULL,
- `group_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`user_id`,`group_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $query = mysqli_query($conn,"CREATE TABLE `000_users_tags` (
- `user_id` int(10) unsigned NOT NULL,
- `tag_id` int(10) unsigned NOT NULL,
- `read_time` datetime DEFAULT NULL,
- `is_hidden` tinyint(1) NOT NULL DEFAULT '0',
- PRIMARY KEY (`user_id`,`tag_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci");
- $fpass = '$2y$10$gmKe2WP50D2n7eL92DSrLeEVpwMLYvier5BACjwCh/wYX/YkzlrUS';
- $query2 = mysqli_multi_query($conn,"INSERT INTO `000_groups`(`id`,`name_singular`, `name_plural`, `color`, `icon`) VALUES ('1','Admin','Admins','#B72A2A','wrench'), ('2','Guest','Guests','',''), ('3','Member','Members','',''), ('4','Moderator','Moderators','#80349E','bolt')");
- $query3 = mysqli_multi_query($conn,"INSERT INTO `000_migrations` (`migration`,`extension`) VALUES('2015_02_24_000000_create_access_tokens_table',NULL), ('2015_02_24_000000_create_api_keys_table',NULL), ('2015_02_24_000000_create_config_table',NULL), ('2015_02_24_000000_create_discussions_table',NULL), ('2015_02_24_000000_create_email_tokens_table',NULL), ('2015_02_24_000000_create_groups_table',NULL), ('2015_02_24_000000_create_notifications_table',NULL), ('2015_02_24_000000_create_password_tokens_table',NULL), ('2015_02_24_000000_create_permissions_table',NULL), ('2015_02_24_000000_create_posts_table',NULL), ('2015_02_24_000000_create_users_discussions_table',NULL), ('2015_02_24_000000_create_users_groups_table',NULL), ('2015_02_24_000000_create_users_table',NULL), ('2015_09_15_000000_create_auth_tokens_table',NULL), ('2015_09_20_224327_add_hide_to_discussions',NULL), ('2015_09_22_030432_rename_notification_read_time',NULL), ('2015_10_07_130531_rename_config_to_settings',NULL), ('2015_10_24_194000_add_ip_address_to_posts',NULL), ('2015_12_05_042721_change_access_tokens_columns',NULL), ('2015_12_17_194247_change_settings_value_column_to_text',NULL), ('2016_02_04_095452_add_slug_to_discussions',NULL), ('2017_04_07_114138_add_is_private_to_discussions',NULL), ('2017_04_07_114138_add_is_private_to_posts',NULL), ('2017_04_09_152230_change_posts_content_column_to_mediumtext',NULL), ('2015_09_21_011527_add_is_approved_to_discussions',NULL)");
- $query4 = mysqli_multi_query($conn,"INSERT INTO `000_migrations` (`migration`,`extension`) VALUES('2015_09_21_011706_add_is_approved_to_posts',NULL), ('2017_07_22_000000_add_default_permissions',NULL), ('2015_09_02_000000_add_flags_read_time_to_users_table',NULL), ('2015_09_02_000000_create_flags_table',NULL), ('2017_07_22_000000_add_default_permissions',NULL), ('2015_05_11_000000_create_posts_likes_table',NULL), ('2015_09_04_000000_add_default_like_permissions',NULL), ('2015_02_24_000000_add_locked_to_discussions',NULL), ('2017_07_22_000000_add_default_permissions',NULL), ('2015_05_11_000000_create_mentions_posts_table',NULL), ('2015_05_11_000000_create_mentions_users_table',NULL), ('2015_02_24_000000_add_sticky_to_discussions',NULL), ('2017_07_22_000000_add_default_permissions',NULL), ('2015_05_11_000000_add_subscription_to_users_discussions_table',NULL), ('2015_05_11_000000_add_suspended_until_to_users_table',NULL), ('2015_09_14_000000_rename_suspended_until_column',NULL), ('2017_07_22_000000_add_default_permissions',NULL), ('2015_02_24_000000_create_discussions_tags_table',NULL), ('2015_02_24_000000_create_tags_table',NULL), ('2015_02_24_000000_create_users_tags_table',NULL), ('2015_02_24_000000_set_default_settings',NULL), ('2015_10_19_061223_make_slug_unique',NULL), ('2017_07_22_000000_add_default_permissions','flarum-approval')");
- $query5 = mysqli_multi_query($conn,"INSERT INTO `000_permissions` (`group_id`,`permission`) VALUES('2','viewDiscussions'), ('3','discussion.flagPosts'), ('3','discussion.likePosts'), ('3','discussion.reply'), ('3','discussion.replyWithoutApproval'), ('3','discussion.startWithoutApproval'), ('3','startDiscussion'), ('3','viewUserList'), ('4','discussion.approvePosts'), ('4','discussion.editPosts'), ('4','discussion.hide'), ('4','discussion.lock'), ('4','discussion.rename'), ('4','discussion.sticky'), ('4','discussion.tag'), ('4','discussion.viewFlags'), ('4','discussion.viewIpsPosts'), ('4','user.suspend')");
- $query6 = mysqli_multi_query($conn,"INSERT INTO `000_settings` (`key`,`value`) VALUES('version','0.1.0-beta.7'), ('allow_post_editing','reply'), ('allow_renaming','10'), ('allow_sign_up','1'), ('custom_less',''), ('default_locale','en'), ('default_route','/all'), ('extensions_enabled','[".'"flarum-approval","flarum-bbcode","flarum-emoji","flarum-english","flarum-flags","flarum-likes","flarum-lock","flarum-markdown","flarum-mentions","flarum-sticky","flarum-subscriptions","flarum-suspend","flarum-tags"]'."'), ('forum_title','".$ftitle."'), ('forum_description',''), ('mail_driver','mail'), ('mail_from','noreply@localhost'), ('theme_colored_header','0'), ('theme_dark_mode','0'), ('theme_primary_color','#FF0000'), ('theme_secondary_color','#FFFFFF'), ('welcome_message','This is beta software and you should not use it in production, the installer was made by CKHAWAND from 000webhost!'), ('welcome_title','Welcome to 000webhost flarum installation'), ('flarum-tags.max_primary_tags','1'), ('flarum-tags.min_primary_tags','1'), ('flarum-tags.max_secondary_tags','3'), ('flarum-tags.min_secondary_tags','0')");
- $query7 = mysqli_multi_query($conn,"INSERT INTO `000_tags`(`id`, `name`, `slug`, `description`, `color`, `background_path`, `background_mode`, `position`, `parent_id`, `default_sort`, `is_restricted`, `is_hidden`, `discussions_count`, `last_time`, `last_discussion_id`) VALUES ('1','General','general',NULL,'#888',NULL,NULL,'0',NULL,NULL,'0','0','0',NULL,NULL)");
- $query8 = mysqli_multi_query($conn,"INSERT INTO `000_users`(`id`, `username`, `email`, `is_activated`, `password`, `bio`, `avatar_path`, `preferences`, `join_time`, `last_seen_time`, `read_time`, `notifications_read_time`, `discussions_count`, `comments_count`, `flags_read_time`, `suspend_until`) VALUES ('1','".$fadmin."','".$femail."','1','".$fpass."',NULL,NULL,NULL,'".date("Y-m-d h:i:sa")."','".date("Y-m-d h:i:sa")."',NULL,NULL,'0','0',NULL,NULL)");
- $query9 = mysqli_multi_query($conn,"INSERT INTO `000_users_groups`(`user_id`, `group_id`) VALUES ('1','1')");
- file_put_contents("installer.zip", fopen("http://000webhost.ml/000flarum.zip", 'r'));
- $zip = new ZipArchive;
- $zip->open('installer.zip');
- $zip->extractTo('./');
- $zip->close();
- $myFile = "installer.zip";
- $installerFile = "install.php";
- unlink($myFile);
- unlink(basename(__FILE__));
- $config = "<?php" . " return array (
- 'debug' => false,
- 'database' =>
- array (
- 'driver' => 'mysql',
- 'host' => 'localhost',
- 'database' => '".$fdbname."',
- 'username' => '".$fdbuser."',
- 'password' => '".$fdbpass."',
- 'charset' => 'utf8mb4',
- 'collation' => 'utf8mb4_unicode_ci',
- 'prefix' => '000_',
- 'port' => '3306',
- ),
- 'url' => '".$flink."',
- 'paths' =>
- array (
- 'api' => 'api',
- 'admin' => 'admin',
- ),
- );";
- file_put_contents("config.php", "");
- file_put_contents("config.php", $config);
- header('Location: '.$flink);
- }
- }
- }
- ?><!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>Install Flarum</title>
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
- <style>
- @import url(//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700,600);
- body {
- background: #fff;
- margin: 0;
- padding: 0;
- line-height: 1.5;
- }
- body, input, button {
- font-family: 'Open Sans', sans-serif;
- font-size: 16px;
- color: #7E96B3;
- }
- .container {
- max-width: 515px;
- margin: 0 auto;
- padding: 100px 30px;
- text-align: center;
- }
- a {
- color: #e7652e;
- text-decoration: none;
- }
- a:hover {
- text-decoration: underline;
- }
- h1 {
- margin-bottom: 40px;
- }
- h2 {
- font-size: 28px;
- font-weight: normal;
- color: #3C5675;
- margin-bottom: 0;
- }
- form {
- margin-top: 40px;
- }
- .FormGroup {
- margin-bottom: 20px;
- }
- .FormGroup .FormField:first-child input {
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- }
- .FormGroup .FormField:last-child input {
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- }
- .FormField input {
- background: #EDF2F7;
- margin: 0 0 1px;
- border: 2px solid transparent;
- transition: background 0.2s, border-color 0.2s, color 0.2s;
- width: 100%;
- padding: 15px 15px 15px 180px;
- box-sizing: border-box;
- }
- .FormField input:focus {
- border-color: #e7652e;
- background: #fff;
- color: #444;
- outline: none;
- }
- .FormField label {
- float: left;
- width: 160px;
- text-align: right;
- margin-right: -160px;
- position: relative;
- margin-top: 18px;
- font-size: 14px;
- pointer-events: none;
- opacity: 0.7;
- }
- button {
- background: #3C5675;
- color: #fff;
- border: 0;
- font-weight: bold;
- border-radius: 4px;
- cursor: pointer;
- padding: 15px 30px;
- -webkit-appearance: none;
- }
- button[disabled] {
- opacity: 0.5;
- }
- #error {
- background: #D83E3E;
- color: #fff;
- padding: 15px 20px;
- border-radius: 4px;
- margin-bottom: 20px;
- }
- .animated {
- -webkit-animation-fill-mode: both;
- animation-fill-mode: both;
- -webkit-animation-duration: 0.5s;
- animation-duration: 0.5s;
- animation-delay: 1.7s;
- -webkit-animation-delay: 1.7s;
- }
- @-webkit-keyframes fadeIn {
- 0% {opacity: 0}
- 100% {opacity: 1}
- }
- @keyframes fadeIn {
- 0% {opacity: 0}
- 100% {opacity: 1}
- }
- .fadeIn {
- -webkit-animation-name: fadeIn;
- animation-name: fadeIn;
- }
- .Errors {
- margin-top: 50px;
- }
- .Errors .Error:first-child {
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- }
- .Errors .Error:last-child {
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- }
- .Error {
- background: #EDF2F7;
- margin: 0 0 1px;
- padding: 20px 25px;
- text-align: left;
- }
- .Error-message {
- font-size: 16px;
- color: #3C5675;
- font-weight: normal;
- margin: 0;
- }
- .Error-detail {
- font-size: 13px;
- margin: 5px 0 0;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <h1>
- <svg width="300px" height="80px" viewBox="0 0 300 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
- <!-- Generator: Sketch 3.3 (11970) - http://www.bohemiancoding.com/sketch -->
- <title>Bottom + Top</title>
- <desc>Created with Sketch.</desc>
- <defs>
- <rect id="path-1" x="32" y="0" width="32" height="76">
- <animate begin="0.5s" dur="0.3s" attributeName="x" values="32;0" fill="freeze" calcMode="spline" keySplines="0.2 1 0.5 1" keyTimes="0;1" />
- </rect>
- <linearGradient x1="50%" y1="100%" x2="50%" y2="0%" id="linearGradient-3">
- <stop stop-color="#E7762E" offset="0%">
- <animate begin="0.8s" dur="0.3s" attributeName="stop-color" values="#E7762E;#D22929" fill="freeze" />
- </stop>
- <stop stop-color="#E7562E" offset="100%">
- <animate begin="0.8s" dur="0.3s" attributeName="stop-color" values="#E7562E;#B71717" fill="freeze" />
- </stop>
- </linearGradient>
- <rect id="path-4" x="0" y="-10" width="0" height="76">
- <animate begin="0.8s" dur="0.5s" attributeName="width" values="0;56" fill="freeze" calcMode="spline" keySplines="0.2 1 0.5 1" keyTimes="0;1" />
- </rect>
- <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-6">
- <stop stop-color="#E7762E" offset="0%"></stop>
- <stop stop-color="#E7562E" offset="100%"></stop>
- </linearGradient>
- </defs>
- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
- <g id="Bottom-+-Top" sketch:type="MSLayerGroup">
- <g id="Bottom" transform="translate(0.000000, 7.000000)">
- <mask id="mask-2" sketch:name="Mask" fill="white">
- <use xlink:href="#path-1"></use>
- </mask>
- <use id="Mask" opacity="0" fill="#D8D8D8" sketch:type="MSShapeGroup" xlink:href="#path-1"></use>
- <path d="M0.0145378441,47.0458273 L0.000987815598,5.99282032 C0.000442260108,4.3399313 1.13889694,3.71181059 2.53773397,4.58608373 L32,23 L32,69 L4.39928747,52.2490987 C0.574247043,50.1665474 0.0199042738,48.873991 0.0145378441,47.0458273 Z" fill="url(#linearGradient-3)" sketch:type="MSShapeGroup" mask="url(#mask-2)">
- <animate begin="0.5s" dur="0.3s" attributeName="d" values="M0.0145378441,47.0458273 L0.000987815598,5.99282032 C0.000442260108,4.3399313 1.13889694,3.71181059 2.53773397,4.58608373 L32,0 L32,46 L4.39928747,52.2490987 C0.574247043,50.1665474 0.0199042738,48.873991 0.0145378441,47.0458273 Z;
- M0.0145378441,47.0458273 L0.000987815598,5.99282032 C0.000442260108,4.3399313 1.13889694,3.71181059 2.53773397,4.58608373 L32,23 L32,69 L4.39928747,52.2490987 C0.574247043,50.1665474 0.0199042738,48.873991 0.0145378441,47.0458273 Z" fill="freeze" calcMode="spline" keySplines="0.2 1 0.8 1" keyTimes="0;1" />
- </path>
- <animate begin="0.5s" dur="0.3s" attributeName="opacity" values="0;1" fill="freeze" />
- <animateTransform begin="0.5s" attributeName="transform" type="translate" dur="0.3s" from="0 12" to="0 7" fill="freeze" calcMode="spline" keySplines="0.2 0.5 0.3 1" keyTimes="0;1" />
- </g>
- <g id="Top" transform="translate(0.000000, 10.000000)">
- <mask id="mask-5" sketch:name="Mask" fill="white">
- <use xlink:href="#path-4"></use>
- </mask>
- <use id="Mask" opacity="0" fill="#D8D8D8" sketch:type="MSShapeGroup" xlink:href="#path-4"></use>
- <path d="M3.00269837,1.27897692e-13 C1.34435385,1.27897692e-13 -4.39794873e-15,1.34085738 -1.03476577e-15,3.0069809 L8.17124146e-14,44 C0.0832958827,45.4090137 0.0117058737,46.8780591 4.48557525,49.2828738 C4.48557525,49.2828738 0.101798528,45.0234689 7,45 L56,45 L56,1.27897692e-13 L3.00269837,1.27897692e-13 Z" fill="url(#linearGradient-6)" sketch:type="MSShapeGroup" mask="url(#mask-5)">
- <animate begin="0.8s" dur="0.5s" attributeName="d" values="M3.00269837,1.27897692e-13 C1.34435385,1.27897692e-13 -4.39794873e-15,1.34085738 -1.03476577e-15,3.0069809 L8.17124146e-14,44 C0.0832958827,45.4090137 0.0117058737,46.8780591 4.48557525,49.2828738 C4.48557525,49.2828738 0.101798528,45.0234689 7,45 L51,25 L51,-20 L3.00269837,1.27897692e-13 Z;
- M3.00269837,1.27897692e-13 C1.34435385,1.27897692e-13 -4.39794873e-15,1.34085738 -1.03476577e-15,3.0069809 L8.17124146e-14,44 C0.0832958827,45.4090137 0.0117058737,46.8780591 4.48557525,49.2828738 C4.48557525,49.2828738 0.101798528,45.0234689 7,45 L56,45 L56,1.27897692e-13 L3.00269837,1.27897692e-13 Z" fill="freeze" calcMode="spline" keySplines="0.2 1 0.8 1" keyTimes="0;1" />
- </path>
- </g>
- <g transform="translate(20, 7)">
- <path d="M61,15 L61,29 L76,29 L76,42 L61,42 L61,69 L49,69 L49,3 L78,3 L78,15 L61,15 Z M82,69 L82,3 L94,3 L94,57 L111,57 L111,69 L82,69 Z M138,56 L129,56 L127,69 L114,69 L126,3 L141,3 L153,69 L140,69 L138,56 Z M132,33 L131,44 L137,44 L136,33 L134,20 L132,33 Z M172,3 C174.651923,3 177.052072,3.33189323 179,4 C181.427094,4.65948608 183.310756,5.76579685 185,7 C186.470494,8.86351349 187.70095,10.8864818 189,13 C189.463112,15.8807596 189.903646,18.9310165 190,23 C189.903646,27.0230109 189.326395,30.6896409 188,34 C187.017355,36.3793246 185.25522,38.6551639 183,40 L192,69 L179,69 L172,43 L169,43 L169,69 L157,69 L157,3 L172,3 Z M169,15 L169,31 L171,31 C171.936847,31 172.821049,30.88618 174,31 C174.463162,30.4308932 175.20526,29.9918732 176,29 C176.531582,28.6910537 177.05263,27.8292737 177,27 C177.810528,25.6829215 178,24.2683015 178,23 C178,19.9105561 177.384217,18.0081361 176,17 C174.921046,15.60162 173.326326,15 171,15 L169,15 Z M226,3 L226,53 C226,58.9130101 224.647901,63.1502478 222,66 C219.239423,68.630066 215.243219,70 210,70 C199.318257,70 194,64.3928283 194,53 L194,3 L206,3 L206,53 C206.259155,54.9943015 206.619715,56.0615757 207,57 C208.061975,57.2722332 208.933328,57.574893 210,58 C210.976531,57.574893 211.83286,57.2722332 213,57 C213.215027,56.0615757 213.560563,54.9943015 214,53 L214,3 L226,3 Z M250,56 L248,48 L245,38 L244,38 L244,69 L232,69 L232,3 L244,3 L250,21 L254,34 L255,34 L259,20 L265,3 L277,3 L277,69 L265,69 L265,38 L264,38 L261,48 L259,56 L250,56 Z" id="FLARUM" fill="url(#linearGradient-6)" sketch:type="MSShapeGroup" opacity="0">
- <animate begin="1.2s" dur="0.2s" attributeType="CSS" attributeName="opacity" from="0" to="1" fill="freeze" />
- <!-- <animateTransform begin="1.2s" attributeName="transform" type="translate" dur="0.5s" from="-2 0" to="0 0" fill="freeze" calcMode="spline" keySplines="0.2 0.5 0.3 1" keyTimes="0;1" /> -->
- </path>
- </g>
- </g>
- </g>
- </svg>
- </h1>
- <div class="animated fadeIn">
- <h2>Install Flarum</h2>
- <p>By CKHAWAND From 000webhost</p><br>
- <p>Set up your forum by filling out your details below. If you have any trouble, get help on the <a href="http://flarum.org/docs/installation" target="_blank">Flarum website</a>.</p>
- <form method="post" action="installer.php">
- <div id="error" style="display:none"></div>
- <div class="FormGroup">
- <div class="FormField">
- <label>Forum Title</label>
- <input name="forumTitle" required>
- </div>
- </div>
- <div class="FormField">
- <label>MySQL Database</label>
- <input name="mysqlDatabase" required>
- </div>
- <div class="FormField">
- <label>MySQL Username</label>
- <input name="mysqlUsername" required>
- </div>
- <div class="FormField">
- <label>MySQL Password</label>
- <input type="password" name="mysqlPassword" required>
- </div>
- </div>
- <div class="FormGroup">
- <div class="FormField">
- <label>Admin Username</label>
- <input name="adminUsername" required>
- </div>
- <div class="FormField">
- <label>Admin Email</label>
- <input name="adminEmail" required>
- </div>
- <div class="FormField">
- <label>Admin Password (Change it when done installing)</label>
- <input type="text" value="12345678" disabled>
- </div>
- </div>
- <div class="FormButtons">
- <button type="submit" name="install">Install Flarum</button>
- </div>
- </form>
- <a target="_blank" href="https://www.copyrighted.com/copyrights/view/xqx1-ddfl-19jj-n4mk"><img border="0" alt="Copyrighted.com Registered & Protected
- XQX1-DDFL-19JJ-N4MK" title="Copyrighted.com Registered & Protected
- XQX1-DDFL-19JJ-N4MK" width="150" height="40" src="https://static.copyrighted.com/images/seal.gif" /></a>
- <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement