PHP Code:
<?php
if ($_SESSION['loggedin'] != 1)
{
session_destroy();
header("Location: ./index.php?page=login");
}
function dofunction()
{
include ("./include/admininformation_class.php");
@$foxinfo = new admininfo();
return $foxinfo->showunverifiedfoxinfo();
}
?>
That is the level I will expect... So if you can explain me what the lines state then you have enough knowledge...
Quote:
For example...
PHP Code:
<?php
echo "Hello world!!!.";
?>
The <?php and the ?> are the opening and closing tags of the main script. This is the place where the PHP code begins.
The next command/function is echo. Echo is a function that will display the string after the function call...
In this case the string is: Hello World!!!.
The string is defined by the qoutes around it.
The command is closed by the ; at the end of the line.
|
So if you can explain the first code like I explained the example then you have enough knowledge....
After you are able to explain it I have one more test for this :P