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

Guests: 24

157.55.x.x forum
216.244.x.x top
3.80.x.x forum
35.192.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 dilbertplus
5.196.x.x forum
54.36.x.x top
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x lgsl
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x user
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x lgsl
91.242.x.x forum
95.68.x.x signup

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
[Resolved] OS & Protocol Translation Help
OnLineCs
Mon Aug 16 2010, 12:40AM

Posts: 14
Joined: Sun Aug 15 2010, 08:35PM
Registered Member #6223
How to change the results of {$server['e']['os']}
For example: for 1 = Linux for w = Windows
and changes for Game Protocol for {$server['e']['netcode']}

Putting ".($server['e']['os'] ? "Windows" : "Linux")."
is not an option.


LGSL DEMO 5.8 http://demo.onlinecs.ro/
Blog OnLineCs
Website
Rich
Mon Aug 16 2010, 04:01AM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

Not 1 is L for Linux.

".($server['e']['os'] ? "Windows" : "Linux")." says is the OS blank ? Yes, Windows : No, Linux.

What you want is:

".($server['e']['os'] == "w" ? "Windows" : "Linux")."
Website
OnLineCs
Mon Aug 16 2010, 08:52AM

Posts: 14
Joined: Sun Aug 15 2010, 08:35PM
Registered Member #6223
yes is "L" because the font was wrong ( was courier new )

its work good ".($server['e']['os'] == "w" ? "Windows" : "Linux")."

thank you !

LGSL DEMO 5.8 http://demo.onlinecs.ro/
Blog OnLineCs
Website
likrion
Tue Aug 02 2011, 07:11AM
Posts: 4
Joined: Sat Jul 30 2011, 05:49PM
Registered Member #6850
lgsl_list.php:

       
       <td style='white-space:nowrap; text-align:center'>
".($server['e']['os'] == "w" ? "<img alt='Windows' src='{$misc['windows']}' title='{$lgsl_config['text']['windows']}' style='vertical-align:middle; border:none' />" : "<img alt='Linux' src='{$misc['linux']}' title='{$lgsl_config['text']['linux']}' style='vertical-align:middle; border:none' />")."
        </td>


lgsl_class.php:

    
$misc['linux']              = $lgsl_url_path."other/Linux.png";
$misc['windows']            = $lgsl_url_path."other/Windows.png";


lgsl_config.php


$lgsl_config['text']['windows'] = "Windows";
$lgsl_config['text']['linux'] = "Linux";


example

lexta
Sun Aug 28 2011, 05:09PM
Posts: 15
Joined: Sun Jan 16 2011, 05:02PM
Registered Member #6517
likrion wrote ...

lgsl_list.php:

       
       <td style='white-space:nowrap; text-align:center'>
".($server['e']['os'] == "w" ? "<img alt='Windows' src='{$misc['windows']}' title='{$lgsl_config['text']['windows']}' style='vertical-align:middle; border:none' />" : "<img alt='Linux' src='{$misc['linux']}' title='{$lgsl_config['text']['linux']}' style='vertical-align:middle; border:none' />")."
        </td>


lgsl_class.php:

    
$misc['linux']              = $lgsl_url_path."other/Linux.png";
$misc['windows']            = $lgsl_url_path."other/Windows.png";


lgsl_config.php


$lgsl_config['text']['windows'] = "Windows";
$lgsl_config['text']['linux'] = "Linux";


example









I have a question:

Website
hackera_vd
Sun Jul 01 2012, 01:24PM
Posts: 2
Joined: Sun Jul 01 2012, 01:14PM
Registered Member #7273
And I have the same problem as @lexta. I think $ server ['e'] ['os'] is empty and therefore gives only Linux
Rich
Thu Jul 05 2012, 04:26PM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

You need to make sure you are requesting 'e' data as the list by default only does an 's' request.
Website
hackera_vd
Mon Sep 03 2012, 11:46AM
Posts: 2
Joined: Sun Jul 01 2012, 01:14PM
Registered Member #7273
How can i request 'e' data? Please help me
 

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