PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?
- if (!$ip) { continue; }
- if ($q_port < 1 || $q_port > 99999) { $disabled = 1; $q_port = ""; }
- if ($c_port < 1 || $c_port > 99999) { $disabled = 1; $c_port = ""; }
- {
- $mysql_query = "INSERT INTO `servers` (`status`,`ip`,`q_port`,`c_port`, `s_port`, `type`,`cache_time`,website) VALUES ('0', '$ip', '$q_port', '$c_port', '$s_port', '$type', '','$web')";
- }
- }
- echo "
- <form action='' method='post'>
- <table width='100%' class='form' cellspacing='0' cellpadding='0'>
- <tr><td>Игра</td><td><select name='game' style='border:1px solid #ccc;'>";
- echo "<option value='halflife'>CS 1.6</option>";
- echo "</select> <small></small></td></tr>
- <tr><td>IP</td><td><input type='text' name='servip' value='' /></td></tr>
- <tr><td>ПОРТ</td><td><input type='text' name='port' value='27015' /></td></tr>
- <tr><td>WWW</td><td><input type='text' name='web' value='http://' /></td></tr>
- <tr><td></td><td><input type='submit' name='submit' value='Добавить' /></td></tr>
- </form>
- </table>
- ";
- ?>