Move SimpleDesk urls to HTTPS
jdarwood007

jdarwood007 commited on 2017-09-04 08:15:52
Showing 7 changed files, with 11 additions and 10 deletions.


Signed-off-by: jdarwood007 <unmonitored+github@sleepycode.com>
... ...
@@ -224,7 +224,7 @@ function sd_get_install_rows()
224 224
 		),
225 225
 		'data' => array(
226 226
 			'SimpleDesk Plugins',
227
-			'http://www.simpledesk.net/download/plugins/2.0', // !!! This should be updated in later releases!
227
+			'https://www.simpledesk.net/download/plugins/2.0', // !!! This should be updated in later releases!
228 228
 		),
229 229
 		'keys' => array('id_server'),
230 230
 	);
... ...
@@ -1,4 +1,4 @@
1
-[url=http://www.simpledesk.net/][img]http://www.simpledesk.net/promo/graphics/signatures/signature1.png[/img][/url]
1
+[url=https://www.simpledesk.net/][img]https://www.simpledesk.net/promo/graphics/signatures/signature1.png[/img][/url]
2 2
 
3 3
 Thank you for downloading SimpleDesk :)
4 4
 
... ...
@@ -43,7 +43,7 @@ Well, once you click the button and install this mod, the installer will take yo
43 43
 
44 44
 [b]What if I need help?[/b]
45 45
 
46
-You can always get help on our forum, http://www.simpledesk.net/community/
46
+You can always get help on our forum, https://www.simpledesk.net/community/
47 47
 
48 48
 When SimpleDesk is installed, there will be an extra area for support in the SimpleDesk admin area, that will take you to our forum and help you make a post in the best place for your question - and provide us with some necessary information at the same time.
49 49
 
... ...
@@ -52,7 +52,7 @@ function shdplugin_front_page()
52 52
 			'title' => 'shdp_frontpage',
53 53
 			'description' => 'shdp_frontpage_desc',
54 54
 			'author' => 'SimpleDesk Team',
55
-			'website' => 'http://www.simpledesk.net/',
55
+			'website' => 'https://www.simpledesk.net/',
56 56
 			'version' => '1.0.1',
57 57
 			'compatibility' => array(
58 58
 				'SimpleDesk 2.1 Beta 1', // should tie up with the SHD_VERSION constants
... ...
@@ -52,7 +52,7 @@ function shdplugin_stats()
52 52
 			'title' => 'shdp_stats',
53 53
 			'description' => 'shdp_stats_desc',
54 54
 			'author' => 'SimpleDesk Team',
55
-			'website' => 'http://www.simpledesk.net/',
55
+			'website' => 'https://www.simpledesk.net/',
56 56
 			'version' => '1.0',
57 57
 			'compatibility' => array(
58 58
 				'SimpleDesk 2.0 Anatidae', // should tie up with the SHD_VERSION constants
... ...
@@ -898,7 +898,7 @@ function shd_admin_support()
898 898
 {
899 899
 	global $context;
900 900
 
901
-	$context['shd_support_url'] = 'http://www.simpledesk.net/support/post.php';
901
+	$context['shd_support_url'] = 'https://www.simpledesk.net/support/post.php';
902 902
 	$context['sub_template'] = 'shd_support';
903 903
 }
904 904
 
... ...
@@ -161,8 +161,8 @@ function template_shd_admin()
161 161
 	// The below functions include all the scripts needed from the simpledesk.net site. The language and format are passed for internationalization.
162 162
 	if (empty($modSettings['disable_smf_js']))
163 163
 		echo '
164
-		<script type="text/javascript" src="http://www.simpledesk.net/sd/current-version.js"></script>
165
-		<script type="text/javascript" src="http://www.simpledesk.net/sd/latest-news.js"></script>';
164
+		<script type="text/javascript" src="https://www.simpledesk.net/sd/current-version.js"></script>
165
+		<script type="text/javascript" src="https://www.simpledesk.net/sd/latest-news.js"></script>';
166 166
 
167 167
 	// This sets the announcements and current versions themselves ;).
168 168
 	echo '
... ...
@@ -130,9 +130,10 @@ $smcFunc['db_query']('', '
130 130
 // Also remove the plugins package server.
131 131
 $query = $smcFunc['db_query']('', '
132 132
 	DELETE FROM {db_prefix}package_servers
133
-	WHERE url LIKE {string:plugins}',
133
+	WHERE url LIKE {string:plugins_http} OR url LIKE {string:plugins_https}',
134 134
 	array(
135
-		'plugins' => 'http://www.simpledesk.net/downloads/plugins/%',
135
+		'plugins_http' => 'http://www.simpledesk.net/downloads/plugins/%',
136
+		'plugins_https' => 'https://www.simpledesk.net/downloads/plugins/%',
136 137
 	)
137 138
 );
138 139
 
139 140