Location: PHPKode > projects > PHPKode - PHPGuestbook > kode_author.php
<?php

  /*
   * To change this template, choose Tools | Templates
   * and open the template in the editor.
   */

  @session_start();

  function Logged() {
      if (isset($_SESSION['loggedid']) && isset($_SESSION['adminuser'])) {
          return TRUE;
      }
      else {
          return FALSE;
      }
  }

  function get_visitor_key() {
      if (isset($_COOKIE["visitor_key"]) && !empty($_COOKIE["visitor_key"])) {
          $visitor_key = $_COOKIE["visitor_key"];
      }
      else {
          $visitor_key = "None";
      }
      return $visitor_key;
  }

?>
Return current item: PHPKode - PHPGuestbook