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

Guests: 38

190.232.x.x forum
191.252.x.x forum
203.245.x.x forum
216.244.x.x forum
37.115.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x user
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x comment
46.4.x.x forum
5.102.x.x lgsl
5.255.x.x download
54.36.x.x forum
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x user
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.80.x.x forum

Last Seen

Apophis01 Tue 03:24
miaryan Thu 08:16
Bommel Tue 16:39
Wussie Sun 15:45
85filip58 Thu 06:36

Newest Members

Forums
lgsl_type_filter change to lgsl_game_filter
bartez
Sun May 02 2010, 10:50AM
Posts: 3
Joined: Thu Apr 29 2010, 10:22AM
Registered Member #6000
Hi! I find this modyfication for LGSL http://www.greycube.com/help/lgsl_5.x/lgsl_type_filter.txt
and i have a question. Whether can change type for game? If only it didn't yourdomain.com/lgsl/index.php?type=halflife but did this : yourdoamin.com/lgsl/index?game=cstrike

P.S. Sorry my bad englisz
Website
MadMakz
Sun May 02 2010, 03:40PM

Posts: 163
Joined: Wed Sep 24 2008, 07:46AM
Registered Member #4406
change
$lgsl_type    = mysql_real_escape_string($_GET['type']);

to
$lgsl_type    = mysql_real_escape_string($_GET['game']);



SpiffyTek
Website
Rich
Sun May 02 2010, 07:55PM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

I have updated the .txt so the code lists all games when a type is not applied.
Website
bartez
Mon May 03 2010, 02:45AM
Posts: 3
Joined: Thu Apr 29 2010, 10:22AM
Registered Member #6000
MadMakz it's working but not what I meant. I wanted to play the game read like this:
yourdomain.com/lgsl/index.php?type=halflife&game=cstrike

Sorry for the confusion
Website
Rich
Mon May 03 2010, 08:57AM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

That is tricky as 'game' is not in its own column, it is part of the cache. You could do this though:

$server = lgsl_query_cached(etc etc

TO

$server = lgsl_query_cached(etc etc
if ($_GET['game'] && $server['s']['game'] != $_GET['game']) { continue; }
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