Put a trace on your server to view if page is called
<?php
$status = http("http://t3charmy.tk/LFSLapper-Cruise/test.php");
SWITCH( $status )
CASE "0":
WriteLine( "insim is EXPIRED" );
BREAK;
CASE "1":
WriteLine( "insim EXPIRES Today" );
BREAK;
CASE "2":
WriteLine( "insim is not EXPIRED" );
BREAK;
DEFAULT:
WriteLine( "ERROR" );
BREAK;
ENDSWITCH
?>
<?php
$date = "07/03";
$u_date = strtotime ($date);
if ($u_date == strtotime(date("d/m")) )
{ Print "1"; }
else
if ($u_date < strtotime(date("d/m")) )
{ Print "0"; }
else
{ Print "2"; }
?>
-----------------------------------------------------------------------------
3/6/2010 5:08:55 PM
Lapper Instance 95.211.128.30/60275 abort!
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
mscorlib
at System.Collections.ArrayList.get_Item(Int32 index)
at GLScript.GLApp.retrieveEvalVar(String funcName, TokenParse tkparse, TokenBuffer currTokenBuffer, SetOfVars GVAR, SetOfVars LVAR, Boolean breakFunc, Char& breakCar) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\GLScript.cs:line 1037
at GLScript.GLApp.privExecuteTokensPart(Int32 level, String funcName, SetOfVars GCAR, SetOfVars LVAR, Boolean breakable, Boolean inSwitchCase, Int32 start, Int32 end) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\GLScript.cs:line 258
at GLScript.GLApp.privExecuteFunction(String funcName, String[] argsVals) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\GLScript.cs:line 177
at GLScript.GLApp.executeFunction(String funcName, String[] argsVals) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\GLScript.cs:line 141
at Configurator.lexConfigurator.executeFunction(String funcName, infoPlayer pcurrInfoPlayer, String[] par) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\cfgParser\readCfg.cs:line 354
at LFSLapper.LFSClient.Loop(Connect insimConnection) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\loop.cs:line 975
at LFSLapper.LFSClient.doloop() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:line 556
at LapperInstances.LapperInstance.doConnection() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSInstances\LapperInstance.cs:line 247
System.Object get_Item(Int32)
Closing Instance...
-----------------------------------------------------------------------------
<?php
$status = http("http://t3charmy.tk/LFSLapper-Cruise/test.php");
Sub ShowStatus($status)
SWITCH( $status )
CASE "0":
WriteLine( "insim is EXPIRED" );
BREAK;
CASE "1":
WriteLine( "insim EXPIRES Today" );
BREAK;
CASE "2":
WriteLine( "insim is not EXPIRED" );
BREAK;
DEFAULT:
WriteLine( "ERROR" );
BREAK;
ENDSWITCH
EndSub
?>
<?php
$date = "07/03";
$u_date = strtotime ($date);
if ($u_date == strtotime(date("d/m")) )
{ Print "1"; }
else
if ($u_date < strtotime(date("d/m")) )
{ Print "ShowStatus(0);"; }
else
{ Print "ShowStatus(2);"; }
?>