<?php
########### ##GUI Files #############
# GUI Framework main include - this MUST be first
include ("./gui.lpr");
# Help GUI
include ("./gui_help.lpr"); # Multi-tabbed help (all in one)
include ("./gui_help_cruise.lpr"); # Cruise help file (remove if not reqd)
# Admin GUI
include ("./gui_admin.lpr"); # Admin GUI root include
include ("./gui_admin_usercontrol.lpr"); #Admin GUI UserControl (kick, ban, penalties)
include ("./gui_admin_membership.lpr"); # Admin GUI Membership administration
include ("./gui_admin_handicaps.lpr"); # Admin GUI Handicap allocations
#####################################
?>
<?php
Sub SetLang_nl($KeyFlags,$userName)
SetCurrentPlayerVar("IdLang","nl");
setUserStoredValue("IdLang","nl");
DoMenu_Options($KeyFlags,$userName);
EndSub
?>
<?php
### Load settings on connect (IdLang, UnitSpeedKmh and ShowSplitPb) ###
CatchEvent OnConnect( $userName )
$StoredIdLang = getUserStoredValue("IdLang");
SetCurrentPlayerVar("IdLang",$StoredIdLang);
$StoredSpeedUnitKmh = getUserStoredValue("UnitSpeedKmh");
SetCurrentPlayerVar("UnitSpeedKmh",$StoredSpeedUnitKmh);
$StoredShowSplitPb = getUserStoredValue("ShowSplitPb");
SetCurrentPlayerVar("ShowSplitPb",$StoredShowSplitPb);
EndCatchEvent
?>
<?php
CASE "!myconfig":
DoMenu_Options($KeyFlags,$userName);
BREAK;
?>
<?php
Sub SetLang_en($KeyFlags,$userName)
SetCurrentPlayerVar("IdLang","en");
DoMenu_Options($KeyFlags,$userName);
EndSub
Sub SetLang_fr($KeyFlags,$userName)
SetCurrentPlayerVar("IdLang","fr");
DoMenu_Options($KeyFlags,$userName);
EndSub
Sub SetLang_nl($KeyFlags,$userName)
SetCurrentPlayerVar("IdLang","nl");
DoMenu_Options($KeyFlags,$userName);
EndSub
Sub SetLang_no($KeyFlags,$userName)
SetCurrentPlayerVar("IdLang","no");
DoMenu_Options($KeyFlags,$userName);
EndSub
?>
<?php
Sub DoMenu_Options($KeyFlags,$userName)
openPrivButton( "option_lang_bg",83,69,34,16,5,-1,16,"");
openPrivButton( "option_lang_title",84,69,32,5,5,-1,0,"^7Language");
$user_lang = GetCurrentPlayerVar("IdLang");
privMsg("^4Your current language: ".$user_lang);
IF($user_lang == "en")
THEN
privMsg("Language=English");
$btncolor_en = "^6";
ENDIF
IF($user_lang == "fr")
THEN
privMsg("Language=French");
$btncolor_fr = "^6";
ENDIF
IF($user_lang == "nl")
THEN
privMsg("Language=Dutch");
$btncolor_nl = "^6";
ENDIF
IF($user_lang == "no")
THEN
privMsg("Language=Norvegian");
$btncolor_no = "^6";
ENDIF
openPrivButton("option_Lang_en",84,75,16,4,4,-1,32,"^7".$btncolor_en."English",SetLang_en);
openPrivButton("option_Lang_fr",100,75,16,4,4,-1,32,"^7".$btncolor_fr."French",SetLang_fr);
openPrivButton("option_Lang_nl",84,80,16,4,4,-1,32,"^7".$btncolor_nl."Dutch",SetLang_nl);
openPrivButton("option_Lang_no",100,80,16,4,4,-1,32,"^7".$btncolor_no."Norvegian",SetLang_no);
EndSub
Sub SetLang_en($KeyFlags,$userName)
SetCurrentPlayerVar("IdLang","en");
DoMenu_Options($KeyFlags,$userName);
EndSub
Sub SetLang_fr($KeyFlags,$userName)
SetCurrentPlayerVar("IdLang","fr");
DoMenu_Options($KeyFlags,$userName);
EndSub
Sub SetLang_nl($KeyFlags,$userName)
SetCurrentPlayerVar("IdLang","nl");
DoMenu_Options($KeyFlags,$userName);
EndSub
Sub SetLang_no($KeyFlags,$userName)
SetCurrentPlayerVar("IdLang","no");
DoMenu_Options($KeyFlags,$userName);
EndSub
?>
<?php
$btncolor_en = "^7";
$btncolor_fr = "^7";
$btncolor_nl = "^7";
$btncolor_no = "^7";
$user_lang = GetCurrentPlayerVar("IdLang");
IF($user_lang == "en")
THEN
$btncolor_en = "^6";
ELSEIF($user_lang == "fr")
$btncolor_fr = "^6";
ELSEIF($user_lang == "nl")
$btncolor_nl = "^6";
ELSEIF($user_lang == "no")
$btncolor_no = "^6";
ENDIF
openPrivButton( "option_Lang_en",84,75,17,4,4,-1,16,$btncolor_en."English",SetCurrentPlayerVar("IdLang","en"));
?>
privMsg( langEngine( "%{main_pitwork}%", GetCurrentPlayerVar("pitWork") ) );
must be:
privMsg( langEngine( "%{main_pitwork}%", GetCurrentPlayerVar("PitWork") ) );
<?php
php
$rootfolder = "../..";
$pagetitle = " - Statistics: $!N - Demo";
require_once("../../styles/layout.inc.php");
echo $header;
<div id="subnav">
</div>
<div id="sidebar">
include 'menu.php'
</div>
<div id="content">
<script>
function changeContent()
{
document.getElementById('statspage').innerHTML = window.frames['lfslapper'].document.getElementsByTagName('html')[0].innerHTML;
}
</script>
<div id = "statspage"><br>
<iframe id = "lfslapper" name = "lfslapper" width="636px" allowtransparency="yes" src ="page2.php?selectcar=&selecttrack=&orderby=times&usern=" onLoad = "changeContent()" style = "height:0; width:636px; border-width:0;"></iframe>
<a href="http://www.lfsforum.net/showthread.php?p=1373747#post1373747" target="_blank"><b><i>Based on script of mc0676</font></i></b></a>
</div>
</div>
php
echo $footer;
?>
<?php
<frameset cols="100,*" frameborder="no">
<frameset rows="140,*" frameborder="no">
<frame name="lfslapper" width="636px" src="page2.php?selectcar=&selecttrack=&orderby=times&usern=">
</frame>
</frameset>
</frameset>
?>
<?php
<div id="sidebar">
include 'menu.php'
</div>
<div id="content">
<script>
function changeContent()
{
document.getElementById('statspage').innerHTML = window.frames['lfslapper'].document.getElementsByTagName('html')[0].innerHTML;
}
</script>
<div id = "statspage"><br>
<iframe id = "lfslapper" name = "lfslapper" width="636px" src ="page2.php?selectcar=&selecttrack=&orderby=times&usern=" onLoad = "changeContent()" style = "height:0; width:636x; border-width:0;"></iframe>
<a href="http://www.lfsforum.net/showthread.php?p=1373747#post1373747" target="_blank"><b><i>Based on script of mc0676</font></i></b></a>
</div>
</div>
?>
<?php
<tr valign='middle' align='center' (*I also tried to add: width='636px'>*)
<td width='28'><font $font><b>POS</b></font></td><td><font $font><b>LFS<br>USERNAME</b></font></td>
<td><font $font><b>LFS<br>NICKNAME</b></font></td><td width='36'><font $font><b>TRACK</b></font></td>
<td width='36'><font $font><b>CAR</b></font></td><td width='36'><font $font><b>LAPS</b></font></td>
<td width='36'><font $font><b>PB<br>DATE</b></font></td><td width='36'><font $font><b>PB<br>TIME</b></font></td>
<td width='64'><font $font><b>SPLIT 1</b></font></td><td width='64'><font $font><b>SPLIT 2<br>or<br>TOTAL</b></font></td>
<td width='64'><font $font><b>SPLIT 3<br>or<br>TOTAL</b></font></td><td width='64'><font $font><b>TOTAL</b></font></td></tr>
?>