mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-10 22:56:07 +00:00
more updates
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
public function sendInvite($post) {
|
||||
global $form, $database, $session;
|
||||
if($session->access != BANNED){
|
||||
if(isset($post['a_name']) or $post['a_uid'] == ""){
|
||||
if($post['a_name'] != "" or $post['a_uid'] == ""){
|
||||
$UserData = $database->getUserArray($post['a_name'], 0);
|
||||
if($this->userPermArray['opt4'] == 0) {
|
||||
$form->addError("perm", NO_PERMISSION);
|
||||
|
||||
@@ -383,7 +383,7 @@
|
||||
WHERE " . TB_PREFIX . "vdata.owner = userid
|
||||
)pop
|
||||
FROM " . TB_PREFIX . "users
|
||||
WHERE " . TB_PREFIX . "users.dpall >=0 AND " . TB_PREFIX . "users.access < " . (INCLUDE_ADMIN ? "10" : "8") . "
|
||||
WHERE " . TB_PREFIX . "users.dpall >=0 AND " . TB_PREFIX . "users.access < " . (INCLUDE_ADMIN ? "10" : "8") . " AND " . TB_PREFIX . "users.tribe <= 3
|
||||
ORDER BY " . TB_PREFIX . "users.dpall DESC, pop DESC, userid DESC";
|
||||
$result = mysql_query($q) or die(mysql_error());
|
||||
while($row = mysql_Fetch_assoc($result)) {
|
||||
|
||||
@@ -566,7 +566,7 @@ private function trainUnit($unit,$amt,$great=false) {
|
||||
if($building->getTypeLevel(22) >= 5 && $building->getTypeLevel(20) >= 5) { return true; } else { return false; }
|
||||
break;
|
||||
case 6:
|
||||
if($building->getTypeLevel(22) >= 5 && $building->getTypeLevel(20) >= 10) { return true; } else { return false; }
|
||||
if($building->getTypeLevel(22) >= 15 && $building->getTypeLevel(20) >= 10) { return true; } else { return false; }
|
||||
break;
|
||||
case 9:
|
||||
case 29:
|
||||
|
||||
Reference in New Issue
Block a user