<?
/* =======================================
Copyright 1998 - 2010 - E Net Arch
This program is distributed under the terms of the GNU
General Public License (or the Lesser GPL).
www.ENetArch.net
======================================= */
function dirPath() { return ("../../../../"); }
Include_Once (dirPath() . "Shared/Classes/Ladder/Ladder_Ladder.cls");
Include_Once (dirPath() . "Marketing/Security/Classes/Security_Login.cls");
Include_Once (dirPath() . "Shared/_app.inc");
Function php_Main ()
{
$nID = 0;
if (isset ($_REQUEST ['nID']))
$nID = $_REQUEST ['nID'];
$szNameSpace = "ENetArch_Panel_Common_Logins";
if (isset ($_REQUEST["szNameSpace"]))
$szNameSpace = $_REQUEST["szNameSpace"];
$bActive = 0;
if (isset ($_REQUEST ['bActive']))
$bActive = $_REQUEST ['bActive'];
// ==========================================
// Validations
if ($nID == 0) return;
// ==========================================
// Get Logins Folder
$objLogin = gblLadder()->getItem ($nID);
$itmLogin = New ENetArch_Security_Login();
$itmLogin->setState ($objLogin);
// ==========================================
// Panels
if ($bActive == 1)
{ $itmLogin->setActive(); }
else
{ $itmLogin->setInActive(); }
$itmLogin->Store();
}
?>
|