*/
if (file_exists('../../include/init.php')) {
include_once('../../include/init.php');
} else if (file_exists('../../include/validate.php')) {
define('SM_PATH', '../../');
include_once (SM_PATH . 'include/validate.php');
}
define('DIR_PATH', SM_PATH . "plugins/directory/");
include_once (DIR_PATH . 'config.php');
include_once (DIR_PATH . 'include/constants.php');
include_once (DIR_PATH . 'include/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');
$prev = sq_bindtextdomain ('directory', DIR_PATH . 'locale');
textdomain ('directory');
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 '