DATABASE CONNECTION ERROR"; exit(1); } $query = pg_query("SELECT * FROM main.ctf_map_def ORDER BY name"); if (!$query) { print "DATABASE ERROR"; exit(1); } $ctfMaps = array(); while ($r = pg_fetch_assoc($query)) { $ctfMaps[$r['id']] = $r; $query2 = pg_query("SELECT COUNT(*) FROM main.ctf_map_layout WHERE map={$r['id']} AND spawn_here"); if (!$query2) { print "DATABASE ERROR"; exit(1); } list($ctfMaps[$r['id']]['players']) = pg_fetch_array($query2); pg_free_result($query2); } pg_free_result($query); pg_close($cnx); } if (!is_array($errors)) { $errors = array(); } $params = array( array( 'id' => 'initialcash', 'title' => 'Initial amount of money', 'notes' => '0 for default (20,000)' ), array( 'id' => 'v2time', 'title' => 'Time for victory', 'notes' => 'Number of hours an alliance must hold the targets to win' ), array( 'id' => 'v2grace', 'title' => 'Grace period', 'notes' => 'Number of hours an alliance has to retake the targets. Set to 0 to disable.' ), array( 'id' => 'v2points', 'title' => 'Points per victory', 'notes' => 'Number of points an alliance gains at each victory. Must be > 0 and < 100' ) ); ?>

Step 3 / 6 : parameters

Define the new game's parameters here.

 
"; } ?>
'> Map to use:
" . htmlentities($p['title']) . " : " . "" . htmlentities($p['notes']) . "