Changeset 7
- Timestamp:
- Jun 4, 2008, 11:02:50 AM (16 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
includes/classes.php
r1 r7 147 147 } 148 148 else { 149 $exist = $db->query_result("SELECT count(*) as pocet FROM `servers` where (`name` like '%".$posted['name']."%'AND NOT `id`=$server_id)");149 $exist = $db->query_result("SELECT count(*) as pocet FROM `servers` where (`name` like TRIM('".$posted['name']."') AND NOT `id`=$server_id)"); 150 150 if ($exist==1) 151 151 { -
scripts/online.php
r6 r7 1 1 <?php 2 2 3 require('../includes/config.php');3 include('../includes/config.php'); 4 4 5 $Database = new mysqli($db_config['host'], $db_config['user'], $db_config['pass']); 6 $Database->select_db($db_config['name']); 5 $Database = new mysqli($db_config['host'], $db_config['user'], $db_config['pass'], $db_config['name']); 6 7 if(mysqli_connect_errno()) 8 { 9 printf("Connect failed: %s\n", mysqli_connect_error()); 10 exit(); 11 } 7 12 8 13 function CheckPortStatus($Ip, $Port) -
sql/updates/6_servers.sql
r6 r7 9 9 `players_count` int(11) NOT NULL, 10 10 KEY `server` (`server`) 11 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 _czech_ci;11 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
Note:
See TracChangeset
for help on using the changeset viewer.