ListActive() public method

public ListActive ( )
Example #1
0
 *  as-is and without warranty under the MIT License. See
 *  [root]/license.txt for more. This information must remain intact.
 */
require_once '../../common.php';
require_once 'class.active.php';
$Active = new Active();
//////////////////////////////////////////////////////////////////
// Verify Session or Key
//////////////////////////////////////////////////////////////////
checkSession();
//////////////////////////////////////////////////////////////////
// Get user's active files
//////////////////////////////////////////////////////////////////
if ($_GET['action'] == 'list') {
    $Active->username = $_SESSION['user'];
    $Active->ListActive();
}
//////////////////////////////////////////////////////////////////
// Add active record
//////////////////////////////////////////////////////////////////
if ($_GET['action'] == 'add') {
    $Active->username = $_SESSION['user'];
    $Active->path = $_GET['path'];
    $Active->Add();
}
//////////////////////////////////////////////////////////////////
// Rename
//////////////////////////////////////////////////////////////////
if ($_GET['action'] == 'rename') {
    $Active->username = $_SESSION['user'];
    $Active->path = $_GET['old_path'];