Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
finished multi-page installer (closes #68)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-g committed Jun 30, 2015
1 parent 3b5a64f commit aeb286f
Show file tree
Hide file tree
Showing 17 changed files with 677 additions and 27 deletions.
45 changes: 45 additions & 0 deletions app_config/cache/install/language/1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
$q = 'INSERT INTO `#^language`(language,langkey,value,category) VALUES';
$lang_insert_data = array (
0 => '(\'English\',\'index\',\'Index\',\'main\')',
1 => '(\'English\',\'forum\',\'Forum\',\'main\')',
2 => '(\'English\',\'forums\',\'Forums\',\'main\')',
3 => '(\'English\',\'Error\',\'Error\',\'main\')',
4 => '(\'English\',\'username\',\'Username\',\'main\')',
5 => '(\'English\',\'ipaddr\',\'IP Address\',\'main\')',
6 => '(\'English\',\'message\',\'Message\',\'main\')',
7 => '(\'English\',\'actions\',\'Actions\',\'main\')',
8 => '(\'English\',\'delete\',\'Delete\',\'main\')',
9 => '(\'English\',\'edit\',\'Edit\',\'main\')',
10 => '(\'English\',\'submit\',\'Submit\',\'main\')',
11 => '(\'English\',\'preview\',\'Preview\',\'main\')',
12 => '(\'English\',\'update\',\'Update\',\'main\')',
13 => '(\'English\',\'add\',\'Add\',\'main\')',
14 => '(\'English\',\'upload\',\'Upload\',\'main\')',
15 => '(\'English\',\'export\',\'Export\',\'main\')',
16 => '(\'English\',\'download\',\'Download\',\'main\')',
17 => '(\'English\',\'information\',\'Information\',\'main\')',
18 => '(\'English\',\'category\',\'Category\',\'main\')',
19 => '(\'English\',\'description\',\'Description\',\'main\')',
20 => '(\'English\',\'name\',\'Name\',\'main\')',
21 => '(\'English\',\'posts\',\'Posts\',\'main\')',
22 => '(\'English\',\'topic\',\'Topic\',\'main\')',
23 => '(\'English\',\'topics\',\'Topics\',\'main\')',
24 => '(\'English\',\'post\',\'Post\',\'main\')',
25 => '(\'English\',\'time\',\'Time\',\'main\')',
26 => '(\'English\',\'user\',\'User\',\'main\')',
27 => '(\'English\',\'go\',\'Go\',\'main\')',
28 => '(\'English\',\'on\',\'On\',\'main\')',
29 => '(\'English\',\'posted\',\'Posted\',\'main\')',
30 => '(\'English\',\'by\',\'by\',\'main\')',
31 => '(\'English\',\'enable?\',\'Enable?\',\'main\')',
32 => '(\'English\',\'days\',\'Days\',\'main\')',
33 => '(\'English\',\'save\',\'Save changes\',\'main\')',
34 => '(\'English\',\'and\',\'and\',\'main\')',
35 => '(\'English\',\'or\',\'or\',\'main\')',
36 => '(\'English\',\'rules\',\'Rules\',\'main\')',
37 => '(\'English\',\'registration\',\'Registration\',\'main\')',
38 => '(\'English\',\'minutes\',\'Minutes\',\'main\')',
);
$q = new DBMassInsert('language', array('language', 'langkey', 'value', 'category'), $lang_insert_data, 'Failed to insert language data');
$q->commit();
46 changes: 46 additions & 0 deletions app_config/cache/install/language/10.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php
$q = 'INSERT INTO `#^language`(language,langkey,value,category) VALUES';
$lang_insert_data = array (
0 => '(\'English\',\'redirmsg\',\'If you are not redirected within a few seconds, <a href=\\"$1\\">click here</a> to continue.\',\'admin\')',
1 => '(\'English\',\'updatingtopic\',\'Updating topic #$1\',\'admin\')',
2 => '(\'English\',\'updatingforum\',\'Updating forum #$1\',\'admin\')',
3 => '(\'English\',\'reparsingposts\',\'Reparsing posts - now is a good time to get off the computer for a little while. :)\',\'admin\')',
4 => '(\'English\',\'reparsingpost\',\'Reparsing post #$1\',\'admin\')',
5 => '(\'English\',\'reparsingsigs\',\'Reparsing signatures - now is a good time to get off the computer for a little while. :)\',\'admin\')',
6 => '(\'English\',\'reparsingsig\',\'Reparsing signature #$1\',\'admin\')',
7 => '(\'English\',\'rebuildingsearch\',\'Rebuilding search index - now is a good time to get off the computer for a little while. :)\',\'admin\')',
8 => '(\'English\',\'procpost\',\'Processing post #$1\',\'admin\')',
9 => '(\'English\',\'updatingpostcounts\',\'Updating user post counts - now is a good time to get off the computer for a little while. :)\',\'admin\')',
10 => '(\'English\',\'recountinguser\',\'Recounting user #$1\',\'admin\')',
11 => '(\'English\',\'recountingtopicreplies\',\'Recalculating topic reply counts - now is a good time to get off the computer for a little while. :)\',\'admin\')',
12 => '(\'English\',\'maintenancedesc\',\'From this page, you can run the various maintenance utilities necessary to help keep your forum working.\',\'admin\')',
13 => '(\'English\',\'rebuildsearch\',\'Rebuild search index\',\'admin\')',
14 => '(\'English\',\'rebuildsearchdesc\',\'If there are problems searching, you can rebuild the search index.\',\'admin\')',
15 => '(\'English\',\'deleteorphans\',\'Delete orphaned topics\',\'admin\')',
16 => '(\'English\',\'deleteorphansdesc\',\'If you are ever getting a message saying a topic has no posts in it, run this utility to remove all of them.\',\'admin\')',
17 => '(\'English\',\'updatelastpost\',\'Update topic/forum last post data\',\'admin\')',
18 => '(\'English\',\'updatelastpostdesc\',\'If the last post data in topics and forums appears to be invalid, run this tool to fix it.\',\'admin\')',
19 => '(\'English\',\'reparse\',\'Reparse\',\'admin\')',
20 => '(\'English\',\'reparsedesc\',\'This forum pre-parses BBCode, meaning that the BBCode is converted into HTML at the time of posting/editing the post. This means that any changes to BBCode will not affect old posts. If you have added new BBCode and want to apply it on old posts, you should run this utility.\',\'admin\')',
21 => '(\'English\',\'reparseposts\',\'Reparse all posts\',\'admin\')',
22 => '(\'English\',\'reparsesigs\',\'Reparse all signatures\',\'admin\')',
23 => '(\'English\',\'updatecounts\',\'Update counts\',\'admin\')',
24 => '(\'English\',\'updateuserpostcounts\',\'Update user post counts\',\'admin\')',
25 => '(\'English\',\'updateforumpostcounts\',\'Update forum post counts\',\'admin\')',
26 => '(\'English\',\'updateforumtopiccounts\',\'Update forum topic counts\',\'admin\')',
27 => '(\'English\',\'updatetopicpostcounts\',\'Update topic post counts\',\'admin\')',
28 => '(\'English\',\'defaultusergroup\',\'Default user group:\',\'admin\')',
29 => '(\'English\',\'newusergroup\',\'Create new user group\',\'admin\')',
30 => '(\'English\',\'groupname\',\'Group name\',\'admin\')',
31 => '(\'English\',\'groupnamedesc\',\'This is the title of the group itself.\',\'admin\')',
32 => '(\'English\',\'usertitle\',\'User title\',\'admin\')',
33 => '(\'English\',\'usertitledesc\',\'This will show up under a user&apos;s username in their posts.\',\'admin\')',
34 => '(\'English\',\'editpostsdesc\',\'This option allows users to edit their own posts.\',\'admin\')',
35 => '(\'English\',\'deletepostsdesc\',\'This option allows users to delete their own posts.\',\'admin\')',
36 => '(\'English\',\'modprivs\',\'Moderator privileges\',\'admin\')',
37 => '(\'English\',\'modprivsdesc\',\'This option gives users access to the moderator tools, which include being able to edit and delete everybody&apos;s posts, ban users, and view deleted posts.\',\'admin\')',
38 => '(\'English\',\'adminprivs\',\'Administrator privileges\',\'admin\')',
39 => '(\'English\',\'adminprivsdesc\',\'This option gives users access to the complete admin panel.\',\'admin\')',
);
$q = new DBMassInsert('language', array('language', 'langkey', 'value', 'category'), $lang_insert_data, 'Failed to insert language data');
$q->commit();
46 changes: 46 additions & 0 deletions app_config/cache/install/language/11.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php
$q = 'INSERT INTO `#^language`(language,langkey,value,category) VALUES';
$lang_insert_data = array (
0 => '(\'English\',\'allowsig\',\'Allow signature\',\'admin\')',
1 => '(\'English\',\'allowsigdesc\',\'This option allows users to have a signature under their posts.\',\'admin\')',
2 => '(\'English\',\'viewuserlist\',\'View user list\',\'admin\')',
3 => '(\'English\',\'viewuserlistdesc\',\'This option allows users to view the user list.\',\'admin\')',
4 => '(\'English\',\'postlinks\',\'Post links\',\'admin\')',
5 => '(\'English\',\'postlinksdesc\',\'This option allows users to include the [url] tag in their posts.\',\'admin\')',
6 => '(\'English\',\'postimgs\',\'Post images\',\'admin\')',
7 => '(\'English\',\'postimgsdesc\',\'This option allows users to include the [img] tag in their posts.\',\'admin\')',
8 => '(\'English\',\'postflood\',\'Post flood\',\'admin\')',
9 => '(\'English\',\'postflooddesc\',\'Users must wait this many seconds between posts. Set to zero for no limit.\',\'admin\')',
10 => '(\'English\',\'maxpostsperhour\',\'Max posts per hour\',\'admin\')',
11 => '(\'English\',\'maxpostsperhourdesc\',\'Users in this group may only post this many posts in one hour, and must wait until fewer than this many posts have been posted by that user in the past hour before continuing. Set to zero for no limit.\',\'admin\')',
12 => '(\'English\',\'userlistvisgrps\',\'Visible groups on user list\',\'admin\')',
13 => '(\'English\',\'userlistvisgrpsdesc\',\'If a user in this group visits the user list, only users in the groups checked above will be visible. Uncheck all options to enable all groups.\',\'admin\')',
14 => '(\'English\',\'promoteto\',\'Promote to\',\'admin\')',
15 => '(\'English\',\'dontpromote\',\'[Do not promote]\',\'admin\')',
16 => '(\'English\',\'after\',\'after\',\'admin\')',
17 => '(\'English\',\'deleteusergroup\',\'Delete user group\',\'admin\')',
18 => '(\'English\',\'deletegroupconfirm\',\'Are you sure you want to delete the user group &quot;$1&quot;?\',\'admin\')',
19 => '(\'English\',\'moveallusersto\',\'Move all users in this group to: \',\'admin\')',
20 => '(\'English\',\'accessboard\',\'Access board\',\'admin\')',
21 => '(\'English\',\'accessboarddesc\',\'Access the board at all (if not enabled, users will only be able to log in and register)\',\'admin\')',
22 => '(\'English\',\'viewforums\',\'View forums\',\'admin\')',
23 => '(\'English\',\'viewforumsdesc\',\'Allow viewing of new forums by default\',\'admin\')',
24 => '(\'English\',\'posttopicsdesc\',\'Allow posting new topics by default when creating new forums\',\'admin\')',
25 => '(\'English\',\'postrepliesdesc\',\'Allow posting replies by default when creating new forums\',\'admin\')',
26 => '(\'English\',\'maxwidth\',\'Maximum width (pixels)\',\'admin\')',
27 => '(\'English\',\'maxheight\',\'Maximum height (pixels)\',\'admin\')',
28 => '(\'English\',\'avatarmaxwidthdesc\',\'The maxiumum width allowed (in pixels), generally between 60 and 128 is recommended\',\'admin\')',
29 => '(\'English\',\'avatarmaxheightdesc\',\'The maxiumum height allowed (in pixels), generally between 60 and 128 is recommended\',\'admin\')',
30 => '(\'English\',\'uploadfailed\',\'File upload failed.\',\'admin\')',
31 => '(\'English\',\'notzip\',\'The file you uploaded is not a ZIP file.\',\'admin\')',
32 => '(\'English\',\'noinfophp\',\'The extension did not have an info.php file\',\'admin\')',
33 => '(\'English\',\'badextinfo\',\'The $ext_info variable was either not set or not an array in the info.php file.\',\'admin\')',
34 => '(\'English\',\'extinfomissingkey\',\'The $ext_info variable was missing the following required key: <b>$1</b>\',\'admin\')',
35 => '(\'English\',\'extinstallation\',\'Extension installation\',\'admin\')',
36 => '(\'English\',\'makingdbchanges\',\'Making database changes - success\',\'admin\')',
37 => '(\'English\',\'runninginstallphp\',\'Running install.php - success\',\'admin\')',
38 => '(\'English\',\'copyingfiles\',\'Copying files - success\',\'admin\')',
39 => '(\'English\',\'nochangesvar\',\'The variable $changes was not set in changes.php\',\'admin\')',
);
$q = new DBMassInsert('language', array('language', 'langkey', 'value', 'category'), $lang_insert_data, 'Failed to insert language data');
$q->commit();
46 changes: 46 additions & 0 deletions app_config/cache/install/language/12.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php
$q = 'INSERT INTO `#^language`(language,langkey,value,category) VALUES';
$lang_insert_data = array (
0 => '(\'English\',\'changesmissingkey\',\'$changes[$1] is missing a key.\',\'admin\')',
1 => '(\'English\',\'invalidchangetype\',\'Invalid change type: \',\'admin\')',
2 => '(\'English\',\'installcomplete\',\'Installation complete!\',\'admin\')',
3 => '(\'English\',\'unzipfailed\',\'Something went wrong with unzipping. Not sure what. :(\',\'admin\')',
4 => '(\'English\',\'installnewext\',\'Install new extension\',\'admin\')',
5 => '(\'English\',\'forumnotwritable\',\'Your forum root directory is not writable. To fix this, you need to change the permissions. When in doubt, chmod to 0777.\',\'admin\')',
6 => '(\'English\',\'existingexts\',\'Existing extensions\',\'admin\')',
7 => '(\'English\',\'noexts\',\'No extensions installed. :(\',\'admin\')',
8 => '(\'English\',\'website\',\'Website\',\'admin\')',
9 => '(\'English\',\'supporturl\',\'Support URL\',\'admin\')',
10 => '(\'English\',\'uninstall\',\'Uninstall\',\'admin\')',
11 => '(\'English\',\'nouninstallphp\',\'The uninstall.php file is not available. Please contact the extension creator.\',\'admin\')',
12 => '(\'English\',\'filenotwritable\',\'The following file/directory is not writable: $1. Please change the permissions to fix this. When in doubt, chmod to 0777.\',\'admin\')',
13 => '(\'English\',\'tempdirfailed\',\'Could not make the temporary directory for your extension. Please make sure that the temp directory (/temp from your forum root) exists and is writable.\',\'admin\')',
14 => '(\'English\',\'uninstallext\',\'Uninstall extension\',\'admin\')',
15 => '(\'English\',\'uninstallextintro\',\'Are you sure you want to install the extension <strong>$1</strong>?\',\'admin\')',
16 => '(\'English\',\'success\',\'Success\',\'admin\')',
17 => '(\'English\',\'uninstalled\',\'The selected extension was successfully uninstalled.\',\'admin\')',
18 => '(\'English\',\'return\',\'Return\',\'admin\')',
19 => '(\'English\',\'boardsettings\',\'Board settings\',\'admin\')',
20 => '(\'English\',\'boardtitle\',\'Board title\',\'admin\')',
21 => '(\'English\',\'adminemail\',\'Administrator email\',\'admin\')',
22 => '(\'English\',\'onlinetimeout\',\'Online timeout\',\'admin\')',
23 => '(\'English\',\'allowPM\',\'Allow private messaging\',\'admin\')',
24 => '(\'English\',\'allownotifs\',\'Allow notifications\',\'admin\')',
25 => '(\'English\',\'onlinetimeoutdesc\',\'If a user does not visit any page after this many seconds, they will be considered offline. Use 0 to disable online/offline display.\',\'admin\')',
26 => '(\'English\',\'verifyregs\',\'Verify new registrations\',\'admin\')',
27 => '(\'English\',\'disableregs\',\'Disable new registrations\',\'admin\')',
28 => '(\'English\',\'verifyregsdesc\',\'Verify new user registrations by emailing them an access code\',\'admin\')',
29 => '(\'English\',\'disableregsdesc\',\'Do not allow new registrations\',\'admin\')',
30 => '(\'English\',\'general\',\'General\',\'admin\')',
31 => '(\'English\',\'userstopicsposts\',\'Users, topics, and posts\',\'admin\')',
32 => '(\'English\',\'enableavatars\',\'Enable avatars\',\'admin\')',
33 => '(\'English\',\'enableavatarsdesc\',\'An avatar is a user icon that will show next to all of their posts.\',\'admin\')',
34 => '(\'English\',\'rulesdesc\',\'Users must agree to these rules when they register. This is not parsed as BBCode and may contain HTML.\',\'admin\')',
35 => '(\'English\',\'announcement\',\'Announcement\',\'admin\')',
36 => '(\'English\',\'announcementdesc\',\'Here you may specify an announcement to appear in the top banner under the navigation bar. You may use HTML as this is not parsed as BBCode.\',\'admin\')',
37 => '(\'English\',\'enableannouncement\',\'Enable announcement?\',\'admin\')',
38 => '(\'English\',\'siteappearance\',\'Site appearance\',\'admin\')',
39 => '(\'English\',\'customfooter\',\'Here you may specify custom text to appear below the &quot;Powered by FutureBB&quot; message.\',\'admin\')',
);
$q = new DBMassInsert('language', array('language', 'langkey', 'value', 'category'), $lang_insert_data, 'Failed to insert language data');
$q->commit();
46 changes: 46 additions & 0 deletions app_config/cache/install/language/13.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php
$q = 'INSERT INTO `#^language`(language,langkey,value,category) VALUES';
$lang_insert_data = array (
0 => '(\'English\',\'topicsperpage\',\'Topics per page\',\'admin\')',
1 => '(\'English\',\'postsperpage\',\'Posts per page\',\'admin\')',
2 => '(\'English\',\'showpostcounts\',\'Show user post counts\',\'admin\')',
3 => '(\'English\',\'showpostcountsdesc\',\'Show users&apos; post counts in their posts\',\'admin\')',
4 => '(\'English\',\'zeronolimit\',\'Set an option to zero for no limit\',\'admin\')',
5 => '(\'English\',\'maxchars\',\'Maximum number of characters\',\'admin\')',
6 => '(\'English\',\'maxlines\',\'Maximum number of lines\',\'admin\')',
7 => '(\'English\',\'maintenancemode\',\'Maintenance mode\',\'admin\')',
8 => '(\'English\',\'maintenancemsg\',\'Maintenance message:\',\'admin\')',
9 => '(\'English\',\'autoactivatemaint\',\'Automatically activate maintenance mode in\',\'admin\')',
10 => '(\'English\',\'maintschedpanel\',\'(Maintenance mode is already scheduled to turn on at $1).\',\'admin\')',
11 => '(\'English\',\'autodeactivatemaint\',\'Automatically deactivate maintenance mode in \',\'admin\')',
12 => '(\'English\',\'maintoffschedpanel\',\'(Maintenance mode is already scheduled to turn off at $1).\',\'admin\')',
13 => '(\'English\',\'serverinfo\',\'Server info\',\'admin\')',
14 => '(\'English\',\'fbbversion\',\'FutureBB Version\',\'admin\')',
15 => '(\'English\',\'database\',\'Database\',\'admin\')',
16 => '(\'English\',\'os\',\'Operating system\',\'admin\')',
17 => '(\'English\',\'newversionmsg\',\'A new version of FutureBB is available! You can download it on <a href=\\"http://futuresight.org/products/futurebb\\">the FutureSight Technologies website</a>.\',\'admin\')',
18 => '(\'English\',\'maxquotedepth\',\'Maximum quote depth\',\'admin\')',
19 => '(\'English\',\'quotedepth>1\',\'The maximum quote depth must be greater than 1\',\'admin\')',
20 => '(\'English\',\'fixerrors\',\'The following errors must be fixed before continuing:\',\'admin\')',
21 => '(\'English\',\'avatarmaxfilesize\',\'Maxiumum avatar file size\',\'admin\')',
22 => '(\'English\',\'avatarfilesizedesc\',\'The maximum allowed avatar file size (KiB)\',\'admin\')',
23 => '(\'English\',\'enablebbcode\',\'Enable BBCode\',\'admin\')',
24 => '(\'English\',\'enablebbcodedesc\',\'Allow BBCode in posts - if this box is changed, it will not affect existing posts unless the &quot;reparse posts&quot; tool is used on the maintenance page\',\'admin\')',
25 => '(\'English\',\'enablesmilies\',\'Enable smilies\',\'admin\')',
26 => '(\'English\',\'enablesmiliesdesc\',\'Enable smilies - if this box is changed, it will not affect existing posts unless the &quot;reparse posts&quot; tool is used on the maintenance page\',\'admin\')',
27 => '(\'English\',\'undeletepostheader\',\'Are you sure you want to undelete the post? You can view it below.\',\'admin\')',
28 => '(\'English\',\'undeletetopicheader\',\'Are you sure you wish to undelete this topic?\',\'admin\')',
29 => '(\'English\',\'interface\',\'Interface\',\'admin\')',
30 => '(\'English\',\'addforum\',\'Add forum\',\'admin\')',
31 => '(\'English\',\'dateformat\',\'Date format\',\'admin\')',
32 => '(\'English\',\'timeformat\',\'Time format\',\'admin\')',
33 => '(\'English\',\'basegroupon\',\'Base new group on:\',\'admin\')',
34 => '(\'English\',\'forumalreadyopen\',\'You have modified a forum or already have one open for editing. Please refresh the page and then try again.\',\'admin\')',
35 => '(\'English\',\'existingwords\',\'Existing words\',\'admin\')',
36 => '(\'English\',\'bbcodeinPM\',\'BBCode in private messages\',\'admin\')',
37 => '(\'English\',\'otherforumeditsconfirmrefresh\',\'Edits to a forum have been submitted in another window. Do you want to refresh this page to reflect those changes?\',\'admin\')',
38 => '(\'English\',\'archiveforum\',\'Archive forum\',\'admin\')',
39 => '(\'English\',\'changecategory\',\'Change category\',\'admin\')',
);
$q = new DBMassInsert('language', array('language', 'langkey', 'value', 'category'), $lang_insert_data, 'Failed to insert language data');
$q->commit();
Loading

0 comments on commit aeb286f

Please sign in to comment.