Permalink
Browse files

clear

  • Loading branch information...
AhmedElywa committed Nov 18, 2018
1 parent 871a28e commit d47c9e470290686f326977c9443af20875d7880f
@@ -73,12 +73,6 @@ public function index()
$this->viewData['sc'] = true;
}
break;
case 'email':
$count = $this->m->AddEmail(post('email'));
if ($count) {
$this->viewData['sc'] = true;
}
break;
case 'activate':
$result = $this->m->GetPlayerDataByName2(post('name'));
$link = $gameConfig['system']['server_url'] . "index?active=" . $result['activation_code'];
@@ -114,12 +108,6 @@ public function index()
$this->viewData['page'] = 'gold';
} elseif (get('page') == 'activate') {
$this->viewData['page'] = 'activate';
} elseif (get('page') == 'email' and $_SESSION['server_selected'] == 'serv6') {
if (is_get('id')) {
$this->m->DeleteEmail(get('id'));
}
$this->viewData['emails'] = $this->m->GetAllEmail();
$this->viewData['page'] = 'email';
} else {
return header("Location: index.php");
}
@@ -41,7 +41,7 @@ public function index()
'plus9' => post('plus9'),
'plus10' => post('plus10'),
);
$this->S->UpdatePlus($_SESSION['server_selected'], json_encode($plus, JSON_FORCE_OBJECT));
$this->S->UpdatePlus($_COOKIE['server_selected'], json_encode($plus, JSON_FORCE_OBJECT));
header("Location: plus?page=config");
break;
@@ -89,7 +89,7 @@ public function index()
'buytroop' => post('buytroop'),
);
$this->S->UpdateSettings($_SESSION['server_selected'], json_encode($settings, JSON_FORCE_OBJECT));
$this->S->UpdateSettings($_COOKIE['server_selected'], json_encode($settings, JSON_FORCE_OBJECT));
header("Location: quicktasks?page=game_config");
break;
@@ -101,7 +101,7 @@ public function index()
'inArtef' => post('inArtef'),
);
$this->S->UpdateTroop($_SESSION['server_selected'], json_encode($troop, JSON_FORCE_OBJECT));
$this->S->UpdateTroop($_COOKIE['server_selected'], json_encode($troop, JSON_FORCE_OBJECT));
header("Location: quicktasks?page=troop");
break;
@@ -51,7 +51,7 @@ public function processSetup( $map_size )
public function restserver()
{
db2::query("UPDATE servers SET players_count=1, start_date=NOW() WHERE id=:id", array(
'id' => $_SESSION['server_selected']
'id' => $_COOKIE['server_selected']
));
}
@@ -212,9 +212,6 @@
<li><a href="players?page=gold">ارسال ذهب للاعب</a></li>
<li><a href="players?page=activate">ارسال رسالة تفعيل</a></li>
<li><a href="players?page=search">البحث عن اللاعبين</a></li>
{if="$_SESSION['server_selected'] == 'serv6'"}
<li><a href="players?page=email">اميلات السيرفر الخاص</a></li>
{/if}
</ul>
<!-- END Submenu -->
</li>

0 comments on commit d47c9e4

Please sign in to comment.