Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: del lgsl_v5.0_sa
Parašė justaslt· 2009 Sau. 3 22:01:33
#1
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.
Parašė Mantux94· 2009 Sau. 3 23:01:26
#2
ten kai dedi serva pasirenki zona ir cia pagal sita gali pasidaryt kategorijas i puslapi iterpi
$lgsl_zone_number = 1;
$output = "";
require "lgsl/lgsl_files/lgsl_zone.php";
echo $output;
ir tau rodis kas pirmoi zonoi
$lgsl_zone_number = 2;
$output = "";
require "lgsl/lgsl_files/lgsl_zone.php";
echo $output;
kas antroi ir t.t
Parašė justaslt· 2009 Sau. 4 00:01:11
#3
Nelabai supratau, kur cia reiki sivis iterpti?
Parašė justaslt· 2009 Sau. 4 00:01:19
#4
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>";
//------------------------------------------------------------------------------------------------------------+
?>
Parašė justaslt· 2009 Sau. 4 12:01:52
#5
Sorry kad ra6au dar karta 2ia, noriu atgaivinti tema, nes man LABAI reikia pagalbos.
Parašė Mantux94· 2009 Sau. 4 12:01:55
#6
neflodink reik rasyt bet kur tarkim i serveriai.php
Parašė justaslt· 2009 Sau. 4 13:01:14
#7
Kad ten serveriai.php nera tokio....
Parašė desire· 2009 Sau. 4 14:01:35
#8
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 ;)
Parašė justaslt· 2009 Sau. 4 17:01:18
#9
Viskas už pinigus. :( O gal atsiras geradarių, kurie tai padarys "For free"?
Parašė justaslt· 2009 Sau. 5 14:01:47
#10
Tai visi apsistūme yra? Ar galit padėti?
P.S. Sorry uz 2 posta, noriu atnaujinti tema.
Parašė Mantux94· 2009 Sau. 5 14:01:35
#11
Ar tau neeaisku kad man ir visiem kitiem uz viska zmones moka pinigus ! ubagas esi sliausk is cia!
Parašė justaslt· 2009 Sau. 5 15:01:47
#12
Pats tu UBAGAS.... (finger)