PHP Classes

File: examples/filemgr/example_controller.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/filemgr/example_controller.php   Download  
File: examples/filemgr/example_controller.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 1,154 bytes
 

Contents

Class file image Download
<?php
/**
 *
 * * Browse directories
    * Search files
    * Upload files
    * View files
    * Edit files
    * Rename files
    * Delete files
    * Download files
    * Define root directory, user cannot 'break out' of it
    * Sorting up and down, by name, size, type and modification date
    * Move files (cut/copy/paste functionality)
    * Create and delete folders
    * Create text files
    * User Interface supports language packs. You can easily create your own. Available languages in the download: english and german.

 */
ini_set('error_reporting', E_ALL);
include
'../../A/Locator.php';

$basedir = $_SERVER['DOCUMENT_ROOT'];
$maxlength = 20;

$Locator = new A_Locator();
$Locator->autoload();

$Request = new A_Http_Request();
$Response = new A_Http_Response();
$Response->setTemplate('mainlayout.php');
$Locator->set('Request', $Request);
$Locator->set('Response', $Response);

// put clean URL values into Request
$Pathinfo = new A_Http_Pathinfo();
$Pathinfo->run($Request);

$Front = new A_Controller_Front('', array('', 'filemgr', ''));
$Front->run($Locator);

echo
$Response->render();