PHP Classes

File: examples/example02/get.php

Recommend this page to a friend!
  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: 21 years ago
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";
    }

?>