* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* $Id: options.php,v 1.1.1.1 2004/01/02 16:00:18 avel Exp $
*
* @package plugins
* @subpackage directory
*/
define('SM_PATH', '../../');
include_once (SM_PATH . 'include/validate.php');
include_once (SM_PATH . 'plugins/directory/config.php');
include_once (SM_PATH . 'plugins/directory/constants.php');
include_once (SM_PATH . 'plugins/directory/functions.php');
if (isset($_POST['submit_directory'])) {
sqgetGlobalVar('directory_output_type', $directory_output_type, SQ_POST);
setPref($data_dir, $username, 'directory_output_type', $directory_output_type);
foreach ($ldq_enable_attrs as $attr) {
$Var = 'directory_showattr_'.$attr;
if (isset($_POST[$Var])) {
$$Var = '1';
} else {
$$Var = '0';
}
setPref($data_dir, $username, $Var, $$Var);
}
header("Location: ../../src/options.php");
exit;
}
displayPageHeader($color, 'None');
directory_LoadPrefs();
$optpage_title = _("Options") . ' - ' . _("Directory Service");
echo html_tag( 'table', '', 'center', $color[0], 'width="95%" cellpadding="1" cellspacing="0" border="0"' ) . "\n" .
html_tag( 'tr' ) . "\n" .
html_tag( 'td', '', 'center' ) .
"$optpage_title
\n".
html_tag( 'table', '', '', '', 'width="100%" cellpadding="5" cellspacing="0" border="0"' ) . "\n" .
html_tag( 'tr' ) . "\n" .
html_tag( 'td', '', 'left', $color[4] ) . "\n";
echo '