Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/example02/get.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hayk Chamyan  >  No Direct Links!  >  examples/example02/get.php  >  Download  
File: examples/example02/get.php
Role: Example script
Content type: text/plain
Description: Second example main script
Class: No Direct Links!
Class to control the process of downloading files
Author: By
Last change:
Date: 2003-05-19 19:09
Size: 453 bytes
 

Contents

Class file image Download
<?php

    
require_once ("./andl.class.php");
    require_once (
"./config.inc.php");
    require_once (
"./files.inc.php");

    if (isset(
$HTTP_GET_VARS))
    {
        
$vars = &$HTTP_GET_VARS;
    }
    else
    {
        
$vars = &$_GET;
    }


    if ( (isset(
$vars["file"])) && !empty($vars["file"]) )
    {
        
$ndl = new ANDL($files[$vars["file"]][0], $storage$files[$vars["file"]][1], $email$allowToAll);
        
$ndl->send();
    }
    else
    {
        echo 
"Unknown error";
    }

?>