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

Guests: 17

103.253.x.x signup
106.38.x.x news
139.199.x.x news
178.255.x.x forum
3.80.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
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.4.x.x dilbertplus
46.4.x.x forum
78.46.x.x forum

Last Seen

mrstipfan Wed 19:48
Gagi2 Mon 16:30
EFiNST0RM Sun 15:39
85filip58 Sun 12:14
brlight Tue 04:18

Newest Members

Forums
[Resolved]How to add server password ?
mj_l
Thu Aug 12 2010, 07:02PM
Posts: 38
Joined: Sat Jun 19 2010, 06:21PM
Registered Member #6106
Rich PLS HELP ME : I want to add server password display?

LIKE THIS:


OR:
steam://connect/ip:port/password

BUT I DONT KNOW HOW TO DO PLS HELP ME !





Not work : "halflife" => "steam://{IP}:{S_PORT}/{password} ",


1、lgsl_install_sa.sql
ADD
`password` VARCHAR (255) NOT NULL DEFAULT '',


2、lgsl_protocol.php
CHANGLE:
"halflife" => "qtracker://{IP}:{S_PORT}?game=HalfLife&action=show",

TO :
"halflife" => "steam://{IP}:{S_PORT}",


3、lgsl_admin.php
FIND :
$_POST['form_disabled'][$form_key],

ADD :
$_POST['form_password'][$form_key],


FIND :
$comment = mysql_real_escape_string( trim($_POST['form_comment'] [$form_key]));

ADD :
$password = mysql_real_escape_string( trim($_POST['form_password'] [$form_key]));


FIND :
,`comment`

ADD :
,`password`


FIND :
,'{$comment}'

ADD :
,'{$password}'


FIND :
lgsl_string_html(str_pad($mysql_row['s_port'], 7, " ")).":".

ADD :
lgsl_string_html(str_pad($mysql_row['password'], 7, " ")).":".


FIND :
<td style='text-align:center'><input type='text' name='form_comment[{$id}]' value='{$mysql_row['comment']}' size='20' maxlength='255' /></td>

ADD :
<td style='text-align:center'><input type='text' name='form_password[{$id}]' value='{$mysql_row['password']}' size='5' maxlength='255' /></td>


FIND :
<td style='text-align:center'><input type='text' name='form_comment[{$id}]' value='' size='20' maxlength='255' /></td>

ADD :
<td style='text-align:center'><input type='text' name='form_password[{$id}]' value='' size='5' maxlength='255' /></td>


FIND :
<td style='text-align:center; white-space:nowrap'>[ Comment ] </td>

ADD :
<td style='text-align:center; white-space:nowrap'>[ Password ] </td>


FIND :
: COMMENT

ADD :
: PASSWORD


Website
mj_l
Sun Aug 15 2010, 06:26AM
Posts: 38
Joined: Sat Jun 19 2010, 06:21PM
Registered Member #6106
NOT WORK T_T HELP ME
Website
mj_l
Sun Aug 15 2010, 06:50AM
Posts: 38
Joined: Sat Jun 19 2010, 06:21PM
Registered Member #6106
where it went wrong ?
Website
mj_l
Sun Aug 15 2010, 12:37PM
Posts: 38
Joined: Sat Jun 19 2010, 06:21PM
Registered Member #6106
rich can u help me ?
Website
mj_l
Mon Aug 16 2010, 01:01AM
Posts: 38
Joined: Sat Jun 19 2010, 06:21PM
Registered Member #6106
help me ! head scratching
Website
Rich
Mon Aug 16 2010, 04:13AM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

lgsl_class.php find:

$cache['o']['comment'] = $mysql_row['comment'];

Add:

$cache['o']['password'] = $mysql_row['password'];

Then in details or list

{$server['o']['password']}
Website
mj_l
Mon Aug 16 2010, 06:51PM
Posts: 38
Joined: Sat Jun 19 2010, 06:21PM
Registered Member #6106
is work , thank you !
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