ClarkeRubber

:D

Jan 5th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2. include("resources/functions/main_functions.php");
  3. /*
  4. BEGIN MAIN PROGRAM
  5. BEGIN MAIN PROGRAM
  6. BEGIN MAIN PROGRAM
  7. */
  8. putenv("TZ=Australia/Sydney"); //set local time. At a later point in time, I may make an installation process for this webservice.
  9. //------ DETERMINE THE USER
  10. $enc_user = md5(sha1($_SERVER['REMOTE_ADDR']));
  11. $admin = login_admin($enc_user);
  12. //Determine who the user is
  13. if($admin){
  14. //User is admin, allow them to do admin things
Advertisement
Add Comment
Please, Sign In to add comment