$g['captiveportal_element_sizelimit']) { $input_errors[] = gettext("The total size of all files uploaded may not exceed ") . format_bytes($g['captiveportal_element_sizelimit']) . "."; } if (!$input_errors) { $element = array(); $element['name'] = $name; $element['size'] = $size; $element['content'] = base64_encode(file_get_contents($_FILES['new']['tmp_name'])); $a_element[] = $element; cpelements_sort(); write_config(); captiveportal_write_elements(); header("Location: services_captiveportal_filemanager.php?zone={$cpzone}"); exit; } } } else if (($_GET['act'] == "del") && !empty($cpzone) && $a_element[$_GET['id']]) { conf_mount_rw(); @unlink("{$g['captiveportal_element_path']}/" . $a_element[$_GET['id']]['name']); @unlink("{$g['captiveportal_path']}/" . $a_element[$_GET['id']]['name']); conf_mount_ro(); unset($a_element[$_GET['id']]); write_config(); header("Location: services_captiveportal_filemanager.php?zone={$cpzone}"); exit; } include("head.inc"); ?>
0): ?>
" width="17" height="17" border="0" alt="add" />
')">" width="17" height="17" border="0" alt="delete" />
" /> " width="17" height="17" border="0" alt="delete" />
" width="17" height="17" border="0" alt="add" />



<img src="captiveportal-test.jpg" width=... height=...>



<a href="/captiveportal-aup.php?zone=$PORTAL_ZONE$&redirurl=$PORTAL_REDIRURL$"></a>