Skip to content

Instantly share code, notes, and snippets.

@camh96
Last active August 29, 2015 14:05
Show Gist options
  • Save camh96/d20d2895823b99f4810d to your computer and use it in GitHub Desktop.
Save camh96/d20d2895823b99f4810d to your computer and use it in GitHub Desktop.
<?php
function adminlogin()
{
// Login function code
}
if (adminlogin())
{?>
<h2>Welcome Admin</h2>
<a href=\"somescript.php\">Do some admin stuff!</a>
<?php}
else
{
echo "Incorrect login details. Please login";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment