|
@@ -40,7 +40,25 @@ class indexControl extends specialControl
|
|
|
|
|
|
public function mini_indexOp()
|
|
|
{
|
|
|
- $_GET['special_id'] = 0;
|
|
|
+ global $config;
|
|
|
+ $setting = $config['client_setting'];
|
|
|
+ if(empty($setting)) {
|
|
|
+ $_GET['special_id'] = 0;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ $version = session_helper::version_code();
|
|
|
+ $running = $setting['running'];
|
|
|
+ $spid = $setting['home'];
|
|
|
+
|
|
|
+ if($version > $running) {
|
|
|
+ $_GET['special_id'] = $spid;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $_GET['special_id'] = 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return parent::indexOp();
|
|
|
}
|
|
|
|