ilch Forum » Ilch Clan 1.1 » Fehlersuche und Probleme » lgsl

Geschlossen
  1. #1
    User Pic
    UnDeadClank Mitglied
    Registriert seit
    15.11.2012
    Beiträge
    5
    Beitragswertungen
    0 Beitragspunkte
    Hey,
    ich bin nicht unbedingt der beste was HTML und PHP angeht.
    Ich habe mich schon mehrer Stunden versucht, diese 2 probleme zu lösen.

    1. Tabelle

    undeadrevolution.de/index.php?serverview

    der untere Teil der Tabelle, soll Rechts neben dem Bild.
    Doch es will nur unten bleiben lachen es ist störisch.

    Hier der Code:

    <?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)    |
     |                                                                                                            |
     |-------------------------------------------------------------------------------------------------------------
     |        [ EDITOR STYLE SETTINGS: LUCIDA CONSOLE, SIZE 10, TAB = 2 SPACES, BOLD GLOBALLY TURNED OFF ]        |
     \-----------------------------------------------------------------------------------------------------------*/
    defined ('main') or die ( 'no direct access' );
    //------------------------------------------------------------------------------------------------------------+
    
      require "lgsl_class.php";
    
      $server_list = lgsl_query_cached_all("s");
      $server_list = lgsl_sort_servers($server_list);
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div style='text-align:center'>
        <table cellpadding='4' cellspacing='2' style='margin:auto' width='100%'>";
    
        foreach ($server_list as $server)
        {
          $misc   = lgsl_server_misc($server);
          $server = lgsl_server_html($server);
    
          $output .= "
          <tr ".lgsl_bg().">
    
            <td style='text-align:center' valign='center' height='160' width='180'>
            <div style='background-image:url({$misc['image_map']}); background-repeat:no-repeat; background-position:center'>
              <a href='".lgsl_link($server['o']['id'])."'><img alt='' src='{$misc['image_map_password']}' title='{$lgsl_config['text']['vsd']}' style='border:none; width:{$zone_width}; background:url({$misc['icon_game']}); background-repeat:no-repeat; background-position:4px 4px' /></a>
            </div>
          </td>
    // ---------- Diesen Teil habe ich verändert. ----------
            <td valign='top'>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['sts']} </b> </td> <td style='white-space:nowrap'> {$misc['text_status']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['adr']} </b> </td> <td style='white-space:nowrap'> {$server['b']['ip']}                                     </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['cpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['c_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['qpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['q_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['typ']} </b> </td> <td style='white-space:nowrap'> {$server['b']['type']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['gme']} </b> </td> <td style='white-space:nowrap'> {$server['s']['game']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['map']} </b> </td> <td style='white-space:nowrap'> {$server['s']['map']}                                    </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['plr']} </b> </td> <td style='white-space:nowrap'> {$server['s']['players']} / {$server['s']['playersmax']} </td> </tr>
            </td></tr>
    
         ";
        }
    
        $output .= "
        </table>
      </div>";
    
    //------------------------------------------------------------------------------------------------------------+
    
      if ($lgsl_config['list']['totals'])
      {
        $total = lgsl_cached_totals();
    
        $output .= "
        <div>
          <br />
        </div>
        <div style='text-align:center'>
          <table cellpadding='4' cellspacing='4' style='margin:auto'>
            <tr style='".lgsl_bg()."'>
              <td> {$lgsl_config['text']['tns']} {$total['servers']}    </td>
              <td> {$lgsl_config['text']['tnp']} {$total['players']}    </td>
              <td> {$lgsl_config['text']['tmp']} {$total['playersmax']} </td>
            </tr>
          </table>
        </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' target='_blank'>".lgsl_version()."</a><br /></div>";  
    //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    
    ?>



    2.
    Hier: undeadrevolution.de/index.php?serverview&s=1

    man sieht leicht, dass die Tabelle zu weit nach rechts geht.
    Das liegt wohl an sv_tags.
    Doch wie kann ich einstellen das er wenn die Tabelle über einen bestimmten wert ist, es eine neue Zeile anfängt.

    Hier auch der code:

    <?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)    |
     |                                                                                                            |
     |-------------------------------------------------------------------------------------------------------------
     |        [ EDITOR STYLE SETTINGS: LUCIDA CONSOLE, SIZE 10, TAB = 2 SPACES, BOLD GLOBALLY TURNED OFF ]        |
     \-----------------------------------------------------------------------------------------------------------*/
    defined ('main') or die ( 'no direct access' );
    //------------------------------------------------------------------------------------------------------------+
    
      require "lgsl_class.php";
    
    //------------------------------------------------------------------------------------------------------------+
    // THIS ALLOWS YOU TO CONTROL THE FIELDS DISPLAYED AND THEIR ORDER
    
      $fields_show  = array("name", "score", "deaths", "team", "ping", "bot", "time"); // THESE FIELDS ARE ORDERED FIRST
      $fields_hide  = array("teamindex", "pid", "pbguid"); // THESE FIELDS ARE REMOVED
      $fields_other = TRUE; // FALSE WILL HIDE FIELDS NOT IN $fields_show
    
    //------------------------------------------------------------------------------------------------------------+
    // GET THE SERVER DETAILS AND PREPARE IT FOR DISPLAY
    
      $lookup = lgsl_lookup_id($_GET['s']);
    
      if (!$lookup)
      {
        $output .= "<div style='margin:auto; text-align:center'> {$lgsl_config['text']['mid']} </div>"; return;
      }
    
      $server = lgsl_query_cached($lookup['type'], $lookup['ip'], $lookup['c_port'], $lookup['q_port'], $lookup['s_port'], "sep");
      $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='height:20px'><br /></div>";
    
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE STANDARD INFO
    
      $output .= "
      <table cellpadding='4' cellspacing='0' style='margin:auto'>
        <tr>
          <td colspan='3' style='text-align:center' ".lgsl_bg(TRUE).">
            <h2> {$server['s']['name']} </h2>
          </td>
        </tr>
        <tr>
          <td style='text-align:center'>
            <table cellpadding='4' cellspacing='2' style='margin:auto'>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['sts']} </b> </td> <td style='white-space:nowrap'> {$misc['text_status']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['adr']} </b> </td> <td style='white-space:nowrap'> {$server['b']['ip']}                                     </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['cpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['c_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['qpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['q_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['typ']} </b> </td> <td style='white-space:nowrap'> {$server['b']['type']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['gme']} </b> </td> <td style='white-space:nowrap'> {$server['s']['game']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['map']} </b> </td> <td style='white-space:nowrap'> {$server['s']['map']}                                    </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['plr']} </b> </td> <td style='white-space:nowrap'> {$server['s']['players']} / {$server['s']['playersmax']} </td> </tr>
            </table>
          </td>
          <td style='text-align:center' valign='top'>
            <div style='background-image:url({$misc['image_map']}); background-repeat:no-repeat; background-position:center'>
              <img alt='' src='{$misc['image_map_password']}' title='{$lgsl_config['text']['vsd']}' style='border:none; width:{$zone_width}; background:url({$misc['icon_game']}); background-repeat:no-repeat; background-position:4px 4px' />
            </div></br>
              <b> <a href='{$misc['software_link']}'><img src='include/extras/lgsl/lgsl_files/other/hlsw.gif' border='0' alt='Add HLSW' title='Add HLSW'></a></b>
          </td>
        </tr>
    
      </table>";
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".lgsl_bg(TRUE)."; width:50%; margin:auto; text-align:center; height:6px; border:1px solid'><br /></div>
      <div style='height:20px'><br /></div>";
    
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE PLAYERS
    
      $output .= "
      <div style='margin:auto; overflow:auto; text-align:center; padding:10px'>";
    
      if (!$server['p'])
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".lgsl_bg(FALSE).">
            <td> {$lgsl_config['text']['npi']} </td>
          </tr>
        </table>";
      }
      else
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".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 ".lgsl_bg().">";
    
            foreach ($fields as $field)
            {
              $output .= "<td> {$player[$field]} </td>";
            }
    
            $output .= "
            </tr>";
          }
    
        $output .= "
        </table>";
      }
    
      $output .= "
      </div>";
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".lgsl_bg(TRUE)."; width='180'; margin:auto; text-align:center; height:6px; border:1px solid'><br /></div>
      <div style='height:20px'><br /></div>";
    
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE SETTINGS
    
      if (!$server['e'] || !is_array($server['e']))
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto' width='180'>
          <tr ".lgsl_bg(FALSE).">
            <td> {$lgsl_config['text']['nei']} </td>
          </tr>
        </table>";
      }
      else
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto' width='610'>
          <tr ".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 width='180'".lgsl_bg(TRUE)."> {$field} </td>
            <td width='180' ".lgsl_bg(TRUE)."> {$value} </td>
          </tr>";
        }
    
        $output .= "
        </table>";
      }
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".lgsl_bg(TRUE)."; width='180'; 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 ---------------------------------------------------------------------------------------------------+
    //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    
    ?>


    betroffene Homepage: undeadrevolution.de/index.php?serverview
    0 Mitglieder finden den Beitrag gut.
  2. #2
    User Pic
    Rock@wulf Hall Of Fame
    Registriert seit
    03.06.2004
    Beiträge
    3.282
    Beitragswertungen
    239 Beitragspunkte
    1.

    <?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)    |
     |                                                                                                            |
     |-------------------------------------------------------------------------------------------------------------
     |        [ EDITOR STYLE SETTINGS: LUCIDA CONSOLE, SIZE 10, TAB = 2 SPACES, BOLD GLOBALLY TURNED OFF ]        |
     \-----------------------------------------------------------------------------------------------------------*/
    defined ('main') or die ( 'no direct access' );
    //------------------------------------------------------------------------------------------------------------+
     
      require "lgsl_class.php";
     
      $server_list = lgsl_query_cached_all("s");
      $server_list = lgsl_sort_servers($server_list);
     
    //------------------------------------------------------------------------------------------------------------+
     
      $output .= "
      <div style='text-align:center'>
        <table cellpadding='4' cellspacing='2' style='margin:auto' width='100%'>";
     
        foreach ($server_list as $server)
        {
          $misc   = lgsl_server_misc($server);
          $server = lgsl_server_html($server);
     
          $output .= "
          <tr ".lgsl_bg().">
     
            <td style='text-align:center' valign='center' height='160' width='180'>
            <div style='background-image:url({$misc['image_map']}); background-repeat:no-repeat; background-position:center'>
              <a href='".lgsl_link($server['o']['id'])."'><img alt='' src='{$misc['image_map_password']}' title='{$lgsl_config['text']['vsd']}' style='border:none; width:{$zone_width}; background:url({$misc['icon_game']}); background-repeat:no-repeat; background-position:4px 4px' /></a>
            </div>
          </td>
    // ---------- Diesen Teil habe ich verändert. ----------
              <td ".lgsl_bg()."> <b> {$lgsl_config['text']['sts']} </b> </td> <td style='white-space:nowrap'> {$misc['text_status']}                                   </td>
              <td ".lgsl_bg()."> <b> {$lgsl_config['text']['adr']} </b> </td> <td style='white-space:nowrap'> {$server['b']['ip']}                                     </td>
              <td ".lgsl_bg()."> <b> {$lgsl_config['text']['cpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['c_port']}                                 </td>
              <td ".lgsl_bg()."> <b> {$lgsl_config['text']['qpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['q_port']}                                 </td>
              <td ".lgsl_bg()."> <b> {$lgsl_config['text']['typ']} </b> </td> <td style='white-space:nowrap'> {$server['b']['type']}                                   </td>
              <td ".lgsl_bg()."> <b> {$lgsl_config['text']['gme']} </b> </td> <td style='white-space:nowrap'> {$server['s']['game']}                                   </td>
              <td ".lgsl_bg()."> <b> {$lgsl_config['text']['map']} </b> </td> <td style='white-space:nowrap'> {$server['s']['map']}                                    </td>
              <td ".lgsl_bg()."> <b> {$lgsl_config['text']['plr']} </b> </td> <td style='white-space:nowrap'> {$server['s']['players']} / {$server['s']['playersmax']} </td>
         </tr>
     
         ";
        }
     
        $output .= "
        </table>
      </div>";
     
    //------------------------------------------------------------------------------------------------------------+
     
      if ($lgsl_config['list']['totals'])
      {
        $total = lgsl_cached_totals();
     
        $output .= "
        <div>
          <br />
        </div>
        <div style='text-align:center'>
          <table cellpadding='4' cellspacing='4' style='margin:auto'>
            <tr style='".lgsl_bg()."'>
              <td> {$lgsl_config['text']['tns']} {$total['servers']}    </td>
              <td> {$lgsl_config['text']['tnp']} {$total['players']}    </td>
              <td> {$lgsl_config['text']['tmp']} {$total['playersmax']} </td>
            </tr>
          </table>
        </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' target='_blank'>".lgsl_version()."</a><br /></div>"; 
    //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
     
    ?>


    Der andere Fehler sollte hierran liegen:

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


    Ausgabe ist danach
    <div class='Cmite'; width='180'; margin:auto; text-align:center; height:6px; border:1px solid'><br /></div>


    Was totaler quatsch ist ...

    der Fehler kommt von der Funktion
    lgsl_bg(TRUE)
    Die mir leider nicht zur verfügung steht, da man mal wieder den link zum verwendeten Modul verschwiegen hat.
    Meine Postings repräsentieren meine Meinung wenn nicht anders gekennzeichnet.
    MFG Rock@wulf
    0 Mitglieder finden den Beitrag gut.
  3. #3
    User Pic
    IceT33 Mitglied
    Registriert seit
    22.10.2005
    Beiträge
    607
    Beitragswertungen
    9 Beitragspunkte
    Rock@wulf du kennst das Script doch .... lgsl
    0 Mitglieder finden den Beitrag gut.
  4. #4
    User Pic
    Rock@wulf Hall Of Fame
    Registriert seit
    03.06.2004
    Beiträge
    3.282
    Beitragswertungen
    239 Beitragspunkte
    ehm tue ich das O_o

    nicht das ich wüsste aber ok
    Meine Postings repräsentieren meine Meinung wenn nicht anders gekennzeichnet.
    MFG Rock@wulf
    0 Mitglieder finden den Beitrag gut.
  5. #5
    User Pic
    Rock@wulf Hall Of Fame
    Registriert seit
    03.06.2004
    Beiträge
    3.282
    Beitragswertungen
    239 Beitragspunkte
    Der andere Fehler liegt hier ran:

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


    Das in der entsprechenden Datei zu
    <div ".lgsl_bg(TRUE)." style='width:50%; margin:auto; text-align:center; height:6px; border:1px solid;'><br /></div>


    ändern

    Hier wurde mist bei der Anpassung ans ilchscript betrieben. :-)
    [/quote]
    Meine Postings repräsentieren meine Meinung wenn nicht anders gekennzeichnet.
    MFG Rock@wulf
    1 Mitglieder finden den Beitrag gut.
  6. #6
    User Pic
    UnDeadClank Mitglied
    Registriert seit
    15.11.2012
    Beiträge
    5
    Beitragswertungen
    0 Beitragspunkte
    Sry, hatte vergessen den Link zum Modul anzuhängen...

    Ich habe nun die Dateien so verändert wie du gesagt has.
    Teil 1. einmal komplett kopiert.

    sieht momentan so aus:
    undeadrevolution.de/index.php?serverview
    da fehlt nur noch der "zeilenumbruch" nach jeder zweiten Tabelle


    und bei dem 2 hat sich i.wie nichts verändert o.O
    Code:

    <?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)    |
     |                                                                                                            |
     |-------------------------------------------------------------------------------------------------------------
     |        [ EDITOR STYLE SETTINGS: LUCIDA CONSOLE, SIZE 10, TAB = 2 SPACES, BOLD GLOBALLY TURNED OFF ]        |
     \-----------------------------------------------------------------------------------------------------------*/
    defined ('main') or die ( 'no direct access' );
    //------------------------------------------------------------------------------------------------------------+
    
      require "lgsl_class.php";
    
    //------------------------------------------------------------------------------------------------------------+
    // THIS ALLOWS YOU TO CONTROL THE FIELDS DISPLAYED AND THEIR ORDER
    
      $fields_show  = array("name", "score", "deaths", "team", "ping", "bot", "time"); // THESE FIELDS ARE ORDERED FIRST
      $fields_hide  = array("teamindex", "pid", "pbguid"); // THESE FIELDS ARE REMOVED
      $fields_other = TRUE; // FALSE WILL HIDE FIELDS NOT IN $fields_show
    
    //------------------------------------------------------------------------------------------------------------+
    // GET THE SERVER DETAILS AND PREPARE IT FOR DISPLAY
    
      $lookup = lgsl_lookup_id($_GET['s']);
    
      if (!$lookup)
      {
        $output .= "<div style='margin:auto; text-align:center'> {$lgsl_config['text']['mid']} </div>"; return;
      }
    
      $server = lgsl_query_cached($lookup['type'], $lookup['ip'], $lookup['c_port'], $lookup['q_port'], $lookup['s_port'], "sep");
      $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='height:20px'><br /></div>";
    
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE STANDARD INFO
    
      $output .= "
      <table cellpadding='4' cellspacing='0' style='margin:auto'>
        <tr>
          <td colspan='3' style='text-align:center' ".lgsl_bg(TRUE).">
            <h2> {$server['s']['name']} </h2>
          </td>
        </tr>
        <tr>
          <td style='text-align:center'>
            <table cellpadding='4' cellspacing='2' style='margin:auto'>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['sts']} </b> </td> <td style='white-space:nowrap'> {$misc['text_status']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['adr']} </b> </td> <td style='white-space:nowrap'> {$server['b']['ip']}                                     </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['cpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['c_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['qpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['q_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['typ']} </b> </td> <td style='white-space:nowrap'> {$server['b']['type']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['gme']} </b> </td> <td style='white-space:nowrap'> {$server['s']['game']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['map']} </b> </td> <td style='white-space:nowrap'> {$server['s']['map']}                                    </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['plr']} </b> </td> <td style='white-space:nowrap'> {$server['s']['players']} / {$server['s']['playersmax']} </td> </tr>
            </table>
          </td>
          <td style='text-align:center' valign='top'>
            <div style='background-image:url({$misc['image_map']}); background-repeat:no-repeat; background-position:center'>
              <img alt='' src='{$misc['image_map_password']}' title='{$lgsl_config['text']['vsd']}' style='border:none; width:{$zone_width}; background:url({$misc['icon_game']}); background-repeat:no-repeat; background-position:4px 4px' />
            </div></br>
              <b> <a href='{$misc['software_link']}'><img src='include/extras/lgsl/lgsl_files/other/hlsw.gif' border='0' alt='Add HLSW' title='Add HLSW'></a></b>
          </td>
        </tr>
    
      </table>";
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".lgsl_bg(TRUE)." style='width:50%; margin:auto; text-align:center; height:6px; border:1px solid;'><br /></div>
      <div style='height:20px'><br /></div>";
    
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE PLAYERS
    
      $output .= "
      <div style='margin:auto; overflow:auto; text-align:center; padding:10px'>";
    
      if (!$server['p'])
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".lgsl_bg(FALSE).">
            <td> {$lgsl_config['text']['npi']} </td>
          </tr>
        </table>";
      }
      else
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".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 ".lgsl_bg().">";
    
            foreach ($fields as $field)
            {
              $output .= "<td> {$player[$field]} </td>";
            }
    
            $output .= "
            </tr>";
          }
    
        $output .= "
        </table>";
      }
    
      $output .= "
      </div>";
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".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 (!$server['e'] || !is_array($server['e']))
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".lgsl_bg(FALSE).">
            <td> {$lgsl_config['text']['nei']} </td>
          </tr>
        </table>";
      }
      else
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".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 ".lgsl_bg(TRUE)."> {$field} </td>
            <td ".lgsl_bg(TRUE)."> {$value} </td>
          </tr>";
        }
    
        $output .= "
        </table>";
      }
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".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' target='_blank'>".lgsl_version()."</a><br /></div>";
    //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    
    ?>


    aber td. danke das du dich dem angenommen hast :-)
    sehr freundlich :-)


    Zuletzt modifiziert von UnDeadClank am 15.11.2012 - 23:24:12
    0 Mitglieder finden den Beitrag gut.
  7. #7
    User Pic
    Rock@wulf Hall Of Fame
    Registriert seit
    03.06.2004
    Beiträge
    3.282
    Beitragswertungen
    239 Beitragspunkte
    1. davon war nicht die rede aber ok

    <?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)    |
     |                                                                                                            |
     |-------------------------------------------------------------------------------------------------------------
     |        [ EDITOR STYLE SETTINGS: LUCIDA CONSOLE, SIZE 10, TAB = 2 SPACES, BOLD GLOBALLY TURNED OFF ]        |
     \-----------------------------------------------------------------------------------------------------------*/
    defined ('main') or die ( 'no direct access' );
    //------------------------------------------------------------------------------------------------------------+
      
      require "lgsl_class.php";
      
      $server_list = lgsl_query_cached_all("s");
      $server_list = lgsl_sort_servers($server_list);
      
    //------------------------------------------------------------------------------------------------------------+
      
      $output .= "
      <div style='text-align:center'>
        <table cellpadding='4' cellspacing='2' style='margin:auto' width='100%'>";
      
        foreach ($server_list as $server)
        {
          $misc   = lgsl_server_misc($server);
          $server = lgsl_server_html($server);
      
          $output .= "
          <tr ".lgsl_bg().">
      
            <td style='text-align:center' valign='center' height='160' width='180'>
            <div style='background-image:url({$misc['image_map']}); background-repeat:no-repeat; background-position:center'>
              <a href='".lgsl_link($server['o']['id'])."'><img alt='' src='{$misc['image_map_password']}' title='{$lgsl_config['text']['vsd']}' style='border:none; width:{$zone_width}; background:url({$misc['icon_game']}); background-repeat:no-repeat; background-position:4px 4px' /></a>
            </div>
          </td>
          <td>
          <table cellpadding='0' cellspacing='0'>
              <tr><td ".lgsl_bg()."> <b> {$lgsl_config['text']['sts']} </b> </td> <td style='white-space:nowrap'> {$misc['text_status']}                                   </td></tr>
              <tr><td ".lgsl_bg()."> <b> {$lgsl_config['text']['adr']} </b> </td> <td style='white-space:nowrap'> {$server['b']['ip']}                                     </td></tr>
              <tr><td ".lgsl_bg()."> <b> {$lgsl_config['text']['cpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['c_port']}                                 </td></tr>
              <tr><td ".lgsl_bg()."> <b> {$lgsl_config['text']['qpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['q_port']}                                 </td></tr>
              <tr><td ".lgsl_bg()."> <b> {$lgsl_config['text']['typ']} </b> </td> <td style='white-space:nowrap'> {$server['b']['type']}                                   </td></tr>
              <tr><td ".lgsl_bg()."> <b> {$lgsl_config['text']['gme']} </b> </td> <td style='white-space:nowrap'> {$server['s']['game']}                                   </td></tr>
              <tr><td ".lgsl_bg()."> <b> {$lgsl_config['text']['map']} </b> </td> <td style='white-space:nowrap'> {$server['s']['map']}                                    </td></tr>
              <tr><td ".lgsl_bg()."> <b> {$lgsl_config['text']['plr']} </b> </td> <td style='white-space:nowrap'> {$server['s']['players']} / {$server['s']['playersmax']} </td></tr>
          </table>
        </td>     
        </tr>
      
         ";
        }
      
        $output .= "
        </table>
      </div>";
      
    //------------------------------------------------------------------------------------------------------------+
      
      if ($lgsl_config['list']['totals'])
      {
        $total = lgsl_cached_totals();
      
        $output .= "
        <div>
          <br />
        </div>
        <div style='text-align:center'>
          <table cellpadding='4' cellspacing='4' style='margin:auto'>
            <tr style='".lgsl_bg()."'>
              <td> {$lgsl_config['text']['tns']} {$total['servers']}    </td>
              <td> {$lgsl_config['text']['tnp']} {$total['players']}    </td>
              <td> {$lgsl_config['text']['tmp']} {$total['playersmax']} </td>
            </tr>
          </table>
        </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' target='_blank'>".lgsl_version()."</a><br /></div>";
    //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
      
    ?>


    2. Zeile 143 & Z 185 noch ändern selber code ...
    Meine Postings repräsentieren meine Meinung wenn nicht anders gekennzeichnet.
    MFG Rock@wulf
    0 Mitglieder finden den Beitrag gut.
  8. #8
    User Pic
    UnDeadClank Mitglied
    Registriert seit
    15.11.2012
    Beiträge
    5
    Beitragswertungen
    0 Beitragspunkte
    So also zu:

    1. Ich kann mich nur 1000000 mal bedanken.

    Doch ein problem bei 2 noch,
    es hat sich da nichts getan...

    undeadrevolution.de/index.php?serverview&s=1

    <?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)    |
     |                                                                                                            |
     |-------------------------------------------------------------------------------------------------------------
     |        [ EDITOR STYLE SETTINGS: LUCIDA CONSOLE, SIZE 10, TAB = 2 SPACES, BOLD GLOBALLY TURNED OFF ]        |
     \-----------------------------------------------------------------------------------------------------------*/
    defined ('main') or die ( 'no direct access' );
    //------------------------------------------------------------------------------------------------------------+
    
      require "lgsl_class.php";
    
    //------------------------------------------------------------------------------------------------------------+
    // THIS ALLOWS YOU TO CONTROL THE FIELDS DISPLAYED AND THEIR ORDER
    
      $fields_show  = array("name", "score", "deaths", "team", "ping", "bot", "time"); // THESE FIELDS ARE ORDERED FIRST
      $fields_hide  = array("teamindex", "pid", "pbguid"); // THESE FIELDS ARE REMOVED
      $fields_other = TRUE; // FALSE WILL HIDE FIELDS NOT IN $fields_show
    
    //------------------------------------------------------------------------------------------------------------+
    // GET THE SERVER DETAILS AND PREPARE IT FOR DISPLAY
    
      $lookup = lgsl_lookup_id($_GET['s']);
    
      if (!$lookup)
      {
        $output .= "<div style='margin:auto; text-align:center'> {$lgsl_config['text']['mid']} </div>"; return;
      }
    
      $server = lgsl_query_cached($lookup['type'], $lookup['ip'], $lookup['c_port'], $lookup['q_port'], $lookup['s_port'], "sep");
      $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='height:20px'><br /></div>";
    
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE STANDARD INFO
    
      $output .= "
      <table cellpadding='4' cellspacing='0' style='margin:auto'>
        <tr>
          <td colspan='3' style='text-align:center' ".lgsl_bg(TRUE).">
            <h2> {$server['s']['name']} </h2>
          </td>
        </tr>
        <tr>
          <td style='text-align:center'>
            <table cellpadding='4' cellspacing='2' style='margin:auto'>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['sts']} </b> </td> <td style='white-space:nowrap'> {$misc['text_status']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['adr']} </b> </td> <td style='white-space:nowrap'> {$server['b']['ip']}                                     </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['cpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['c_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['qpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['q_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['typ']} </b> </td> <td style='white-space:nowrap'> {$server['b']['type']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['gme']} </b> </td> <td style='white-space:nowrap'> {$server['s']['game']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['map']} </b> </td> <td style='white-space:nowrap'> {$server['s']['map']}                                    </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['plr']} </b> </td> <td style='white-space:nowrap'> {$server['s']['players']} / {$server['s']['playersmax']} </td> </tr>
            </table>
          </td>
          <td style='text-align:center' valign='top'>
            <div style='background-image:url({$misc['image_map']}); background-repeat:no-repeat; background-position:center'>
              <img alt='' src='{$misc['image_map_password']}' title='{$lgsl_config['text']['vsd']}' style='border:none; width:{$zone_width}; background:url({$misc['icon_game']}); background-repeat:no-repeat; background-position:4px 4px' />
            </div></br>
              <b> <a href='{$misc['software_link']}'><img src='include/extras/lgsl/lgsl_files/other/hlsw.gif' border='0' alt='Add HLSW' title='Add HLSW'></a></b>
          </td>
        </tr>
    
      </table>";
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".lgsl_bg(TRUE)." style='width:90%; margin:auto; text-align:center; height:6px; border:1px solid;'><br /></div>
      <div style='height:20px'><br /></div>";
    
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE PLAYERS
    
      $output .= "
      <div style='margin:auto; overflow:auto; text-align:center; padding:10px'>";
    
      if (!$server['p'])
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".lgsl_bg(FALSE).">
            <td> {$lgsl_config['text']['npi']} </td>
          </tr>
        </table>";
      }
      else
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".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 ".lgsl_bg().">";
    
            foreach ($fields as $field)
            {
              $output .= "<td> {$player[$field]} </td>";
            }
    
            $output .= "
            </tr>";
          }
    
        $output .= "
        </table>";
      }
    
      $output .= "
      </div>";
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".lgsl_bg(TRUE)." style='width:90%; margin:auto; text-align:center; height:6px; border:1px solid;'><br /></div>
      <div style='height:20px'><br /></div>";
    
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE SETTINGS
    
      if (!$server['e'] || !is_array($server['e']))
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".lgsl_bg(FALSE).">
            <td> {$lgsl_config['text']['nei']} </td>
          </tr>
        </table>";
      }
      else
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".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 ".lgsl_bg(TRUE)."> {$field} </td>
            <td ".lgsl_bg(TRUE)."> {$value} </td>
          </tr>";
        }
    
        $output .= "
        </table>";
      }
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".lgsl_bg(TRUE)." style='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' target='_blank'>".lgsl_version()."</a><br /></div>";
    //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    
    ?>
    0 Mitglieder finden den Beitrag gut.
  9. #9
    User Pic
    Rock@wulf Hall Of Fame
    Registriert seit
    03.06.2004
    Beiträge
    3.282
    Beitragswertungen
    239 Beitragspunkte
    Montag eher hab ich keine Zeit Syr
    Meine Postings repräsentieren meine Meinung wenn nicht anders gekennzeichnet.
    MFG Rock@wulf
    0 Mitglieder finden den Beitrag gut.
  10. #10
    User Pic
    UnDeadClank Mitglied
    Registriert seit
    15.11.2012
    Beiträge
    5
    Beitragswertungen
    0 Beitragspunkte
    Np zwinker
    ist ja nicht so wichtig :-)

    Aber td. schonmal danke :-)
    0 Mitglieder finden den Beitrag gut.
  11. #11
    User Pic
    UnDeadClank Mitglied
    Registriert seit
    15.11.2012
    Beiträge
    5
    Beitragswertungen
    0 Beitragspunkte
    So also brauche nur noch da hilfe o.O habe das wochenende nochmal was versucht, aber da wurd nichts raus...

    Hier nochmal der Link um sich das anzugucken.
    undeadrevolution.de/index.php?serverview&s=1

    Man sieht es leider nicht mehr aber die Tabelle wird nicht nach rechts begrenzt...
    ps: das ist nur ein Beispiel server da unser grade down ist.

    <?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)    |
     |                                                                                                            |
     |-------------------------------------------------------------------------------------------------------------
     |        [ EDITOR STYLE SETTINGS: LUCIDA CONSOLE, SIZE 10, TAB = 2 SPACES, BOLD GLOBALLY TURNED OFF ]        |
     \-----------------------------------------------------------------------------------------------------------*/
    defined ('main') or die ( 'no direct access' );
    //------------------------------------------------------------------------------------------------------------+
    
      require "lgsl_class.php";
    
    //------------------------------------------------------------------------------------------------------------+
    // THIS ALLOWS YOU TO CONTROL THE FIELDS DISPLAYED AND THEIR ORDER
    
      $fields_show  = array("name", "score", "deaths", "team", "ping", "bot", "time"); // THESE FIELDS ARE ORDERED FIRST
      $fields_hide  = array("teamindex", "pid", "pbguid"); // THESE FIELDS ARE REMOVED
      $fields_other = TRUE; // FALSE WILL HIDE FIELDS NOT IN $fields_show
    
    //------------------------------------------------------------------------------------------------------------+
    // GET THE SERVER DETAILS AND PREPARE IT FOR DISPLAY
    
      $lookup = lgsl_lookup_id($_GET['s']);
    
      if (!$lookup)
      {
        $output .= "<div style='margin:auto; text-align:center'> {$lgsl_config['text']['mid']} </div>"; return;
      }
    
      $server = lgsl_query_cached($lookup['type'], $lookup['ip'], $lookup['c_port'], $lookup['q_port'], $lookup['s_port'], "sep");
      $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='height:20px'><br /></div>";
    
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE STANDARD INFO
    
      $output .= "
      <table cellpadding='4' cellspacing='0' style='margin:auto'>
        <tr>
          <td colspan='3' style='text-align:center' ".lgsl_bg(TRUE).">
            <h2> {$server['s']['name']} </h2>
          </td>
        </tr>
        <tr>
          <td style='text-align:center'>
            <table cellpadding='4' cellspacing='2' style='margin:auto'>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['sts']} </b> </td> <td style='white-space:nowrap'> {$misc['text_status']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['adr']} </b> </td> <td style='white-space:nowrap'> {$server['b']['ip']}                                     </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['cpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['c_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['qpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['q_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['typ']} </b> </td> <td style='white-space:nowrap'> {$server['b']['type']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['gme']} </b> </td> <td style='white-space:nowrap'> {$server['s']['game']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['map']} </b> </td> <td style='white-space:nowrap'> {$server['s']['map']}                                    </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['plr']} </b> </td> <td style='white-space:nowrap'> {$server['s']['players']} / {$server['s']['playersmax']} </td> </tr>
            </table>
          </td>
          <td style='text-align:center' valign='top'>
            <div style='background-image:url({$misc['image_map']}); background-repeat:no-repeat; background-position:center'>
              <img alt='' src='{$misc['image_map_password']}' title='{$lgsl_config['text']['vsd']}' style='border:none; width:{$zone_width}; background:url({$misc['icon_game']}); background-repeat:no-repeat; background-position:4px 4px' />
            </div></br>
              <b> <a href='{$misc['software_link']}'><img src='include/extras/lgsl/lgsl_files/other/hlsw.gif' border='0' alt='Add HLSW' title='Add HLSW'></a></b>
          </td>
        </tr>
    
      </table>";
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".lgsl_bg(TRUE)." style='width:90%; margin:auto; text-align:center; height:6px; border:1px solid;'><br /></div>
      <div style='height:20px'><br /></div>";
    
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE PLAYERS
    
      $output .= "
      <div style='margin:auto; overflow:auto; text-align:center; padding:10px'>";
    
      if (!$server['p'])
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".lgsl_bg(FALSE).">
            <td> {$lgsl_config['text']['npi']} </td>
          </tr>
        </table>";
      }
      else
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".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 ".lgsl_bg().">";
    
            foreach ($fields as $field)
            {
              $output .= "<td> {$player[$field]} </td>";
            }
    
            $output .= "
            </tr>";
          }
    
        $output .= "
        </table>";
      }
    
      $output .= "
      </div>";
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".lgsl_bg(TRUE)." style='width:90%; margin:auto; text-align:center; height:6px; border:1px solid;'><br /></div>
      <div style='height:20px'><br /></div>";
    
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE SETTINGS
    
      if (!$server['e'] || !is_array($server['e']))
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".lgsl_bg(FALSE).">
            <td> {$lgsl_config['text']['nei']} </td>
          </tr>
        </table>";
      }
      else
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".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 ".lgsl_bg(TRUE)."> {$field} </td>
            <td ".lgsl_bg(TRUE)."> {$value} </td>
          </tr>";
        }
    
        $output .= "
        </table>";
      }
    
    //------------------------------------------------------------------------------------------------------------+
    
      $output .= "
      <div ".lgsl_bg(TRUE)." style='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' target='_blank'>".lgsl_version()."</a><br /></div>";
    //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    
    ?>



    Zuletzt modifiziert von UnDeadClank am 21.11.2012 - 01:33:49
    0 Mitglieder finden den Beitrag gut.
  12. #12
    User Pic
    Rock@wulf Hall Of Fame
    Registriert seit
    03.06.2004
    Beiträge
    3.282
    Beitragswertungen
    239 Beitragspunkte
    Verdammich wieso erinnert mich keiner dran -.- syr ich habs verrafft

    bitte mal so versuchen

    <?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)    |
     |                                                                                                            |
     |-------------------------------------------------------------------------------------------------------------
     |        [ EDITOR STYLE SETTINGS: LUCIDA CONSOLE, SIZE 10, TAB = 2 SPACES, BOLD GLOBALLY TURNED OFF ]        |
     \-----------------------------------------------------------------------------------------------------------*/
    defined ('main') or die ( 'no direct access' );
    //------------------------------------------------------------------------------------------------------------+
     
      require "lgsl_class.php";
     
    //------------------------------------------------------------------------------------------------------------+
    // THIS ALLOWS YOU TO CONTROL THE FIELDS DISPLAYED AND THEIR ORDER
     
      $fields_show  = array("name", "score", "deaths", "team", "ping", "bot", "time"); // THESE FIELDS ARE ORDERED FIRST
      $fields_hide  = array("teamindex", "pid", "pbguid"); // THESE FIELDS ARE REMOVED
      $fields_other = TRUE; // FALSE WILL HIDE FIELDS NOT IN $fields_show
     
    //------------------------------------------------------------------------------------------------------------+
    // GET THE SERVER DETAILS AND PREPARE IT FOR DISPLAY
     
      $lookup = lgsl_lookup_id($_GET['s']);
     
      if (!$lookup)
      {
        $output .= "<div style='margin:auto; text-align:center'> {$lgsl_config['text']['mid']} </div>"; return;
      }
     
      $server = lgsl_query_cached($lookup['type'], $lookup['ip'], $lookup['c_port'], $lookup['q_port'], $lookup['s_port'], "sep");
      $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='height:20px'><br /></div>";
     
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE STANDARD INFO
     
      $output .= "
      <table cellpadding='4' cellspacing='0' style='margin:auto'>
        <tr>
          <td colspan='3' style='text-align:center' ".lgsl_bg(TRUE).">
            <h2> {$server['s']['name']} </h2>
          </td>
        </tr>
        <tr>
          <td style='text-align:center'>
            <table cellpadding='4' cellspacing='2' style='margin:auto'>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['sts']} </b> </td> <td style='white-space:nowrap'> {$misc['text_status']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['adr']} </b> </td> <td style='white-space:nowrap'> {$server['b']['ip']}                                     </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['cpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['c_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['qpt']} </b> </td> <td style='white-space:nowrap'> {$server['b']['q_port']}                                 </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['typ']} </b> </td> <td style='white-space:nowrap'> {$server['b']['type']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['gme']} </b> </td> <td style='white-space:nowrap'> {$server['s']['game']}                                   </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['map']} </b> </td> <td style='white-space:nowrap'> {$server['s']['map']}                                    </td> </tr>
              <tr ".lgsl_bg()."> <td> <b> {$lgsl_config['text']['plr']} </b> </td> <td style='white-space:nowrap'> {$server['s']['players']} / {$server['s']['playersmax']} </td> </tr>
            </table>
          </td>
          <td style='text-align:center' valign='top'>
            <table cellpadding='4' cellspacing='2' style='margin:auto'>
              <tr> <td><div style='background-image:url({$misc['image_map']}); background-repeat:no-repeat; background-position:center'>
              <img alt='' src='{$misc['image_map_password']}' title='{$lgsl_config['text']['vsd']}' style='border:none; width:{$zone_width}; background:url({$misc['icon_game']}); background-repeat:no-repeat; background-position:4px 4px' />
            </div></td></tr>
            <tr ".lgsl_bg()."><td> <a href='{$misc['software_link']}'><img src='include/extras/lgsl/lgsl_files/other/hlsw.gif' border='0' alt='Add HLSW' title='Add HLSW'></a></td></tr>
          </td>
        </tr>
     
      </table>";
     
    //------------------------------------------------------------------------------------------------------------+
     
      $output .= "
      <div ".lgsl_bg(TRUE)." style='width:50%; margin:auto; text-align:center; height:6px; border:1px solid;'><br /></div>
      <div style='height:20px'><br /></div>";
     
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE PLAYERS
     
      $output .= "
      <div style='margin:auto; overflow:auto; text-align:center; padding:10px'>";
     
      if (!$server['p'])
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".lgsl_bg(FALSE).">
            <td> {$lgsl_config['text']['npi']} </td>
          </tr>
        </table>";
      }
      else
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".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 ".lgsl_bg().">";
     
            foreach ($fields as $field)
            {
              $output .= "<td> {$player[$field]} </td>";
            }
     
            $output .= "
            </tr>";
          }
     
        $output .= "
        </table>";
      }
     
      $output .= "
      </div>";
     
    //------------------------------------------------------------------------------------------------------------+
     
      $output .= "
      <div ".lgsl_bg(TRUE)." style='width:50%; margin:auto; text-align:center; height:6px; border:1px solid;'><br /></div>
      <div style='height:20px'><br /></div>";
     
    //------------------------------------------------------------------------------------------------------------+
    // SHOW THE SETTINGS
     
      if (!$server['e'] || !is_array($server['e']))
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".lgsl_bg(FALSE).">
            <td> {$lgsl_config['text']['nei']} </td>
          </tr>
        </table>";
      }
      else
      {
        $output .= "
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr ".lgsl_bg(FALSE).">
            <td> <b>{$lgsl_config['text']['ehs']}</b> </td>
            <td> <b>{$lgsl_config['text']['ehv']}</b> </td>
          </tr>";
        $server['e']['sv_tags']=preg_replace(",","<br>",$server['e']['sv_tags']);
        foreach ($server['e'] as $field => $value)
        {
          $color = lgsl_bg();
          
          $output .= "
          <tr>
            <td ".lgsl_bg(TRUE)."> {$field} </td>
            <td ".lgsl_bg(TRUE)."> {$value} </td>
          </tr>";
        }
     
        $output .= "
        </table>";
      }
     
    //------------------------------------------------------------------------------------------------------------+
     
      $output .= "
      <div ".lgsl_bg(TRUE)." style='width:50%; 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' target='_blank'>".lgsl_version()."</a><br /></div>";
    //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
     
    ?>



    Zuletzt modifiziert von Rock@wulf am 21.11.2012 - 08:58:53
    Meine Postings repräsentieren meine Meinung wenn nicht anders gekennzeichnet.
    MFG Rock@wulf
    0 Mitglieder finden den Beitrag gut.
Geschlossen

Zurück zu Fehlersuche und Probleme

Optionen: Bei einer Antwort zu diesem Thema eine eMail erhalten