PHP Classes

File: Security/index.php

Recommend this page to a friend!
  Classes of Michael J. Fuhrman   Security   Security/index.php   Download  
File: Security/index.php
Role: Example script
Content type: text/plain
Description: Main Page of Security's Public Side
Class: Security
Manage user accounts and access controls
Author: By
Last change: wrong file
Date: 13 years ago
Size: 2,765 bytes
 

Contents

Class file image Download
<?
/* =======================================
    Copyright 1998 - 2010 - E Net Arch
    This program is distributed under the terms of the GNU
    General Public License (or the Lesser GPL).
    ======================================= */

function dirPath() { return ("../../"); }

Include_Once (
dirPath() . "Shared/Classes/Ladder/Ladder_Ladder.cls");
Include_Once (
dirPath() . "Marketing/Security/Classes/Security_Security.cls");
Include_Once (
dirPath() . "Marketing/Security/rootFolder.php");
Include_Once (
dirPath() . "Marketing/Security/Panels/Panel_Panel.cls");
Include_Once (
dirPath() . "Marketing/Security/Panels/Panel_Security_Login.cls");
Include_Once (
dirPath() . "Shared/_app.inc");

Function
php_Main ()
{
   
$fldrSecurity = gblLadder()->getItem (rootFolder ());
   
$objSecurity = new ENetArch_Security_Security ();
   
$objSecurity->setState ($fldrSecurity);
?>
<style>
#Security_Login_DIV
{
   background-color: #FFFF99;
   border-style: solid;
   border-top-width: 1px;
   border-right-width: 1px;
   border-bottom-width: 1px;
   border-left-width: 1px
}

#Security_Login
{
   font-family: Arial, Helvetica, sans-serif; font-size: 8pt;
   font-style: normal;
   font-weight: normal;
}
#Security_Login tr td input
{
   font-family: Arial, Helvetica, sans-serif; font-size: 8pt;
   font-style: normal;
   font-weight: normal;
}
#Security_Login_UID
{
   background-color: #FFFF99;
   border-style: solid;
   border-top-width: 1px;
   border-right-width: 1px;
   border-bottom-width: 1px;
   border-left-width: 1px
}
#Security_Login_UID_Header { text-align:right; }
#Security_Login_PSW
{
   background-color: #FFFF99;
   border-style: solid;
   border-top-width: 1px;
   border-right-width: 1px;
   border-bottom-width: 1px;
   border-left-width: 1px
}
#Security_Login_Submit
{
   background-color: #FFFF99;
   border-style: solid;
   border-top-width: 1px;
   border-right-width: 1px;
   border-bottom-width: 1px;
   border-left-width: 1px
}
#Security_Login_PSW_Header { text-align:right; }
#Security_Login_Register a { text-decoration:none; }
#Security_Login_SendPSW a { text-decoration:none; }
</style>

<script>
var Security =
{
    Login :
    {
        cmdLogin : function (me)
        { me.action = "login.php"; me.Submit(); },

        cmdSendPsw : function (me)
        { location = "SendPsw.php"; },

        cmdRegister : function (me)
        { location = "Register.php"; },

    },
}
</script>

<form ID="frmLogin" name="frmLogin" method="post" action=""
    onSubmit="Security.Login.cmdLogin(this); return false;";>
<div id="Security_Login_DIV">
<?
    $pnlLogin
= new ENetArch_Panels_Security_Login ();
   
$pnlLogin->setPanelName ("Security.Login");
   
$pnlLogin->drawPanel ();
?>
</div>
</form>
<?
}
?>