PHP Classes

File: simple-sample.php

Recommend this page to a friend!
  Classes of Joshua hatfield   floPageLock   simple-sample.php   Download  
File: simple-sample.php
Role: Example script
Content type: text/plain
Description: simple 2 line sample
Class: floPageLock
Restrict page access with password authentication
Author: By
Last change: Change in comments
Date: 17 years ago
Size: 1,051 bytes


Class file image Download
 - Product name: floPageLock
 - Author: Joshua Hatfield (
 - Release Version: 1.0.0
 - Release Date: 2005-10-22
 - License: Free for non-commercial use

 - This sample file demonstrates how easily this can be added to an existing page.
 - This SHOULD be before any other code.
$pagelock = new floPageLock("myusername", "mypassword", true);
    <title>floPageLock Test (unlocked)</title>
        .floPageLock_outertable {
            border: 1px solid #aaaaff;
            background-color: #ffffff;
        p {
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 10pt;
        h1 {
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 20pt;
<body bgcolor="f8f8ff">
<table width=100% height=100% class="floPageLock_outertable">
        <td align=center>
            <h1>floPageLock Test (unlocked)</h1>
            <p>The page you are looking at has been unlocked. </p>