<?php
  if ($password == 'superhemmelig') {
    $admin = 1;
  }

  if ($admin) {
    //Gjør admin stuff.
  }
  ?>