/** * Init tabsheet for history pages * @ignore */ function history_tabsheet() { global $page, $link_start; // TabSheet $tabsheet = new tabsheet(); $tabsheet->set_id('history'); $tabsheet->select($page['page']); $tabsheet->assign(); }
// | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ /** * Add users and manage users list */ // +-----------------------------------------------------------------------+ // | tabs | // +-----------------------------------------------------------------------+ include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $my_base_url = get_root_url() . 'admin.php?page='; $tabsheet = new tabsheet(); $tabsheet->set_id('users'); $tabsheet->select('user_list'); $tabsheet->assign(); // +-----------------------------------------------------------------------+ // | groups list | // +-----------------------------------------------------------------------+ $groups = array(); $query = ' SELECT id, name FROM ' . GROUPS_TABLE . ' ORDER BY name ASC ;'; $result = pwg_query($query); while ($row = pwg_db_fetch_assoc($result)) { $groups[$row['id']] = $row['name']; }
// | the Free Software Foundation | // | | // | This program is distributed in the hope that it will be useful, but | // | WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | // | General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ defined('PHPWG_ROOT_PATH') or die("Hacking attempt!"); include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $tabsheet = new tabsheet(); $tabsheet->set_id('rating'); $tabsheet->select('rating_user'); $tabsheet->assign(); $filter_min_rates = 2; if (isset($_GET['f_min_rates'])) { $filter_min_rates = (int) $_GET['f_min_rates']; } $consensus_top_number = $conf['top_number']; if (isset($_GET['consensus_top_number'])) { $consensus_top_number = (int) $_GET['consensus_top_number']; } // build users global $conf; $query = 'SELECT DISTINCT u.' . $conf['user_fields']['id'] . ' AS id, u.' . $conf['user_fields']['username'] . ' AS name,
// | the Free Software Foundation | // | | // | This program is distributed in the hope that it will be useful, but | // | WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | // | General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ if (!defined("PHPWG_ROOT_PATH")) { die("Hacking attempt!"); } include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $my_base_url = get_root_url() . 'admin.php?page=plugins'; if (isset($_GET['tab'])) { $page['tab'] = $_GET['tab']; } else { $page['tab'] = 'installed'; } $tabsheet = new tabsheet(); $tabsheet->set_id('plugins'); $tabsheet->select($page['tab']); $tabsheet->assign(); if ($page['tab'] == 'update') { include PHPWG_ROOT_PATH . 'admin/updates_ext.php'; } else { include PHPWG_ROOT_PATH . 'admin/plugins_' . $page['tab'] . '.php'; }
} //------------------------------------------------------ $conf reinitialization load_conf_from_db(); } // restore default derivatives settings if ('sizes' == $page['section'] and isset($_GET['action']) and 'restore_settings' == $_GET['action']) { ImageStdParams::set_and_save(ImageStdParams::get_default_sizes()); pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param = \'disabled_derivatives\''); clear_derivative_cache(); $page['infos'][] = l10n('Your configuration settings are saved'); } //----------------------------------------------------- template initialization $template->set_filename('config', 'configuration_' . $page['section'] . '.tpl'); // TabSheet $tabsheet = new tabsheet(); $tabsheet->set_id('configuration'); $tabsheet->select($page['section']); $tabsheet->assign(); $action = get_root_url() . 'admin.php?page=configuration'; $action .= '&section=' . $page['section']; $template->assign(array('U_HELP' => get_root_url() . 'admin/popuphelp.php?page=configuration', 'F_ACTION' => $action)); switch ($page['section']) { case 'main': function order_by_is_local() { @(include PHPWG_ROOT_PATH . 'local/config/config.inc.php'); if (isset($conf['local_dir_site'])) { @(include PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'config/config.inc.php'); } return isset($conf['order_by']) or isset($conf['order_by_inside_category']); }
// | the Free Software Foundation | // | | // | This program is distributed in the hope that it will be useful, but | // | WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | // | General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ if (!defined("PHPWG_ROOT_PATH")) { die("Hacking attempt!"); } include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $my_base_url = get_root_url() . 'admin.php?page=themes'; if (isset($_GET['tab'])) { $page['tab'] = $_GET['tab']; } else { $page['tab'] = 'installed'; } $tabsheet = new tabsheet(); $tabsheet->set_id('themes'); $tabsheet->select($page['tab']); $tabsheet->assign(); if ($page['tab'] == 'update') { include PHPWG_ROOT_PATH . 'admin/updates_ext.php'; } else { include PHPWG_ROOT_PATH . 'admin/themes_' . $page['tab'] . '.php'; }
// | General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ include_once PHPWG_ROOT_PATH . 'admin/include/functions.php'; include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; // +-----------------------------------------------------------------------+ // | Check Access and exit when user status is not ok | // +-----------------------------------------------------------------------+ check_status(ACCESS_ADMINISTRATOR); $help_link = get_root_url() . 'admin.php?page=help§ion='; $selected = null; if (!isset($_GET['section'])) { $selected = 'add_photos'; } else { $selected = $_GET['section']; } $tabsheet = new tabsheet(); $tabsheet->set_id('help'); $tabsheet->select($selected); $tabsheet->assign(); trigger_notify('loc_end_help'); $template->set_filenames(array('help' => 'help.tpl')); $template->assign(array('HELP_CONTENT' => load_language('help/help_' . $tabsheet->selected . '.html', '', array('return' => true)), 'HELP_SECTION_TITLE' => $tabsheet->sheets[$tabsheet->selected]['caption'])); // +-----------------------------------------------------------------------+ // | sending html code | // +-----------------------------------------------------------------------+ $template->assign_var_from_handle('ADMIN_CONTENT', 'help');
if (isset($_POST['submit'])) { check_pwg_token(); $offsetX = trim($_POST['offsetX']); $offsetY = trim($_POST['offsetY']); if (strlen($offsetX) === 0 || strlen($offsetY) === 0 || !is_numeric($offsetX) || !is_numeric($offsetY)) { $page['errors'][] = 'Invalid offset value'; } if (count($page['errors']) === 0) { $stereoTable = $prefixeTable . 'stereo'; if (isset($picture['x'])) { $query = "UPDATE {$stereoTable}\n\t\t\t\tSET x={$offsetX}, y={$offsetY}\n\t\t\t\tWHERE media_id = {$id};"; } else { $picture['x'] = $offsetX; $picture['y'] = $offsetY; $query = "INSERT INTO {$stereoTable} (media_id, x, y)\n\t\t\t\tVALUES ({$id}, {$offsetX}, {$offsetY})"; } pwg_query($query); array_push($page['infos'], l10n('STEREO_EDIT_SUCCESS')); } } // needed for the photo tabsheet $admin_photo_base_url = get_root_url() . 'admin.php?page=photo-' . $id; $self_url = Stereo_get_admin_url($id); include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $tabsheet = new tabsheet(); $tabsheet->set_id('photo'); $tabsheet->select('stereo'); $tabsheet->assign(); $template->assign(array('PWG_TOKEN' => get_pwg_token(), 'F_ACTION' => $self_url, 'TITLE' => render_element_name($picture), 'PICTURE' => Stereo_render_element_content('', $picture), 'OFFSET_X' => empty($picture['x']) ? 0 : $picture['x'], 'OFFSET_Y' => empty($picture['y']) ? 0 : $picture['y'])); $template->set_filename('plugin_admin_content', STEREO_PATH . 'admin.tpl'); $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ // | This program is free software; you can redistribute it and/or modify | // | it under the terms of the GNU General Public License as published by | // | the Free Software Foundation | // | | // | This program is distributed in the hope that it will be useful, but | // | WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | // | General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ if (!defined("PHPWG_ROOT_PATH")) { die("Hacking attempt!"); } include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $my_base_url = get_root_url() . 'admin.php?page=updates'; if (isset($_GET['tab'])) { $page['tab'] = $_GET['tab']; } else { $page['tab'] = 'pwg'; } $tabsheet = new tabsheet(); $tabsheet->set_id('updates'); $tabsheet->select($page['tab']); $tabsheet->assign(); include PHPWG_ROOT_PATH . 'admin/updates_' . $page['tab'] . '.php';
$page['infos'][] = l10n_dec('%d user comment rejected', '%d user comments rejected', count($_POST['comments'])); } } } // +-----------------------------------------------------------------------+ // | template init | // +-----------------------------------------------------------------------+ $template->set_filenames(array('comments' => 'comments.tpl')); $template->assign(array('F_ACTION' => get_root_url() . 'admin.php?page=comments')); // +-----------------------------------------------------------------------+ // | Tabs | // +-----------------------------------------------------------------------+ include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $my_base_url = get_root_url() . 'admin.php?page='; $tabsheet = new tabsheet(); $tabsheet->set_id('comments'); $tabsheet->select(''); $tabsheet->assign(); // +-----------------------------------------------------------------------+ // | comments display | // +-----------------------------------------------------------------------+ $nb_total = 0; $nb_pending = 0; $query = ' SELECT COUNT(*) AS counter, validated FROM ' . COMMENTS_TABLE . ' GROUP BY validated ;'; $result = pwg_query($query);
break; case 'send': if (isset($_POST['send_submit']) and isset($_POST['send_selection']) and isset($_POST['send_customize_mail_content'])) { $check_key_treated = do_action_send_mail_notification('send', $_POST['send_selection'], stripslashes($_POST['send_customize_mail_content'])); do_timeout_treatment('send_selection', $check_key_treated); } } // +-----------------------------------------------------------------------+ // | template initialization | // +-----------------------------------------------------------------------+ $template->set_filenames(array('double_select' => 'double_select.tpl', 'notification_by_mail' => 'notification_by_mail.tpl')); $template->assign(array('U_HELP' => get_root_url() . 'admin/popuphelp.php?page=notification_by_mail', 'F_ACTION' => $base_url . get_query_string_diff(array()))); if (is_autorize_status(ACCESS_WEBMASTER)) { // TabSheet $tabsheet = new tabsheet(); $tabsheet->set_id('nbm'); $tabsheet->select($page['mode']); $tabsheet->assign(); } if ($must_repost) { // Get name of submit button $repost_submit_name = ''; if (isset($_POST['falsify'])) { $repost_submit_name = 'falsify'; } elseif (isset($_POST['trueify'])) { $repost_submit_name = 'trueify'; } elseif (isset($_POST['send_submit'])) { $repost_submit_name = 'send_submit'; } $template->assign('REPOST_SUBMIT_NAME', $repost_submit_name); }
define('TAB_SETTINGS', 'settings'); define('TAB_CHANGELOG', 'changelog'); define('TAB_ABOUT', 'about'); // Get current tab $page['tab'] = isset($_GET['tab']) ? $_GET['tab'] : ($page['tab'] = TAB_SETTINGS); if (!in_array($page['tab'], array(TAB_SETTINGS, TAB_CHANGELOG, TAB_ABOUT))) { $page['tab'] = TAB_SETTINGS; } $themeconfig = new \BootstrapDefault\Config(); // Save settings if ($page['tab'] == TAB_SETTINGS) { if (isset($_POST['boostrapdefault_settings'])) { $themeconfig->fromPost($_POST); $themeconfig->save(); } } // TabSheet $tabsheet = new tabsheet(); $tabsheet->set_id('bsd'); $tabsheet->add(TAB_SETTINGS, l10n('Settings'), ADMIN_PATH . '&tab=' . TAB_SETTINGS); $tabsheet->add(TAB_CHANGELOG, l10n('Change Log'), ADMIN_PATH . '&tab=' . TAB_CHANGELOG); $tabsheet->add(TAB_ABOUT, l10n('About'), ADMIN_PATH . '&tab=' . TAB_ABOUT); $tabsheet->select($page['tab']); $tabsheet->assign(); // Fetch the template. global $template; // Add our template to the global template $template->set_filenames(array('theme_admin_content' => dirname(__FILE__) . '/template/' . $page['tab'] . '.tpl')); // Assign the template contents to ADMIN_CONTENT $template->assign('theme_config', $themeconfig); $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');
<?php defined('SORTORDERS_PATH') or die('Hacking attempt!'); global $template, $page, $conf; // get current tab $page['tab'] = isset($_GET['tab']) ? $_GET['tab'] : ($page['tab'] = 'config'); // plugin tabsheet is not present on photo page if ($page['tab'] != 'photo') { // tabsheet include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $tabsheet = new tabsheet(); $tabsheet->set_id('sortorders'); $tabsheet->add('config', l10n('Configuration'), SORTORDERS_ADMIN . '-config'); $tabsheet->select($page['tab']); $tabsheet->assign(); } // include page include SORTORDERS_PATH . 'admin/' . $page['tab'] . '.php'; // template vars $template->assign(array('SORTORDERS_PATH' => SORTORDERS_PATH, 'SORTORDERS_ABS_PATH' => realpath(SORTORDERS_PATH), 'SORTORDERS_ADMIN' => SORTORDERS_ADMIN)); // send page content $template->assign_var_from_handle('ADMIN_CONTENT', 'sortorders_content');
<?php // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ // | Copyright(C) 2008-2016 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ // | This program is free software; you can redistribute it and/or modify | // | it under the terms of the GNU General Public License as published by | // | the Free Software Foundation | // | | // | This program is distributed in the hope that it will be useful, but | // | WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | // | General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $my_base_url = get_root_url() . 'admin.php?page='; $tabsheet = new tabsheet(); $tabsheet->set_id('albums'); $tabsheet->select($page['tab']); $tabsheet->assign();
<?php defined('OAUTH_PATH') or die('Hacking attempt!'); global $template, $page, $conf; if (!$conf['allow_user_registration']) { $page['warnings'][] = l10n('Users are not allowed to register on your gallery. Social Connect will not work correctly.'); } // get current tab $page['tab'] = isset($_GET['tab']) ? $_GET['tab'] : ($page['tab'] = 'providers'); // tabsheet include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $tabsheet = new tabsheet(); $tabsheet->set_id('oauth'); $tabsheet->add('providers', l10n('Providers'), OAUTH_ADMIN . '-providers'); $tabsheet->add('config', l10n('Configuration'), OAUTH_ADMIN . '-config'); $tabsheet->select($page['tab']); $tabsheet->assign(); // include page include OAUTH_PATH . 'admin/' . $page['tab'] . '.php'; // template vars $template->assign('OAUTH_PATH', get_root_url() . OAUTH_PATH); // send page content $template->assign_var_from_handle('ADMIN_CONTENT', 'oauth_content');
// least one element, so Piwigo can find a representant. set_random_representant($_POST['cat_false']); break; } } } // +-----------------------------------------------------------------------+ // | template init | // +-----------------------------------------------------------------------+ $template->set_filenames(array('cat_options' => 'cat_options.tpl', 'double_select' => 'double_select.tpl')); $page['section'] = isset($_GET['section']) ? $_GET['section'] : 'status'; $base_url = PHPWG_ROOT_PATH . 'admin.php?page=cat_options&section='; $template->assign(array('U_HELP' => get_root_url() . 'admin/popuphelp.php?page=cat_options', 'F_ACTION' => $base_url . $page['section'])); // TabSheet $tabsheet = new tabsheet(); $tabsheet->set_id('cat_options'); $tabsheet->select($page['section']); $tabsheet->assign(); // +-----------------------------------------------------------------------+ // | form display | // +-----------------------------------------------------------------------+ // for each section, categories in the multiselect field can be : // // - true : commentable for comment section // - false : un-commentable for comment section // - NA : (not applicable) for virtual categories // // for true and false status, we associates an array of category ids, // function display_select_categories will use the given CSS class for each // option $cats_true = array();
// | Check Access and exit when user status is not ok | // +-----------------------------------------------------------------------+ check_status(ACCESS_ADMINISTRATOR); // +-----------------------------------------------------------------------+ // | Load configuration | // +-----------------------------------------------------------------------+ $upload_form_config = get_upload_form_config(); // +-----------------------------------------------------------------------+ // | Tabs | // +-----------------------------------------------------------------------+ if (isset($_GET['section'])) { $page['tab'] = $_GET['section']; // backward compatibility if ('ploader' == $page['tab']) { $page['tab'] = 'applications'; } } else { $page['tab'] = 'direct'; } $tabsheet = new tabsheet(); $tabsheet->set_id('photos_add'); $tabsheet->select($page['tab']); $tabsheet->assign(); // +-----------------------------------------------------------------------+ // | template init | // +-----------------------------------------------------------------------+ $template->set_filenames(array('photos_add' => 'photos_add_' . $page['tab'] . '.tpl')); // +-----------------------------------------------------------------------+ // | Load the tab | // +-----------------------------------------------------------------------+ include PHPWG_ROOT_PATH . 'admin/photos_add_' . $page['tab'] . '.php';
// | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ if (!defined("PHPWG_ROOT_PATH")) { die("Hacking attempt!"); } include_once PHPWG_ROOT_PATH . 'admin/include/functions.php'; // +-----------------------------------------------------------------------+ // | tabs | // +-----------------------------------------------------------------------+ include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $my_base_url = get_root_url() . 'admin.php?page='; $tabsheet = new tabsheet(); $tabsheet->set_id('groups'); $tabsheet->select('group_list'); $tabsheet->assign(); // +-----------------------------------------------------------------------+ // | Check Access and exit when user status is not ok | // +-----------------------------------------------------------------------+ check_status(ACCESS_ADMINISTRATOR); if (!empty($_POST) or isset($_GET['delete']) or isset($_GET['toggle_is_default'])) { check_pwg_token(); } // +-----------------------------------------------------------------------+ // | add a group | // +-----------------------------------------------------------------------+ if (isset($_POST['submit_add'])) { if (empty($_POST['groupname'])) { $page['errors'][] = l10n('The name of a group must not contain " or \' or be empty.');
if (!isset($_REQUEST['start']) or !is_numeric($_REQUEST['start']) or $_REQUEST['start'] < 0 or isset($_REQUEST['display']) and 'all' == $_REQUEST['display']) { $page['start'] = 0; } else { $page['start'] = $_REQUEST['start']; } // +-----------------------------------------------------------------------+ // | Tabs | // +-----------------------------------------------------------------------+ $manager_link = get_root_url() . 'admin.php?page=batch_manager&mode='; if (isset($_GET['mode'])) { $page['tab'] = $_GET['mode']; } else { $page['tab'] = 'global'; } $tabsheet = new tabsheet(); $tabsheet->set_id('batch_manager'); $tabsheet->select($page['tab']); $tabsheet->assign(); // +-----------------------------------------------------------------------+ // | dimensions | // +-----------------------------------------------------------------------+ $widths = array(); $heights = array(); $ratios = array(); $dimensions = array(); // get all width, height and ratios $query = ' SELECT DISTINCT width, height FROM ' . IMAGES_TABLE . ' WHERE width IS NOT NULL
// | the Free Software Foundation | // | | // | This program is distributed in the hope that it will be useful, but | // | WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | // | General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ if (!defined("PHPWG_ROOT_PATH")) { die("Hacking attempt!"); } include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $my_base_url = get_root_url() . 'admin.php?page=languages'; if (isset($_GET['tab'])) { $page['tab'] = $_GET['tab']; } else { $page['tab'] = 'installed'; } $tabsheet = new tabsheet(); $tabsheet->set_id('languages'); $tabsheet->select($page['tab']); $tabsheet->assign(); if ($page['tab'] == 'update') { include PHPWG_ROOT_PATH . 'admin/updates_ext.php'; } else { include PHPWG_ROOT_PATH . 'admin/languages_' . $page['tab'] . '.php'; }
<?php defined('LDAP_LOGIN_PATH') or die('Hacking attempt!'); global $template, $page, $conf; // get current tab $page['tab'] = isset($_GET['tab']) ? $_GET['tab'] : ($page['tab'] = 'configuration'); // tabsheet include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; $tabsheet = new tabsheet(); $tabsheet->set_id('ldap_login'); $tabsheet->add('configuration', l10n('Configuration'), LDAP_LOGIN_ADMIN . '-configuration'); $tabsheet->add('newusers', l10n('New users when ldap auth is successfull'), LDAP_LOGIN_ADMIN . '-newusers'); $tabsheet->select($page['tab']); $tabsheet->assign(); // include page include LDAP_LOGIN_PATH . 'admin/' . $page['tab'] . '.php'; // template vars $template->assign('LDAP_LOGIN_PATH', get_root_url() . LDAP_LOGIN_PATH);