<?
/* =======================================
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/_app.inc");
Function php_Main ()
{
$nID = 1;
if (isset ($_REQUEST["nID"]))
$nID = $_REQUEST["nID"];
$szNameSpace = "ENetArch_Panel_Content";
if (isset ($_REQUEST["szNameSpace"]))
$szNameSpace = $_REQUEST["szNameSpace"];
// ==========================================
// Get Folder
$objFolder = gblLadder()->getItem ($nID);
// ==========================================
// Get Classes
$clsSite_Site = gblLadder()->getClass ("Site_Site")->ID();
$clsSite_Apps = gblLadder()->getClass ("Site_Apps")->ID();
$clsSite_App = gblLadder()->getClass ("Site_App")->ID();
$clsSite_Help = gblLadder()->getClass ("Site_Help")->ID();
$clsSite_Policies = gblLadder()->getClass ("Site_Policies")->ID();
$clsSite_Policy = gblLadder()->getClass ("Site_Policy")->ID();
$clsSecurity_Security = gblLadder()->getClass ("Security_Security")->ID();
$clsSecurity_Groups = gblLadder()->getClass ("Security_Groups")->ID();
$clsSecurity_Group = gblLadder()->getClass ("Security_Group")->ID();
$clsSecurity_Users = gblLadder()->getClass ("Security_Users")->ID();
$clsSecurity_User = gblLadder()->getClass ("Security_User")->ID();
$clsSecurity_UserRef = gblLadder()->getClass ("Security_UserRef")->ID();
$clsSecurity_Login= gblLadder()->getClass ("Security_Login")->ID();
$clsCommon_Note = gblLadder()->getClass ("Common_Note")->ID();
$clsCommon_Notes = gblLadder()->getClass ("Common_Notes")->ID();
// ==========================================
// Where to go
$szParams =
"nID=" . $nID . "&" .
"szNameSpace=" . $szNameSpace . "&";
$szURL = dirPath() . "Marketing/Security/Admin/";
switch ($objFolder->getClass())
{
case $clsSite_Site: $szURL .= "Site/edit.php"; break;
case $clsSite_Apps: $szURL .= "Apps/edit.php"; break;
case $clsSite_App: $szURL .= "App/edit.php"; break;
case $clsSite_Help: $szURL .= "Help/edit.php"; break;
case $clsSite_Policies: $szURL .= "Policies/edit.php"; break;
case $clsSite_Policy: $szURL .= "Policy/edit.php"; break;
case $clsSecurity_Security: $szURL .= "Security/edit.php"; break;
case $clsSecurity_Groups: $szURL .= "Groups/edit.php"; break;
case $clsSecurity_Group: $szURL .= "Group/edit.php"; break;
case $clsSecurity_UserRef: $szURL .= "UserRef/edit.php"; break;
case $clsSecurity_Users: $szURL .= "Users/edit.php"; break;
case $clsSecurity_User: $szURL .= "User/edit.php"; break;
case $clsSecurity_Login: $szURL .= "Login/edit.php"; break;
case $clsCommon_Notes: $szURL .= "Notes/edit.php"; break;
case $clsCommon_Note: $szURL .= "Note/edit.php"; break;
}
// ==========================================
// print ("ClassID = " . $objFolder->getClass() . "<BR>");
// print ("clsCommon_Notes = " . $clsCommon_Notes . "<BR>");
// print ("Location:" . $szURL . "?" . $szParams );
// return;
header ("Location:" . $szURL . "?" . $szParams );
// header ("Location:" . dirPath() . "Marketing/Notes/helloworld.php");
}
?>
|