服务器列表顺序取消修改
This commit is contained in:
@@ -343,15 +343,16 @@ function ip_repeat(&$record, $ip, $dns = '')
|
||||
|
||||
function city_exist($citys, $city)
|
||||
{
|
||||
for ($i = 2; $i < 100; $i++) {
|
||||
if (in_array($city, $citys)) {
|
||||
if (in_array($city . $i, $citys)) {
|
||||
continue;
|
||||
} else {
|
||||
return $city . $i;
|
||||
}
|
||||
} else {
|
||||
return $city;
|
||||
}
|
||||
}
|
||||
return $city;
|
||||
// for ($i = 2; $i < 100; $i++) {
|
||||
// if (in_array($city, $citys)) {
|
||||
// if (in_array($city . $i, $citys)) {
|
||||
// continue;
|
||||
// } else {
|
||||
// return $city . $i;
|
||||
// }
|
||||
// } else {
|
||||
// return $city;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user