<?php /** * Export entries from the LDAP server. * * @package phpLDAPadmin * @subpackage Page */ /** */ require './common.php'; require LIBDIR . 'export_functions.php'; $request = array(); $request['dn'] = get_request('dn', 'GET'); $request['format'] = get_request('format', 'GET', false, get_line_end_format()); $request['scope'] = get_request('scope', 'GET', false, 'base'); $request['exporter_id'] = get_request('exporter_id', 'GET', false, 'LDIF'); $request['filter'] = get_request('filter', 'GET', false, '(objectClass=*)'); $request['attr'] = get_request('attributes', 'GET', false, '*'); $request['sys_attr'] = get_request('sys_attr', 'GET') ? true : false; $available_formats = array('mac' => 'Macintosh', 'unix' => 'UNIX (Linux, BSD)', 'win' => 'Windows'); $available_scopes = array('base' => _('Base (base dn only)'), 'one' => _('One (one level beneath base)'), 'sub' => _('Sub (entire subtree)')); $request['page'] = new PageRender($app['server']->getIndex(), get_request('template', 'REQUEST', false, 'none')); $request['page']->drawTitle(sprintf('<b>%s</b>', _('Export'))); printf('<script type="text/javascript" src="%sdnChooserPopup.js"></script>', JSDIR); printf('<script type="text/javascript" src="%sform_field_toggle_enable.js"></script>', JSDIR); echo '<br />'; echo '<form id="export_form" action="cmd.php" method="post">'; echo '<div>'; echo '<input type="hidden" name="cmd" value="export" />'; printf('<input type="hidden" name="server_id" value="%s" />', $app['server']->getIndex());
<?php // $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/export_form.php,v 1.22.4.6 2005/12/11 07:41:04 wurley Exp $ /** * export_form.php * Html form to choose an export format(ldif,...) * @package phpLDAPadmin */ /** */ require './common.php'; require LIBDIR . 'export_functions.php'; $format = isset($_GET['format']) ? $_GET['format'] : get_line_end_format(); $scope = isset($_GET['scope']) ? $_GET['scope'] : 'base'; $exporter_id = isset($_GET['exporter_id']) ? $_GET['exporter_id'] : 0; $dn = isset($_GET['dn']) ? $_GET['dn'] : null; $filter = isset($_GET['filter']) ? $_GET['filter'] : '(objectClass=*)'; $attributes = isset($_GET['attributes']) ? $_GET['attributes'] : '*'; $sys_attr = isset($_GET['sys_attr']) && $_GET['sys_attr'] == 'true' ? true : false; $available_formats = array('unix' => 'UNIX (Linux, BSD)', 'mac' => 'Macintosh', 'win' => 'Windows'); $available_scopes = array('base' => _('Base (base dn only)'), 'one' => _('One (one level beneath base)'), 'sub' => _('Sub (entire subtree)')); include './header.php'; echo '<body>'; printf('<h3 class="title">%s</h3>', _('Export')); echo '<br />'; echo '<center>'; echo '<form name="export_form" action="export.php" method="post">'; echo '<table class="export_form">'; echo '<tr>'; echo '<td>'; echo '<fieldset>';