-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgensel.php
More file actions
35 lines (29 loc) · 835 Bytes
/
gensel.php
File metadata and controls
35 lines (29 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
namespace T3;
/**
* Download Gateway New
*
* PHP version 5.3
* Prototype version 1.5.0
*
* @author Clay Birkett <clb343@cornell.edu>
* @license http://triticeaetoolbox.org/wheat/docs/LICENSE Berkeley-based
* @link http://triticeaetoolbox.org/wheat/downloads/downloads.php
*
* The purpose of this script is to provide the user with an interface
* for downloading certain kinds of files from T3.
*/
set_time_limit(0);
ini_set('memory_limit', '3G');
// For live website file
require 'config.php';
require $config['root_dir'].'includes/bootstrap.inc';
require $config['root_dir'].'downloads/marker_filter.php';
require $config['root_dir'].'gensel_class.php';
// connect to database
$mysqli = connecti();
if (isset($_GET['function'])) {
new Downloads($_GET['function']);
} else {
new Downloads('web');
}