Permalink
Browse files

Version 2.3 updated by margarett. Removed support for SMF 1.1.x. Remo…

…ved upgrade options from ancient versions. Fixed installer to work with 2.0.9+ and some file locations (scripts and CSS).
  • Loading branch information...
realdigger
realdigger committed Mar 2, 2017
1 parent 2dbccc9 commit 1c1761cc8c8b7c3c56e8ac029e6a79995737483a
Showing with 147 additions and 50,845 deletions.
  1. +5 −7 SMF_Garage_License.txt
  2. +9 −7 changelog.txt
  3. +0 −1,802 install_db-smf1.php
  4. +14 −134 install_db-smf2.php
  5. +0 −1,138 modification-smf1.xml
  6. +18 −32 modification-smf2.xml
  7. +5 −56 package-info.xml
  8. +38 −0 readme.txt
  9. +0 −945 smf1/Garage.english-utf8.php
  10. +0 −945 smf1/Garage.english.php
  11. +0 −13,205 smf1/Garage.php
  12. +0 −9,827 smf1/Garage.template.php
  13. +0 −3 smf1/Garage/.cvsignore
  14. +0 −2 smf1/Garage/CVS/Entries
  15. +0 −1 smf1/Garage/CVS/Entries.Extra
  16. 0 smf1/Garage/CVS/Entries.Extra.Old
  17. +0 −1 smf1/Garage/CVS/Entries.Log
  18. 0 smf1/Garage/CVS/Entries.Old
  19. +0 −1 smf1/Garage/CVS/Repository
  20. +0 −1 smf1/Garage/CVS/Root
  21. +0 −3 smf1/Garage/uploads/.cvsignore
  22. +0 −2 smf1/Garage/uploads/CVS/Entries
  23. +0 −1 smf1/Garage/uploads/CVS/Entries.Extra
  24. +0 −2 smf1/Garage/uploads/CVS/Entries.Extra.Old
  25. +0 −2 smf1/Garage/uploads/CVS/Entries.Old
  26. +0 −1 smf1/Garage/uploads/CVS/Repository
  27. +0 −1 smf1/Garage/uploads/CVS/Root
  28. +0 −4,395 smf1/GarageFunctions.php
  29. +0 −5,652 smf1/GarageManagement.php
  30. +0 −3,361 smf1/GarageManagement.template.php
  31. +0 −1,644 smf1/GarageSettings.php
  32. +0 −1,356 smf1/GarageSettings.template.php
  33. BIN smf1/RC1 SMF2 - Conflicts Removed.zip
  34. BIN smf1/RC1 SMF2.zip
  35. +0 −1,533 smf1/SSI_Garage.php
  36. +0 −151 smf1/garage_functions.js
  37. +0 −3 smf1/images/.cvsignore
  38. +0 −51 smf1/images/CVS/Entries
  39. +0 −50 smf1/images/CVS/Entries.Extra
  40. 0 smf1/images/CVS/Entries.Extra.Old
  41. 0 smf1/images/CVS/Entries.Old
  42. +0 −1 smf1/images/CVS/Repository
  43. +0 −1 smf1/images/CVS/Root
  44. BIN smf1/images/Garage_Card_01.png
  45. BIN smf1/images/Garage_Card_02.png
  46. BIN smf1/images/Garage_Card_03.png
  47. BIN smf1/images/Garage_Card_04.png
  48. BIN smf1/images/bubble.png
  49. BIN smf1/images/check.gif
  50. BIN smf1/images/convert_loading.gif
  51. BIN smf1/images/garage_add_dynorun.gif
  52. BIN smf1/images/garage_add_insurance.gif
  53. BIN smf1/images/garage_add_lap.gif
  54. BIN smf1/images/garage_add_modification.gif
  55. BIN smf1/images/garage_add_quartermile.gif
  56. BIN smf1/images/garage_add_service.gif
  57. BIN smf1/images/garage_browse.gif
  58. BIN smf1/images/garage_camera.gif
  59. BIN smf1/images/garage_create_vehicle.gif
  60. BIN smf1/images/garage_delete.gif
  61. BIN smf1/images/garage_delete_vehicle.gif
  62. BIN smf1/images/garage_dynorun_table.gif
  63. BIN smf1/images/garage_edit.gif
  64. BIN smf1/images/garage_edit_vehicle.gif
  65. BIN smf1/images/garage_garage_review.gif
  66. BIN smf1/images/garage_insurance_review.gif
  67. BIN smf1/images/garage_lap_table.gif
  68. BIN smf1/images/garage_loading.gif
  69. BIN smf1/images/garage_main_menu.gif
  70. BIN smf1/images/garage_main_vehicle.gif
  71. BIN smf1/images/garage_quartermile_table.gif
  72. BIN smf1/images/garage_search.gif
  73. BIN smf1/images/garage_shop_review.gif
  74. BIN smf1/images/garage_video.gif
  75. BIN smf1/images/garage_view_vehicle.gif
  76. BIN smf1/images/gradient.png
  77. BIN smf1/images/icon_delete.gif
  78. BIN smf1/images/icon_down.gif
  79. BIN smf1/images/icon_down_disabled.gif
  80. BIN smf1/images/icon_edit.gif
  81. BIN smf1/images/icon_garage_approve.gif
  82. BIN smf1/images/icon_garage_approve_disabled.gif
  83. BIN smf1/images/icon_garage_disapprove.gif
  84. BIN smf1/images/icon_garage_disapprove_disabled.gif
  85. BIN smf1/images/icon_up.gif
  86. BIN smf1/images/icon_up_disabled.gif
  87. BIN smf1/images/loadingAnimation.gif
  88. BIN smf1/images/no_image.png
  89. BIN smf1/images/overlay-85.png
  90. BIN smf1/images/progress.gif
  91. BIN smf1/images/video_thumb.jpg
  92. BIN smf1/images/watermark.png
  93. +0 −3 smf1/mootools1.11.js
  94. +0 −205 smf1/shadowbox-mootools.js
  95. +0 −212 smf1/shadowbox.css
  96. +0 −2,482 smf1/shadowbox.js
  97. +0 −37 smf1/smfg_ajax.js
  98. +0 −167 smf1/smfg_eip.js
  99. +0 −450 smf1/ssi_garage_examples.php
  100. +10 −15 smf2/Garage.english-utf8.php
  101. +9 −14 smf2/Garage.english.php
  102. +5 −14 smf2/Garage.php
  103. +4 −7 smf2/Garage.template.php
  104. +5 −8 smf2/GarageFunctions.php
  105. +5 −22 smf2/GarageManagement.php
  106. +4 −9 smf2/GarageManagement.template.php
  107. +4 −7 smf2/GarageSettings.php
  108. +4 −7 smf2/GarageSettings.template.php
  109. +4 −7 smf2/SSI_Garage.php
  110. 0 smf2/{ → css}/jquery-ui-1.8.13.custom.css
  111. 0 smf2/{ → css}/shadowbox.css
  112. 0 smf2/{ → css}/smfg_tips.css
  113. +0 −488 smf2/dynamicoptionlist.js
  114. +0 −367 smf2/gen_validatorv2.js
  115. 0 {smf1 → smf2/scripts}/dynamicoptionlist.js
  116. 0 smf2/{ → scripts}/garage_functions.js
  117. 0 {smf1 → smf2/scripts}/gen_validatorv2.js
  118. 0 smf2/{ → scripts}/jquery-1.6.1.min.js
  119. 0 smf2/{ → scripts}/jquery-smfg.js
  120. 0 smf2/{ → scripts}/jquery-ui-1.8.13.custom.min.js
  121. 0 smf2/{ → scripts}/jquery.jeditable.mini.js
  122. 0 smf2/{ → scripts}/jquery.preload.min.js
  123. 0 smf2/{ → scripts}/jquery.tipTip.minified.js
  124. 0 smf2/{ → scripts}/shadowbox.js
  125. 0 smf2/{ → scripts}/smfg_ajax.js
  126. +4 −7 smf2/ssi_garage_examples.php
