public static function system_info($version) { global $mosConfig_absolute_path, $database, $mosConfig_cachepath, $mainframe; $width = 400; // width of 100% $tabs = new mosTabs(0); ?> <table class="adminheading"> <tr> <th class="info"> Information </th> </tr> </table> <?php $tabs->startPane("sysinfo"); $tabs->startTab("System Info", "system-page"); ?> <table class="adminform"> <tr> <th colspan="2"> System Information </th> </tr> <tr> <td colspan="2"> <?php // show security setting check josSecurityCheck(); ?> </td> </tr> <tr> <td valign="top" width="250"> <strong>PHP built On:</strong> </td> <td> <?php echo php_uname(); ?> </td> </tr> <tr> <td> <strong>Database Version:</strong> </td> <td> <?php echo $database->getVersion(); ?> </td> </tr> <tr> <td> <strong>PHP Version:</strong> </td> <td> <?php echo phpversion(); ?> </td> </tr> <tr> <td> <strong>Web Server:</strong> </td> <td> <?php echo HTML_admin_misc::get_server_software(); ?> </td> </tr> <tr> <td> <strong>WebServer to PHP interface:</strong> </td> <td> <?php echo php_sapi_name(); ?> </td> </tr> <tr> <td> <strong>Joomla! Version:</strong> </td> <td> <?php echo $version; ?> </td> </tr> <tr> <td> <strong>User Agent:</strong> </td> <td> <?php echo phpversion() <= '4.2.1' ? getenv('HTTP_USER_AGENT') : $_SERVER['HTTP_USER_AGENT']; ?> </td> </tr> <tr> <td colspan="2" style="height: 10px;"> </td> </tr> <tr> <td valign="top"> <strong>Relevant PHP Settings:</strong> </td> <td> <table cellspacing="1" cellpadding="1" border="0"> <tr> <td width="250"> Joomla! Register Globals Emulation: </td> <td style="font-weight: bold;" width="50"> <?php echo RG_EMULATION ? '<span style="color: red;">ON</span>' : '<span style="color: green;">OFF</span>'; ?> </td> <td> <?php $img = RG_EMULATION ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Register Globals: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('register_globals', 1, 0); ?> </td> <td> <?php $img = ini_get('register_globals') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Magic Quotes: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('magic_quotes_gpc', 1, 0); ?> </td> <td> <?php $img = ini_get('magic_quotes_gpc') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Safe Mode: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('safe_mode', 1, 0); ?> </td> <td> <?php $img = ini_get('safe_mode') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> File Uploads: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('file_uploads', 1, 1); ?> </td> <td> <?php $img = !ini_get('file_uploads') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Session auto start: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('session.auto_start', 1, 0); ?> </td> <td> <?php $img = ini_get('session.auto_start') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Session save path: </td> <td style="font-weight: bold;" colspan="2"> <?php echo ($sp = ini_get('session.save_path')) ? $sp : 'none'; ?> </td> </tr> <tr> <td> Short Open Tags: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('short_open_tag'); ?> </td> <td> </td> </tr> <tr> <td> Output Buffering: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('output_buffering'); ?> </td> <td> </td> </tr> <tr> <td> Open basedir: </td> <td style="font-weight: bold;" colspan="2"> <?php echo ($ob = ini_get('open_basedir')) ? $ob : 'none'; ?> </td> </tr> <tr> <td> Display Errors: </td> <td style="font-weight: bold;" colspan="2"> <?php echo HTML_admin_misc::get_php_setting('display_errors'); ?> </td> </tr> <tr> <td> XML enabled: </td> <td style="font-weight: bold;" colspan="2"> <?php echo extension_loaded('xml') ? 'Yes' : 'No'; ?> </td> </tr> <tr> <td> Zlib enabled: </td> <td style="font-weight: bold;" colspan="2"> <?php echo extension_loaded('zlib') ? 'Yes' : 'No'; ?> </td> </tr> <tr> <td> Disabled Functions: </td> <td style="font-weight: bold;" colspan="2"> <?php echo ($df = ini_get('disable_functions')) ? $df : 'none'; ?> </td> </tr> </table> </td> </tr> <tr> <td colspan="2" style="height: 10px;"> </td> </tr> <tr> <td valign="top"> <strong>Configuration File:</strong> </td> <td> <?php $cf = file($mosConfig_absolute_path . '/configuration.php'); foreach ($cf as $k => $v) { if (preg_match('/mosConfig_host/i', $v)) { $cf[$k] = '$mosConfig_host = \'xxxxxx\''; } elseif (preg_match('/mosConfig_user/i', $v)) { $cf[$k] = '$mosConfig_user = \'xxxxxx\''; } elseif (preg_match('/mosConfig_password/i', $v)) { $cf[$k] = '$mosConfig_password = \'xxxxxx\''; } elseif (preg_match('/mosConfig_db /i', $v)) { $cf[$k] = '$mosConfig_db = \'xxxxxx\''; } } foreach ($cf as $k => $v) { $k = htmlspecialchars($k); $v = htmlspecialchars($v); $cf[$k] = $v; } echo implode("<br />", $cf); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("PHP Info", "php-page"); ?> <table class="adminform"> <tr> <th colspan="2"> PHP Information </th> </tr> <tr> <td> <?php ob_start(); phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES); $phpinfo = ob_get_contents(); ob_end_clean(); preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output); $output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]); $output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output); $output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output); $output = preg_replace('#<hr />#', '', $output); echo $output; ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab('Permissions', 'perms'); ?> <table class="adminform"> <tr> <th colspan="2"> Directory Permissions </th> </tr> <tr> <td> <strong>For all Joomla! functions and features to work ALL of the following directories should be writeable:</strong> <?php $sp = ini_get('session.save_path'); mosHTML::writableCell('administrator/backups'); mosHTML::writableCell('administrator/components'); mosHTML::writableCell('administrator/modules'); mosHTML::writableCell('administrator/templates'); mosHTML::writableCell('components'); mosHTML::writableCell('images'); mosHTML::writableCell('images/banners'); mosHTML::writableCell('images/stories'); mosHTML::writableCell('language'); mosHTML::writableCell('mambots'); mosHTML::writableCell('mambots/content'); mosHTML::writableCell('mambots/editors'); mosHTML::writableCell('mambots/editors-xtd'); mosHTML::writableCell('mambots/search'); mosHTML::writableCell('mambots/system'); mosHTML::writableCell('media'); mosHTML::writableCell('modules'); mosHTML::writableCell('templates'); mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Cache Directory</strong> '); mosHTML::writableCell($sp, 0, '<strong>Session Directory</strong> '); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <?php }
function showNewsFeeds(&$rows, &$lists, $pageNav, $option) { global $my, $mosConfig_cachepath; mosCommonHTML::loadOverlib(); ?> <form action="index2.php" method="post" name="adminForm"> <table class="adminheading"> <tr> <th> Administrar Notícias Externas </th> <td width="right"> <?php echo $lists['category']; ?> </td> </tr> </table> <table class="adminlist"> <tr> <th width="20"> nº </th> <th width="20"> <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?> );" /> </th> <th class="title"> Fonte da Notícia </th> <th width="5%"> Publicado </th> <th colspan="2" width="5%"> Reordenar </th> <th class="title" width="20%"> Categoria </th> <th width="5%" nowrap="nowrap"> Artigos </th> <th width="10%"> Duração de Cache (seg) </th> </tr> <?php $k = 0; for ($i = 0, $n = count($rows); $i < $n; $i++) { $row =& $rows[$i]; mosMakeHtmlSafe($row); $link = 'index2.php?option=com_newsfeeds&task=editA&hidemainmenu=1&id=' . $row->id; $img = $row->published ? 'tick.png' : 'publish_x.png'; $task = $row->published ? 'unpublish' : 'publish'; $alt = $row->published ? 'Publicado' : 'Despublicado'; $checked = mosCommonHTML::CheckedOutProcessing($row, $i); $row->cat_link = 'index2.php?option=com_categories§ion=com_newsfeeds&task=editA&hidemainmenu=1&id=' . $row->catid; ?> <tr class="<?php echo 'row' . $k; ?> "> <td align="center"> <?php echo $pageNav->rowNumber($i); ?> </td> <td> <?php echo $checked; ?> </td> <td> <?php if ($row->checked_out && $row->checked_out != $my->id) { ?> <?php echo $row->name; ?> [ <i>Confirmado</i> ] <?php } else { ?> <a href="<?php echo $link; ?> " title="Editar fonte da notícia"> <?php echo $row->name; ?> </a> <?php } ?> </td> <td width="10%" align="center"> <a href="javascript: void(0);" onclick="return listItemTask('cb<?php echo $i; ?> ','<?php echo $task; ?> ')"> <img src="images/<?php echo $img; ?> " border="0" alt="<?php echo $alt; ?> " /> </a> </td> <td align="center"> <?php echo $pageNav->orderUpIcon($i); ?> </td> <td align="center"> <?php echo $pageNav->orderDownIcon($i, $n); ?> </td> <td> <a href="<?php echo $row->cat_link; ?> " title="Editar Categoria"> <?php echo $row->catname; ?> </a> </td> <td align="center"> <?php echo $row->numarticles; ?> </td> <td align="center"> <?php echo $row->cache_time; ?> </td> </tr> <?php $k = 1 - $k; } ?> </table> <?php echo $pageNav->getListFooter(); ?> <table class="adminform"> <tr> <td> <table align="center"> <?php $visible = 0; // check to hide certain paths if not super admin if ($my->gid == 25) { $visible = 1; } mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Diretório do cache</strong> ', $visible); ?> </table> </td> </tr> </table> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="hidemainmenu" value="0"> <input type="hidden" name="<?php echo josSpoofValue(); ?> " value="1" /> </form> <?php }
function settings($option, &$params, $id) { global $mosConfig_live_site, $mosConfig_cachepath, $my; ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <form action="index2.php" method="post" name="adminForm"> <table class="adminheading"> <tr> <th> Configurações do Difusor de Notícias </th> </tr> </table> <table class="adminform"> <tr> <th> Parâmetros </th> </tr> <tr> <td> <?php echo $params->render(); ?> </td> </tr> </table> <table class="adminform"> <tr> <td> <table align="center"> <?php $visible = 0; // check to hide certain paths if not super admin if ($my->gid == 25) { $visible = 1; } mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Diretório de Cache</strong> ', $visible); ?> </table> </td> </tr> </table> <input type="hidden" name="id" value="<?php echo $id; ?> " /> <input type="hidden" name="name" value="Difusão de Notícias" /> <input type="hidden" name="admin_menu_link" value="option=com_syndicate" /> <input type="hidden" name="admin_menu_alt" value="Administrar configuração de Difusão de Notícias" /> <input type="hidden" name="option" value="com_syndicate" /> <input type="hidden" name="admin_menu_img" value="js/ThemeOffice/component.png" /> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="<?php echo josSpoofValue(); ?> " value="1" /> </form> <script language="Javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <?php }
function system_info($version) { global $mosConfig_absolute_path, $database; //$tab = mosGetParam( $_REQUEST, 'tab', 'tab1' ); $width = 400; // width of 100% $tabs = new mosTabs(0); ?> <table class="adminheading"> <tr> <th class="info"> <?php echo T_('Information'); ?> </th> </tr> </table> <?php $tabs->startPane("sysinfo"); $tabs->startTab(T_("System Info"), "system-page"); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo T_('System Information'); ?> </th> </tr> <tr> <td valign="top" width="250"> <strong> <?php echo T_('PHP built On:'); ?> </strong> </td> <td> <?php echo php_uname(); ?> </td> </tr> <tr> <td> <strong> <?php echo T_('Database Version:'); ?> </strong> </td> <td> <?php echo mysql_get_server_info(); ?> </td> </tr> <tr> <td> <strong> <?php echo T_('PHP Version:'); ?> </strong> </td> <td> <?php echo phpversion(); ?> </td> </tr> <tr> <td> <strong> <?php echo T_('Web Server:'); ?> </strong> </td> <td> <?php echo HTML_admin_misc::get_server_software(); ?> </td> </tr> <tr> <td> <strong> <?php echo T_('WebServer to PHP interface:'); ?> </strong> </td> <td> <?php echo php_sapi_name(); ?> </td> </tr> <tr> <td> <strong> <?php echo T_('Mambo Version:'); ?> </strong> </td> <td> <?php echo $version; ?> </td> </tr> <tr> <td> <strong> <?php echo T_('User Agent:'); ?> </strong> </td> <td> <?php echo phpversion() <= "4.2.1" ? getenv("HTTP_USER_AGENT") : $_SERVER['HTTP_USER_AGENT']; ?> </td> </tr> <tr> <td valign="top"> <strong> <?php echo T_('Relevant PHP Settings:'); ?> </strong> </td> <td> <table cellspacing="1" cellpadding="1" border="0"> <tr> <td> <?php echo T_('Safe Mode:'); ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('safe_mode'); ?> </td> </tr> <tr> <td> <?php echo T_('Open basedir:'); ?> </td> <td> <?php echo ($ob = ini_get('open_basedir')) ? $ob : 'none'; ?> </td> </tr> <tr> <td> <?php echo T_('Display Errors:'); ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('display_errors'); ?> </td> </tr> <tr> <td> <?php echo T_('Short Open Tags:'); ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('short_open_tag'); ?> </td> </tr> <tr> <td> <?php echo T_('File Uploads:'); ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('file_uploads'); ?> </td> </tr> <tr> <td> <?php echo T_('Magic Quotes'); ?> : </td> <td> <?php echo HTML_admin_misc::get_php_setting('magic_quotes_gpc'); ?> </td> </tr> <tr> <td> <?php echo T_('Register Globals:'); ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('register_globals'); ?> </td> </tr> <tr> <td> <?php echo T_('Output Buffering:'); ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('output_buffering'); ?> </td> </tr> <tr> <td> <?php echo T_('Session save path:'); ?> </td> <td> <?php echo ($sp = ini_get('session.save_path')) ? $sp : 'none'; ?> </td> </tr> <tr> <td> <?php echo T_('Session auto start:'); ?> </td> <td> <?php echo intval(ini_get('session.auto_start')); ?> </td> </tr> <tr> <td> <?php echo T_('XML enabled:'); ?> </td> <td> <?php echo extension_loaded('xml') ? 'Yes' : 'No'; ?> </td> </tr> <tr> <td> <?php echo T_('Zlib enabled:'); ?> </td> <td> <?php echo extension_loaded('zlib') ? 'Yes' : 'No'; ?> </td> </tr> <tr> <td> <?php echo T_('Disabled Functions:'); ?> </td> <td> <?php echo ($df = ini_get('disable_functions')) ? $df : 'none'; ?> </td> </tr> <?php $query = "SELECT name FROM #__mambots" . "\nWHERE folder='editors' AND published='1'" . "\nLIMIT 1"; $database->setQuery($query); $editor = $database->loadResult(); ?> <tr> <td> <?php echo T_('WYSIWYG Editor:'); ?> </td> <td> <?php echo $editor; ?> </td> </tr> </table> </td> </tr> <tr> <td valign="top"> <strong> <?php echo T_('Configuration File:'); ?> </strong> </td> <td> <?php $cf = file($mosConfig_absolute_path . '/configuration.php'); foreach ($cf as $k => $v) { if (eregi('mosConfig_host', $v)) { $cf[$k] = '$mosConfig_host = \'xxxxxx\''; } else { if (eregi('mosConfig_user', $v)) { $cf[$k] = '$mosConfig_user = \'xxxxxx\''; } else { if (eregi('mosConfig_password', $v)) { $cf[$k] = '$mosConfig_password = \'xxxxxx\''; } else { if (eregi('mosConfig_db ', $v)) { $cf[$k] = '$mosConfig_db = \'xxxxxx\''; } else { if (eregi('<?php', $v)) { $cf[$k] = '<?php'; } } } } } } echo implode("<br />", $cf); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab(T_("PHP Info"), "php-page"); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo T_('PHP Information'); ?> </th> </tr> <tr> <td> <?php ob_start(); phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES); $phpinfo = ob_get_contents(); ob_end_clean(); preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output); $output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]); $output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output); $output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output); $output = preg_replace('#<hr />#', '', $output); echo $output; ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab(T_('Permissions'), 'perms'); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo T_('Directory Permissions'); ?> </th> </tr> <tr> <td> <strong><?php echo T_('For all Mambo functions and features to work ALL of the following directories should be writeable:'); ?> </strong> <?php mosHTML::writableCell('administrator/backups'); mosHTML::writableCell('administrator/components'); mosHTML::writableCell('administrator/modules'); mosHTML::writableCell('administrator/templates'); mosHTML::writableCell('cache'); mosHTML::writableCell('components'); mosHTML::writableCell('images'); mosHTML::writableCell('images/banners'); mosHTML::writableCell('images/stories'); mosHTML::writableCell('language'); mosHTML::writableCell('mambots'); mosHTML::writableCell('mambots/content'); mosHTML::writableCell('mambots/editors'); mosHTML::writableCell('mambots/editors-xtd'); mosHTML::writableCell('mambots/search'); mosHTML::writableCell('media'); mosHTML::writableCell('modules'); mosHTML::writableCell('templates'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <?php }
function system_info($version) { global $mosConfig_absolute_path, $database, $mosConfig_cachepath, $mainframe; $width = 400; // width of 100% $tabs = new mosTabs(0); ?> <table class="adminheading"> <tr> <th class="info"> Informações do Sistema </th> </tr> </table> <?php $tabs->startPane("sysinfo"); $tabs->startTab("Sistema Info", "system-page"); ?> <table class="adminform"> <tr> <th colspan="2"> Informações do Sistema </th> </tr> <tr> <td colspan="2"> <?php // show security setting check josSecurityCheck(); ?> </td> </tr> <tr> <td valign="top" width="250"> <strong>Instalação do PHP:</strong> </td> <td> <?php echo php_uname(); ?> </td> </tr> <tr> <td> <strong>Versão da Base de Dados:</strong> </td> <td> <?php echo $database->getVersion(); ?> </td> </tr> <tr> <td> <strong>Versão do PHP:</strong> </td> <td> <?php echo phpversion(); ?> </td> </tr> <tr> <td> <strong>Servidor Web:</strong> </td> <td> <?php echo HTML_admin_misc::get_server_software(); ?> </td> </tr> <tr> <td> <strong>Interface de Servidor para PHP:</strong> </td> <td> <?php echo php_sapi_name(); ?> </td> </tr> <tr> <td> <strong>Versão do Joomla!: </strong> </td> <td> <?php echo $version; ?> </td> </tr> <tr> <td> <strong>Navegador Utilizado:</strong> </td> <td> <?php echo phpversion() <= '4.2.1' ? getenv('HTTP_USER_AGENT') : $_SERVER['HTTP_USER_AGENT']; ?> </td> </tr> <tr> <td colspan="2" style="height: 10px;"> </td> </tr> <tr> <td valign="top"> <strong>Configurações PHP relevantes:</strong> </td> <td> <table cellspacing="1" cellpadding="1" border="0"> <tr> <td width="250"> Emulação Joomla! para Registo de Globais: </td> <td style="font-weight: bold;" width="50"> <?php echo RG_EMULATION ? '<span style="color: red;">Ligado</span>' : '<span style="color: green;">Desligado</span>'; ?> </td> <td> <?php $img = RG_EMULATION ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Registros Globais: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('register_globals', 1, 0); ?> </td> <td> <?php $img = ini_get('register_globals') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Citações Mágicas: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('magic_quotes_gpc', 1, 1); ?> </td> <td> <?php $img = !ini_get('magic_quotes_gpc') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Modo Seguro: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('safe_mode', 1, 0); ?> </td> <td> <?php $img = ini_get('safe_mode') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Envio de arquivos: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('file_uploads', 1, 1); ?> </td> <td> <?php $img = !ini_get('file_uploads') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Início automático de sessão: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('session.auto_start', 1, 0); ?> </td> <td> <?php $img = ini_get('session.auto_start') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Caminho para Sessão: </td> <td style="font-weight: bold;" colspan="2"> <?php echo ($sp = ini_get('session.save_path')) ? $sp : 'nenhum'; ?> </td> </tr> <tr> <td> Tags de abertura abreviadas: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('short_open_tag'); ?> </td> <td> </td> </tr> <tr> <td> Memória temporária de saída: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('output_buffering'); ?> </td> <td> </td> </tr> <tr> <td> Diretório base de abertura: </td> <td style="font-weight: bold;" colspan="2"> <?php echo ($ob = ini_get('open_basedir')) ? $ob : 'nenhum'; ?> </td> </tr> <tr> <td> Exibir Erros: </td> <td style="font-weight: bold;" colspan="2"> <?php echo HTML_admin_misc::get_php_setting('display_errors'); ?> </td> </tr> <tr> <td> XML ativado: </td> <td style="font-weight: bold;" colspan="2"> <?php echo extension_loaded('xml') ? 'Sim' : 'Não'; ?> </td> </tr> <tr> <td> Zlib ativado: </td> <td style="font-weight: bold;" colspan="2"> <?php echo extension_loaded('zlib') ? 'Sim' : 'Não'; ?> </td> </tr> <tr> <td> Funcionalidades desativadas: </td> <td style="font-weight: bold;" colspan="2"> <?php echo ($df = ini_get('disable_functions')) ? $df : 'nenhuma'; ?> </td> </tr> </table> </td> </tr> <tr> <td colspan="2" style="height: 10px;"> </td> </tr> <tr> <td valign="top"> <strong>Arquivo de configuração:</strong> </td> <td> <?php $cf = file($mosConfig_absolute_path . '/configuration.php'); foreach ($cf as $k => $v) { if (eregi('mosConfig_host', $v)) { $cf[$k] = '$mosConfig_host = \'xxxxxx\''; } else { if (eregi('mosConfig_user', $v)) { $cf[$k] = '$mosConfig_user = \'xxxxxx\''; } else { if (eregi('mosConfig_password', $v)) { $cf[$k] = '$mosConfig_password = \'xxxxxx\''; } else { if (eregi('mosConfig_db ', $v)) { $cf[$k] = '$mosConfig_db = \'xxxxxx\''; } } } } } foreach ($cf as $k => $v) { $k = htmlspecialchars($k); $v = htmlspecialchars($v); $cf[$k] = $v; } echo implode("<br />", $cf); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("PHP Info", "php-page"); ?> <table class="adminform"> <tr> <th colspan="2"> Informações PHP </th> </tr> <tr> <td> <?php ob_start(); phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES); $phpinfo = ob_get_contents(); ob_end_clean(); preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output); $output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]); $output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output); $output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output); $output = preg_replace('#<hr />#', '', $output); echo $output; ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab('Permissões', 'perms'); ?> <table class="adminform"> <tr> <th colspan="2"> Permissões dos Diretórios </th> </tr> <tr> <td> <strong>Para todas as funções e características do Joomla! funcionem, TODOS os diretórios a seguir devem ter permissão de escrita</strong> <?php $sp = ini_get('session.save_path'); mosHTML::writableCell('administrator/backups'); mosHTML::writableCell('administrator/components'); mosHTML::writableCell('administrator/modules'); mosHTML::writableCell('administrator/templates'); mosHTML::writableCell('components'); mosHTML::writableCell('images'); mosHTML::writableCell('images/banners'); mosHTML::writableCell('images/stories'); mosHTML::writableCell('language'); mosHTML::writableCell('mambots'); mosHTML::writableCell('mambots/content'); mosHTML::writableCell('mambots/editors'); mosHTML::writableCell('mambots/editors-xtd'); mosHTML::writableCell('mambots/search'); mosHTML::writableCell('mambots/system'); mosHTML::writableCell('media'); mosHTML::writableCell('modules'); mosHTML::writableCell('templates'); mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Cache Directory</strong> '); mosHTML::writableCell($sp, 0, '<strong>Session Directory</strong> '); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <?php }
function system_info($version, $option) { global $mosConfig_absolute_path, $database, $_VERSION; $version = $_VERSION->PRODUCT . ' <strong style="color: red;">' . $_VERSION->RELEASE . '.' . $_VERSION->DEV_LEVEL . '</strong> ' . $_VERSION->DEV_STATUS . ' [ ' . $_VERSION->CODENAME . ' ] ' . $_VERSION->RELDATE . ' ' . $_VERSION->RELTIME . ' ' . $_VERSION->RELTZ; //$tab = mosGetParam( $_REQUEST, 'tab', 'tab1' ); $width = 400; // width of 100% $tabs = new mosTabs(0); ?> <br /> <?php $tabs->startPane('sysinfo'); $tabs->startTab($GLOBALS['messages']['sisysteminfo'], 'system-page'); ?> <table class="adminform"> <tr> <td valign="top" width="250" style="font-weight:bold;"> <?php echo $GLOBALS['messages']['sibuilton']; ?> : </td> <td> <?php echo php_uname(); ?> </td> </tr> <tr> <td style="font-weight:bold;"> <?php echo $GLOBALS['messages']['sidbversion']; ?> : </td> <td> <?php echo mysql_get_server_info(); ?> </td> </tr> <tr> <td valign="top" style="font-weight:bold;"> <?php echo $GLOBALS['messages']['siphpversion']; ?> : </td> <td> <?php echo phpversion(); ?> <?php echo phpversion() >= '4.3' ? '' : $GLOBALS['messages']['siphpupdate']; ?> </td> </tr> <tr> <td style="font-weight:bold;"> <?php echo $GLOBALS['messages']['siwebserver']; ?> : </td> <td> <?php echo get_server_software(); ?> </td> </tr> <tr> <td style="font-weight:bold;"> <?php echo $GLOBALS['messages']['siwebsphpif']; ?> : </td> <td> <?php echo php_sapi_name(); ?> </td> </tr> <tr> <td style="font-weight:bold;"> <?php echo $GLOBALS['messages']['simamboversion']; ?> : </td> <td> <?php echo $version; ?> </td> </tr> <tr> <td style="font-weight:bold;"> <?php echo $GLOBALS['messages']['siuseragent']; ?> : </td> <td> <?php echo phpversion() <= "4.2.1" ? getenv("HTTP_USER_AGENT") : $_SERVER['HTTP_USER_AGENT']; ?> </td> </tr> <tr> <td valign="top" style="font-weight:bold;"> <?php echo $GLOBALS['messages']['sirelevantsettings']; ?> : </td> <td> <table cellspacing="1" cellpadding="1" border="0"> <tr> <td valign="top"> <?php echo $GLOBALS['messages']['sisafemode']; ?> : </td> <td> <?php echo get_php_setting('safe_mode', 0); ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['sibasedir']; ?> : </td> <td> <?php echo ($ob = ini_get('open_basedir')) ? $ob : 'none'; ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['sidisplayerrors']; ?> : </td> <td> <?php echo get_php_setting('display_errors'); ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['sishortopentags']; ?> : </td> <td> <?php echo get_php_setting('short_open_tag'); ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['sifileuploads']; ?> : </td> <td> <?php echo get_php_setting('file_uploads'); ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['simagicquotes']; ?> : </td> <td> <?php echo get_php_setting('magic_quotes_gpc'); ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['siregglobals']; ?> : </td> <td> <?php echo get_php_setting('register_globals', 0); ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['sioutputbuf']; ?> : </td> <td> <?php echo get_php_setting('output_buffering', 0); ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['sisesssavepath']; ?> : </td> <td> <?php echo ($sp = ini_get('session.save_path')) ? $sp : 'none'; ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['sisessautostart']; ?> : </td> <td> <?php echo intval(ini_get('session.auto_start')); ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['sixmlenabled']; ?> : </td> <td> <?php echo extension_loaded('xml') ? '<font style="color: green;">' . $GLOBALS['messages']['miscyesno'][0] . '</font>' : '<font style="color: red;">' . $GLOBALS['messages']['miscyesno'][1] . '</font>'; ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['sizlibenabled']; ?> : </td> <td> <?php echo extension_loaded('zlib') ? '<font style="color: green;">' . $GLOBALS['messages']['miscyesno'][0] . '</font>' : '<font style="color: red;">' . $GLOBALS['messages']['miscyesno'][1] . '</font>'; ?> </td> </tr> <tr> <td> <?php echo $GLOBALS['messages']['sidisabledfuncs']; ?> : </td> <td> <?php echo ($df = ini_get('disable_functions')) ? $df : 'none'; ?> </td> </tr> <?php $query = "SELECT name FROM #__mambots" . "\nWHERE folder='editors' AND published='1'" . "\nLIMIT 1"; $database->setQuery($query); $editor = $database->loadResult(); ?> <tr> <td> <?php echo $GLOBALS['messages']['sieditor']; ?> : </td> <td> <?php echo $editor; ?> </td> </tr> </table> </td> </tr> <tr> <td valign="top" style="font-weight:bold;"> <?php echo $GLOBALS['messages']['siconfigfile']; ?> : </td> <td> <?php $cf = file($mosConfig_absolute_path . '/configuration.php'); foreach ($cf as $k => $v) { if (eregi('mosConfig_host', $v)) { $cf[$k] = '$mosConfig_host = \'xxxxxx\''; } else { if (eregi('mosConfig_user', $v)) { $cf[$k] = '$mosConfig_user = \'xxxxxx\''; } else { if (eregi('mosConfig_password', $v)) { $cf[$k] = '$mosConfig_password = \'xxxxxx\''; } else { if (eregi('mosConfig_db ', $v)) { $cf[$k] = '$mosConfig_db = \'xxxxxx\''; } else { if (eregi('<?php', $v)) { $cf[$k] = '<?php'; } } } } } } echo implode('<br>', $cf); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($GLOBALS['messages']['siphpinfo'], 'php-page'); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo $GLOBALS['messages']['siphpinformation']; ?> : </th> </tr> <tr> <td> <?php ob_start(); phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES); $phpinfo = ob_get_contents(); ob_end_clean(); preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output); $output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]); $output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output); $output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output); $output = preg_replace('#<hr />#', '', $output); echo $output; ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($GLOBALS['messages']['sipermissions'], 'perms'); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo $GLOBALS['messages']['sidirperms']; ?> :</th> </tr> <tr> <td colspan="2"> <span style="font-weight:bold;"><?php echo $GLOBALS['messages']['sidirpermsmess']; ?> :</span> </td> </tr> <tr> <td width="50%"> <?php mosHTML::writableCell('administrator/backups'); mosHTML::writableCell('administrator/components'); mosHTML::writableCell('administrator/modules'); mosHTML::writableCell('administrator/templates'); mosHTML::writableCell('cache'); mosHTML::writableCell('components'); mosHTML::writableCell('images'); mosHTML::writableCell('images/banners'); mosHTML::writableCell('images/stories'); mosHTML::writableCell('language'); mosHTML::writableCell('mambots'); mosHTML::writableCell('mambots/content'); mosHTML::writableCell('mambots/search'); mosHTML::writableCell('media'); mosHTML::writableCell('modules'); mosHTML::writableCell('templates'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <?php }
function system_info($version, $option) { global $mosConfig_absolute_path, $database, $adminLanguage; //$tab = mosGetParam( $_REQUEST, 'tab', 'tab1' ); $width = 400; // width of 100% $tabs = new mosTabs(0); ?> <table class="adminheading"> <tr> <th class="info"> <?php echo $adminLanguage->A_COMP_ADMIN_INFO; ?> </th> </tr> </table> <?php $tabs->startPane("sysinfo"); $tabs->startTab($adminLanguage->A_MENU_SYSTEM_INFO, "system-page"); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo $adminLanguage->A_COMP_ADMIN_SYSTEM; ?> </th> </tr> <tr> <td valign="top" width="250"> <b> <?php echo $adminLanguage->A_COMP_ADMIN_PHP_BUILT_ON; ?> </b> </td> <td> <?php echo php_uname(); ?> </td> </tr> <tr> <td> <b> <?php echo $adminLanguage->A_COMP_ADMIN_DB; ?> </b> </td> <td> <?php echo mysql_get_server_info(); ?> </td> </tr> <tr> <td> <b> <?php echo $adminLanguage->A_COMP_ADMIN_PHP_VERSION; ?> </b> </td> <td> <?php echo phpversion(); ?> </td> </tr> <tr> <td> <b> <?php echo $adminLanguage->A_COMP_ADMIN_SERVER; ?> </b> </td> <td> <?php echo HTML_admin_misc::get_server_software(); ?> </td> </tr> <tr> <td> <b> <?php echo $adminLanguage->A_COMP_ADMIN_SERVER_TO_PHP; ?> </b> </td> <td> <?php echo php_sapi_name(); ?> </td> </tr> <tr> <td> <b> <?php echo $adminLanguage->A_COMP_ADMIN_VERSION; ?> </b> </td> <td> <?php echo $version; ?> </td> </tr> <tr> <td> <b> <?php echo $adminLanguage->A_COMP_ADMIN_AGENT; ?> </b> </td> <td> <?php echo phpversion() <= "4.2.1" ? getenv("HTTP_USER_AGENT") : $_SERVER['HTTP_USER_AGENT']; ?> </td> </tr> <tr> <td valign="top"> <b> <?php echo $adminLanguage->A_COMP_ADMIN_SETTINGS; ?> </b> </td> <td> <table cellspacing="1" cellpadding="1" border="0"> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_MODE; ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('safe_mode'); ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_BASEDIR; ?> </td> <td> <?php echo ($ob = ini_get('open_basedir')) ? $ob : 'none'; ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_ERRORS; ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('display_errors'); ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_OPEN_TAGS; ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('short_open_tag'); ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_FILE_UPLOADS; ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('file_uploads'); ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_QUOTES; ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('magic_quotes_gpc'); ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_REG_GLOBALS; ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('register_globals'); ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_OUTPUT_BUFF; ?> </td> <td> <?php echo HTML_admin_misc::get_php_setting('output_buffering'); ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_S_SAVE_PATH; ?> </td> <td> <?php echo ($sp = ini_get('session.save_path')) ? $sp : 'none'; ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_S_AUTO_START; ?> </td> <td> <?php echo intval(ini_get('session.auto_start')); ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_XML; ?> </td> <td> <?php echo extension_loaded('xml') ? 'Yes' : 'No'; ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_ZLIB; ?> </td> <td> <?php echo extension_loaded('zlib') ? 'Yes' : 'No'; ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_DISABLED; ?> </td> <td> <?php echo ($df = ini_get('disable_functions')) ? $df : 'none'; ?> </td> </tr> <?php $query = "SELECT name FROM #__mambots" . "\nWHERE folder='editors' AND published='1'" . "\nLIMIT 1"; $database->setQuery($query); $editor = $database->loadResult(); ?> <tr> <td> <?php echo $adminLanguage->A_COMP_ADMIN_WYSIWYG; ?> </td> <td> <?php echo $editor; ?> </td> </tr> </table> </td> </tr> <tr> <td valign="top"> <b> <?php echo $adminLanguage->A_COMP_ADMIN_CONF_FILE; ?> </b> </td> <td> <?php $cf = file("{$mosConfig_absolute_path}/configuration.php"); foreach ($cf as $k => $v) { if (eregi('mosConfig_host', $v)) { $cf[$k] = '$mosConfig_host = \'xxxxxx\''; } else { if (eregi('mosConfig_user', $v)) { $cf[$k] = '$mosConfig_user = \'xxxxxx\''; } else { if (eregi('mosConfig_password', $v)) { $cf[$k] = '$mosConfig_password = \'xxxxxx\''; } else { if (eregi('mosConfig_db ', $v)) { $cf[$k] = '$mosConfig_db = \'xxxxxx\''; } else { if (eregi('<?php', $v)) { $cf[$k] = '<?php'; } } } } } } echo implode("<br />", $cf); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_ADMIN_PHP_INFO2, "php-page"); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo $adminLanguage->A_COMP_ADMIN_PHP_INFO; ?> </th> </tr> <tr> <td> <?php ob_start(); phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES); $phpinfo = ob_get_contents(); ob_end_clean(); preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output); $output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]); $output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output); $output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output); $output = preg_replace('#<hr />#', '', $output); echo $output; ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_ADMIN_PERMISSIONS, "perms"); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo $adminLanguage->A_COMP_ADMIN_DIR_PERM; ?> </th> </tr> <tr> <td> <strong> <?php echo $adminLanguage->A_COMP_ADMIN_FOR_ALL; ?> </strong> <?php mosHTML::writableCell('administrator/backups'); mosHTML::writableCell('administrator/components'); mosHTML::writableCell('administrator/modules'); mosHTML::writableCell('administrator/templates'); mosHTML::writableCell('cache'); mosHTML::writableCell('components'); mosHTML::writableCell('images'); mosHTML::writableCell('images/banners'); mosHTML::writableCell('images/stories'); mosHTML::writableCell('language'); mosHTML::writableCell('mambots'); mosHTML::writableCell('mambots/content'); mosHTML::writableCell('mambots/search'); mosHTML::writableCell('media'); mosHTML::writableCell('modules'); mosHTML::writableCell('templates'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); }
/** * Writes the edit form for new and existing module * * A new record is defined when <var>$row</var> is passed with the <var>id</var> * property set to 0. * @param mosCategory The category object * @param array <p>The modules of the left side. The array elements are in the form * <var>$leftorder[<i>order</i>] = <i>label</i></var> * where <i>order</i> is the module order from the db table and <i>label</i> is a * text label associciated with the order.</p> * @param array See notes for leftorder * @param array An array of select lists * @param object Parameters */ function editModule(&$row, &$orders2, &$lists, &$params, $option) { global $mosConfig_live_site, $mosConfig_cachepath, $my; $row->title = htmlspecialchars($row->title); $row->titleA = ''; if ($row->id) { $row->titleA = '<small><small>[ ' . $row->title . ' ]</small></small>'; } mosCommonHTML::loadOverlib(); ?> <script language="javascript" type="text/javascript"> function submitbutton(pressbutton) { if ( ( pressbutton == 'save' ) && ( document.adminForm.title.value == "" ) ) { alert("O Módulo deve possuir um título"); } else { <?php if ($row->module == "") { getEditorContents('editor1', 'content'); } ?> } submitform(pressbutton); } <!-- var originalOrder = '<?php echo $row->ordering; ?> '; var originalPos = '<?php echo $row->position; ?> '; var orders = new Array(); // array in the format [key,value,text] <?php $i = 0; foreach ($orders2 as $k => $items) { foreach ($items as $v) { echo "\n\torders[" . $i++ . "] = new Array( \"{$k}\",\"{$v->value}\",\"{$v->text}\" );"; } } ?> //--> </script> <table class="adminheading"> <tr> <th class="modules"> <?php echo $lists['client_id'] ? 'Administração' : 'Site'; ?> - Módulo: <small> <?php echo $row->id ? 'Editar' : 'Novo'; ?> </small> <?php echo $row->titleA; ?> </th> </tr> </table> <form action="index2.php" method="post" name="adminForm"> <table cellspacing="0" cellpadding="0" width="100%"> <tr valign="top"> <td width="60%"> <table class="adminform"> <tr> <th colspan="2"> Detalhes </th> </tr> <tr> <td width="100" align="left"> Título: </td> <td> <input class="text_area" type="text" name="title" size="35" value="<?php echo $row->title; ?> " /> </td> </tr> <!-- START selectable pages --> <tr> <td width="100" align="left"> Exibir título: </td> <td> <?php echo $lists['showtitle']; ?> </td> </tr> <tr> <td valign="top" align="left"> Posição: </td> <td> <?php echo $lists['position']; ?> </td> </tr> <tr> <td valign="top" align="left"> Ordem do Módulo: </td> <td> <script language="javascript" type="text/javascript"> <!-- writeDynaList( 'class="inputbox" name="ordering" size="1"', orders, originalPos, originalPos, originalOrder ); //--> </script> </td> </tr> <tr> <td valign="top" align="left"> Nível de Acesso: </td> <td> <?php echo $lists['access']; ?> </td> </tr> <tr> <td valign="top"> Publicado: </td> <td> <?php echo $lists['published']; ?> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td valign="top"> ID: </td> <td> <?php echo $row->id; ?> </td> </tr> <tr> <td valign="top"> Descrição: </td> <td> <?php echo $row->description; ?> </td> </tr> </table> <table class="adminform"> <tr> <th > Parâmetros </th> </tr> <tr> <td> <?php echo $params->render(); ?> </td> </tr> </table> <?php if ($row->module == "") { ?> <table class="adminform"> <tr> <td> <table align="center"> <?php $visible = 0; // check to hide certain paths if not super admin if ($my->gid == 25) { $visible = 1; } mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Diretório de Cache</strong> ', $visible); ?> </table> </td> </tr> </table> <?php } ?> </td> <td width="40%" > <table width="100%" class="adminform"> <tr> <th> Páginas / Itens </th> </tr> <tr> <td> Link(s) do Item de Menu: <br /> <?php echo $lists['selections']; ?> </td> </tr> </table> </td> </tr> <?php if ($row->module == "") { ?> <tr> <td colspan="2"> <table width="100%" class="adminform"> <tr> <th colspan="2"> Saída Personalizada </th> </tr> <tr> <td valign="top" align="left"> Conteúdo: </td> <td> <?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea('editor1', $row->content, 'content', '800', '400', '110', '40'); ?> </td> </tr> </table> </td> </tr> <?php } ?> </table> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> <input type="hidden" name="original" value="<?php echo $row->ordering; ?> " /> <input type="hidden" name="module" value="<?php echo $row->module; ?> " /> <input type="hidden" name="task" value="" /> <input type="hidden" name="client_id" value="<?php echo $lists['client_id']; ?> " /> <?php if ($row->client_id || $lists['client_id']) { echo '<input type="hidden" name="client" value="admin" />'; } ?> <input type="hidden" name="<?php echo josSpoofValue(); ?> " value="1" /> </form> <?php }