Alright, right now I'm making an auth system. So, I need to be able to open files, append files with username and passwords on each line, here's my code so far.
<?php
// []=================================================================[] \\
// [] Name: JookGroup [] \\
// [] Author: JookScript [] \\
// []=================================================================[] \\
if($_SERVER["HTTP_USER_AGENT"] !== "Torque")
{
//header("Location: http://www.sihous.com/");
//return;
}
$dataFile = fOpen("JookGroup.dat", "r");
$data = fRead($dataFile, fileSize("JookGroup.dat"));
fClose($dataFile);
if($_GET["m"] == "r")
{
if($_GET["u"] = "")
{
return;
}
if($_GET["p"] = "")
{
return;
}
return;
}
?>
Alright, stands for mode, r for register, u for username and p for password.