@@ -3,21 +3,19 @@
***********************************************************************************
* SMF Garage: Simple Machines Forum Garage (MOD) *
* =============================================================================== *
* Software Version: SMF Garage 2.2 *
* Install for: 1.0-2.99 *
* Software by: RRasco (http://www.smfgarage.com) *
* Software Version: SMF Garage 2.3 *
* Install for: 2.0.9-2.0.99 *
* Original Developer: RRasco (http://www.smfgarage.com) *
* Copyright 2015 by: Bruno Alves (margarett.pt@gmail.com *
* Copyright 2007-2011 by: SMF Garage (http://www.smfgarage.com) *
* RRasco (rrasco@smfgarage.com) *
* phpBB Garage by: Esmond Poynton (esmond.poynton@gmail.com) *
* Support, News, Updates at: http://www.smfgarage.com *
***********************************************************************************
* See the "SMF_Garage_License.txt" file for details. *
* http://www.opensource.org/licenses/BSD-3-Clause *
* *
* The latest version can always be found at: *
* http://www.smfgarage.com *
**********************************************************************************/

Copyright (c) 2015, Bruno Alves
Copyright (c) 2011, RRasco
All rights reserved.

@@ -3,22 +3,24 @@
***********************************************************************************
* SMF Garage: Simple Machines Forum Garage (MOD) *
* =============================================================================== *
* Software Version: SMF Garage 2.2 *
* Install for: 1.0-2.99 *
* Software by: RRasco (http://www.smfgarage.com) *
* Software Version: SMF Garage 2.3 *
* Install for: 2.0.9-2.0.99 *
* Original Developer: RRasco (http://www.smfgarage.com) *
* Copyright 2015 by: Bruno Alves (margarett.pt@gmail.com *
* Copyright 2007-2011 by: SMF Garage (http://www.smfgarage.com) *
* RRasco (rrasco@smfgarage.com) *
* phpBB Garage by: Esmond Poynton (esmond.poynton@gmail.com) *
* Support, News, Updates at: http://www.smfgarage.com *
***********************************************************************************
* See the "SMF_Garage_License.txt" file for details. *
* http://www.opensource.org/licenses/BSD-3-Clause *
* *
* The latest version can always be found at: *
* http://www.smfgarage.com *
**********************************************************************************/
*
* Changelog:
* 29/01/2015 - Version 2.3
* - Removed support for SMF 1.1.x
* - Removed upgrade options from ancient versions
* - Fixed installer to work with 2.0.9+
*
* 6/16/2011 - Version 2.1
* - Fixed some template issues from RC3 to 2.0 Gold
* - Fixed two edits from modification-smf2.xml to work with 2.0 Gold

This file was deleted.

Oops, something went wrong.
@@ -4,23 +4,20 @@
***********************************************************************************
* SMF Garage: Simple Machines Forum Garage (MOD) *
* =============================================================================== *
* Software Version: SMF Garage 2.2 *
* Install for: 1.0-2.99 *
* Software by: RRasco (http://www.smfgarage.com) *
* Software Version: SMF Garage 2.3 *
* Install for: 2.0.9-2.0.99 *
* Original Developer: RRasco (http://www.smfgarage.com) *
* Copyright 2015 by: Bruno Alves (margarett.pt@gmail.com *
* Copyright 2007-2011 by: SMF Garage (http://www.smfgarage.com) *
* RRasco (rrasco@smfgarage.com) *
* phpBB Garage by: Esmond Poynton (esmond.poynton@gmail.com) *
* Support, News, Updates at: http://www.smfgarage.com *
***********************************************************************************
* See the "SMF_Garage_License.txt" file for details. *
* http://www.opensource.org/licenses/BSD-3-Clause *
* *
* The latest version can always be found at: *
* http://www.smfgarage.com *
**********************************************************************************/
// Set install version
$install_version = "2.1";
$install_version = "2.3";
// Check for config table in database
$request = $smcFunc['db_query']('', 'SHOW TABLES LIKE "{db_prefix}garage_config"');
@@ -42,138 +39,19 @@ function upgrade_smfg_db($install_version, $version)
{
global $smcFunc;
// Upgrade to 0.5.3a from 0.5.2a
if(version_compare($version, "0.5.3a", "<")) {
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('rating_system', '0')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('enable_watermark_thumb', '1')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('watermark_position', '8')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('watermark_opacity', '100')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('image_processor', '1')");
$smcFunc['db_query']('', "UPDATE {db_prefix}garage_config SET config_value = '0.5.3a' WHERE config_name = 'version'");
}
// Upgrade to 0.6.0b from 0.5.3a
if(version_compare($version, "0.6.0b", "<")) {
$smcFunc['db_query']('', "CREATE TABLE {db_prefix}garage_views (
`id` int(10) NOT NULL auto_increment,
`vid` int(10) NOT NULL default '0',
`ip` varchar(16) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('enable_lightbox', '1')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('disable_garage', '')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('gcard_watermark', '1')");
// insert default businesses
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_business VALUES ('', 'Unknown', '', '', '', '', '', '', 0, 0, 0, 1, 1, 0, '')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_business VALUES ('', 'Self-Installation', '', '', '', '', '', '', 0, 1, 0, 0, 0, 0, '')");
// remove un-used config rows
$smcFunc['db_query']('', "DELETE FROM {db_prefix}garage_config WHERE config_name = 'featured_vehicle_random'");
$smcFunc['db_query']('', "DELETE FROM {db_prefix}garage_config WHERE config_name = 'enable_mod_gallery'");
$smcFunc['db_query']('', "DELETE FROM {db_prefix}garage_config WHERE config_name = 'enable_quartermile_gallery'");
$smcFunc['db_query']('', "DELETE FROM {db_prefix}garage_config WHERE config_name = 'enable_dynorun_gallery'");
$smcFunc['db_query']('', "DELETE FROM {db_prefix}garage_config WHERE config_name = 'enable_lap_gallery'");
$smcFunc['db_query']('', "DELETE FROM {db_prefix}garage_config WHERE config_name = 'enable_insurance_search'");
// New default for thumbnail resolution, well, maybe not, they may have this set already
// and want it to stay that way, we will just set it if this is a new install for now
// $smcFunc['db_query']('', "UPDATE {db_prefix}garage_config VALUES config_value = '150' WHERE config_name = 'thumbnail_resolution'");
$smcFunc['db_query']('', "UPDATE {db_prefix}garage_config SET config_value = '0.6.0b' WHERE config_name = 'version'");
}
// Upgrade to 0.5.3a from 0.5.2a -- removed
// Upgrade to 0.6.0b2 from 0.6.0b
if(version_compare($version, "0.6.0b2", "<")) {
$smcFunc['db_query']('', "ALTER TABLE {db_prefix}garage_premiums CHANGE `premium` `premium` INT( 10 ) NULL DEFAULT NULL");
// Add the new blocks
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_blocks VALUES (13, 'last_service', 'latest_service_limit', 'enable_last_service', 'Latest Service', 13, 1)");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_blocks VALUES (14, 'last_blog', 'latest_blog_limit', 'enable_last_blog', 'Latest Blog Entry', 14, 1)");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_blocks VALUES (15, 'last_video', 'latest_video_limit', 'enable_last_video', 'Latest Video Entry', 15, 1)");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('enable_last_service', '1')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('latest_service_limit', '5')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('enable_last_blog', '1')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('latest_blog_limit', '5')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('enable_last_video', '1')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('latest_video_limit', '5')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('enable_vehicle_video', '1')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('enable_modification_video', '1')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('enable_quartermile_video', '1')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('enable_dynorun_video', '1')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('enable_laptime_video', '1')");
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('gallery_limit_video', '5')");
// Misc notifications table (guestbook comments)
$smcFunc['db_query']('', "CREATE TABLE IF NOT EXISTS {db_prefix}garage_notifications_misc (
`id` int(2) NOT NULL auto_increment,
`user_id` int(6) NOT NULL default '0',
`gb_opt_out` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8");
// Insert video tables
$smcFunc['db_query']('', "CREATE TABLE IF NOT EXISTS {db_prefix}garage_video (
`id` int(6) NOT NULL auto_increment,
`vehicle_id` int(5) NOT NULL default '0',
`url` varchar(75) NOT NULL default '',
`title` varchar(75) NOT NULL default '',
`video_desc` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8");
$smcFunc['db_query']('', "CREATE TABLE IF NOT EXISTS {db_prefix}garage_video_gallery (
`id` int(6) NOT NULL auto_increment,
`vehicle_id` int(6) NOT NULL default '0',
`video_id` int(6) NOT NULL default '0',
`type` varchar(7) NOT NULL default '',
`type_id` int(6) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8");
// Upgrade to 0.6.0b from 0.5.3a -- removed
$smcFunc['db_query']('', "UPDATE {db_prefix}garage_config SET config_value = '0.6.0b2' WHERE config_name = 'version'");
}
// Upgrade to 0.6.0b2 from 0.6.0b -- removed
// Upgrade to RC1 from 0.6.0b2
if(version_compare($version, "0.6.0RC1", "<")) {
// Insert new config rows
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('featured_vehicle_image_required', '0')");
// Create garage comments table
$smcFunc['db_query']('', "CREATE TABLE IF NOT EXISTS {db_prefix}garage_comments (
`id` int(10) unsigned NOT NULL auto_increment,
`user_id` int(10) unsigned NOT NULL default '0',
`author_id` mediumint(8) NOT NULL default '0',
`post_date` int(10) NOT NULL default '0',
`ip_address` varchar(16) NOT NULL default '',
`pending` enum('0','1') NOT NULL default '0',
`post` text,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `author_id` (`author_id`),
KEY `post_date` (`post_date`)
)");
// Update the Version in the config
$smcFunc['db_query']('', "UPDATE {db_prefix}garage_config SET config_value = '0.6.0RC1' WHERE config_name = 'version'");
}
// Upgrade to RC1 from 0.6.0b2 -- removed
// Upgrade to 2.0 from 0.6.0RC1
if(version_compare($version, "2.0", "<")) {
// Update the Version in the config
$smcFunc['db_query']('', "UPDATE {db_prefix}garage_config SET config_value = '2.0' WHERE config_name = 'version'");
}
// Upgrade to 2.0 from 0.6.0RC1 -- removed
// Upgrade to 2.1 from 2.0
if(version_compare($version, "2.1", "<")) {
// Update the Version in the config
$smcFunc['db_query']('', "UPDATE {db_prefix}garage_config SET config_value = '2.1' WHERE config_name = 'version'");
}
// Next upgrade goes here
// Upgrade to 2.1 from 2.0 -- removed
// Upgrade from 2.1 to 2.3
if(version_compare($version, $install_version, "<")) {
$smcFunc['db_query']('', "UPDATE {db_prefix}garage_config SET config_value = '".$install_version."' WHERE config_name = 'version'");
}
@@ -183,6 +61,8 @@ function upgrade_smfg_db($install_version, $version)
function install_smfg_db($install_version)
{
global $smcFunc;
//TODO -- transform all of this into proper $smcFunc insert
// blocks
$smcFunc['db_query']('', "CREATE TABLE IF NOT EXISTS {db_prefix}garage_blocks (
Oops, something went wrong.

0 comments on commit 1c1761c

Please sign in to comment.