Pradinis
Pagalba
Užsisakyk!
- Reklamą
- Hostingą
- El. pašto dėžutę
Užsisakyk!
Įrankiai
Pasidalink
- Visos temos
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems |
Autorius: justaslt | Peržiūrų: 3024 |
justaslt Narys Buldozeris Pranešimai: 296 Įstojęs: 2008 Geg. 13 20:05:33 | |
Instaliavime radau tokia vieto kuris nesuprantu, galit paaiskinti? Installation: Stand Alone version --------------------------------- Use PhpMyAdmin ( or some other tool ) to import the included: lgsl_install_sa.sql Edit the lgsl_config.php and put in your MySQL details. Edit the lgsl_config.php and change the admin password. Upload the lgsl folder to your site. To configure: navigate to the admin.php and enter config username and password. To add zone: $lgsl_zone_number = 1; $output = ""; require "lgsl/lgsl_files/lgsl_zone.php"; echo $output; The above describes adding a zone to a .PHP page, where the <?php ?> tags are currently open. |
|
Narys Tankas Pranešimai: 1753 Įstojęs: 2008 Sau. 4 17:01:06 | |
ten kai dedi serva pasirenki zona ir cia pagal sita gali pasidaryt kategorijas i puslapi iterpi$lgsl_zone_number = 1; ir tau rodis kas pirmoi zonoi $lgsl_zone_number = 2; kas antroi ir t.t |
|
justaslt Narys Buldozeris Pranešimai: 296 Įstojęs: 2008 Geg. 13 20:05:33 | |
Nelabai supratau, kur cia reiki sivis iterpti? |
|
justaslt Narys Buldozeris Pranešimai: 296 Įstojęs: 2008 Geg. 13 20:05:33 | |
o agl cia reiki iterpti i lgsl_zone.php? Jei taip, tai ikeliu koda. <?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 ] | \-----------------------------------------------------------------------------------------------------------*/ //------------------------------------------------------------------------------------------------------------+ require "lgsl_class.php"; if (!$lgsl_zone_number) { echo "DIRECT ACCESS NOT ALLOWED"; exit; } //------------------------------------------------------------------------------------------------------------+ $zone_width = $lgsl_config['zone']['width'] ."px"; $zone_height = $lgsl_config['zone']['height']."px"; $zone_grid = $lgsl_config['grid'][$lgsl_zone_number]; $zone_count = 0; //------------------------------------------------------------------------------------------------------------+ $server_list = lgsl_query_cached_zone($lgsl_config['players'][$lgsl_zone_number] ? "sp" : "s", $lgsl_zone_number); $server_list = lgsl_sort_servers($server_list); //------------------------------------------------------------------------------------------------------------+ $output .= " <table cellpadding='0' cellspacing='0' style='width:100%; margin:auto; text-align:center'> <tr>"; foreach ($server_list as $key => $server) { $server = lgsl_sort_players($server); $misc = lgsl_server_misc($server); $server = lgsl_server_html($server); if ($zone_count && $zone_grid && !($zone_count % $zone_grid)) { $output .= " </tr> <tr>"; } $output .= " <td style='vertical-align:top; padding-top:5px; padding-bottom:5px'>"; $zone_count ++; //------------------------------------------------------------------------------------------------------------+ $output .= " <table cellpadding='0' cellspacing='2' style='width:{$zone_width}; margin:auto; text-align:center'> <tr> <td title='{$lgsl_config['text']['slk']}' style='text-align:center'> <div style='width:{$zone_width}; white-space:nowrap; overflow:hidden; text-align:center'> <a href='{$misc['software_link']}' style='text-decoration:none'> {$server['b']['ip']}:{$server['b']['c_port']} </a> </div> </td> </tr> <tr> <td title='{$server['s']['name']}' style='text-align:center'> <div style='width:{$zone_width}; white-space:nowrap; overflow:hidden; text-align:center'> {$misc['name_filtered']} </div> </td> </tr> <tr> <td style='background-image:url({$misc['image_map']}); background-repeat:no-repeat; background-position:center'> <a href='".lgsl_link($server['o']['id'])."'> <img alt='' style='border:none; width:{$zone_width}' src='{$misc['image_map_password']}' title='{$lgsl_config['text']['vsd']}' /> </a> </td> </tr> <tr> <td title='{$misc['text_type_game']}' style='text-align:center'> <div style='width:{$zone_width}; white-space:nowrap; overflow:hidden; text-align:center'> {$server['s']['map']} </div> </td> </tr>"; //------------------------------------------------------------------------------------------------------------+ if ($server['p'] && $lgsl_config['players'][$lgsl_zone_number]) { $output .= " <tr> <td style='border:1px solid'> <div style='width:{$zone_width}; height:{$zone_height}; overflow:auto; text-align:left'> <span style='padding:1px; float:left'> {$lgsl_config['text']['zpl']} </span> <span style='padding:1px; float:right'> {$server['s']['players']} / {$server['s']['playersmax']} </span> <br /> <br />"; foreach ($server['p'] as $player) { $output .= " <div style='padding:1px; white-space:nowrap; overflow:hidden; text-align:left'>{$player['name']}</div>"; } $output .= " </div> </td> </tr>"; } else { $output .= " <tr> <td style='border:1px solid'> <span style='padding:1px; float:left'> {$lgsl_config['text']['zpl']} </span> <span style='padding:1px; float:right'> {$server['s']['players']} / {$server['s']['playersmax']} </span> </td> </tr>"; } //------------------------------------------------------------------------------------------------------------+ $output .= " </table> </td>"; //------------------------------------------------------------------------------------------------------------+ } if (!$server_list) { $output .= " <td style='text-align:center'> NO SERVERS IN ZONE {$lgsl_zone_number} </td>"; } $output .= " </tr> </table>"; //------------------------------------------------------------------------------------------------------------+ ?> |
|
justaslt Narys Buldozeris Pranešimai: 296 Įstojęs: 2008 Geg. 13 20:05:33 | |
Sorry kad ra6au dar karta 2ia, noriu atgaivinti tema, nes man LABAI reikia pagalbos. |
|
Narys Tankas Pranešimai: 1753 Įstojęs: 2008 Sau. 4 17:01:06 | |
neflodink reik rasyt bet kur tarkim i serveriai.php |
|
justaslt Narys Buldozeris Pranešimai: 296 Įstojęs: 2008 Geg. 13 20:05:33 | |
Kad ten serveriai.php nera tokio.... |
|
desire Narys Buldozeris Pranešimai: 273 Įstojęs: 2008 Rugp. 5 11:08:19 | |
jei tikrai labai reikia pagalbos , parasyk man i pm susisieksim per skype.. paaiskinsiu viska.. aisku ne uz dyka ;]] p.s. jei tikies nemokamu konsultaciju nerasyk ;) |
|
justaslt Narys Buldozeris Pranešimai: 296 Įstojęs: 2008 Geg. 13 20:05:33 | |
Viskas už pinigus. O gal atsiras geradarių, kurie tai padarys "For free"? |
|
justaslt Narys Buldozeris Pranešimai: 296 Įstojęs: 2008 Geg. 13 20:05:33 | |
Tai visi apsistūme yra? Ar galit padėti? P.S. Sorry uz 2 posta, noriu atnaujinti tema. |
|
Narys Tankas Pranešimai: 1753 Įstojęs: 2008 Sau. 4 17:01:06 | |
Ar tau neeaisku kad man ir visiem kitiem uz viska zmones moka pinigus ! ubagas esi sliausk is cia! |
|
justaslt Narys Buldozeris Pranešimai: 296 Įstojęs: 2008 Geg. 13 20:05:33 | |
Pats tu UBAGAS.... (finger) |
Peršokti į forumą: |