Jump to content
php.lv forumi

Vārdu aizstājējs


Ernijs_E

Recommended Posts

<?php

 require "lgsl_class.php";

 $server_list = lgsl_query_cached_all("s");
 $server_list = lgsl_sort_servers($server_list);



   foreach ($server_list as $server)
   {
     $misc   = lgsl_server_misc($server);
     $server = lgsl_server_html($server);

     $output .= "
     <div class='box' id='server'>
	<p class='h1'>
	{$misc['name_filtered']} 
	</p>
	<img src='{$misc['image_map']}' alt='{$server['s']['map']}' /><br />
	<p>Spēlētāji: <span style='color:#4d9b00;'>{$server['s']['players']}</span>/<span style='color:#c90000;'>{$server['s']['playersmax']}</span></p>
	<p>Karte: <b>{$server['s']['map']}</b></p>
	<p>Nāc uzspēlē: <b>{$server['b']['ip']}:{$server['b']['c_port']}</b></p>
  <br /> <br />
  </div>
	"
	;
   }


?>

 

{$misc['name_filtered']} ... šis man izvada nosaukumu COUNTERSTRIKE.LV PUB, bet to COUNTERSTRIKE.LV man vajadzētu dabūt nost, kā?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...