本文整理汇总了PHP中simple_set_toggle函数的典型用法代码示例。如果您正苦于以下问题:PHP simple_set_toggle函数的具体用法?PHP simple_set_toggle怎么用?PHP simple_set_toggle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了simple_set_toggle函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: simple_set_configs
/**
* Store or update an array of values
* @param $pArray an array of values to set
* @param $pPackageName name of the package the feature belongs to
* @return none
*/
function simple_set_configs($pArray, $pPackageName = NULL)
{
foreach ($pArray as $item => $data) {
if ($data['type'] == 'numeric') {
simple_set_int($item, $pPackageName);
} elseif ($data['type'] == 'toggle') {
simple_set_toggle($item, $pPackageName);
} elseif ($data['type'] == 'input') {
simple_set_value($item, $pPackageName);
}
}
}
示例2: array
<?php
/**
* @version $Header$
*
* @author lsces
* @package nlpg
* @subpackage functions
*/
/**
* required setup
*/
$formNlpgDisplayOptions = array("nlpg_maplink" => array('label' => 'Include links to map pages', 'note' => 'Expand coordinate displays to include links to map packages. The maps packagas available are defined separatly.', 'type' => 'toggle'), "nlpg_default_ordering" => array('label' => 'Initial ordering of results', 'note' => 'Used to supply the initial display ordering.', 'type' => 'input'));
$gBitSmarty->assign('formNlpgDisplayOptions', $formNlpgDisplayOptions);
$formNlpgFeatureOptions = array("nlpg_edit" => array('label' => 'On-line editing', 'note' => 'Enable on-line edit pages for NLPG information. Additional to edit permission controls to allow finer management.', 'type' => 'toggle'));
$gBitSmarty->assign('formNlpgFeatureOptions', $formNlpgFeatureOptions);
if (!empty($_REQUEST['nlpg_preferences'])) {
$nlpg_opt = array_merge($formNlpgDisplayOptions, $formNlpgFeatureOptions);
foreach ($nlpg_opt as $item => $data) {
if ($data['type'] == 'numeric') {
simple_set_int($item, NLPG_PKG_NAME);
} elseif ($data['type'] == 'toggle') {
simple_set_toggle($item, NLPG_PKG_NAME);
} elseif ($data['type'] == 'input') {
simple_set_value($item, NLPG_PKG_NAME);
}
}
}
示例3: check_ticket
if (isset($_REQUEST['mvimg']) && isset($_REQUEST['move_gallery'])) {
check_ticket('admin-inc-gal');
if ($_REQUEST['mvimg'] == 'to_fs' && $prefs['gal_use_db'] == 'n' || $_REQUEST['mvimg'] == 'to_db' && $prefs['gal_use_db'] == 'y') {
$mvresult = $imagegallib->move_gallery_store($_REQUEST['move_gallery'], $_REQUEST['mvimg']);
$mvmsg = sprintf(tra('moved %d images, %d errors occurred.'), $mvresult['moved_images'], $mvresult['errors']);
if ($mvresult['timeout']) {
$mvmsg .= ' ' . tra('a timeout occurred. Hit the reload button to move the rest');
}
$tikifeedback[]['mes'] = $mvmsg;
}
}
if (isset($_REQUEST['imagegallistprefs'])) {
check_ticket('admin-inc-gal');
$pref_toggles = array('gal_list_name', 'gal_list_parent', 'gal_list_description', 'gal_list_created', 'gal_list_lastmodif', 'gal_list_user', 'gal_list_imgs', 'gal_list_visits');
foreach ($pref_toggles as $toggle) {
simple_set_toggle($toggle);
}
}
if (isset($_REQUEST['imagegalcomprefs'])) {
check_ticket('admin-inc-gal');
simple_set_value('image_galleries_comments_per_page');
simple_set_value('image_galleries_comments_default_order');
}
if (isset($_REQUEST['mvimg']) && isset($_REQUEST['move_gallery'])) {
check_ticket('admin-inc-gal');
if ($_REQUEST['mvimg'] == 'to_fs' && $prefs['gal_use_db'] == 'n' || $_REQUEST['mvimg'] == 'to_db' && $prefs['gal_use_db'] == 'y') {
$mvresult = $imagegallib->move_gallery_store($_REQUEST['move_gallery'], $_REQUEST['mvimg']);
$mvmsg = sprintf(tra('moved %d images, %d errors occurred.'), $mvresult['moved_images'], $mvresult['errors']);
if ($mvresult['timeout']) {
$mvmsg .= ' ' . tra('a timeout occurred. Hit the reload button to move the rest');
}
示例4: simple_set_value
simple_set_value('fgal_list_last_user');
simple_set_value('fgal_list_comment');
simple_set_value('fgal_list_files');
simple_set_value('fgal_list_hits');
simple_set_value('fgal_list_lastDownload');
simple_set_value('fgal_list_deleteAfter');
simple_set_value('fgal_show_checked');
simple_set_value('fgal_list_share');
simple_set_value('fgal_list_lockedby');
$_REQUEST['fgal_sort_mode'] = (empty($_REQUEST['fgal_sortorder']) ? 'created' : $_REQUEST['fgal_sortorder']) . '_' . (empty($_REQUEST['fgal_sortdirection']) ? 'desc' : $_REQUEST['fgal_sortdirection']);
$prefs['fgal_sort_mode'] = $_REQUEST['fgal_sort_mode'];
simple_set_value('fgal_sort_mode');
simple_set_toggle('fgal_show_explorer');
simple_set_toggle('fgal_show_path');
simple_set_toggle('fgal_show_slideshow');
simple_set_toggle('fgal_list_ratio_hits');
simple_set_value('fgal_default_view');
simple_set_value('fgal_icon_fileId');
simple_set_value('fgal_list_backlinks');
simple_set_value('fgal_list_id_admin');
simple_set_value('fgal_list_type_admin');
simple_set_value('fgal_list_name_admin');
simple_set_value('fgal_list_description_admin');
simple_set_value('fgal_list_size_admin');
simple_set_value('fgal_list_created_admin');
simple_set_value('fgal_list_lastModif_admin');
simple_set_value('fgal_list_creator_admin');
simple_set_value('fgal_list_author_admin');
simple_set_value('fgal_list_last_user_admin');
simple_set_value('fgal_list_comment_admin');
simple_set_value('fgal_list_files_admin');
示例5: header
<?php
// $Id: /cvsroot/tikiwiki/tiki/tiki-admin_include_messages.php,v 1.1.2.1 2008-03-16 17:43:14 luciash Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
header("location: index.php");
exit;
}
if (isset($_REQUEST["messagesprefs"])) {
ask_ticket('admin-inc-messages');
simple_set_value('messu_mailbox_size');
simple_set_value('messu_archive_size');
simple_set_value('messu_sent_size');
simple_set_toggle('allowmsg_is_optional');
simple_set_toggle('allowmsg_by_default');
}
示例6: check_ticket
$access->display_error(basename(__FILE__), $msg);
}
$adminlib->restore_tag($_REQUEST['tagname']);
}
if (isset($_REQUEST['removetag'])) {
check_ticket('admin-inc-wiki');
// Check existance
$adminlib->remove_tag($_REQUEST['tagname']);
}
if (isset($_REQUEST['rmvunusedpic'])) {
check_ticket('admin-inc-wiki');
$adminlib->remove_unused_pictures();
}
if (isset($_REQUEST['wikidiscussprefs'])) {
check_ticket('admin-inc-wiki');
simple_set_toggle('feature_wiki_discuss');
simple_set_value('wiki_forum_id');
}
if (isset($_REQUEST['wikifeatures'])) {
check_ticket('admin-inc-wiki');
if (isset($_REQUEST['feature_backlinks']) && $_REQUEST['feature_backlinks'] == 'on' && $prefs['feature_backlinks'] == 'y' || empty($_REQUEST['feature_backlinks']) && $prefs['feature_backlinks'] == 'y') {
$backlinksChange = true;
}
if (isset($backlinksChange) && $backlinksChange) {
global $wikilib;
include_once 'lib/wiki/wikilib.php';
$wikilib->refresh_backlinks();
}
}
if (isset($_REQUEST['wikiset3d'])) {
check_ticket('admin-inc-wiki');
示例7: array
<?php
require_once '../../../kernel/setup_inc.php';
include_once KERNEL_PKG_PATH . 'simple_form_functions_lib.php';
$gBitSystem->verifyPermission('p_admin');
$feedback = array();
$pdfSettings = array('pdf2swf_path' => array('label' => 'Path to pdf2swf', 'note' => 'Path to the pdf2swf executable.', 'type' => 'text'), 'swfcombine_path' => array('label' => 'Path to swfcombine', 'note' => 'Path to the swfcombine executable.', 'type' => 'text'), 'mwconvert_path' => array('label' => 'Path to ImageMagick convert', 'note' => 'Path to the ImageMagick convert executable.', 'type' => 'text'), 'pdf_thumbnails' => array('label' => 'PDF Upload Thumbnails', 'note' => 'Create thumbnails for PDF uploads.', 'type' => 'checkbox'));
if (function_exists('shell_exec')) {
$pdfSettings['pdf2swf_path']['default'] = shell_exec('which pdf2swf');
$pdfSettings['swfcombine_path']['default'] = shell_exec('which swfcombine');
$pdfSettings['mwconvert_path']['default'] = shell_exec('which convert');
} else {
$feedback['error'] = "You can not execute binaries on your server. You can not make use of this plugin.";
}
$gBitSmarty->assign('pdfSettings', $pdfSettings);
if (!empty($_REQUEST['plugin_settings'])) {
foreach ($pdfSettings as $item => $data) {
if ($data['type'] == 'checkbox') {
simple_set_toggle($item, LIBERTY_PKG_NAME);
} elseif ($data['type'] == 'numeric') {
simple_set_int($item, LIBERTY_PKG_NAME);
} else {
simple_set_value($item, LIBERTY_PKG_NAME);
}
}
$feedback['success'] = tra('The plugin was successfully updated');
}
$gBitSmarty->assign('feedback', $feedback);
$gBitSystem->display('bitpackage:liberty/mime/pdf/adminx.tpl', tra('PDF Plugin Settings'), array('display_mode' => 'admin'));
示例8: array
}
$gBitSmarty->assign('numbers', $numbers);
// allow selection of what packages can have ratings
$exclude = array('bituser', 'tikisticky', 'pigeonholes');
foreach ($gLibertySystem->mContentTypes as $cType) {
if (!in_array($cType['content_type_guid'], $exclude)) {
$formRatable['guids']['stars_rate_' . $cType['content_type_guid']] = $gLibertySystem->getContentTypeName($cType['content_type_guid']);
}
}
if (!empty($_REQUEST['stars_preferences'])) {
$stars = array_merge($formStarsOptions, $formStarsWeight);
foreach ($stars as $item => $data) {
if ($data['type'] == 'numeric') {
simple_set_int($item, STARS_PKG_NAME);
} elseif ($data['type'] == 'toggle') {
simple_set_toggle($item, STARS_PKG_NAME);
} elseif ($data['type'] == 'input') {
simple_set_value($item, STARS_PKG_NAME);
}
simple_set_int('stars_icon_width', STARS_PKG_NAME);
simple_set_int('stars_icon_height', STARS_PKG_NAME);
simple_set_value('stars_rating_names', STARS_PKG_NAME);
}
foreach (array_keys($formRatable['guids']) as $ratable) {
$gBitSystem->storeConfig($ratable, !empty($_REQUEST['ratable_content']) && in_array($ratable, $_REQUEST['ratable_content']) ? 'y' : NULL, STARS_PKG_NAME);
}
}
if (!empty($_REQUEST['recalculate'])) {
$stars = new LibertyStars();
if ($stars->reCalculateRating()) {
$feedback['success'] = tra('All ratings have been brought up to speed.');
示例9: array
<?php
$formFckeditorFeatures = array("fckeditor_custom_config" => array('label' => 'Custom Config File', 'note' => 'If enabled, a custom configuration is included, either <kbd>' . CONFIG_PKG_DIR . '/themes/<current-style>/fckeditor/fckconfig.custom.js</kbd>, or <kbd>' . FCKEDITOR_PKG_DIR . '/fckconfig.custom.js</kbd>. It may be a modified copy of <kbd>jscripts/fckconfig.js</kbd> or of <kbd>fckconfig.bitweaver.js</kbd>. Depending on the modifications, a few of the settings below might not work anymore as expected (e.g., toolbar or skin settings).'), "fckeditor_debug" => array('label' => 'Enabled debugging', 'note' => 'Enable support for debug message output. On first debug message a window will pop up.'), "fckeditor_on_click" => array('label' => 'Load FCKEditor on Click', 'note' => 'Delay loading the FCKEditor until the user clicks on the text area.'), "fckeditor_ask" => array('label' => 'Ask to use FCKEditor', 'note' => 'If set the user will be prompted if they want to use FCKEditor for a given textbox. This option implies Load FCKEditor on Click even if it is not set.'));
// Toolbars
$gBitSmarty->assign('formFckeditorFeatures', $formFckeditorFeatures);
$formToolbars = array('fckedit_toolbars' => array('label' => 'Toolbar Set', 'note' => 'The toolbar set to use. "All" includes functionality not supported by Bitweaver. Use at your own risk!'));
$gBitSmarty->assign('formToolbars', $formToolbars);
$gBitSmarty->assign('formToolbarChoices', array('Basic', 'Beginner', 'Intermediate', 'Advanced', 'Supported', 'All'));
// Skin
$formSkin = array('fckedit_skin' => array('label' => 'Skin', 'note' => 'The skin to use.'));
$gBitSmarty->assign('formSkin', $formSkin);
$gBitSmarty->assign('formSkinChoices', array('default', 'silver', 'office2003'));
if (!empty($_REQUEST['change_prefs'])) {
foreach ($formFckeditorFeatures as $item => $data) {
simple_set_toggle($item, FCKEDITOR_PKG_NAME);
}
$fckeditorSets = array_merge($formToolbars, $formSkin);
foreach ($fckeditorSets as $item => $data) {
simple_set_value($item, FCKEDITOR_PKG_NAME);
}
}
示例10: simple_set_value
simple_set_value('fgal_list_description');
simple_set_value('fgal_list_size');
simple_set_value('fgal_list_created');
simple_set_value('fgal_list_lastmodif');
simple_set_value('fgal_list_creator');
simple_set_value('fgal_list_author');
simple_set_value('fgal_list_last_user');
simple_set_value('fgal_list_comment');
simple_set_value('fgal_list_files');
simple_set_value('fgal_list_hits');
simple_set_value('fgal_list_lockedby');
$_REQUEST['fgal_sort_mode'] = (empty($_REQUEST['fgal_sortorder']) ? 'created' : $_REQUEST['fgal_sortorder']) . '_' . (empty($_REQUEST['fgal_sortdirection']) ? 'desc' : $_REQUEST['fgal_sortdirection']);
$prefs['fgal_sort_mode'] = $_REQUEST['fgal_sort_mode'];
simple_set_value('fgal_sort_mode');
simple_set_toggle('fgal_show_explorer');
simple_set_toggle('fgal_show_path');
}
if (isset($_REQUEST["filegalcomprefs"])) {
check_ticket('admin-inc-fgal');
simple_set_value("file_galleries_comments_per_page");
simple_set_value("file_galleries_comments_default_ordering");
}
if (isset($_REQUEST["filegalhandlers"])) {
check_ticket('admin-inc-fgal');
$mimes = $_REQUEST["mimes"];
foreach ($mimes as $mime => $cmd) {
if (empty($cmd)) {
$filegallib->delete_file_handler($mime);
} else {
$filegallib->change_file_handler($mime, $cmd);
}
示例11: array
$formRSSFeeds[$pkg . '_rss'] = array('label' => $pkg);
}
}
$gBitSmarty->assign("formRSSFeeds", $formRSSFeeds);
$formRSSSettings = array('rssfeed_language' => array('label' => 'Language'), 'rssfeed_creator' => array('label' => 'Creator'), 'rssfeed_editor' => array('label' => 'Editor', 'note' => 'Email address for person responsible for editorial content. For RDF 2.0'), 'rssfeed_webmaster' => array('label' => 'Webmaster', 'note' => 'Email address for person responsible for technical issues relating to channel. For RDF 2.0'), 'rssfeed_image_url' => array('label' => 'Image URL', 'note' => 'Enter the full URL to an image that you want to associate with your RSS channels'), 'rssfeed_css_url' => array('label' => 'CSS File URL', 'note' => 'Enter the full URL to a CSS file you want to use to style your RSS Feeds.'), 'rssfeed_truncate' => array('label' => 'Truncate RSS feed', 'note' => 'Enter the number of characters you want to feed per item in the rss feeds. Default is 5000 characters.'));
$gBitSmarty->assign("formRSSSettings", $formRSSSettings);
$formRSSOptions = array('rssfeed_httpauth' => array('label' => 'Enable HTTP Authentication', 'note' => 'Use HTTP Authentication with SSL to enable Registered Users to gain access to Private Content Feeds.'));
$gBitSmarty->assign("formRSSOptions", $formRSSOptions);
$cacheTimes = array(0 => tra("(no cache)"), 60 => "1 " . tra("minute"), 300 => "5 " . tra("minutes"), 600 => "10 " . tra("minutes"), 1800 => "30 " . tra("minutes"), 3600 => "1 " . tra("hour"), 7200 => "2 " . tra("hours"), 14400 => "4 " . tra("hours"));
$gBitSmarty->assign("cacheTimes", $cacheTimes);
$feedTypes = array(0 => "RSS 0.91", 1 => "RSS 1.0", 2 => "RSS 2.0", 3 => "PIE 0.1", 4 => "MBOX", 5 => "ATOM", 6 => "ATOM 0.3", 7 => "OPML", 8 => "HTML", 9 => "JS");
$gBitSmarty->assign("feedTypes", $feedTypes);
if (!empty($_REQUEST['feed_settings'])) {
// save package specific RSS feed settings
foreach (array_keys($formRSSFeeds) as $item) {
$package = preg_replace("/^rss_/", "", $item);
simple_set_toggle($item, $package);
simple_set_int($item . '_max_records', $package);
simple_set_value($item . '_title', $package);
simple_set_value($item . '_description', $package);
}
// deal with the RSS settings
foreach (array_keys($formRSSSettings) as $item) {
simple_set_value($item, RSS_PKG_NAME);
}
simple_set_value('rssfeed_default_version');
simple_set_int('rssfeed_cache_time');
foreach ($formRSSOptions as $item => $data) {
simple_set_toggle($item, RSS_PKG_NAME);
}
}
示例12: count
<?php
// $Header$
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See below for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.
$usersList = $gBitUser->getSelectionList();
$gBitSmarty->assign('usersList', count($usersList) < 50 ? $usersList : NULL);
if (!empty($_REQUEST['anonymous_settings'])) {
simple_set_toggle("messages_site_contact", MESSAGES_PKG_NAME);
simple_set_value("messages_contact_user", MESSAGES_PKG_NAME);
}
$gBitSystem->setHelpInfo('Features', 'Settings', 'Help with the features settings');
示例13: array
$extendedHeader = array('site_header_extended_nav' => array('label' => 'Enable Header Navigation', 'note' => 'This feature will add a number of useful links to the <head> section. These will help improve accessibility on this site.', 'type' => 'checkbox'), 'site_header_help' => array('label' => 'Help Link', 'note' => 'Enter the URL of where you want the help link to point to.', 'type' => 'text'), 'site_header_index' => array('label' => 'Site Index', 'note' => 'This URL should point to a site index of your website.', 'type' => 'text'), 'site_header_contents' => array('label' => 'Site Contents', 'note' => 'This URL should point to a site map of your website.', 'type' => 'text'), 'site_header_copyright' => array('label' => 'Site Copyright', 'note' => 'This link should point to a page with copyright information.', 'type' => 'text'), 'site_header_glossary' => array('label' => 'Site Glossary', 'note' => 'This link should point to a page with a glossary of terms.', 'type' => 'text'));
$gBitSmarty->assign('extendedHeader', $extendedHeader);
$formMisc = array('site_direct_pagination' => array('label' => 'Use direct pagination links', 'note' => 'Use direct pagination links instead of the small pagination box. Links are cleverly generated depending on the number of pages available.'), 'site_output_obzip' => array('label' => 'Use gzipped output', 'note' => 'Send gzip compressed data via PHP\'s output compression to browsers that support it. This feature will reduce download times and bandwidth consumption. Use it only if your server has no such mechanism enabled already (e.g., Apache\'s output compression).'), 'users_count_admin_pageviews' => array('label' => 'Count admin pageviews', 'note' => ''));
$gBitSmarty->assign('formMisc', $formMisc);
if (!empty($_REQUEST['change_prefs'])) {
$featureToggles = array_merge($formBit, $formHelp, $formMisc, $extendedHeader);
foreach ($featureToggles as $item => $info) {
if (empty($info['type']) || $info['type'] == 'checkbox') {
simple_set_toggle($item, KERNEL_PKG_NAME);
} elseif ($info['type'] == 'text') {
simple_set_value($item, KERNEL_PKG_NAME);
}
}
$simpleValues = array("max_records", "site_url_index");
foreach ($simpleValues as $svitem) {
simple_set_value($svitem, KERNEL_PKG_NAME);
}
simple_set_toggle('site_display_reltime', KERNEL_PKG_NAME);
// Special handling for tied fields: bit_index and site_url_index
if (!empty($_REQUEST["site_url_index"]) && $_REQUEST["bit_index"] == 'users_custom_home') {
$_REQUEST["bit_index"] = $_REQUEST["site_url_index"];
}
$refValue = array("site_long_date_format", "site_long_time_format", "site_short_date_format", "site_short_time_format", "site_long_datetime_format", "site_short_datetime_format", "bit_index");
foreach ($refValue as $britem) {
byref_set_value($britem, "", KERNEL_PKG_NAME);
}
}
if (defined('ROLE_MODEL')) {
$gBitSmarty->assign("role_model", TRUE);
}
$gBitSystem->setHelpInfo('Features', 'Settings', 'Help with the features settings');
示例14: simple_set_value
if (isset($_REQUEST['new']) and is_array($_REQUEST['new']) and $_REQUEST['new']['name']) {
$new["{$_REQUEST['new']['name']}"] = $_REQUEST['new'];
$_REQUEST['interlist'] += $new;
}
simple_set_value('interlist');
simple_set_value('tiki_key');
simple_set_value('feature_intertiki_mymaster');
simple_set_toggle('feature_intertiki_sharedcookie');
simple_set_toggle('feature_intertiki_import_preferences');
simple_set_toggle('feature_intertiki_import_groups');
simple_set_value('feature_intertiki_imported_groups');
}
if (isset($_REQUEST["intertikiserver"])) {
check_ticket('admin-inc-intertiki');
simple_set_toggle('feature_intertiki_sharedcookie');
simple_set_toggle('feature_intertiki_server');
simple_set_value('intertiki_logfile');
simple_set_value('intertiki_errfile');
if (isset($_REQUEST['newhost']) and is_array($_REQUEST['newhost']) and $_REQUEST['newhost']['key']) {
$newhost["{$_REQUEST['newhost']['key']}"] = $_REQUEST['newhost'];
$_REQUEST['known_hosts'] += $newhost;
}
if (!empty($_REQUEST['known_hosts'])) {
foreach ($_REQUEST['known_hosts'] as $k => $v) {
if (isset($_REQUEST['known_hosts'][$k]['allowusersregister'])) {
$_REQUEST['known_hosts'][$k]['allowusersregister'] = 'y';
}
if (empty($_REQUEST['known_hosts'][$k]['name']) && empty($_REQUEST['known_hosts'][$k]['key']) && empty($_REQUEST['known_hosts'][$k]['ip']) && empty($_REQUEST['known_hosts'][$k]['contact'])) {
unset($_REQUEST['known_hosts'][$k]);
}
}
示例15: header
<?php
// $Id: /cvsroot/tikiwiki/tiki/tiki-admin_include_faqs.php,v 1.12 2007-03-06 19:29:45 sylvieg Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
header("location: index.php");
exit;
}
if (isset($_REQUEST["faqcomprefs"])) {
check_ticket('admin-inc-faqs');
simple_set_value('faq_comments_per_page');
simple_set_toggle('feature_faq_comments');
simple_set_value('faq_comments_default_ordering');
simple_set_value('faq_prefix');
}
ask_ticket('admin-inc-faqs');