forked from Th3-822/rapidleech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.php
More file actions
485 lines (449 loc) · 23 KB
/
Copy pathsetup.php
File metadata and controls
485 lines (449 loc) · 23 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<?php
////////////////////////////////////////////////////////////////////////////////
//Rapidleech setup file
//
//If you need to do rapidleech setup again:
// To load default config: delete 'configs/config.php'
// To work on your old config: rename 'configs/config.php' to 'configs/config_old.php'
// After that, go to your rapidleech url to access setup
//
////////////////////////////////////////////////////////////////////////////////
$PHP_SELF = $_SERVER['SCRIPT_NAME'];
if (!defined('RAPIDLEECH')) define('RAPIDLEECH', 'yes');
if (!defined('CONFIG_DIR')) define('CONFIG_DIR', 'configs/');
//Default options file
require_once(CONFIG_DIR.'default.php');
//Exit setup if config file exists and is complete
if (is_file(CONFIG_DIR.'config.php')) {
require_once(CONFIG_DIR.'config.php');
if (count($options) == count($default_options)) {
unset($default_options);
return;
}
}
// Avoid setup page to be cached
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate ("D, d M Y H:i:s") . 'GMT');
header('Cache-Control: max-age=0, no-store, no-cache, must-revalidate, proxy-revalidate, post-check=0, pre-check=0');
header('Pragma: no-cache');
define('TEMPLATE_DIR', 'templates/plugmod/');
//$options['default_language'] = "en";
require_once('classes/other.php');
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Rapidleech Setup</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link title="Rapidleech Style" href="<?php echo TEMPLATE_DIR; ?>styles/rl_style_pm.css?<?php echo time(); ?>" rel="stylesheet" type="text/css" />
<?php
if (!isset($_POST['setup_save'])) {
function js_special_chars($t) {
return str_replace(array('\\', "'", '"', '&', "\n", "\r", "\t", chr(8), chr(12)), array("\\", "\\'", "\\\"", "\&", '\\n', "\\r", "\\t", "\\b", "\\f"), $t);
}
?>
<script src="classes/js.js?<?php echo time(); ?>" type="text/javascript"></script>
<script type="text/javascript">
/* <![CDATA[ */
function load_current_config() {
<?php
$options = array();
$old_options = true;
if (is_file(CONFIG_DIR.'config.php')) include(CONFIG_DIR.'config.php');
elseif (is_file(CONFIG_DIR.'config_old.php')) include(CONFIG_DIR.'config_old.php');
else $old_options = false;
foreach ($default_options as $k => $v) if (!array_key_exists($k, $options)) $options[$k] = $v;
?>
var options = jQuery.parseJSON(<?php echo json_encode(json_encode($options)); ?>);
var default_options = jQuery.parseJSON(<?php echo json_encode(json_encode($default_options)); ?>);
$.each(options, function(k, v){
if (jQuery.type(default_options[k]) === 'object') { return; }
if (jQuery.type(default_options[k]) === 'array') {
$('#opt_'+k+'').val(v);
} else if (jQuery.type(default_options[k]) === 'boolean') {
$('#opt_'+k+'').prop('checked', v ? true : false);
} else if (jQuery.type(default_options[k]) === 'number') {
set_element_val('opt_'+ k, k === 'delete_delay' ? (v, Math.floor(v/60)) : v);
} else {
set_element_val('opt_'+ k, v);
}
});
while ($('#opt_login_table tbody>tr').size() < <?php echo count($options['users']); ?>) { $("#opt_login_add").click(); }
while ($('#opt_login_table tbody>tr').size() > <?php echo max(1, count($options['users'])); ?>) { $('#opt_login_table tbody>tr:last').remove(); }
var i = 0;
$.each(options['users'], function(u, p){
$('#opt_login_table [name="users[]"]').eq(i).val(u);
$('#opt_login_table [name="passwords[]"]').eq(i).val(p);
i++;
});
if ($('#opt_forbidden_filetypes_block').prop('checked')) { $('#opt_rename_these_filetypes_to_0').hide(); }
else { $('#opt_rename_these_filetypes_to_0').show(); }
if ($('#opt_login').prop('checked')) { $('#opt_login_0').show(); }
else { $('#opt_login_0').hide(); }
if ($('#opt_new_window').prop('checked')) { $('#opt_new_window_0').show(); }
else { $('#opt_new_window_0').hide(); }
}
function set_element_val(id, value, display) {
display = (typeof display == 'undefined') ? value : display;
var e = $('#'+id);
e.val(value); if (e.val() != value) { e.append($('<option><\/option>').val(value).html(display)); e.val(value); }
}
function save_config() {
document.setup_form.submit();
}
$(document).ready(function() {
$("#save").prop('disabled', false);
$("#reset").prop('disabled', false);
$('#save').click(function() { save_config(); });
$('#reset').click(function() { load_current_config(); });
$('div.div_title').append(' v');
$('div.div_title').click(function() {
var t = $(this).parent().children('div:not(.div_title)');
if (t.is(':visible')) { t.hide(); $(this).text($(this).text().slice(0, - 1)+'>'); }
else { t.show(); $(this).text($(this).text().slice(0, -1)+'v'); }
});
$('#div_main_advanced').click();
$('#opt_disable_actions').click(function() {
if ($(this).prop('checked')) $('#opt_actions_table :checkbox:not(#opt_disable_deleting)').each(function() { $(this).prop('checked', true); });
else $('#opt_actions_table :checkbox:not(#opt_disable_deleting)').prop('checked', false);
});
$('#opt_disable_deleting').click(function() {
if ($(this).prop('checked')) $('#opt_disable_delete').prop('checked', true);
else $('#opt_disable_delete').prop('checked', false);
});
$("#opt_forbidden_filetypes_block").click(function() { $('#opt_rename_these_filetypes_to_0').toggle(); } );
$("#opt_new_window").click(function() { $('#opt_new_window_0').toggle(); } );
$("#opt_login").click(function() { $('#opt_login_0').toggle(); } );
$("#opt_login_add").click(function() {
var row = $('#opt_login_table tbody>tr:last').clone(true).insertAfter('#opt_login_table tbody>tr:last');
$('td:eq(0)', row).html('<input type="button" value="Remove" onclick="$(this).parent().parent().remove();" />');
$('td:eq(1)>input,td:eq(2)>input', row).val('');
return false;
});
$('#opt_delete_delay').change(function() {
if ($(this).val() == 'other') {
var other = parseInt(prompt('How many minutes?', '0'), 10) || 0;
set_element_val('opt_delete_delay', other*60, other);
}
});
$('#opt_file_size_limit').change(function() {
if ($(this).val() == 'other') {
var other = parseInt(prompt('How many MiBs?', '0'), 10) || 0;
set_element_val('opt_file_size_limit', other);
}
});
load_current_config();
});
/* ]]> */
</script>
<?php
}
?>
<style type="text/css">
<!--
#opt_actions_table table td { padding-right: 15px; text-align: left; }
#opt_presentation_table table td { padding-right: 10px; text-align: left; }
#opt_advanced_table table td { min-width: 80px; text-align: left; }
#opt_login_table thead td { padding-bottom: 5px; }
#opt_login_table td { text-align: center; }
.div_error {
font-weight: bold; font-size: large; text-align: center; color:#FF0000;
}
.div_opt {
text-align: left;
padding-bottom: 5px;
}
.table_cat {
min-width: 300px;
}
.table_opt {
width: 100%;
}
.div_main {
text-align: center;
border: 1px white ridge;
padding: 5px;
margin-top:5px;
}
.div_message {
color: #FFB000;
font-weight: bold;
font-size: larger;
text-align: center;
margin: 10px;
}
.div_setup {
color: #FF7700;
font-weight: bold;
font-size: large;
text-align: center;
}
.div_title {
color: #FFB000;
font-size: larger;
font-weight: bold;
margin-bottom: 5px;
}
-->
</style>
</head>
<body>
<center><img src="<?php echo TEMPLATE_DIR; ?>images/logo_pm.gif" alt="RapidLeech PlugMod" border="0" /></center>
<br />
<noscript><div class="div_error">This page won't work without JavaScript, please enable JavaScript and refresh the page.</div></noscript>
<?php
if (isset($_POST['setup_save']) && $_POST['setup_save'] == 1) {
$options = array();
foreach ($default_options as $k => $v) if (!array_key_exists($k, $options)) $options[$k] = $v;
foreach($default_options as $k => $v) {
if (is_array($default_options[$k])) continue;
if (is_bool($default_options[$k])) $options[$k] = (isset($_POST['opt_'.$k]) && $_POST['opt_'.$k] ? true : false);
elseif (is_numeric($default_options[$k])) $options[$k] = (isset($_POST['opt_'.$k]) && $_POST['opt_'.$k] ? floor($_POST['opt_'.$k]) : 0);
else $options[$k] = (isset($_POST['opt_'.$k]) && $_POST['opt_'.$k] ? stripslashes($_POST['opt_'.$k]) : '');
}
$tmp = (isset($_POST['opt_forbidden_filetypes']) ? stripslashes($_POST['opt_forbidden_filetypes']) : '');
$tmp = array_filter(array_map('trim', explode(',', $tmp)), 'strlen');
$options['forbidden_filetypes'] = $tmp;
$options['users'] = array();
if (isset($_POST['users']) && isset($_POST['passwords']) && is_array($_POST['users']) && is_array($_POST['passwords']) && count($_POST['users']) > 0 && count($_POST['users']) == count($_POST['passwords'])) {
foreach (array_intersect_key($_POST['users'], $_POST['passwords']) as $k => $u) {
if (($u = stripslashes($u)) == '') continue;
$p = stripslashes($_POST['passwords'][$k]);
$options['users'][$u] = $p;
}
} else echo 'There was a problem with users and passwords<br /><br />';
// Secretkey checks
if (empty($options['secretkey'])) {
// secure_rand() function from: http://www.zimuel.it/en/strong-cryptography-in-php/
function secure_rand($length) {
if (function_exists('openssl_random_pseudo_bytes')) {
$rnd = openssl_random_pseudo_bytes($length, $strong);
if ($strong === TRUE) return $rnd;
}
$sha = $rnd = '';
if (file_exists('/dev/urandom')) {
$fp = fopen('/dev/urandom', 'rb');
if ($fp) {
if (function_exists('stream_set_read_buffer')) stream_set_read_buffer($fp, 0);
$sha = fread($fp, $length);
fclose($fp);
}
}
for ($i = 0; $i < $length; $i++) {
$sha = hash('sha256', $sha.mt_rand(), true);
$rnd .= $sha[mt_rand(0, 31)];
}
return $rnd;
}
$options['secretkey'] = base64_encode(secure_rand(42));
} elseif (strlen($options['secretkey']) > 56) $options['secretkey'] = base64_encode(sha1($options['secretkey']));
$opt = var_export($options, true);
$opt = (strpos($opt, "\r\n") === false ? str_replace(array("\r", "\n"), "\r\n", $opt) : $opt);
$opt = "<?php\r\nif (!defined('RAPIDLEECH')) {\r\n\trequire_once('index.html');\r\n\texit;\r\n}\r\n\r\n\$options = $opt; \r\n\r\nrequire_once('site_checker.php');\r\nrequire_once('accounts.php');\r\n\r\n\$secretkey =& \$options['secretkey'];\r\n?>";
if (!@write_file(CONFIG_DIR."config.php", $opt, 1)) echo '<div class="div_error">It was not possible to write the configuration<br />Set permissions of "configs" folder to 0777 and try again</div>';
else {
if (is_file(CONFIG_DIR.'config_old.php')) { if (@!unlink(CONFIG_DIR.'config_old.php') && is_file(CONFIG_DIR.'config_old.php')) { '<div class="div_message">It was not possible to delete the old configuration.<br />Manually delete "configs/config_old.php"</div><br />'; } }
echo '<div class="div_message">Configuration saved! Click <a href="'.$PHP_SELF.'">here</a> to continue to rapidleech</div>';
}
} else {
?>
<div class="div_setup">Rapidleech Setup</div>
<div class="div_message"><?php echo ($old_options ? 'Old' : 'Default'); ?> rapidleech options loaded</div>
<form method="post" enctype="multipart/form-data" name="setup_form" action="<?php echo $PHP_SELF; ?>">
<table align="center" class="table_cat">
<tr><td>
<div class="div_main">
<div class="div_title">General Options</div>
<div class="div_opt">
<table class="table_opt">
<tr><td>Secret key for cookie encryption<br />Make up a random one to protect your premium cookies (max length: 56)</td><td><input type="text" value="" size="56" id="opt_secretkey" name="opt_secretkey" /></td></tr>
<tr><td>Download Directory</td><td><input type="text" id="opt_download_dir" name="opt_download_dir" /></td></tr>
<tr><td>Allow users to change<br />download directory</td><td><input type="checkbox" value="1" name="opt_download_dir_is_changeable" id="opt_download_dir_is_changeable" /></td></tr>
<tr><td>Auto Delete in minutes</td>
<td><select size="1" name="opt_delete_delay" id="opt_delete_delay">
<option value="0">Disabled</option>
<option value="3600">60</option>
<option value="7200">120</option>
<option value="10800">180</option>
<option value="14400">240</option>
<option value="18000">300</option>
<option value="other">Other</option>
</select></td>
</tr>
<tr><td>File name prefix</td><td><input type="text" id="opt_rename_prefix" name="opt_rename_prefix" /></td></tr>
<tr><td>File name suffix</td><td><input type="text" id="opt_rename_suffix" name="opt_rename_suffix" /></td></tr>
<tr><td>Replace spaces for<br />underscore in file names</td><td><input type="checkbox" value="1" name="opt_rename_underscore" id="opt_rename_underscore" /></td></tr>
<tr><td>Bandwidth saving</td><td><input type="checkbox" value="1" name="opt_bw_save" id="opt_bw_save" /></td></tr>
<tr><td>File size limit in MiB</td>
<td><select size="1" name="opt_file_size_limit" id="opt_file_size_limit">
<option value="0">Disabled</option>
<option value="100">100</option>
<option value="200">200</option>
<option value="500">500</option>
<option value="700">700</option>
<option value="1000">1000</option>
<option value="other">Other</option>
</select></td>
</tr>
<tr><td>Disable auto download feature</td><td><input type="checkbox" value="1" name="opt_auto_download_disable" id="opt_auto_download_disable" /></td></tr>
<tr><td>Disable auto upload feature</td><td><input type="checkbox" value="1" name="opt_auto_upload_disable" id="opt_auto_upload_disable" /></td></tr>
<tr><td>Disable notes feature</td><td><input type="checkbox" value="1" name="opt_notes_disable" id="opt_notes_disable" /></td></tr>
<tr><td>Disable *.upload.html creation</td><td><input type="checkbox" value="1" name="opt_upload_html_disable" id="opt_upload_html_disable" /></td></tr>
<tr><td>Disable myuploads.txt creation</td><td><input type="checkbox" value="1" name="opt_myuploads_disable" id="opt_myuploads_disable" /></td></tr>
</table>
</div>
</div>
</td></tr>
</table><table align="center" class="table_cat">
<tr><td>
<div class="div_main">
<div class="div_title">Authorization mode</div>
<div class="div_opt">
<input type="checkbox" value="1" name="opt_login" id="opt_login" /> Enable <b>Authorization mode</b>
<div style="text-align: left;" id="opt_login_0">
<table id="opt_login_table" class="table_opt">
<thead>
<tr><td><input id="opt_login_add" type="button" value="Add user" /></td><td><b>User</b></td><td><b>Password</b></td></tr>
</thead><tbody>
<tr><td> </td><td><input type="text" name="users[]" size="14" /></td><td><input type="text" name="passwords[]" size="14" /></td></tr>
</tbody></table>
</div>
</div>
</div>
</td></tr>
</table><table align="center" class="table_cat">
<tr><td>
<div class="div_main">
<div class="div_title">Presentation Options</div>
<div class="div_opt" id="opt_presentation_table">
<table class="table_opt"><tr>
<td style="vertical-align: top;">
<table>
<tr><td>Template</td>
<td><select size="1" name="opt_template_used" id="opt_template_used">
<?php
$d = dir('templates/');
while (false !== ($f = $d->read())) {
if (!is_dir('templates/'.$f) || $f == '.' || $f == '..') continue;
echo "\t\t\t\t\t\t\t\t\t<option value='$f'>$f</option>";
}
$d->close();
?>
</select></td>
</tr>
<tr><td>Language</td>
<td><select size="1" name="opt_default_language" id="opt_default_language">
<?php
$d = dir('languages/');
while (false !== ($f = $d->read())) {
if (substr($f, -4) != '.php') continue;
echo "\t\t\t\t\t\t\t\t\t<option value='".substr($f, 0, -4)."'>".substr($f, 0, -4).'</option>';
}
$d->close();
?>
</select></td>
</tr>
</table>
</td>
<td style="vertical-align: top;">
<table>
<tr><td>Show all files, not<br />only downloaded</td><td><input type="checkbox" value="1" name="opt_show_all" id="opt_show_all" /></td></tr>
<tr><td>Auto Refresh Server Info</td><td><input type="checkbox" value="1" name="opt_ajax_refresh" id="opt_ajax_refresh" /></td></tr>
<tr><td>CPU, Memory & Time Info</td><td><input type="checkbox" value="1" name="opt_server_info" id="opt_server_info" /></td></tr>
</table>
</td>
</tr><tr>
<td style="vertical-align: top;" colspan="2"> </td>
</tr><tr>
<td style="vertical-align: top;">
<table>
<tr><td>Make file list sortable</td><td><input type="checkbox" value="1" name="opt_flist_sort" id="opt_flist_sort" /></td></tr>
<tr><td>Fixed file list header<br />(May not work in all browsers)</td><td><input type="checkbox" value="1" name="opt_flist_h_fixed" id="opt_flist_h_fixed" /></td></tr>
</table>
</td>
<td style="vertical-align: top;">
<table>
<tr><td>Transload files in a new window</td><td><input type="checkbox" value="1" name="opt_new_window" id="opt_new_window" /></td></tr>
<tr id="opt_new_window_0"><td>Use javascript window</td><td><input type="checkbox" value="1" name="opt_new_window_js" id="opt_new_window_js" /></td></tr>
</table>
</td>
<td style="vertical-align: top;"> </td>
</tr></table>
</div>
</div>
</td></tr>
</table><table align="center" class="table_cat">
<tr><td>
<div class="div_main">
<div class="div_title">File Actions Restrictions</div>
<div class="div_opt" id="opt_actions_table">
<table class="table_opt">
<tr><td>Disable all actions</td><td><input type="checkbox" value="1" name="opt_disable_actions" id="opt_disable_actions" /></td></tr>
<tr><td>Disable deleting on all actions(except delete)</td><td><input type="checkbox" value="1" name="opt_disable_deleting" id="opt_disable_deleting" /></td></tr>
<tr><td> </td><td> </td></tr>
<tr>
<td style="vertical-align: top;"><table>
<tr><td>Disable delete action</td><td><input type="checkbox" value="1" name="opt_disable_delete" id="opt_disable_delete" /></td></tr>
<tr><td>Disable rename action</td><td><input type="checkbox" value="1" name="opt_disable_rename" id="opt_disable_rename" /></td></tr>
<tr><td>Disable massive rename</td><td><input type="checkbox" value="1" name="opt_disable_mass_rename" id="opt_disable_mass_rename" /></td></tr>
<tr><td>Disable massive email</td><td><input type="checkbox" value="1" name="opt_disable_mass_email" id="opt_disable_mass_email" /></td></tr>
<tr><td>Disable email</td><td><input type="checkbox" value="1" name="opt_disable_email" id="opt_disable_email" /></td></tr>
<tr><td>Disable FTP</td><td><input type="checkbox" value="1" name="opt_disable_ftp" id="opt_disable_ftp" /></td></tr>
<tr><td>Disable upload</td><td><input type="checkbox" value="1" name="opt_disable_upload" id="opt_disable_upload" /></td></tr>
</table></td>
<td style="vertical-align: top;"><table>
<tr><td>Disable merge</td><td><input type="checkbox" value="1" name="opt_disable_merge" id="opt_disable_merge" /></td></tr>
<tr><td>Disable split</td><td><input type="checkbox" value="1" name="opt_disable_split" id="opt_disable_split" /></td></tr>
<tr><td>Disable md5 change</td><td><input type="checkbox" value="1" name="opt_disable_md5_change" id="opt_disable_md5_change" /></td></tr>
<tr><td>Disable hashing</td><td><input type="checkbox" value="1" name="opt_disable_hashing" id="opt_disable_hashing" /></td></tr>
<tr><td>Disable list</td><td><input type="checkbox" value="1" name="opt_disable_list" id="opt_disable_list" /></td></tr>
</table></td>
<td style="vertical-align: top;"><table>
<tr><td>Disable compression<br />(tar, zip, rar)</td><td><input type="checkbox" value="1" name="opt_disable_archive_compression" id="opt_disable_archive_compression" /></td></tr>
<tr><td>Disable tar</td><td><input type="checkbox" value="1" name="opt_disable_tar" id="opt_disable_tar" /></td></tr>
<tr><td>Disable zip</td><td><input type="checkbox" value="1" name="opt_disable_zip" id="opt_disable_zip" /></td></tr>
<tr><td>Disable unzip</td><td><input type="checkbox" value="1" name="opt_disable_unzip" id="opt_disable_unzip" /></td></tr>
<tr><td>Disable rar</td><td><input type="checkbox" value="1" name="opt_disable_rar" id="opt_disable_rar" /></td></tr>
<tr><td>Disable unrar</td><td><input type="checkbox" value="1" name="opt_disable_unrar" id="opt_disable_unrar" /></td></tr>
</table></td>
</tr>
</table>
</div>
</div>
</td></tr>
</table><table align="center" class="table_cat">
<tr><td>
<div class="div_main">
<div class="div_title" id="div_main_advanced">Advanced Options</div>
<div class="div_opt" id="opt_advanced_table">
<div style="text-align: center; padding-bottom: 10px;">(You don't need to change these unless you know what you are doing)</div>
<table class="table_opt">
<tr><td>Prefer use of cURL on plugins</td><td><input type="checkbox" value="1" name="opt_use_curl" id="opt_use_curl" /></td></tr>
<tr><td>Redirect passive method</td><td><input type="checkbox" value="1" name="opt_redir" id="opt_redir" /></td></tr>
<tr><td>No cache</td><td><input type="checkbox" value="1" name="opt_no_cache" id="opt_no_cache" /></td></tr>
<tr><td>Disallow downloads from external referers</td><td><input type="checkbox" value="1" name="opt_ref_check" id="opt_ref_check" /></td></tr>
<tr><td>Try to list files bigger than 2gb<br />(32 bit o.s.)</td><td><input type="checkbox" value="1" name="opt_2gb_fix" id="opt_2gb_fix" /></td></tr>
<tr><td colspan="2" style="text-align: center;">Forbidden file types</td></tr>
<tr><td colspan="2" style="text-align: center;"><input size="50" type="text" id="opt_forbidden_filetypes" name="opt_forbidden_filetypes" /></td></tr>
<tr><td>Block download of forbidden file types</td><td><input type="checkbox" value="1" name="opt_forbidden_filetypes_block" id="opt_forbidden_filetypes_block" /></td></tr>
<tr id="opt_rename_these_filetypes_to_0"><td>Rename forbidden file types to</td><td><input type="text" size="8" value="" name="opt_rename_these_filetypes_to" id="opt_rename_these_filetypes_to" /></td></tr>
<tr><td>Block forbidden file types for file actions</td><td><input type="checkbox" value="1" name="opt_check_these_before_unzipping" id="opt_check_these_before_unzipping" /></td></tr>
<tr><td>fgc</td><td><input type="text" value="" size="2" name="opt_fgc" id="opt_fgc" /></td></tr>
</table>
</div>
</div>
</td></tr>
</table>
<table border="0" cellpadding="10" align="center">
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" value="1" name="setup_save" />
<input type="button" value="Save Configuration" id="save" name="save" disabled="disabled" />
<input type="button" value="Reset" id="reset" name="reset" disabled="disabled" />
</div>
</td>
</tr>
</table>
</form>
<?php
}
exit("</body>\r\n</html>"); ?>