forked from projectsend/projectsend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
options.php
549 lines (494 loc) · 24 KB
/
options.php
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
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
<?php
/**
* Options page and form.
*
* @package ProjectSend
* @subpackage Options
*/
$easytabs = 1;
$spinedit = 1;
$allowed_levels = array(9);
require_once('sys.includes.php');
$page_title = __('System options','cftp_admin');
$database->MySQLDB();
/** Uses TextBoxList for the allowed file types box. */
$textboxlist = 1;
$active_nav = 'options';
include('header.php');
if ($_POST) {
/**
* Escape all the posted values on a single function.
* Defined on functions.php
*/
/** Values that can be empty */
$allowed_empty_values = array(
'mail_copy_addresses',
'mail_smtp_host',
'mail_smtp_port',
'mail_smtp_user',
'mail_smtp_pass',
);
/** Checkboxes */
$checkboxes = array(
'clients_can_register',
'clients_auto_approve',
'clients_can_upload',
'mail_copy_user_upload',
'mail_copy_client_upload',
'mail_copy_main_user',
'thumbnails_use_absolute',
'pass_require_upper',
'pass_require_lower',
'pass_require_number',
'pass_require_special',
);
foreach ($checkboxes as $checkbox) {
$_POST[$checkbox] = (empty($_POST[$checkbox]) || !isset($_POST[$checkbox])) ? 0 : 1;
}
$_POST = mysql_real_escape_array($_POST);
$keys = array_keys($_POST);
$options_total = count($keys);
$options_filled = 0;
$query_state = '0';
/**
* Check if all the options are filled.
*/
for ($i = 0; $i < $options_total; $i++) {
if (!in_array($keys[$i], $allowed_empty_values)) {
if (empty($_POST[$keys[$i]]) && $_POST[$keys[$i]] != '0') {
$query_state = '3';
}
else {
$options_filled++;
}
}
}
/** If every option is completed, continue */
if ($query_state == '0') {
$updated = 0;
for ($j = 0; $j < $options_total; $j++) {
$sql = $database->query('UPDATE tbl_options SET value="'.$_POST[$keys[$j]].'" WHERE name="'.$keys[$j].'"');
if ($sql) {
$updated++;
}
}
if ($updated > 0){
$query_state = '1';
}
else {
$query_state = '2';
}
}
/** Redirect so the options are reflected immediatly */
while (ob_get_level()) ob_end_clean();
$location = BASE_URI . 'options.php?status=' . $query_state;
header("Location: $location");
die();
}
/**
* Replace | with , to use the tags system when showing
* the allowed filetypes on the form. This value comes from
* site.options.php
*/
$allowed_file_types = str_replace('|',',',$allowed_file_types);
/** Explode, sort, and implode the values to list them alphabetically */
$allowed_file_types = explode(',',$allowed_file_types);
sort($allowed_file_types);
$allowed_file_types = implode(',',$allowed_file_types);
?>
<div id="main">
<h2><?php echo $page_title; ?></h2>
<?php
if (isset($_GET['status'])) {
switch ($_GET['status']) {
case '1':
$msg = __('Options updated succesfuly.','cftp_admin');
echo system_message('ok',$msg);
break;
case '2':
$msg = __('There was an error. Please try again.','cftp_admin');
echo system_message('error',$msg);
break;
case '3':
$msg = __('Some fields were not completed. Options could not be saved.','cftp_admin');
echo system_message('error',$msg);
$show_options_form = 1;
break;
}
}
?>
<script type="text/javascript">
$(document).ready(function() {
$('#tab-container').easytabs({
updateHash: false
});
$('#notifications_max_tries').spinedit({
minimum: 1,
maximum: 100,
step: 1,
value: <?php echo NOTIFICATIONS_MAX_TRIES; ?>,
numberOfDecimals: 0
});
$('#notifications_max_days').spinedit({
minimum: 0,
maximum: 365,
step: 1,
value: <?php echo NOTIFICATIONS_MAX_DAYS; ?>,
numberOfDecimals: 0
});
$(function(){
var t = new $.TextboxList('#allowed_file_types', {unique: true, bitsOptions:{editable:{addKeys: 188}}});
});
$("form").submit(function() {
clean_form(this);
is_complete_all_options(this,'<?php _e('Please complete all the fields.','cftp_admin'); ?>');
// show the errors or continue if everything is ok
if (show_form_errors() == false) { alert('<?php _e('Please complete all the fields.','cftp_admin'); ?>'); return false; }
});
});
</script>
<form action="options.php" name="optionsform" method="post">
<div id="outer_tabs_wrapper">
<div id="tab-container" class="tab-container">
<ul class="etabs">
<li class="tab"><a href="#tab_general"><?php _e('General Options','cftp_admin'); ?></a></li>
<li class="tab"><a href="#tab_clients"><?php _e('Clients','cftp_admin'); ?></a></li>
<li class="tab"><a href="#tab_email"><?php _e('E-mail notifications','cftp_admin'); ?></a></li>
<li class="tab"><a href="#tab_security"><?php _e('Security','cftp_admin'); ?></a></li>
<li class="tab"><a href="#tab_thumbs"><?php _e('Thumbnails','cftp_admin'); ?></a></li>
<li class="tab"><a href="#tab_logo"><?php _e('Company logo','cftp_admin'); ?></a></li>
</ul>
<div class="panel-container">
<div id="tab_general">
<div class="options_box whitebox">
<ul class="form_fields">
<li>
<h3><?php _e('General','cftp_admin'); ?></h3>
<p><?php _e('Basic information to be shown around the site. The time format and zones values affect how the clients see the dates on their files lists.','cftp_admin'); ?></p>
</li>
<li>
<label for="this_install_title"><?php _e('Site name','cftp_admin'); ?></label>
<input type="text" name="this_install_title" id="this_install_title" value="<?php echo html_output(THIS_INSTALL_SET_TITLE); ?>" />
</li>
<li>
<label for="selected_clients_template"><?php _e("Client's template",'cftp_admin'); ?></label>
<select name="selected_clients_template" id="selected_clients_template">
<?php
$templates = look_for_templates();
foreach ($templates as $template) {
echo '<option value="'.html_output($template['folder']).'"';
if($template['folder'] == TEMPLATE_USE) {
echo ' selected="selected"';
}
echo '>'.html_output($template['name']).'</option>';
}
?>
</select>
</li>
<li>
<label for="timezone"><?php _e('Timezone','cftp_admin'); ?></label>
<?php
/**
* Generates a select field.
* Code is stored on a separate file since it's pretty long.
*/
include_once('includes/timezones.php');
?>
</li>
<li>
<label for="timeformat"><?php _e('Time format','cftp_admin'); ?></label>
<input type="text" name="timeformat" id="timeformat" value="<?php echo TIMEFORMAT_USE; ?>" />
<p class="field_note"><?php _e('For example, d/m/Y h:i:s will result in something like','cftp_admin'); ?> <strong><?php echo date('d/m/Y h:i:s'); ?></strong>.
<?php _e('For the full list of available values, visit','cftp_admin'); ?> <a href="http://php.net/manual/en/function.date.php" target="_blank"><?php _e('this page','cftp_admin'); ?></a>.</p>
</li>
<li class="options_divide"></li>
<li>
<h3><?php _e('System location','cftp_admin'); ?></h3>
<p class="text-warning"><?php _e('These options are to be changed only if you are moving the system to another place. Changes here can cause ProjectSend to stop working.','cftp_admin'); ?></p>
</li>
<li>
<label for="base_uri"><?php _e('System URI','cftp_admin'); ?></label>
<input type="text" name="base_uri" id="base_uri" value="<?php echo BASE_URI; ?>" />
</li>
<li class="options_divide"></li>
</ul>
</div>
</div>
<div id="tab_clients">
<div class="options_box whitebox">
<ul class="form_fields">
<li>
<h3><?php _e('New registrations','cftp_admin'); ?></h3>
<p><?php _e('Used only on self-registrations. These options will not apply to clients registered by system administrators.','cftp_admin'); ?></p>
</li>
<li>
<label for="clients_can_register"><?php _e('Clients can register themselves','cftp_admin'); ?></label>
<input type="checkbox" value="1" name="clients_can_register" class="checkbox_options" <?php echo (CLIENTS_CAN_REGISTER == 1) ? 'checked="checked"' : ''; ?> />
</li>
<li>
<label for="clients_auto_approve"><?php _e('Auto approve new accounts','cftp_admin'); ?></label>
<input type="checkbox" value="1" name="clients_auto_approve" class="checkbox_options" <?php echo (CLIENTS_AUTO_APPROVE == 1) ? 'checked="checked"' : ''; ?> />
</li>
<li>
<label for="clients_auto_group"><?php _e('Add clients to this group:','cftp_admin'); ?></label>
<select name="clients_auto_group" id="clients_auto_group">
<option value="0"><?php _e('None (does not enable this feature)','cftp_admin'); ?></option>
<?php
/** Fill the groups array that will be used on the form */
$groups = array();
$cq = "SELECT id, name FROM tbl_groups ORDER BY name ASC";
$sql = $database->query($cq);
while($grow = mysql_fetch_array($sql)) {
?>
<option value="<?php echo filter_var($grow["id"],FILTER_VALIDATE_INT); ?>"
<?php
if (CLIENTS_AUTO_GROUP == $grow["id"]) {
echo 'selected="selected"';
}
?>
><?php echo html_output($grow["name"]); ?>
</option>
<?php
}
?>
</select>
<p class="field_note"><?php _e('New clients will automatically be assigned to the group you have selected.','cftp_admin'); ?></p>
</li>
<li class="options_divide"></li>
<li>
<h3><?php _e('Files','cftp_admin'); ?></h3>
<?php
/*<p><?php _e('Options related to the files that clients upload themselves.','cftp_admin'); ?></p>
*/
?>
</li>
<li>
<label for="clients_can_upload"><?php _e('Clients can upload files','cftp_admin'); ?></label>
<input type="checkbox" value="1" name="clients_can_upload" class="checkbox_options" <?php echo (CLIENTS_CAN_UPLOAD == 1) ? 'checked="checked"' : ''; ?> />
</li>
<li>
<label for="expired_files_hide"><?php _e('When a file expires:','cftp_admin'); ?></label>
<select name="expired_files_hide" id="expired_files_hide">
<option value="1" <?php echo (EXPIRED_FILES_HIDE == '1') ? 'selected="selected"' : ''; ?>><?php _e("Don't show it on the files list",'cftp_admin'); ?></option>
<option value="0" <?php echo (EXPIRED_FILES_HIDE == '0') ? 'selected="selected"' : ''; ?>><?php _e("Show it anyway, but prevent download.",'cftp_admin'); ?></option>
</select>
<p class="field_note"><?php _e('This only affects clients. On the admin side, you can still get the files.','cftp_admin'); ?></p>
</li>
<li class="options_divide"></li>
</ul>
</div>
</div>
<div id="tab_email">
<div class="options_box whitebox">
<ul class="form_fields">
<li>
<h3><?php _e('"From" information','cftp_admin'); ?></h3>
</li>
<li>
<label for="admin_email_address"><?php _e('E-mail address','cftp_admin'); ?></label>
<input type="text" name="admin_email_address" id="admin_email_address" value="<?php echo html_output(ADMIN_EMAIL_ADDRESS); ?>" />
</li>
<li>
<label for="mail_from_name"><?php _e('Name','cftp_admin'); ?></label>
<input type="text" name="mail_from_name" id="mail_from_name" value="<?php echo html_output(MAIL_FROM_NAME); ?>" />
</li>
<li class="options_divide"></li>
<li>
<h3><?php _e('Send copies','cftp_admin'); ?></h3>
</li>
<li>
<label for="mail_copy_user_upload"><?php _e('When a system user uploads files','cftp_admin'); ?></label>
<input type="checkbox" value="1" name="mail_copy_user_upload" class="mail_copy_user_upload" <?php echo (COPY_MAIL_ON_USER_UPLOADS == 1) ? 'checked="checked"' : ''; ?> />
</li>
<li>
<label for="mail_copy_client_upload"><?php _e('When a client uploads files','cftp_admin'); ?></label>
<input type="checkbox" value="1" name="mail_copy_client_upload" class="mail_copy_client_upload" <?php echo (COPY_MAIL_ON_CLIENT_UPLOADS == 1) ? 'checked="checked"' : ''; ?> />
</li>
<li class="options_nested_note">
<p><?php _e('Define here who will receive copies of this emails. These are sent as BCC so neither recipient will see the other addresses.','cftp_admin'); ?></p>
</li>
<li>
<label for="mail_copy_main_user"><?php _e('Address supplied above (on "From")','cftp_admin'); ?></label>
<input type="checkbox" value="1" name="mail_copy_main_user" class="mail_copy_main_user" <?php echo (COPY_MAIL_MAIN_USER == 1) ? 'checked="checked"' : ''; ?> />
</li>
<li>
<label for="mail_copy_addresses"><?php _e('Also to this addresses','cftp_admin'); ?></label>
<input type="text" name="mail_copy_addresses" id="mail_copy_addresses" class="mail_data empty" value="<?php echo html_output(COPY_MAIL_ADDRESSES); ?>" />
<p class="field_note"><?php _e('Separate e-mail addresses with a comma.','cftp_admin'); ?></p>
</li>
<li class="options_divide"></li>
<li>
<h3><?php _e('Expiration','cftp_admin'); ?></h3>
</li>
<li>
<label for="notifications_max_tries"><?php _e('Maximum sending attemps','cftp_admin'); ?></label>
<input type="text" name="notifications_max_tries" id="notifications_max_tries" value="<?php echo NOTIFICATIONS_MAX_TRIES; ?>" />
<p class="field_note"><?php _e('Define how many times will the system attemp to send each notification.','cftp_admin'); ?></p>
</li>
<li>
<label for="notifications_max_days"><?php _e('Days before expiring','cftp_admin'); ?></label>
<input type="text" name="notifications_max_days" id="notifications_max_days" value="<?php echo NOTIFICATIONS_MAX_DAYS; ?>" />
<p class="field_note"><?php _e('Notifications older than this will not be sent.','cftp_admin'); ?><br /><strong><?php _e('Set to 0 to disable.','cftp_admin'); ?></strong></p>
</li>
<li class="options_divide"></li>
<li>
<h3><?php _e('E-mail sending options','cftp_admin'); ?></h3>
<p><?php _e('Here you can select which mail system will be used when sending the notifications. If you have a valid e-mail account, SMTP is the recommended option.','cftp_admin'); ?></p>
</li>
<li>
<label for="mail_system_use"><?php _e('Mailer','cftp_admin'); ?></label>
<select name="mail_system_use" id="mail_system_use">
<option value="mail" <?php echo (MAIL_SYSTEM == 'mail') ? 'selected="selected"' : ''; ?>>PHP Mail (basic)</option>
<option value="smtp" <?php echo (MAIL_SYSTEM == 'smtp') ? 'selected="selected"' : ''; ?>>SMTP</option>
<option value="gmail" <?php echo (MAIL_SYSTEM == 'gmail') ? 'selected="selected"' : ''; ?>>Gmail</option>
<option value="sendmail" <?php echo (MAIL_SYSTEM == 'sendmail') ? 'selected="selected"' : ''; ?>>Sendmail</option>
</select>
</li>
<li>
<li class="options_divide"></li>
<li>
<h3><?php _e('SMTP & Gmail shared options','cftp_admin'); ?></h3>
<p><?php _e('You need to include your username (usually your e-mail address) and password if you have selected either SMTP or Gmail as your mailer.','cftp_admin'); ?></p>
</li>
<li>
<label for="mail_smtp_user"><?php _e('Username','cftp_admin'); ?></label>
<input type="text" name="mail_smtp_user" id="mail_smtp_user" class="mail_data empty" value="<?php echo html_output(SMTP_USER); ?>" />
</li>
<li>
<label for="mail_smtp_pass"><?php _e('Password','cftp_admin'); ?></label>
<input type="password" name="mail_smtp_pass" id="mail_smtp_pass" class="mail_data empty" value="<?php echo html_output(SMTP_PASS); ?>" />
</li>
<li class="options_divide"></li>
<li>
<h3><?php _e('SMTP options','cftp_admin'); ?></h3>
<p><?php _e('If you selected SMTP as your mailer, please complete these options.','cftp_admin'); ?></p>
</li>
<li>
<label for="mail_smtp_host"><?php _e('Host','cftp_admin'); ?></label>
<input type="text" name="mail_smtp_host" id="mail_smtp_host" class="mail_data empty" value="<?php echo html_output(SMTP_HOST); ?>" />
</li>
<li>
<label for="mail_smtp_port"><?php _e('Port','cftp_admin'); ?></label>
<input type="text" name="mail_smtp_port" id="mail_smtp_port" class="mail_data empty" value="<?php echo html_output(SMTP_PORT); ?>" />
</li>
<li>
<label for="mail_smtp_auth"><?php _e('Authentication','cftp_admin'); ?></label>
<select name="mail_smtp_auth" id="mail_smtp_auth">
<option value="none" <?php echo (SMTP_AUTH == 'none') ? 'selected="selected"' : ''; ?>><?php _e('None','cftp_admin'); ?></option>
<option value="ssl" <?php echo (SMTP_AUTH == 'ssl') ? 'selected="selected"' : ''; ?>>SSL</option>
<option value="tls" <?php echo (SMTP_AUTH == 'tls') ? 'selected="selected"' : ''; ?>>TLS</option>
</select>
</li>
<li class="options_divide"></li>
</ul>
</div>
</div>
<div id="tab_security">
<div class="options_box whitebox">
<ul class="form_fields">
<li>
<h3><?php _e('Allowed file extensions','cftp_admin'); ?></h3>
<p><?php _e('Be careful when changing this options. They could affect not only the system but the whole server it is installed on.','cftp_admin'); ?><br />
<strong><?php _e('Important','cftp_admin'); ?></strong>: <?php _e('Separate allowed file types with a comma. You can navigate the box with the left/right arrows, backspace and delete keys.','cftp_admin'); ?></p>
</li>
<li>
<label for="file_types_limit_to"><?php _e('Limit file types uploading to','cftp_admin'); ?></label>
<select name="file_types_limit_to" id="file_types_limit_to">
<option value="noone" <?php echo (FILE_TYPES_LIMIT_TO == 'noone') ? 'selected="selected"' : ''; ?>><?php _e('No one','cftp_admin'); ?></option>
<option value="all" <?php echo (FILE_TYPES_LIMIT_TO == 'all') ? 'selected="selected"' : ''; ?>><?php _e('Everyone','cftp_admin'); ?></option>
<option value="clients" <?php echo (FILE_TYPES_LIMIT_TO == 'clients') ? 'selected="selected"' : ''; ?>><?php _e('Clients only','cftp_admin'); ?></option>
</select>
</li>
<li>
<input name="allowed_file_types" id="allowed_file_types" value="<?php echo $allowed_file_types; ?>" />
</li>
<li class="options_divide"></li>
<li>
<h3><?php _e('Passwords','cftp_admin'); ?></h3>
<p><?php _e('When setting up a password for an account, requiere at least:','cftp_admin'); ?><br />
</li>
<li>
<label for="pass_require_upper"><?php echo $validation_req_upper; ?></label>
<input type="checkbox" value="1" name="pass_require_upper" class="checkbox_options" <?php echo (PASS_REQ_UPPER == 1) ? 'checked="checked"' : ''; ?> />
</li>
<li>
<label for="pass_require_lower"><?php echo $validation_req_lower; ?></label>
<input type="checkbox" value="1" name="pass_require_lower" class="checkbox_options" <?php echo (PASS_REQ_LOWER == 1) ? 'checked="checked"' : ''; ?> />
</li>
<li>
<label for="pass_require_number"><?php echo $validation_req_number; ?></label>
<input type="checkbox" value="1" name="pass_require_number" class="checkbox_options" <?php echo (PASS_REQ_NUMBER == 1) ? 'checked="checked"' : ''; ?> />
</li>
<li>
<label for="pass_require_special"><?php echo $validation_req_special; ?></label>
<input type="checkbox" value="1" name="pass_require_special" class="checkbox_options" <?php echo (PASS_REQ_SPECIAL == 1) ? 'checked="checked"' : ''; ?> />
</li>
<li class="options_divide"></li>
</ul>
</div>
</div>
<div id="tab_thumbs">
<div class="options_box whitebox">
<ul class="form_fields">
<li>
<h3><?php _e('Thumbnails','cftp_admin'); ?></h3>
<p><?php _e("Thumbnails are used on files lists. It is recommended to keep them small, unless you are using the system to upload only images, and will change the default client's template accordingly.",'cftp_admin'); ?></p>
</li>
<li class="options_column">
<div class="options_col_left">
<label for="max_thumbnail_width"><?php _e('Max width','cftp_admin'); ?></label>
<input type="text" name="max_thumbnail_width" id="max_thumbnail_width" value="<?php echo html_output(THUMBS_MAX_WIDTH); ?>" /><br />
<label for="max_thumbnail_height"><?php _e('Max height','cftp_admin'); ?></label>
<input type="text" name="max_thumbnail_height" id="max_thumbnail_height" value="<?php echo html_output(THUMBS_MAX_HEIGHT); ?>" /><br />
</div>
<div class="options_col_right">
<label for="thumbnail_default_quality"><?php _e('JPG Quality','cftp_admin'); ?></label>
<input type="text" name="thumbnail_default_quality" id="thumbnail_default_quality" value="<?php echo html_output(THUMBS_QUALITY); ?>" />
</div>
</li>
<li class="options_divide"></li>
<li>
<h3><?php _e("File's path", 'cftp_admin'); ?></h3>
<p><?php _e("If thumbnails are not showing (your company logo and file's preview on the branding page and client's files lists) try setting this option ON. It they still don't work, a folders permission issue might be the cause.",'cftp_admin'); ?></p>
</li>
<li>
<label for="thumbnails_use_absolute"><?php _e("Use file's absolute path",'cftp_admin'); ?></label>
<input type="checkbox" value="1" name="thumbnails_use_absolute" class="thumbnails_use_absolute" <?php echo (THUMBS_USE_ABSOLUTE == 1) ? 'checked="checked"' : ''; ?> />
</li>
<li class="options_divide"></li>
</ul>
</div>
</div>
<div id="tab_logo">
<div class="options_box whitebox">
<ul class="form_fields">
<li>
<h3><?php _e('Size settings','cftp_admin'); ?></h3>
<p><?php _e("Like the thumbnails options, these have to be changed taking into account the client's template design, since it can be shown there. The default template uses a fixed width for the logo, however the Gallery template uses this setting to show the image on top.",'cftp_admin'); ?></p>
</li>
<li class="options_column">
<div class="options_col_left">
<label for="max_logo_width"><?php _e('Max width','cftp_admin'); ?></label>
<input type="text" name="max_logo_width" id="max_logo_width" value="<?php echo html_output(LOGO_MAX_WIDTH); ?>" />
</div>
<div class="options_col_right">
<label for="max_logo_height"><?php _e('Max height','cftp_admin'); ?></label>
<input type="text" name="max_logo_height" id="max_logo_height" value="<?php echo html_output(LOGO_MAX_HEIGHT); ?>" />
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="after_form_buttons">
<button type="submit" class="btn btn-wide btn-primary empty"><?php _e('Update all options','cftp_admin'); ?></button>
</div>
</div>
</form>
</div>
</div>
<?php
$database->Close();
include('footer.php');
?>