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

Guests: 10

123.125.x.x comment
124.115.x.x news
124.231.x.x forum
157.55.x.x forum
157.56.x.x dilbertplus
175.44.x.x forum
42.62.x.x lgsl
54.234.x.x forum
66.249.x.x forum
66.249.x.x user

Last Seen

Wussie Mon 18:32
Dodgeitorelse Mon 13:58
Hostprofil Mon 12:44
code72 Mon 12:41
ODDBALL118 Sun 22:17

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: 1700
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: 14
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: 1700
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