Login   Register  
PHP Classes
elePHPant
Icontem

File: simple-sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 8 years ago
Size: 1,051 bytes
 

Contents

Class file image Download
<?
/*
 - Product name: floPageLock
 - Author: Joshua Hatfield (flobi@flobi.com)
 - Release Version: 1.0.0
 - Release Date: 2005-10-22
 - License: Free for non-commercial use

SAMPLE FILE
 - This sample file demonstrates how easily this can be added to an existing page.
 - This SHOULD be before any other code.
*/
include("floPageLock.php");
$pagelock = new floPageLock("myusername""mypassword"true);
?>
<html>
<head>
    <title>floPageLock Test (unlocked)</title>
    <style>
        .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;
        }
    </style>
</head>
<body bgcolor="f8f8ff">
<table width=100% height=100% class="floPageLock_outertable">
    <tr>
        <td align=center>
            <h1>floPageLock Test (unlocked)</h1>
            <p>The page you are looking at has been unlocked.  </p>
        </td>
    </tr>
</table>
</body>
</html>