Location: PHPKode > projects > php Strategy Game Engine X > phpsgex/adm/main.php
<?php
$body="<script src='../templates/js/getlastversion.js' type='text/javascript'></script>
<script type='text/javascript'>get_last_version();</script>
<table width='100%' cellpadding='1' cellspacing='1' border='1'>
<tr> <td><h2>".$lang['adm_fast_commands']."</h2></td> <td><h2>Game Data</h2></td> <td><h2>".$lang['adm_info']."</h2></td> <td><h2>Rates</h2></td> </tr>
 <tr><td>
		<div><form method='post' action=''><input type='hidden' name='act' value='cclean'>
             	<input type='submit' name='clean_chat' value='".$lang['adm_clear_chat']."'>
             </form>
             You have PhpSgeX v<span class='Stile1'>".$sgexver."</span><br>
			 Latest aviable: <span id='laver' class='Stile3'>...</span><br>
			 DataBase v<span class='Stile3'>".$dbver."</span><br>
             PHP v<span class='Stile1'>".phpversion()."</span><br>
        </div>
        </td>
        <td>
			<div><span class='Stile1'>".mysql_num_rows( mysql_query("SELECT `id` FROM `".TB_PREFIX."resdata`") )."</span> ".$lang['adm_resources']."<br>
				<span class='Stile1'>".mysql_num_rows( mysql_query("SELECT id FROM `".TB_PREFIX."races`") )."</span> ".$lang['adm_races']."<br>
				<span class='Stile1'>".mysql_num_rows( mysql_query("SELECT id FROM `".TB_PREFIX."t_unt`") )."</span> ".$lang['adm_units']."<br>
				<span class='Stile1'>".mysql_num_rows( mysql_query("SELECT id FROM `".TB_PREFIX."t_research`") )."</span> ".$lang['adm_research']."<br>
															  
			</div></td>
            <td>
				<div>".$lang['reg_language']." <span class='Stile1'>".LANG."</span> <br>
					Map System <span class='Stile1'>".MAP_SYS."</span> <br>
					City system <span class='Stile1'>".CITY_SYS."</span> <br>
					Magazine Engine <span class='Stile1'>".MAG_E."</span> <br>
				</div>
            </td>
			<td> <div>Baracks time divider per level: <span class='Stile1'>".$baru_tmdl."</span> 
								</div>
			</td>
            </tr></table>
                                                        
            <h2>".$lang['adm_adv_sql_commands']."</h2>
            <form method='post' action=''><input type='hidden' name='act' value='sqlqr'>
            	".$lang['adm_insert_sql_query'].": <br><textarea name='sqlqr' cols='45' rows='5'></textarea><br><br>
                <input type='submit' value=' Execute Query '>
            </form><br>";

$qrwarns=mysql_query("SELECT * FROM `".TB_PREFIX."warn`");	
if( mysql_num_rows($qrwarns) >0 ){											  
	$body.="<table border='1'>";
	while( $wm=mysql_fetch_array($qrwarns) ) {
		$body.="<tr><td>".$wm['text']."</td></tr>";	
	}
} else $body.="<p>No Warns</p>";
?>
Return current item: php Strategy Game Engine X