diff --git a/.phan/config.php b/.phan/config.php index e9a06956..af3fe904 100644 --- a/.phan/config.php +++ b/.phan/config.php @@ -39,7 +39,8 @@ return [ 'hwe/func_time_event.php', 'hwe/func_tournament.php', 'hwe/process_war.php', - 'hwe/func.php' + 'hwe/func.php', + 'vendor/sergeytsalkov/meekrodb/db.class.php' ], // A list of directories that should be parsed for class and diff --git a/hwe/_admin2_submit.php b/hwe/_admin2_submit.php index ecdf03c7..39e2b789 100644 --- a/hwe/_admin2_submit.php +++ b/hwe/_admin2_submit.php @@ -66,12 +66,12 @@ switch($btn) { case "특기 부여": $admin = DB::db()->queryFirstRow('select `year`, `month` from `game` where `no`=1'); - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); $msg = "특기 부여!"; sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "select no,leader,power,intel from general where no='$genlist[$i]'"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $general = MYDB_fetch_array($result); @@ -87,90 +87,90 @@ switch($btn) { } break; case "경험치1000": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); $msg = $btn." 지급!"; sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set experience=experience+1000 where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } break; case "공헌치1000": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); $msg = $btn." 지급!"; sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set dedication=dedication+1000 where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } break; case "보숙10000": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); $msg = "보병숙련도+10000 지급!"; sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set dex0=dex0+10000 where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } break; case "궁숙10000": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); $msg = "궁병숙련도+10000 지급!"; sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set dex10=dex10+10000 where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } break; case "기숙10000": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); $msg = "기병숙련도+10000 지급!"; sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set dex20=dex20+10000 where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } break; case "귀숙10000": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); $msg = "귀병숙련도+10000 지급!"; sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set dex30=dex30+10000 where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } break; case "차숙10000": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); $msg = "차병숙련도+10000 지급!"; sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set dex40=dex40+10000 where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } break; case "접속 허용": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set con=0 where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } break; case "접속 제한": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set con=1000 where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } @@ -178,20 +178,20 @@ switch($btn) { case "메세지 전달": //TODO:새 갠메 시스템으로 변경 $date = date('Y-m-d H:i:s'); - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } break; case "무기지급": $date = date('Y-m-d H:i:s'); - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); if($weap == 0) { $msg = "무기 회수!"; } else { $msg = getWeapName($weap)." 지급!"; } sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { if($weap == 0) { $query = "update general set weap='0' where no='$genlist[$i]'"; } else { @@ -202,14 +202,14 @@ switch($btn) { break; case "책지급": $date = date('Y-m-d H:i:s'); - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); if($weap == 0) { $msg = "서적 회수!"; } else { $msg = getBookName($weap)." 지급!"; } // 상대에게 발송 sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { if($weap == 0) { $query = "update general set book='0' where no='$genlist[$i]'"; } else { @@ -220,14 +220,14 @@ switch($btn) { break; case "말지급": $date = date('Y-m-d H:i:s'); - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); if($weap == 0) { $msg = "말 회수!"; } else { $msg = getHorseName($weap)." 지급!"; } // 상대에게 발송 sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { if($weap == 0) { $query = "update general set horse='0' where no='$genlist[$i]'"; } else { @@ -238,14 +238,14 @@ switch($btn) { break; case "도구지급": $date = date('Y-m-d H:i:s'); - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $you = DB::db()->queryFirstRow('select `no`, `nation` from `general` where `no` = %i', $genlist[$i]); if($weap == 0) { $msg = "특수도구 회수!"; } else { $msg = getItemName($weap)." 지급!"; } // 상대에게 발송 sendMessage('private', ['id'=>$generalID, 'nation_id'=>0], ['id'=>$you['no'], 'nation_id'=>$you['nation']], $msg); } - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { if($weap == 0) { $query = "update general set item='0' where no='$genlist[$i]'"; } else { @@ -255,25 +255,25 @@ switch($btn) { } break; case "NPC해제": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set npc=1 where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } break; case "하야입력": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set turn0='00000000000045' where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } break; case "방랑해산": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set turn0='00000000000047',turn1='00000000000056' where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } break; case "NPC설정": - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $query = "update general set npc=2 where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } @@ -283,7 +283,7 @@ switch($btn) { $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $admin = MYDB_fetch_array($result); - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $turntime = getRandTurn($admin['turnterm']); $cutTurn = cutTurn($turntime, $admin['turnterm']); $query = "update general set turntime='$cutTurn' where no='$genlist[$i]'"; @@ -295,7 +295,7 @@ switch($btn) { $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $admin = MYDB_fetch_array($result); - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { $turntime = getRandTurn($admin['turnterm']); $query = "update general set turntime='$turntime' where no='$genlist[$i]'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); diff --git a/hwe/_admin4_submit.php b/hwe/_admin4_submit.php index d2387fee..a8380f8c 100644 --- a/hwe/_admin4_submit.php +++ b/hwe/_admin4_submit.php @@ -53,7 +53,7 @@ switch($btn) { //TODO:새 갠메 시스템으로 변경 $date = date('Y-m-d H:i:s'); $msg; - for($i=0; $i < sizeof($genlist); $i++) { + for($i=0; $i < count($genlist); $i++) { } break; } diff --git a/hwe/c_double.php b/hwe/c_double.php index d6bff845..7014b392 100644 --- a/hwe/c_double.php +++ b/hwe/c_double.php @@ -39,7 +39,7 @@ if($command == 46) { 'makenation'=>$name ], 'owner=%i', $userID); - $count = sizeof($turn); + $count = count($turn); $query = ['con'=>$db->eval('con')]; foreach($turn as $turnIdx){ $query['turn'.$turnIdx] = $comStr; @@ -63,7 +63,7 @@ if($command == 46) { $query = "update general set makenation='{$nationname}' where level>=5 and nation='{$me['nation']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - $count = sizeof($turn); + $count = count($turn); $str = "type=type"; for($i=0; $i < $count; $i++) { $str .= ",l{$me['level']}turn{$turn[$i]}='{$comStr}'"; @@ -89,7 +89,7 @@ if($command == 46) { $query = "update diplomacy set reserved='{$note}' where me='{$me['nation']}' and you='$double'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - $count = sizeof($turn); + $count = count($turn); $str = "type=type"; for($i=0; $i < $count; $i++) { $str .= ",l{$me['level']}turn{$turn[$i]}='{$comStr}'"; @@ -111,7 +111,7 @@ if($command == 46) { if(($command == 23 || $command == 24 || $command == 27) && $me['no'] == $third) { // 자기자신에게 악용 금지 } elseif($me['level'] >= 5) { - $count = sizeof($turn); + $count = count($turn); $str = "type=type"; for($i=0; $i < $count; $i++) { $str .= ",l{$me['level']}turn{$turn[$i]}='{$comStr}'"; @@ -122,7 +122,7 @@ if($command == 46) { //echo ""; echo 'b_chiefcenter.php';//TODO:debug all and replace } else { - $count = sizeof($turn); + $count = count($turn); $str = "con=con"; for($i=0; $i < $count; $i++) { $str .= ",turn{$turn[$i]}='{$comStr}'"; diff --git a/hwe/func_command.php b/hwe/func_command.php index ce507312..2eba078d 100644 --- a/hwe/func_command.php +++ b/hwe/func_command.php @@ -687,7 +687,7 @@ function command_Single($turn, $command) { $command = EncodeCommand(0, 0, 0, $command); - $count = sizeof($turn); + $count = count($turn); $str = "con=con"; for($i=0; $i < $count; $i++) { $str .= ",turn{$turn[$i]}='{$command}'"; @@ -711,7 +711,7 @@ function command_Chief($turn, $command) { $me = MYDB_fetch_array($result); if($me['level'] >= 5) { - $count = sizeof($turn); + $count = count($turn); $str = "type=type"; for($i=0; $i < $count; $i++) { $str .= ",l{$me['level']}turn{$turn[$i]}='{$command}'"; @@ -728,7 +728,7 @@ function command_Other($turn, $commandtype) { $connect=$db->get(); echo "
"; - $count = sizeof($turn); + $count = count($turn); for($i=0; $i < $count; $i++) { echo ""; } diff --git a/hwe/func_message.php b/hwe/func_message.php index 822cfadb..d62b9f79 100644 --- a/hwe/func_message.php +++ b/hwe/func_message.php @@ -148,8 +148,14 @@ function sendRawMessage($msgType, $isSender, $mailbox, $src, $dest, $msg, $date, ], Json::DELETE_NULL) ]); } - -function sendMessage($msgType, $src, $dest, $msg, $date = null, $validUntil = null, $msgOption = null){ +/** + * @param string $msgType + * @param mixed[] $src + * @param mixed[] $dest + * @param null|string $date + * @param null|string $validUntil + */ +function sendMessage($msgType, array $src, array $dest, $msg, $date = null, $validUntil = null, $msgOption = null){ if($date === null){ $date = (new \Datetime())->format('Y-m-d H:i:s'); } diff --git a/hwe/preprocessing.php b/hwe/preprocessing.php index 17c44066..ffe07ba0 100644 --- a/hwe/preprocessing.php +++ b/hwe/preprocessing.php @@ -28,7 +28,7 @@ if($con >= 2) { exit(); } -$count = sizeof($turn); +$count = count($turn); for($i=0; $i < $count; $i++) { if($turn[$i] == 100 || $turn[$i] == 99 || $turn[$i] == 98) { } elseif($turn[$i] >= 0 && $turn[$i] <= 23) { diff --git a/hwe/processing.php b/hwe/processing.php index c4aa93d8..9e97960d 100644 --- a/hwe/processing.php +++ b/hwe/processing.php @@ -9,7 +9,7 @@ $session = Session::requireGameLogin()->setReadOnly(); $db = DB::db(); $connect=$db->get(); -$count = sizeof($turn); +$count = count($turn); for($i=0; $i < $count; $i++) { if($turn[$i] == 100 || $turn[$i] == 99 || $turn[$i] == 98) { } elseif($turn[$i] >= 0 || $turn[$i] <= 23) { @@ -184,7 +184,7 @@ function command_99($turn) { if($me['level'] >= 5) { $command = EncodeCommand(0, 0, 0, 99); - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { $query = "update nation set l{$me['level']}turn{$turn[$i]}='{$command}' where nation='{$me['nation']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } @@ -426,7 +426,7 @@ function calc(cost, formnum) { "; - for($j=0; $j < sizeof($turn); $j++) { + for($j=0; $j < count($turn); $j++) { echo " "; } @@ -637,7 +637,7 @@ function calc(cost, formnum) { "; - for($j=0; $j < sizeof($turn); $j++) { + for($j=0; $j < count($turn); $j++) { echo " "; } @@ -687,7 +687,7 @@ function command_15($turn, $command) { 00명 "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -728,7 +728,7 @@ function command_16($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -771,7 +771,7 @@ function command_21($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -839,7 +839,7 @@ function command_22($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -912,7 +912,7 @@ function command_23($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -987,7 +987,7 @@ function command_24($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1064,7 +1064,7 @@ function command_25($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1127,7 +1127,7 @@ function command_27($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1168,7 +1168,7 @@ function command_30($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1211,7 +1211,7 @@ function command_31($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1257,7 +1257,7 @@ function command_32($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1299,7 +1299,7 @@ function command_33($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1341,7 +1341,7 @@ function command_34($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1383,7 +1383,7 @@ function command_35($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1425,7 +1425,7 @@ function command_36($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1502,7 +1502,7 @@ function command_43($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1550,7 +1550,7 @@ function command_44($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1645,7 +1645,7 @@ function command_46($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1716,7 +1716,7 @@ function command_48($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1764,7 +1764,7 @@ function command_49($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1816,7 +1816,7 @@ function command_51($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1898,7 +1898,7 @@ function command_52($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -1962,7 +1962,7 @@ function command_53($turn, $command) { 통합국명 : "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2013,7 +2013,7 @@ function command_54($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2098,7 +2098,7 @@ function command_61($turn, $command) { 비고 : "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2165,7 +2165,7 @@ function command_62($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2224,7 +2224,7 @@ function command_63($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2283,7 +2283,7 @@ function command_64($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2322,7 +2322,7 @@ echo "
"; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2363,7 +2363,7 @@ echo "
"; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2404,7 +2404,7 @@ echo "
"; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2445,7 +2445,7 @@ echo "
"; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2486,7 +2486,7 @@ echo "
"; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2527,7 +2527,7 @@ echo "
"; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2568,7 +2568,7 @@ echo "
"; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2629,7 +2629,7 @@ function command_75($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2689,7 +2689,7 @@ function command_77($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2749,7 +2749,7 @@ function command_78($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; } @@ -2807,7 +2807,7 @@ function command_81($turn, $command) { "; - for($i=0; $i < sizeof($turn); $i++) { + for($i=0; $i < count($turn); $i++) { echo " "; }