im working on my new update system and i cant get it to work
LFSLapper
<?php
$status = http("http://t3charmy.net/LFSLapper-Cruise/update.php?ver=".$CruiseVer);
dumpvar($status);
SWITCH($status)
CASE "0":
openPrivButton( "Cruise_Wel_1",56,40,66,5,12,-1,32,"^6" . getLapperVar( "HostName" ) . " (" . GetLapperVar("ShortTrackName") . ")" );
openPrivButton( "Cruise_Wel_2",122,40,15,5,12,5,32,"^1Close ^7(%cpt%)", Cruise_Wel_Close );
openPrivButton( "Cruise_Wel_3",56,45,81,5,12,-1,32,"^7Insim By: ^0[^4S^0C] ^7T3charmy" );
openPrivButton( "Cruise_Wel_4",56,50,81,5,5,-1,32,langEngine( "%{Cruise_Wel_Main}%" , getLapperVar( "HostName" ) ) );
openPrivButton( "Cruise_HUD_BG",1,135,22,38,12,-1,32," " );
BREAK;
CASE "1":
DEFAULT:
IF ( UserIsAdmin( $userName ) == 1 )
THEN
PrivMsg("^7Please Update Cruise Insim To The Latest Version");
ENDIF
BREAK;
ENDSWITCH
?>
Site
<?php
php
switch( $_GET['ver'] )
{
case 1.95:
case 1.96:
case 1.98:
case "2.00B":
case 2.01:
Print("return (0);");
break;
default:
Print("return (1);");
break;
}
?>
any ideas?
it auto goes to the default ... when it dumps the value it returns a 0 :/