Login   Register  
PHP Classes
elePHPant
Icontem

File: Security/Admin/_copy.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michael J. Fuhrman  >  Security  >  Security/Admin/_copy.php  >  Download  
File: Security/Admin/_copy.php
Role: Example script
Content type: text/plain
Description: redirects the copy request to the appropriate php page - not implemented
Class: Security
Manage user accounts and access controls
Author: By
Last change:
Date: 2010-08-27 07:58
Size: 1,020 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).
    www.ENetArch.net
    ======================================= */

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

    include_once (
dirPath() . "Shared/_app.inc");

Function 
php_Main ()
{
    
$nID 0;
    if (isset (
$_REQUEST["nIDs"]))
        
$nID $_REQUEST["nIDs"];

    
$nIDs = Array();
    if (isset (
$_REQUEST["nIDs"]))
        
$nID $_REQUEST["nIDs"];

    
// ==========================================
    // Validations

    
if ($nID == 0) return;

    
// ==========================================
    // get Folder

    
$objFolder gblLadder()->getItem ($nID);
    if (! 
$objFolder->isFolder ()) return;

    
// ==========================================
    // Copy Items

    
$aryIDs parseString ($szIDs",");

    for (
$t=0$t<count ($aryIDs); $t++)
    {
        
$nID $aryIDs [$t];
        if (
$nID 0)
        {
            
objFolder()->Copy ($nID);
        }
    }
}
?>