mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 04:02:30 +01:00
- added verbose output in mod menu for content metadata output - bugfix for masterserver php files not using proper variuable for imageurl output
34 lines
815 B
PHP
34 lines
815 B
PHP
<?php
|
|
|
|
define( 'INCLUSION_PERMITTED', true );
|
|
require_once( 'config.php' );
|
|
require_once( 'functions.php' );
|
|
|
|
define( 'DB_LINK', db_connect() );
|
|
|
|
$techs_in_db = mysql_db_query( MYSQL_DATABASE, 'SELECT * FROM glesttechs WHERE disabled=0 ORDER BY techname;' );
|
|
$all_techs = array();
|
|
while ( $tech = mysql_fetch_array( $techs_in_db ) )
|
|
{
|
|
array_push( $all_techs, $tech );
|
|
}
|
|
unset( $techs_in_db );
|
|
unset( $tech );
|
|
|
|
db_disconnect( DB_LINK );
|
|
|
|
// Representation starts here
|
|
header( 'Content-Type: text/plain; charset=utf-8' );
|
|
foreach( $all_techs as &$tech )
|
|
{
|
|
$outString =
|
|
"${tech['techname']}|${tech['factioncount']}|${tech['crc']}|${tech['description']}|${tech['url']}|${tech['imageUrl']}|";
|
|
$outString = $outString . "\n";
|
|
|
|
echo ($outString);
|
|
}
|
|
unset( $all_techs );
|
|
unset( $tech );
|
|
?>
|
|
|