if (b == true) { a = 1; } else { a = 0; }
if (b == true)
a = 1
else
a = 0
message = "Hello world" + CONST_SPACE_THING + "some other stuff"
+ CONST_OBNOXIOUS_NAME + "very long indeed" + CONST_I_HATE_PHP
+ "this could go on for a fair bit" + GetPlayerName(GetTriggerPlayer())
+ GetColor(GetPlayerId(GetTriggerPlayer()));
message = "Hello world" + CONST_SPACE_THING + "some other stuff" + CONST_OBNOXIOUS_NAME + "very long indeed" + CONST_I_HATE_PHP + "this could go on for a fair bit" + GetPlayerName(GetTriggerPlayer()) + GetColor(GetPlayerId(GetTriggerPlayer()))
$inputUsername = trim($_POST[039;inputLoginUsername039;], "|")
$inputPassword = trim($_POST[039;inputLoginPassword039;], "|")
$filename = "customers.txt"
if (is_readable($filename))
if (!$file = fopen($filename, "r"))
echo "<p>Cannot open customers.txt!</p>"
exit
$record = explode("|", fgets($file))
while (!feof($file))
$username = $record[1];
$password = $record[2];
if ($inputUsername == $username && $inputPassword == $password)
$_SESSION[039;currentLogin039;] = $username
fclose($file)
header("location:home.php")
$record = explode("|", fgets($file))
fclose($file)
header("location:login_failed.php")
exit
else
echo "<p>Could not read customers.txt - does it exist, and is it
readable?</p>"
exit
echo "hello world"
That is some seriously ugly syntax highlighting.