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

Guests: 28

176.215.x.x download
34.228.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
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 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 forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x user
54.36.x.x forum
54.36.x.x user
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum

Last Seen

»Stefan Wed 17:17
Gagi2 Tue 04:39
tltneon Wed 17:22
Nouton^ Wed 20:07
mrstipfan Wed 10:54

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