jdarwood007 commited on 2020-01-04 09:13:59
Showing 2 changed files, with 5 additions and 14 deletions.
... | ... |
@@ -11,10 +11,10 @@ |
11 | 11 |
class SFS |
12 | 12 |
{ |
13 | 13 |
/** |
14 |
- * @var string URLS we need to SFS for UI presentation. |
|
14 |
+ * @var array Our settings information used on saving/changing settings. |
|
15 | 15 |
*/ |
16 |
- private $urlSFSipCheck = 'https://www.stopforumspam.com/ipcheck/%1$s'; |
|
17 |
- private $urlSFSsearch = 'https://www.stopforumspam.com/search/%1$s'; |
|
16 |
+ private $changedSettings = array(); |
|
17 |
+ private $extraVerificationOptions = array(); |
|
18 | 18 |
|
19 | 19 |
/** |
20 | 20 |
* @var string Name of the software and its version. This is so we can branch out from the same base. |
... | ... |
@@ -25,12 +25,6 @@ class SFSA |
25 | 25 |
private $adminPageURL = null; |
26 | 26 |
private $adminLogURL = null; |
27 | 27 |
|
28 |
- /** |
|
29 |
- * @var array Our settings information used on saving/changing settings. |
|
30 |
- */ |
|
31 |
- private $changedSettings = array(); |
|
32 |
- private $extraVerificationOptions = array(); |
|
33 |
- |
|
34 | 28 |
/** |
35 | 29 |
* @var mixed Search area handling. |
36 | 30 |
*/ |
... | ... |
@@ -52,7 +46,7 @@ class SFSA |
52 | 46 |
* |
53 | 47 |
* @version 1.0 |
54 | 48 |
* @since 1.0 |
55 |
- * @return void No return is generated |
|
49 |
+ * @return object The SFS Admin class is returned. |
|
56 | 50 |
*/ |
57 | 51 |
public static function selfClass() |
58 | 52 |
{ |
... | ... |
@@ -81,9 +75,6 @@ class SFSA |
81 | 75 |
global $smcFunc; |
82 | 76 |
|
83 | 77 |
$this->SFSclass = &$smcFunc['classSFS']; |
84 |
- |
|
85 |
- // Is this SMF 2.0? |
|
86 |
- $this->softwareVersion = $smcFunc['classSFS']->get('softwareVersion'); |
|
87 | 78 |
} |
88 | 79 |
|
89 | 80 |
/** |
... | ... |
@@ -283,7 +274,7 @@ class SFSA |
283 | 274 |
if (isset($_GET['save'])) |
284 | 275 |
{ |
285 | 276 |
// Turn the defaults off. |
286 |
- $this->unloadDefaults(); |
|
277 |
+ $this->SFSclass->unloadDefaults(); |
|
287 | 278 |
checkSession(); |
288 | 279 |
|
289 | 280 |
// If we are automatically banning IPs, make sure we have a ban group. |
290 | 281 |