Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 8

175.42.x.x forum
175.44.x.x forum
192.151.x.x forum
220.181.x.x lgsl
42.62.x.x forum
54.224.x.x forum
66.249.x.x forum
78.172.x.x request

Last Seen

Dodgeitorelse Sat 12:09
palyarmerc Sat 11:09
xMin Sat 11:08
Wussie Sat 08:48
BYTM Sat 07:32

Newest Members

Forums
As the text when it is full, empty or closed
»Stefan
Mon Jul 19 2010, 10:47AM

Posts: 172
Joined: Fri Feb 05 2010, 03:56PM
Registered Member #5774
Hi today will show what could be the AGENTUL!
Edit lgsl_details!
Searching line :
$output .= "
  <table cellpadding='2' cellspacing='2' style='margin:auto'>
    <tr>
     
      <td rowspan='2' style='text-align:center; vertical-align:top'>
        <div style='width:{$lgsl_config['zone']['width']}px; padding:2px; position:relative; margin:auto'>
          <img alt='' src='{$misc['image_map']}'         width='160'  height='120'                                  style='vertical-align:middle' />
          <img alt='' src='{$misc['image_map_password']}'                                   style='position:absolute; z-index:2; top:0px; left:0px;' />
          <img alt='' src='{$misc['icon_game']}'          title='{$misc['text_type_game']}' style='position:absolute; z-index:2; top:6px; left:6px;' />   
        <img alt='' src='{$misc['icon_location']}'      title='{$misc['text_location']}'  style='position:absolute; z-index:2; top:6px; right:6px;' />


before adding
if ($server['s']['players'] >=$server['s']['playersmax'])
{
$output .= "<table align='center'>";
$output .= "<tr>";
$output .= "<th colspan='3'>Server is <font color='green'>{$server['s']['players']} </font>of<font color='red'> {$server['s']['playersmax']}</font><font color='red'> !Full</font></th>";
$output .= "</tr>";
$output .= "</table>";
$output .= "<br>";
}
if (empty($server['p']) || !is_array($server['p']))
{
$output .= "<table align='center'>";
$output .= "<tr>";
$output .= "<th colspan='3'>Server is <font color='red'> Empty / offline</font> <font color='gray'>{$server['s']['players']} </font>of<font color='gray'> {$server['s']['playersmax']}</font></th>";
$output .= "</tr>";
$output .= "</table>";
$output .= "<br>";
}

Good luck to all!


NO LGSL , PHP & query valve and Mysql = http://expertcs.info/
Website
dcsmihai
Sun Oct 09 2011, 02:40PM
Posts: 4
Joined: Sun Oct 09 2011, 02:34PM
Registered Member #6953
don't work
look my lgsl_details .

<?php

 
/*----------------------------------------------------------------------------------------------------------\
 |                                                                                                            |
 |                      [ LIVE GAME SERVER LIST ] [ © RICHARD PERRY FROM GREYCUBE.COM ]                       |
 |                                                                                                            |
 |    Released under the terms and conditions of the GNU General Public License Version 3 (http://gnu.org)    |
 |                                                                                                            |
 \-----------------------------------------------------------------------------------------------------------*/

//------------------------------------------------------------------------------------------------------------+

  
require "lgsl_class.php";

//------------------------------------------------------------------------------------------------------------+
// THIS CONTROLS HOW THE PLAYER FIELDS ARE DISPLAYED

  
$fields_show  = array("name""score""kills""deaths""team""ping""bot""time"); // ORDERED FIRST
  
$fields_hide  = array("teamindex""pid""pbguid"); // REMOVED
  
$fields_other TRUE// FALSE TO ONLY SHOW FIELDS IN $fields_show

