Jump to content

password protection - none seem to apply


illuz1on

Recommended Posts

Hey,

 

Im looking for a bit of advice here... if I want to add password protection or a admin login to this piece of code, can anyone advise on how or point me to a good tutorial?

 

<?php /* Created on: 4/23/2007 */ ?>
<?
include("db-a.php");
?>
<html>	
<body>

<center>Cape Town Beaches Administration</center><br>
<center>Please select administration function</center>
<br>
<center><a href="beachesadmin.php?action=add">Add</a> | <a href="beachesadmin.php?action=view">View Entries</a><br></center>
<br>
<hr>
</body>
</html>		

<?
if( $_GET["action"] == "insert" ){ // INSERT ACTION ///////////////////////////////////
// Code Goes Here
} elseif( $_GET["action"] == "add" ){ // ADD ACTION ///////////////////////////////////
// Code Goes Here
} elseif( $_GET["action"] == "editpro" ){ // EDIT ACTION //////////////////////////////////////////////
// Code Goes Here
} elseif( $_GET["action"] == "edit" ){ // EDIT ///////////////////////////////////
// Code Goes Here
} elseif( $_GET["action"] == "delete" ){ // LIST ONLY THE GALLERY ///////////////////////////////////
// Code Goes Here
} elseif( $_GET["action"] == "view" ){ // LIST ALL RECORDS IN THE BEACH DATABASE 
///////////////////////////////////
// Code Goes Here
}
}
?>


Link to comment
https://forums.phpfreaks.com/topic/51652-password-protection-none-seem-to-apply/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.