/** * Show the configuration edit form * @param string The URL option */ function showconfig($option) { global $database, $mosConfig_absolute_path, $mosConfig_editor; $row = new mosConfig(); $row->bindGlobals(); // compile list of the languages $langs = array(); $menuitems = array(); $lists = array(); // PRE-PROCESS SOME LISTS // -- Languages -- if ($handle = opendir($mosConfig_absolute_path . '/language/')) { $i = 0; while (false !== ($file = readdir($handle))) { if (!strcasecmp(substr($file, -4), ".php") && $file != "." && $file != ".." && strcasecmp(substr($file, -11), ".ignore.php")) { $langs[] = mosHTML::makeOption(substr($file, 0, -4)); } } } // sort list of languages sort($langs); reset($langs); // -- Editors -- // compile list of the editors $query = "SELECT element AS value, name AS text" . "\n FROM #__mambots" . "\n WHERE folder = 'editors'" . "\n AND published = 1" . "\n ORDER BY ordering, name"; $database->setQuery($query); $edits = $database->loadObjectList(); // -- Show/Hide -- $show_hide = array(mosHTML::makeOption(1, 'Ocultar'), mosHTML::makeOption(0, 'Exibir')); $show_hide_r = array(mosHTML::makeOption(0, 'Ocultar'), mosHTML::makeOption(1, 'Exibir')); // -- menu items -- $query = "SELECT id AS value, name AS text FROM #__menu" . "\n WHERE ( type='content_section' OR type='components' OR type='content_typed' )" . "\n AND published = 1" . "\n AND access = 0" . "\n ORDER BY name"; $database->setQuery($query); $menuitems = array_merge($menuitems, $database->loadObjectList()); // SITE SETTINGS $lists['offline'] = mosHTML::yesnoRadioList('config_offline', 'class="inputbox"', $row->config_offline); if (!$row->config_editor) { $row->config_editor = ''; } // build the html select list $lists['editor'] = mosHTML::selectList($edits, 'config_editor', 'class="inputbox" size="1"', 'value', 'text', $row->config_editor); $listLimit = array(mosHTML::makeOption(5, 5), mosHTML::makeOption(10, 10), mosHTML::makeOption(15, 15), mosHTML::makeOption(20, 20), mosHTML::makeOption(25, 25), mosHTML::makeOption(30, 30), mosHTML::makeOption(50, 50)); $lists['list_limit'] = mosHTML::selectList($listLimit, 'config_list_limit', 'class="inputbox" size="1"', 'value', 'text', $row->config_list_limit ? $row->config_list_limit : 50); $lists['frontend_login'] = mosHTML::yesnoRadioList('config_frontend_login', 'class="inputbox"', $row->config_frontend_login); // DEBUG $lists['debug'] = mosHTML::yesnoRadioList('config_debug', 'class="inputbox"', $row->config_debug); // DATABASE SETTINGS // SERVER SETTINGS $lists['gzip'] = mosHTML::yesnoRadioList('config_gzip', 'class="inputbox"', $row->config_gzip); $session = array(mosHTML::makeOption(0, 'Nivel 3 segurança - Padrão & Mais Alto'), mosHTML::makeOption(1, 'Nivel 2 segurança - Permite IPs com proxy'), mosHTML::makeOption(2, 'Nivel 1 segurança - Modo Compatível')); $lists['session_type'] = mosHTML::selectList($session, 'config_session_type', 'class="inputbox" size="1"', 'value', 'text', $row->config_session_type); $errors = array(mosHTML::makeOption(-1, 'Padrão do Sistema'), mosHTML::makeOption(0, 'Nenhum'), mosHTML::makeOption(E_ERROR | E_WARNING | E_PARSE, 'Simples'), mosHTML::makeOption(E_ALL, 'Máximo')); $lists['error_reporting'] = mosHTML::selectList($errors, 'config_error_reporting', 'class="inputbox" size="1"', 'value', 'text', $row->config_error_reporting); $lists['admin_expired'] = mosHTML::yesnoRadioList('config_admin_expired', 'class="inputbox"', $row->config_admin_expired); // LOCALE SETTINGS $lists['lang'] = mosHTML::selectList($langs, 'config_lang', 'class="inputbox" size="1"', 'value', 'text', $row->config_lang); $timeoffset = array(mosHTML::makeOption(-12, '(UTC -12:00) Linha Internacional de Mudança de data'), mosHTML::makeOption(-11, '(UTC -11:00) Ilhas Midway, Samoa'), mosHTML::makeOption(-10, '(UTC -10:00) Havai'), mosHTML::makeOption(-9.5, '(UTC -09:30) Taiohae, Ilhas Marquesas'), mosHTML::makeOption(-9, '(UTC -09:00) Alasca'), mosHTML::makeOption(-8, '(UTC -08:00) Hora do Pacífico (EUA & Canadá))'), mosHTML::makeOption(-7, '(UTC -07:00) Hora das Regiões Montanhosas (Hora do Pacífico (EUA & Canadá))'), mosHTML::makeOption(-6, '(UTC -06:00) Hora Central (EUA & Canadá), Cidade do México'), mosHTML::makeOption(-5, '(UTC -05:00) Hora do Leste (EUA & Canadá), Bogotá, Lima'), mosHTML::makeOption(-4, '(UTC -04:00) Hora do Atlântico (Canadá), Caracas, La Paz'), mosHTML::makeOption(-3.5, '(UTC -03:30) St. John, Newfoundland e Labrador'), mosHTML::makeOption(-3, '(UTC -03:00) Brasil, Buenos Aires, Georgetown'), mosHTML::makeOption(-2, '(UTC -02:00) Atlântico Central'), mosHTML::makeOption(-1, '(UTC -01:00 hour) Açores, Cabo Verde'), mosHTML::makeOption(0, '(UTC 00:00) Meridiano de Greenwich, Lisboa, Londres, Casablanca'), mosHTML::makeOption(1, '(UTC +01:00 hour) Amesterdão, Berlim, Bruxelas, Copenhaga, Madrid, Paris'), mosHTML::makeOption(2, '(UTC +02:00) Jerusalém, Kalininegrado, África do Sul'), mosHTML::makeOption(3, '(UTC +03:00) Bagdade, Riade, Moscovo, São Petersburgo'), mosHTML::makeOption(3.5, '(UTC +03:30) Teerão'), mosHTML::makeOption(4, '(UTC +04:00) Abu Dhabi, Muscat, Baku, Tbilisi'), mosHTML::makeOption(4.5, '(UTC +04:30) Cabul'), mosHTML::makeOption(5, '(UTC +05:00) Ekaterimburgo, Islamabad, Karachi, Tashkent'), mosHTML::makeOption(5.5, '(UTC +05:30) Bombaim, Calcutá, Madras, Nova Deli'), mosHTML::makeOption(5.75, '(UTC +05:45) Catmandu'), mosHTML::makeOption(6, '(UTC +06:00) Almaty, Dhaka, Colombo'), mosHTML::makeOption(6.5, '(UTC +06:30) Yagoon'), mosHTML::makeOption(7, '(UTC +07:00) Banguecoque, Hanói, Jacarta'), mosHTML::makeOption(8, '(UTC +08:00) Pequim, Perth, Singapura, Hong Kong'), mosHTML::makeOption(8.75, '(UTC +08:45) Austrália Ocidental'), mosHTML::makeOption(9, '(UTC +09:00) Tóquio, Seul, Osaka, Sapporo, Yakutsk'), mosHTML::makeOption(9.5, '(UTC +09:30) Adelaide, Darwin, Yakutsk'), mosHTML::makeOption(10, '(UTC +10:00) Leste Australiano, Guam, Vladivostoque'), mosHTML::makeOption(10.5, '(UTC +10:30) Ilha de Lord Howe (Australia)'), mosHTML::makeOption(11, '(UTC +11:00) Magadã, Ilhas de Salomão, Nova Caledónia'), mosHTML::makeOption(11.5, '(UTC +11:30) Ilha de Norfolk'), mosHTML::makeOption(12, '(UTC +12:00) Auckland, Wellington, Fiji, Kamchatka'), mosHTML::makeOption(12.75, '(UTC +12:45) Ilha de Chatham'), mosHTML::makeOption(13, '(UTC +13:00) Tonga'), mosHTML::makeOption(14, '(UTC +14:00) Kiribati')); $lists['offset'] = mosHTML::selectList($timeoffset, 'config_offset_user', 'class="inputbox" size="1"', 'value', 'text', $row->config_offset_user); // MAIL SETTINGS $mailer = array(mosHTML::makeOption('mail', 'Função mail do PHP'), mosHTML::makeOption('sendmail', 'Servidor Sendmail'), mosHTML::makeOption('smtp', 'Servidor SMTP')); $lists['mailer'] = mosHTML::selectList($mailer, 'config_mailer', 'class="inputbox" size="1"', 'value', 'text', $row->config_mailer); $lists['smtpauth'] = mosHTML::yesnoRadioList('config_smtpauth', 'class="inputbox"', $row->config_smtpauth); // CACHE SETTINGS $lists['caching'] = mosHTML::yesnoRadioList('config_caching', 'class="inputbox"', $row->config_caching); // USER SETTINGS $lists['allowUserRegistration'] = mosHTML::yesnoRadioList('config_allowUserRegistration', 'class="inputbox"', $row->config_allowUserRegistration); $lists['useractivation'] = mosHTML::yesnoRadioList('config_useractivation', 'class="inputbox"', $row->config_useractivation); $lists['uniquemail'] = mosHTML::yesnoRadioList('config_uniquemail', 'class="inputbox"', $row->config_uniquemail); $lists['shownoauth'] = mosHTML::yesnoRadioList('config_shownoauth', 'class="inputbox"', $row->config_shownoauth); $lists['frontend_userparams'] = mosHTML::yesnoRadioList('config_frontend_userparams', 'class="inputbox"', $row->config_frontend_userparams); // META SETTINGS $lists['MetaAuthor'] = mosHTML::yesnoRadioList('config_MetaAuthor', 'class="inputbox"', $row->config_MetaAuthor); $lists['MetaTitle'] = mosHTML::yesnoRadioList('config_MetaTitle', 'class="inputbox"', $row->config_MetaTitle); // STATISTICS SETTINGS $lists['log_searches'] = mosHTML::yesnoRadioList('config_enable_log_searches', 'class="inputbox"', $row->config_enable_log_searches); $lists['enable_stats'] = mosHTML::yesnoRadioList('config_enable_stats', 'class="inputbox"', $row->config_enable_stats); $lists['log_items'] = mosHTML::yesnoRadioList('config_enable_log_items', 'class="inputbox"', $row->config_enable_log_items); // SEO SETTINGS $lists['sef'] = mosHTML::yesnoRadioList('config_sef', 'class="inputbox" onclick="javascript: if (document.adminForm.config_sef[1].checked) { alert(\'Lembre-se de renomear o arquivo htaccess.txt para .htaccess\') }"', $row->config_sef); $lists['pagetitles'] = mosHTML::yesnoRadioList('config_pagetitles', 'class="inputbox"', $row->config_pagetitles); // CONTENT SETTINGS $lists['link_titles'] = mosHTML::yesnoRadioList('config_link_titles', 'class="inputbox"', $row->config_link_titles); $lists['readmore'] = mosHTML::RadioList($show_hide_r, 'config_readmore', 'class="inputbox"', $row->config_readmore, 'value', 'text'); $lists['vote'] = mosHTML::RadioList($show_hide_r, 'config_vote', 'class="inputbox"', $row->config_vote, 'value', 'text'); $lists['hideAuthor'] = mosHTML::RadioList($show_hide, 'config_hideAuthor', 'class="inputbox"', $row->config_hideAuthor, 'value', 'text'); $lists['hideCreateDate'] = mosHTML::RadioList($show_hide, 'config_hideCreateDate', 'class="inputbox"', $row->config_hideCreateDate, 'value', 'text'); $lists['hideModifyDate'] = mosHTML::RadioList($show_hide, 'config_hideModifyDate', 'class="inputbox"', $row->config_hideModifyDate, 'value', 'text'); $lists['hits'] = mosHTML::RadioList($show_hide_r, 'config_hits', 'class="inputbox"', $row->config_hits, 'value', 'text'); if (is_writable("{$mosConfig_absolute_path}/media/")) { $lists['hidePdf'] = mosHTML::RadioList($show_hide, 'config_hidePdf', 'class="inputbox"', $row->config_hidePdf, 'value', 'text'); } else { $lists['hidePdf'] = '<input type="hidden" name="config_hidePdf" value="1" /><strong>Ocultar</strong>'; } $lists['hidePrint'] = mosHTML::RadioList($show_hide, 'config_hidePrint', 'class="inputbox"', $row->config_hidePrint, 'value', 'text'); $lists['hideEmail'] = mosHTML::RadioList($show_hide, 'config_hideEmail', 'class="inputbox"', $row->config_hideEmail, 'value', 'text'); $lists['icons'] = mosHTML::RadioList($show_hide_r, 'config_icons', 'class="inputbox"', $row->config_icons, 'value', 'text'); $lists['back_button'] = mosHTML::RadioList($show_hide_r, 'config_back_button', 'class="inputbox"', $row->config_back_button, 'value', 'text'); $lists['item_navigation'] = mosHTML::RadioList($show_hide_r, 'config_item_navigation', 'class="inputbox"', $row->config_item_navigation, 'value', 'text'); $lists['multipage_toc'] = mosHTML::RadioList($show_hide_r, 'config_multipage_toc', 'class="inputbox"', $row->config_multipage_toc, 'value', 'text'); $itemid_compat = array(mosHTML::makeOption('11', 'Joomla! 1.0.11 and before'), mosHTML::makeOption('0', 'Joomla! 1.0.12 and after')); $lists['itemid_compat'] = mosHTML::selectList($itemid_compat, 'config_itemid_compat', 'class="inputbox" size="1"', 'value', 'text', $row->config_itemid_compat); // SHOW EDIT FORM HTML_config::showconfig($row, $lists, $option); }
/** * Show the configuration edit form * @param string The URL option */ function showconfig($option) { global $database, $mosConfig_absolute_path, $mosConfig_editor; $row = new mosConfig(); $row->bindGlobals(); // compile list of the languages $langs = array(); $menuitems = array(); $lists = array(); // PRE-PROCESS SOME LISTS // -- Languages -- if ($handle = opendir($mosConfig_absolute_path . '/language/')) { $i = 0; while (false !== ($file = readdir($handle))) { if (!strcasecmp(substr($file, -4), ".php") && $file != "." && $file != ".." && strcasecmp(substr($file, -11), ".ignore.php")) { $langs[] = mosHTML::makeOption(substr($file, 0, -4)); } } } // sort list of languages sort($langs); reset($langs); // -- Editors -- // compile list of the editors $query = "SELECT element AS value, name AS text" . "\n FROM #__mambots" . "\n WHERE folder = 'editors'" . "\n AND published = 1" . "\n ORDER BY ordering, name"; $database->setQuery($query); $edits = $database->loadObjectList(); // -- Show/Hide -- $show_hide = array(mosHTML::makeOption(1, 'Hide'), mosHTML::makeOption(0, 'Show')); $show_hide_r = array(mosHTML::makeOption(0, 'Hide'), mosHTML::makeOption(1, 'Show')); // -- menu items -- $query = "SELECT id AS value, name AS text FROM #__menu" . "\n WHERE ( type='content_section' OR type='components' OR type='content_typed' )" . "\n AND published = 1" . "\n AND access = 0" . "\n ORDER BY name"; $database->setQuery($query); $menuitems = array_merge($menuitems, $database->loadObjectList()); // SITE SETTINGS $lists['offline'] = mosHTML::yesnoRadioList('config_offline', 'class="inputbox"', $row->config_offline); if (!$row->config_editor) { $row->config_editor = ''; } // build the html select list $lists['editor'] = mosHTML::selectList($edits, 'config_editor', 'class="inputbox" size="1"', 'value', 'text', $row->config_editor); $listLimit = array(mosHTML::makeOption(5, 5), mosHTML::makeOption(10, 10), mosHTML::makeOption(15, 15), mosHTML::makeOption(20, 20), mosHTML::makeOption(25, 25), mosHTML::makeOption(30, 30), mosHTML::makeOption(50, 50)); $lists['list_limit'] = mosHTML::selectList($listLimit, 'config_list_limit', 'class="inputbox" size="1"', 'value', 'text', $row->config_list_limit ? $row->config_list_limit : 50); $lists['frontend_login'] = mosHTML::yesnoRadioList('config_frontend_login', 'class="inputbox"', $row->config_frontend_login); // DEBUG $lists['debug'] = mosHTML::yesnoRadioList('config_debug', 'class="inputbox"', $row->config_debug); // DATABASE SETTINGS // SERVER SETTINGS $lists['gzip'] = mosHTML::yesnoRadioList('config_gzip', 'class="inputbox"', $row->config_gzip); $session = array(mosHTML::makeOption(0, 'Level 3 Security- Default & Highest'), mosHTML::makeOption(1, 'Level 2 Security - Allow for proxy IPs'), mosHTML::makeOption(2, 'Level 1 Security - Backward Compatibility')); $lists['session_type'] = mosHTML::selectList($session, 'config_session_type', 'class="inputbox" size="1"', 'value', 'text', $row->config_session_type); $errors = array(mosHTML::makeOption(-1, 'System Default'), mosHTML::makeOption(0, 'None'), mosHTML::makeOption(E_ERROR | E_WARNING | E_PARSE, 'Simple'), mosHTML::makeOption(E_ALL, 'Maximum')); $lists['error_reporting'] = mosHTML::selectList($errors, 'config_error_reporting', 'class="inputbox" size="1"', 'value', 'text', $row->config_error_reporting); $lists['admin_expired'] = mosHTML::yesnoRadioList('config_admin_expired', 'class="inputbox"', $row->config_admin_expired); // LOCALE SETTINGS $lists['lang'] = mosHTML::selectList($langs, 'config_lang', 'class="inputbox" size="1"', 'value', 'text', $row->config_lang); $timeoffset = array(mosHTML::makeOption(-12, '(UTC -12:00) International Date Line West'), mosHTML::makeOption(-11, '(UTC -11:00) Midway Island, Samoa'), mosHTML::makeOption(-10, '(UTC -10:00) Hawaii'), mosHTML::makeOption(-9.5, '(UTC -09:30) Taiohae, Marquesas Islands'), mosHTML::makeOption(-9, '(UTC -09:00) Alaska'), mosHTML::makeOption(-8, '(UTC -08:00) Pacific Time (US & Canada)'), mosHTML::makeOption(-7, '(UTC -07:00) Mountain Time (US & Canada)'), mosHTML::makeOption(-6, '(UTC -06:00) Central Time (US & Canada), Mexico City'), mosHTML::makeOption(-5, '(UTC -05:00) Eastern Time (US & Canada), Bogota, Lima'), mosHTML::makeOption(-4, '(UTC -04:00) Atlantic Time (Canada), Caracas, La Paz'), mosHTML::makeOption(-3.5, '(UTC -03:30) St. John`s, Newfoundland and Labrador'), mosHTML::makeOption(-3, '(UTC -03:00) Brazil, Buenos Aires, Georgetown'), mosHTML::makeOption(-2, '(UTC -02:00) Mid-Atlantic'), mosHTML::makeOption(-1, '(UTC -01:00 hour) Azores, Cape Verde Islands'), mosHTML::makeOption(0, '(UTC 00:00) Western Europe Time, London, Lisbon, Casablanca'), mosHTML::makeOption(1, '(UTC +01:00 hour) Berlin, Brussels, Copenhagen, Madrid, Paris'), mosHTML::makeOption(2, '(UTC +02:00) Kaliningrad, South Africa'), mosHTML::makeOption(3, '(UTC +03:00) Baghdad, Riyadh, Moscow, St. Petersburg'), mosHTML::makeOption(3.5, '(UTC +03:30) Tehran'), mosHTML::makeOption(4, '(UTC +04:00) Abu Dhabi, Muscat, Baku, Tbilisi'), mosHTML::makeOption(4.5, '(UTC +04:30) Kabul'), mosHTML::makeOption(5, '(UTC +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent'), mosHTML::makeOption(5.5, '(UTC +05:30) Bombay, Calcutta, Madras, New Delhi'), mosHTML::makeOption(5.75, '(UTC +05:45) Kathmandu'), mosHTML::makeOption(6, '(UTC +06:00) Almaty, Dhaka, Colombo'), mosHTML::makeOption(6.5, '(UTC +06:30) Yagoon'), mosHTML::makeOption(7, '(UTC +07:00) Bangkok, Hanoi, Jakarta'), mosHTML::makeOption(8, '(UTC +08:00) Beijing, Perth, Singapore, Hong Kong'), mosHTML::makeOption(8.75, '(UTC +08:45) Western Australia'), mosHTML::makeOption(9, '(UTC +09:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk'), mosHTML::makeOption(9.5, '(UTC +09:30) Adelaide, Darwin, Yakutsk'), mosHTML::makeOption(10, '(UTC +10:00) Eastern Australia, Guam, Vladivostok'), mosHTML::makeOption(10.5, '(UTC +10:30) Lord Howe Island (Australia)'), mosHTML::makeOption(11, '(UTC +11:00) Magadan, Solomon Islands, New Caledonia'), mosHTML::makeOption(11.5, '(UTC +11:30) Norfolk Island'), mosHTML::makeOption(12, '(UTC +12:00) Auckland, Wellington, Fiji, Kamchatka'), mosHTML::makeOption(12.75, '(UTC +12:45) Chatham Island'), mosHTML::makeOption(13, '(UTC +13:00) Tonga'), mosHTML::makeOption(14, '(UTC +14:00) Kiribati')); $lists['offset'] = mosHTML::selectList($timeoffset, 'config_offset_user', 'class="inputbox" size="1"', 'value', 'text', $row->config_offset_user); // MAIL SETTINGS $mailer = array(mosHTML::makeOption('mail', 'PHP mail function'), mosHTML::makeOption('sendmail', 'Sendmail'), mosHTML::makeOption('smtp', 'SMTP Server')); $lists['mailer'] = mosHTML::selectList($mailer, 'config_mailer', 'class="inputbox" size="1"', 'value', 'text', $row->config_mailer); $lists['smtpauth'] = mosHTML::yesnoRadioList('config_smtpauth', 'class="inputbox"', $row->config_smtpauth); // CACHE SETTINGS $lists['caching'] = mosHTML::yesnoRadioList('config_caching', 'class="inputbox"', $row->config_caching); // USER SETTINGS $lists['allowUserRegistration'] = mosHTML::yesnoRadioList('config_allowUserRegistration', 'class="inputbox"', $row->config_allowUserRegistration); $lists['useractivation'] = mosHTML::yesnoRadioList('config_useractivation', 'class="inputbox"', $row->config_useractivation); $lists['uniquemail'] = mosHTML::yesnoRadioList('config_uniquemail', 'class="inputbox"', $row->config_uniquemail); $lists['shownoauth'] = mosHTML::yesnoRadioList('config_shownoauth', 'class="inputbox"', $row->config_shownoauth); $lists['frontend_userparams'] = mosHTML::yesnoRadioList('config_frontend_userparams', 'class="inputbox"', $row->config_frontend_userparams); // META SETTINGS $lists['MetaAuthor'] = mosHTML::yesnoRadioList('config_MetaAuthor', 'class="inputbox"', $row->config_MetaAuthor); $lists['MetaTitle'] = mosHTML::yesnoRadioList('config_MetaTitle', 'class="inputbox"', $row->config_MetaTitle); // STATISTICS SETTINGS $lists['log_searches'] = mosHTML::yesnoRadioList('config_enable_log_searches', 'class="inputbox"', $row->config_enable_log_searches); $lists['enable_stats'] = mosHTML::yesnoRadioList('config_enable_stats', 'class="inputbox"', $row->config_enable_stats); $lists['log_items'] = mosHTML::yesnoRadioList('config_enable_log_items', 'class="inputbox"', $row->config_enable_log_items); // SEO SETTINGS $lists['sef'] = mosHTML::yesnoRadioList('config_sef', 'class="inputbox" onclick="javascript: if (document.adminForm.config_sef[1].checked) { alert(\'Remember to rename htaccess.txt to .htaccess\') }"', $row->config_sef); $lists['pagetitles'] = mosHTML::yesnoRadioList('config_pagetitles', 'class="inputbox"', $row->config_pagetitles); // CONTENT SETTINGS $lists['link_titles'] = mosHTML::yesnoRadioList('config_link_titles', 'class="inputbox"', $row->config_link_titles); $lists['readmore'] = mosHTML::RadioList($show_hide_r, 'config_readmore', 'class="inputbox"', $row->config_readmore, 'value', 'text'); $lists['vote'] = mosHTML::RadioList($show_hide_r, 'config_vote', 'class="inputbox"', $row->config_vote, 'value', 'text'); $lists['hideAuthor'] = mosHTML::RadioList($show_hide, 'config_hideAuthor', 'class="inputbox"', $row->config_hideAuthor, 'value', 'text'); $lists['hideCreateDate'] = mosHTML::RadioList($show_hide, 'config_hideCreateDate', 'class="inputbox"', $row->config_hideCreateDate, 'value', 'text'); $lists['hideModifyDate'] = mosHTML::RadioList($show_hide, 'config_hideModifyDate', 'class="inputbox"', $row->config_hideModifyDate, 'value', 'text'); $lists['hits'] = mosHTML::RadioList($show_hide_r, 'config_hits', 'class="inputbox"', $row->config_hits, 'value', 'text'); if (is_writable("{$mosConfig_absolute_path}/media/")) { $lists['hidePdf'] = mosHTML::RadioList($show_hide, 'config_hidePdf', 'class="inputbox"', $row->config_hidePdf, 'value', 'text'); } else { $lists['hidePdf'] = '<input type="hidden" name="config_hidePdf" value="1" /><strong>Hide</strong>'; } $lists['hidePrint'] = mosHTML::RadioList($show_hide, 'config_hidePrint', 'class="inputbox"', $row->config_hidePrint, 'value', 'text'); $lists['hideEmail'] = mosHTML::RadioList($show_hide, 'config_hideEmail', 'class="inputbox"', $row->config_hideEmail, 'value', 'text'); $lists['icons'] = mosHTML::RadioList($show_hide_r, 'config_icons', 'class="inputbox"', $row->config_icons, 'value', 'text'); $lists['back_button'] = mosHTML::RadioList($show_hide_r, 'config_back_button', 'class="inputbox"', $row->config_back_button, 'value', 'text'); $lists['item_navigation'] = mosHTML::RadioList($show_hide_r, 'config_item_navigation', 'class="inputbox"', $row->config_item_navigation, 'value', 'text'); $lists['multipage_toc'] = mosHTML::RadioList($show_hide_r, 'config_multipage_toc', 'class="inputbox"', $row->config_multipage_toc, 'value', 'text'); $itemid_compat = array(mosHTML::makeOption('11', 'Joomla! 1.0.11 and before'), mosHTML::makeOption('0', 'Joomla! 1.0.12 and after')); $lists['itemid_compat'] = mosHTML::selectList($itemid_compat, 'config_itemid_compat', 'class="inputbox" size="1"', 'value', 'text', $row->config_itemid_compat); // SHOW EDIT FORM HTML_config::showconfig($row, $lists, $option); }