//------------------------------------------------------------------------------------------------------------+
// GET THE SERVER DETAILS AND PREPARE IT FOR DISPLAY

  
global $lgsl_server_id;

  
$server lgsl_query_cached("""""""""""sep"$lgsl_server_id);

  if (!
$server) { $output .= "<div style='margin:auto; text-align:center'> {$lgsl_config['text']['mid']} </div>"; return; }

  
$fields lgsl_sort_fields($server$fields_show$fields_hide$fields_other);
  
$server lgsl_sort_players($server);
  
$server lgsl_sort_extras($server);
  
$misc   lgsl_server_misc($server);
  
$server lgsl_server_html($server);

//------------------------------------------------------------------------------------------------------------+

  
$output .= "
  <div style='margin:auto; text-align:center'>"
;

  
$output .="
  <div style='"
.lgsl_bg(TRUE)."; width:90%; margin:auto; text-align:center; height:6px; border:1px solid'><br /></div>
  <div style='height:10px'><br /></div>"
;

//------------------------------------------------------------------------------------------------------------+
// SHOW THE STANDARD INFO

  
$output .= "
  <table cellpadding='2' cellspacing='2' style='margin:auto'>
    <tr>
      <td colspan='3' style='text-align:center'>
        <b> 
{$server['s']['name']} </b><br /><br />
      </td>
    </tr>
  </table>
  <table cellpadding='2' cellspacing='2' style='margin:auto'>
    <tr>
      <td colspan='2' style='text-align:center'>
        <table cellpadding='4' cellspacing='2' style='width:100%; margin:auto'>
          <tr><td style='"
.lgsl_bg(TRUE)."; text-align:center'><a href='{$misc['software_link']}'>{$lgsl_config['text']['slk']}</a></td></tr>
        </table>
      </td>
      <td rowspan='2' style='text-align:center; vertical-align:top'>
        <div style='width:
{$lgsl_config['zone']['width']}px; padding:2px; position:relative; margin:auto'>
          <img alt='' src='
{$misc['image_map']}'                                            style='vertical-align:middle' />
          <img alt='' src='
{$misc['image_map_password']}'                                   style='position:absolute; z-index:2; top:0px; left:0px;' />
          <img alt='' src='
{$misc['icon_game']}'          title='{$misc['text_type_game']}' style='position:absolute; z-index:2; top:6px; left:6px;' />
          <img alt='' src='
{$misc['icon_location']}'      title='{$misc['text_location']}'  style='position:absolute; z-index:2; top:6px; right:6px;' />
          if (
$server['s']['players'] >=$server['s']['playersmax']) 

$output .= "<table align='center'>"; 
$output .= "<tr>"; 
$output .= "<th colspan='3'>Server is <font color='green'>{$server['s']['players']} </font>of<font color='red'> {$server['s']['playersmax']}</font><font color='red'> !Full</font></th>"; 
$output .= "</tr>"; 
$output .= "</table>"; 
$output .= "<br>"; 

if (empty(
$server['p']) || !is_array($server['p'])) 

$output .= "<table align='center'>"; 
$output .= "<tr>"; 
$output .= "<th colspan='3'>Server is <font color='red'> Empty / offline</font> <font color='gray'>{$server['s']['players']} </font>of<font color='gray'> {$server['s']['playersmax']}</font></th>"; 
$output .= "</tr>"; 
$output .= "</table>"; 
$output .= "<br>"; 
}
        </div>
      </td>
    </tr>
    <tr>
      <td style='text-align:center'>
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr style='"
.lgsl_bg().";white-space:nowrap'><td> <b> {$lgsl_config['text']['sts']} </b></td><td style='white-space:nowrap'> {$misc['text_status']}                                   </td></tr>
          <tr style='"
.lgsl_bg().";white-space:nowrap'><td> <b> {$lgsl_config['text']['adr']} </b></td><td style='white-space:nowrap'> {$server['b']['ip']}                                     </td></tr>
          <tr style='"
.lgsl_bg().";white-space:nowrap'><td> <b> {$lgsl_config['text']['cpt']} </b></td><td style='white-space:nowrap'> {$server['b']['c_port']}                                 </td></tr>
          <tr style='"
.lgsl_bg().";white-space:nowrap'><td> <b> {$lgsl_config['text']['qpt']} </b></td><td style='white-space:nowrap'> {$server['b']['q_port']}                                 </td></tr>
        </table>
      </td>
      <td style='text-align:center'>
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr style='"
.lgsl_bg().";white-space:nowrap'><td> <b> {$lgsl_config['text']['typ']} </b></td><td style='white-space:nowrap'> {$server['b']['type']}                                   </td></tr>
          <tr style='"
.lgsl_bg().";white-space:nowrap'><td> <b> {$lgsl_config['text']['gme']} </b></td><td style='white-space:nowrap'> {$server['s']['game']}                                   </td></tr>
          <tr style='"
.lgsl_bg().";white-space:nowrap'><td> <b> {$lgsl_config['text']['map']} </b></td><td style='white-space:nowrap'> {$server['s']['map']}                                    </td></tr>
          <tr style='"
.lgsl_bg().";white-space:nowrap'><td> <b> {$lgsl_config['text']['plr']} </b></td><td style='white-space:nowrap'> {$server['s']['players']} / {$server['s']['playersmax']} </td></tr>
        </table>
      </td>
    </tr>
  </table>"
;

//------------------------------------------------------------------------------------------------------------+

  
$output .= "
  <div style='height:10px'><br /></div>
  <div style='"
.lgsl_bg(TRUE)."; width:90%; margin:auto; text-align:center; height:6px; border:1px solid'><br /></div>
  <div style='height:10px'><br /></div>"
;

//------------------------------------------------------------------------------------------------------------+
// SHOW THE PLAYERS

  
$output .= "
  <div style='margin:auto; overflow:auto; text-align:center; padding:10px'>"
;

  if (empty(
$server['p']) || !is_array($server['p']))
  {
    
$output .= "
    <table cellpadding='4' cellspacing='2' style='margin:auto'>
      <tr style='"
.lgsl_bg(FALSE)."'>
        <td> 
{$lgsl_config['text']['npi']} </td>
      </tr>
    </table>"
;
  }
  else
  {
    
$output .= "
    <table cellpadding='4' cellspacing='2' style='margin:auto'>
      <tr style='"
.lgsl_bg(FALSE)."'>";

      foreach (
$fields as $field)
      {
        
$field ucfirst($field);
        
$output .= "
        <td> <b>
{$field}</b> </td>";
      }

      
$output .= "
      </tr>"
;

      foreach (
$server['p'] as $player_key => $player)
      {
        
$output .= "
        <tr style='"
.lgsl_bg()."'>";

        foreach (
$fields as $field)
        {
          
$output .= "<td> {$player[$field]} </td>";
        }

        
$output .= "
        </tr>"
;
      }

    
$output .= "
    </table>"
;
  }

  
$output .= "
  </div>"
;

//------------------------------------------------------------------------------------------------------------+

  
$output .= "
  <div style='height:10px'><br /></div>
  <div style='"
.lgsl_bg(TRUE)."; width:90%; margin:auto; text-align:center; height:6px; border:1px solid'><br /></div>
  <div style='height:20px'><br /></div>"
;

//------------------------------------------------------------------------------------------------------------+
// SHOW THE SETTINGS

  
if (empty($server['e']) || !is_array($server['e']))
  {
    
$output .= "
    <table cellpadding='4' cellspacing='2' style='margin:auto'>
      <tr style='"
.lgsl_bg(FALSE)."'>
        <td> 
{$lgsl_config['text']['nei']} </td>
      </tr>
    </table>"
;
  }
  else
  {
    
$output .= "
    <table cellpadding='4' cellspacing='2' style='margin:auto'>
      <tr style='"
.lgsl_bg(FALSE)."'>
        <td> <b>
{$lgsl_config['text']['ehs']}</b> </td>
        <td> <b>
{$lgsl_config['text']['ehv']}</b> </td>
      </tr>"
;

    foreach (
$server['e'] as $field => $value)
    {
      
$color lgsl_bg();

      
$output .= "
      <tr>
        <td style='
{$color}'> {$field} </td>
        <td style='
{$color}'> {$value} </td>
      </tr>"
;
    }

    
$output .= "
    </table>"
;
  }

//------------------------------------------------------------------------------------------------------------+

  
$output .= "
  <div style='height:10px'><br /></div>
  <div style='"
.lgsl_bg(TRUE)."; width:90%; margin:auto; text-align:center; height:6px; border:1px solid'><br /></div>
  <div style='height:20px'><br /></div>"
;

  
$output .= "
  </div>"
;

//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
//------ PLEASE MAKE A DONATION OR SIGN THE GUESTBOOK AT GREYCUBE.COM IF YOU REMOVE THIS CREDIT ----------------------------------------------------------------------------------------------------+
  
$output .= "<div style='text-align:center; font-family:tahoma; font-size:9px'><br /><br /><br /><a href='http://www.greycube.com' style='text-decoration:none'>".lgsl_version()."</a><br /></div>";
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+


I did what you wrote, but it does not work
Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org