Exemplo n.º 1
0
 function toolTip($tooltip, $title = '', $width = '', $image = 'tooltip.png', $text = '', $href = '', $link = 1)
 {
     global $mainframe;
     if ($GLOBALS[ACA . 'disabletooltip'] and !$mainframe->isAdmin()) {
         $text = str_replace(array("'", '"'), array("'", '"'), $text);
         $title = str_replace(array("'", '"'), array("'", '"'), $title);
         $return = '<span class="editlinktip">';
         if (!empty($href) and !preg_match("/#/", $href)) {
             $return .= '<a href="' . $href . '">';
         }
         $return .= $text;
         if (!empty($href) and !preg_match("/#/", $href)) {
             $return .= '</a>';
         }
         $return .= '</span>';
         return $return;
     }
     if (ACA_CMSTYPE) {
         $text = str_replace(array("'", '"'), array("&#039;", '&quot;'), $text);
         $title = str_replace(array("'", '"'), array("&#039;", '&quot;'), $title);
         if (preg_match("/#/", $href)) {
             $href = null;
         }
         return JHTML::_('tooltip', $tooltip, $title, $image, $text, $href, $link);
     } else {
         if ($GLOBALS[ACA . 'use_sef'] and function_exists('sefRelToAbs')) {
             $href = sefRelToAbs($href);
         }
         return mosToolTip(htmlspecialchars($tooltip, ENT_QUOTES), addslashes($title), $width, $image, $text, $href, $link);
     }
 }
Exemplo n.º 2
0
 function toolTip($tooltip, $title = '', $width = '', $image = 'tooltip.png', $text = '', $href = '', $link = 1)
 {
     if (compa::joom10()) {
         if ($GLOBALS[ACA . 'use_sef'] and function_exists('sefRelToAbs')) {
             $href = sefRelToAbs($href);
         }
         return mosToolTip(addslashes($tooltip), addslashes($title), $width, $image, $text, $href, $link);
     } else {
         if (preg_match("/#/", $href)) {
             $href = null;
         }
         return JHTML::_('tooltip', $tooltip, $title, $image, $text, $href, $link);
     }
 }
Exemplo n.º 3
0
    function edit()
    {
        global $my, $mainframe, $database, $option, $priTask, $subTask;
        global $WBG_CONFIG, $wbGalleryDB_cat, $wbGallery_admin;
        mosCommonHTML::loadOverlib();
        ?>

    <form action="index2.php" method="post" name="adminForm" enctype="multipart/form-data">
      <table class="adminheading">
        <tr>
          <th class="config">
            <font size="+1">wbGallery</font><br/>
            Manage Configuration Options<br/>
            <a href="<?php 
        echo $mainframe->getCfg('live_site');
        ?>
/administrator/components/com_wbgallery/CHANGELOG.txt"
              target="_blank">[ View Change Log ]</a> in New Window
          </th>
        </tr>
      </table>
      <table width="100%" cellspacing="2" cellpadding="0">
        <tr><td valign="top">
          <table class="adminlist" width="100%" cellspacing="2" cellpadding="0">
            <tr>
              <th class="title" colspan="2">Resized Images - Large Format</th>
            </tr>
            <tr>
              <td>Resize Large:</td>
              <td><?php 
        echo mosHTML::yesnoRadioList('wbgconf[save_large]', '', $WBG_CONFIG->save_large);
        ?>

                <?php 
        echo mosToolTip('Should we Save the a Large Resized Image?', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Large Image Path:</td>
              <td><input type="text" name="wbgconf[path_large]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->path_large;
        ?>
" />
                <?php 
        echo mosToolTip('Path to Save a the Large Resized Images (with trailing slash)', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Large Width:</td>
              <td><input type="text" name="wbgconf[width_large]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->width_large;
        ?>
" />
                <?php 
        echo mosToolTip('Maxiumum Width of the Large Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Large Height:</td>
              <td><input type="text" name="wbgconf[height_large]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->height_large;
        ?>
" />
                <?php 
        echo mosToolTip('Maxiumum Height of the Large Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Large Image Quality:</td>
              <td><input type="text" name="wbgconf[quality_large]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->quality_large;
        ?>
" />
                <?php 
        echo mosToolTip('This is the Image Quality to use for Large Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <th class="title" colspan="2">Resized Images - Medium Format</th>
            </tr>
            <tr>
              <td>Resize Medium:</td>
              <td><?php 
        echo mosHTML::yesnoRadioList('wbgconf[save_medium]', '', $WBG_CONFIG->save_medium);
        ?>

                <?php 
        echo mosToolTip('Should we Save the a Medium Resized Image?', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Medium Image Path:</td>
              <td><input type="text" name="wbgconf[path_medium]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->path_medium;
        ?>
" />
                <?php 
        echo mosToolTip('Path to Save a the Medium Resized Images (with trailing slash)', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Medium Width:</td>
              <td><input type="text" name="wbgconf[width_medium]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->width_medium;
        ?>
" />
                <?php 
        echo mosToolTip('Maxiumum Width of the Medium Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Medium Height:</td>
              <td><input type="text" name="wbgconf[height_medium]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->height_medium;
        ?>
" />
                <?php 
        echo mosToolTip('Maxiumum Height of the Medium Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Medium Image Quality:</td>
              <td><input type="text" name="wbgconf[quality_medium]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->quality_medium;
        ?>
" />
                <?php 
        echo mosToolTip('This is the Image Quality to use for Medium Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <th class="title" colspan="2">Resized Images - Thumbnail Format</th>
            </tr>
            <tr>
              <td>Resize Thumbnail:</td>
              <td><?php 
        echo mosHTML::yesnoRadioList('wbgconf[save_thumb]', '', $WBG_CONFIG->save_thumb);
        ?>

                <?php 
        echo mosToolTip('Should we Save the a Thumbnail Resized Image?', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Thumbnail Image Path:</td>
              <td><input type="text" name="wbgconf[path_thumb]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->path_thumb;
        ?>
" />
                <?php 
        echo mosToolTip('Path to Save a the Thumbnail Resized Images (with trailing slash)', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Thumbnail Width:</td>
              <td><input type="text" name="wbgconf[width_thumb]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->width_thumb;
        ?>
" />
                <?php 
        echo mosToolTip('Maxiumum Width of the Thumbnail Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Thumbnail Height:</td>
              <td><input type="text" name="wbgconf[height_thumb]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->height_thumb;
        ?>
" />
                <?php 
        echo mosToolTip('Maxiumum Height of the Thumbnail Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Thumbnail Image Quality:</td>
              <td><input type="text" name="wbgconf[quality_thumb]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->quality_thumb;
        ?>
" />
                <?php 
        echo mosToolTip('This is the Image Quality to use for Thumbnail Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <th class="title" colspan="2">Resized Images - ThumbTack Format</th>
            </tr>
            <tr>
              <td>Resize ThumbTack:</td>
              <td><?php 
        echo mosHTML::yesnoRadioList('wbgconf[save_tack]', '', $WBG_CONFIG->save_tack);
        ?>

                <?php 
        echo mosToolTip('Should we Save the a ThumbTack Resized Image?', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>ThumbTack Image Path:</td>
              <td><input type="text" name="wbgconf[path_tack]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->path_tack;
        ?>
" />
                <?php 
        echo mosToolTip('Path to Save a the ThumbTack Resized Images (with trailing slash)', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>ThumbTack Width:</td>
              <td><input type="text" name="wbgconf[width_tack]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->width_tack;
        ?>
" />
                <?php 
        echo mosToolTip('Maxiumum Width of the ThumbTack Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>ThumbTack Height:</td>
              <td><input type="text" name="wbgconf[height_tack]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->height_tack;
        ?>
" />
                <?php 
        echo mosToolTip('Maxiumum Height of the ThumbTack Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>ThumbTack Image Quality:</td>
              <td><input type="text" name="wbgconf[quality_tack]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->quality_tack;
        ?>
" />
                <?php 
        echo mosToolTip('This is the Image Quality to use for ThumbTack Resized Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <th class="title" colspan="2">Original Images</th>
            </tr>
            <tr>
              <td width="200">Save Originals:</td>
              <td><?php 
        echo mosHTML::yesnoRadioList('wbgconf[save_original]', '', $WBG_CONFIG->save_original);
        ?>

                <?php 
        echo mosToolTip('Should we Save the Original Image?', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Images Path:</td>
              <td><input type="text" name="wbgconf[path_original]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->path_original;
        ?>
" />
                <?php 
        echo mosToolTip('Path to Save a Copy of the Original Images', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <th class="title" colspan="2">Image Processing Options</th>
            </tr>
            <tr>
              <td>Manage Memory:</td>
              <td><?php 
        echo mosHTML::yesnoRadioList('wbgconf[use_memManager]', '', $WBG_CONFIG->use_memManager);
        ?>

                <?php 
        echo mosToolTip('Should we Attempt to Manage the Server Memory when Processing Images? This feature attempts to allocate additional memory from the server when the image resize process is taking place.', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Use Image Magik:</td>
              <td><?php 
        echo mosHTML::yesnoRadioList('wbgconf[use_ImageMagik]', '', $WBG_CONFIG->use_ImageMagik);
        ?>

                <?php 
        echo mosToolTip('Should we Attempt to use the Image Magik Library for Image Processing? This is a SHELL command that will need to be installed if not already.', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Path to Image Magik:</td>
              <td><input type="text" name="wbgconf[path_ImageMagik]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->path_ImageMagik;
        ?>
" />
                <?php 
        echo mosToolTip('This is the PATH (with trailing slash) to the Image Magik script.', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <td>Image Magik Command:</td>
              <td><input type="text" name="wbgconf[file_ImageMagik]" class="text_area" size="30" value="<?php 
        echo $WBG_CONFIG->file_ImageMagik;
        ?>
" />
                <?php 
        echo mosToolTip('This is the SCRIPT FILENAME for the Image Magik script, located in the Image Magik Path.', 'Configuration Tip');
        ?>
</td>
            </tr>
            <tr>
              <th class="title" colspan="2">General Operation</th>
            </tr>
            <tr>
              <td>Show Copyright Footer:</td>
              <td><?php 
        echo mosHTML::yesnoRadioList('wbgconf[show_copyright]', '', $WBG_CONFIG->show_copyright);
        ?>

                <?php 
        echo mosToolTip('Will you Spread the Word and Keep the Copyright Footer Active?', 'Configuration Tip');
        ?>
</td>
            </tr>
          </table>
        </td><td valign="top">
          <table class="adminlist" width="100%" cellspacing="2" cellpadding="0">
            <tr>
              <th class="title" colspan="5">wbGallery Menu Items</th>
            </tr>
            <tr>
              <th>#</th>
              <th>Menu</th>
              <th>Type</th>
              <th>Title</th>
              <th>Itemid</th>
            </tr>
            <?php 
        $database->setQuery("SELECT * FROM #__menu WHERE `link` LIKE '%{$option}%'");
        $mRows = $database->loadObjectList();
        $count = 1;
        foreach ($mRows as $mRow) {
            $menuLink = 'index2.php?option=com_menus&menutype=' . $mRow->menutype;
            $itemLink = 'index2.php?option=com_menus&menutype=' . $mRow->menutype . '&task=edit&id=' . $mRow->id . '&hidemainmenu=1';
            $prevLink = $mainframe->getCfg('live_site') . '/' . $mRow->link;
            if ($mRow->type == 'components') {
                $prevLink .= '&Itemid=' . $mRow->id;
            }
            ?>

                <tr>
                  <td><?php 
            echo $count++;
            ?>
</td>
                  <td><a href="<?php 
            echo $menuLink;
            ?>
" target="_blank" alt="Manage Menu"><?php 
            echo $mRow->menutype;
            ?>
</a></td>
                  <td><?php 
            echo $mRow->type == 'components' ? 'Control' : 'Reference';
            ?>
</td>
                  <td><a href="<?php 
            echo $itemLink;
            ?>
" target="_blank" alt="Edit Menu Item"><?php 
            echo $mRow->name;
            ?>
</a></td>
                  <td><?php 
            echo $mRow->id;
            ?>
 <a href="<?php 
            echo $prevLink;
            ?>
" target="_blank" alt="Preview">[ show ]</a></td>
                </tr>
                <?php 
        }
        ?>

          </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" />
    </form>
    <?php 
    }
Exemplo n.º 4
0
 function end_element_param()
 {
     $type = mosGetParam($this->paramattrs, 'TYPE', '');
     $name = mosGetParam($this->paramattrs, 'NAME', '');
     $label = T_(mosGetParam($this->paramattrs, 'LABEL', $name));
     $default = T_(mosGetParam($this->paramattrs, 'DEFAULT', ''));
     if ($description = mosGetParam($this->paramattrs, 'DESCRIPTION', '')) {
         $tooltip = mosToolTip(T_($description), $name);
     } else {
         $tooltip = '';
     }
     if (is_object($this->mosParameter)) {
         $mp = $this->mosParameter;
         $value = $mp->get($name, $default);
     } else {
         $value = $default;
     }
     $this->html[] = '<tr>';
     if ($label == '@spacer') {
         $label = '<hr />';
     } elseif ($label) {
         $label .= ':';
     }
     $this->html[] = '<td width="35%" align="right" valign="top">' . $label . '</td>';
     $controlname = $this->name;
     switch ($type) {
         case 'text':
             $size = mosGetParam($this->paramattrs, 'SIZE', 0);
             $controlstring = '<input type="text" name="' . $this->name . '[' . $name . ']" value="' . $value . '" class="text_area" size="' . $size . '" />';
             break;
         case 'list':
             $controlstring = mosHTML::selectList($this->options, $controlname . '[' . $name . ']', 'class="inputbox"', 'value', 'text', $value);
             break;
         case 'radio':
             $controlstring = mosHTML::radioList($this->options, $controlname . '[' . $name . ']', '', $value);
             break;
         case 'imagelist':
             $directory = new mosDirectory(mamboCore::get('mosConfig_absolute_path') . mosGetParam($this->paramattrs, 'DIRECTORY', ''));
             $files = $directory->listFiles('\\.png$|\\.gif$|\\.jpg$|\\.bmp$|\\.ico$');
             $options = array();
             foreach ($files as $file) {
                 $options[] = mosHTML::makeOption($file, $file);
             }
             if (!isset($this->paramattrs['HIDE_NONE'])) {
                 array_unshift($options, mosHTML::makeOption('-1', '- Do not use an image -'));
             }
             if (!isset($this->paramattrs['HIDE_DEFAULT'])) {
                 array_unshift($options, mosHTML::makeOption('', '- Use Default image -'));
             }
             $controlstring = mosHTML::selectList($options, $controlname . '[' . $name . ']', 'class="inputbox"', 'value', 'text', $value);
             break;
         case 'textarea':
             $rows = mosGetParam($this->paramattrs, 'ROWS', 0);
             $cols = mosGetParam($this->paramattrs, 'COLS', 0);
             $value = str_replace('<br />', "\n", $value);
             $controlstring = "<textarea name='params[{$name}]' cols='{$cols}' rows='{$rows}' class='text_area'>{$value}</textarea>";
             break;
         case 'spacer':
             $controlstring = $value ? $value : '<hr />';
             break;
         case 'mos_section':
             $controlstring = $this->_form_mos_section($name, $value, $controlname);
             break;
         case 'mos_category':
             $controlstring = $this->_form_mos_category($name, $value, $controlname);
             break;
         case 'mos_menu':
             $controlstring = $this->_form_mos_menu($name, $value, $controlname);
             break;
         default:
             $controlstring = T_('Handler not defined for type') . '=' . $type;
     }
     //		$this->html[] = "<td>$type</td>";
     $this->html[] = "<td>{$controlstring}</td>";
     $this->html[] = "<td width='10%' align='left' valign='top'>{$tooltip}</td>";
     $this->html[] = '</tr>';
     $this->options = array();
     $this->paramattrs = array();
     $this->paramcount++;
 }
Exemplo n.º 5
0
 /**
  * Custom tooltip method
  * When no href ( or '#') is given, the icon will become a link to a
  * js alert box
  */
 function mosToolTip($tooltip, $title = '', $width = '', $image = 'tooltip.png', $text = '', $href = '#', $link = 1)
 {
     if ($href == '#' or $href == '') {
         $alert = strip_tags(DOCMAN_Utils::br2nl($tooltip));
         $href = "javascript:alert('" . $alert . "');";
     }
     return mosToolTip($tooltip, $title, $width, $image, $text, $href, $link);
 }
Exemplo n.º 6
0
    function editCategory(&$menu, &$lists, &$params, $option)
    {
        global $mosConfig_live_site, $adminLanguage;
        $tabs = new mosTabs(0);
        ?>
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			if ( pressbutton == 'cancel' ) {
				submitform( pressbutton );
				return;
			}
			var form = document.adminForm;
			<?php 
        if (!$menu->id) {
            ?>
				if ( getSelectedValue( 'adminForm', 'componentid' ) < 1 ) {
					alert( 'You must select a category' );
					return;
				}
				cat = getSelectedText( 'adminForm', 'componentid' );
	
				form.link.value = "index.php?option=com_contact&catid=" + form.componentid.value;
				if ( form.name.value == '' ) {
					form.name.value = cat;
				}
				submitform( pressbutton );
				<?php 
        } else {
            ?>
				if ( form.name.value == '' ) {
					alert( 'This Menu item must have a title' );
				} else {
					submitform( pressbutton );
				}
				<?php 
        }
        ?>
		}
		</script>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th>
			<?php 
        echo $menu->id ? $adminLanguage->A_EDIT : $adminLanguage->A_COMP_ADD;
        ?>
 <?php 
        echo $adminLanguage->A_COMP_MENUS_MENU_ITEM;
        ?>
 :: <?php 
        echo $adminLanguage->A_COMP_MENUS_TABLE;
        ?>
 - <?php 
        echo $adminLanguage->A_COMP_MENUS_CONTACT_CAT;
        ?>
			</th>
		</tr>
		</table>
		<?php 
        $tabs->startPane("module");
        $tabs->startTab($adminLanguage->A_DETAILS, "Details-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="10%" align="right" valign="top">
			<?php 
        echo $adminLanguage->A_COMP_TITLE;
        ?>
:
			</td>
			<td width="200px">
			<input type="text" name="name" size="30" maxlength="100" class="inputbox" value="<?php 
        echo $menu->name;
        ?>
"/>
			</td>
			<td>
			<?php 
        if (!$menu->id) {
            echo mosToolTip($adminLanguage->A_COMP_MENUS_CMP_CCT_BLANK);
        }
        ?>
			</td>
		</tr>
		<tr>
			<td width="10%" align="right" valign="top">
			<?php 
        echo $adminLanguage->A_COMP_CATEG;
        ?>
:
			</td>
			<td colspan="2">
			<?php 
        echo $lists['componentid'];
        ?>
			</td>
		</tr>
		<tr>
			<td align="right">
			<?php 
        echo $adminLanguage->A_COMP_ADMIN_URL;
        ?>
:
			</td>
			<td colspan="2">
			<?php 
        echo $lists['link'];
        ?>
			</td>
		</tr>
		<tr>
			<td align="right">
			<?php 
        echo $adminLanguage->A_COMP_MENUS_CIL_PARENT;
        ?>
:
			</td>
			<td colspan="2">
			<?php 
        echo $lists['parent'];
        ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="right">
			<?php 
        echo $adminLanguage->A_COMP_ORDERING;
        ?>
:
			</td>
			<td colspan="2">
			<?php 
        echo $lists['ordering'];
        ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="right">
			<?php 
        echo $adminLanguage->A_COMP_ACCESS_LEVEL;
        ?>
:
			</td>
			<td colspan="2">
			<?php 
        echo $lists['access'];
        ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="right">
			<?php 
        echo $adminLanguage->A_COMP_PUBLISHED;
        ?>
:
			</td>
			<td colspan="2">
			<?php 
        echo $lists['published'];
        ?>
			</td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab($adminLanguage->A_COMP_CONT_PARAMETERS, "params-page");
        ?>
		<table class="adminform">
		<tr>
			<td>
			<?php 
        echo $params->render();
        ?>
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->endPane();
        ?>
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="id" value="<?php 
        echo $menu->id;
        ?>
" />
		<input type="hidden" name="menutype" value="<?php 
        echo $menu->menutype;
        ?>
" />
		<input type="hidden" name="type" value="<?php 
        echo $menu->type;
        ?>
" />
		<input type="hidden" name="link" value="<?php 
        echo $menu->link;
        ?>
" />
		<input type="hidden" name="task" value="" />
		</form>
		<script language="Javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>
		<?php 
    }
Exemplo n.º 7
0
    public static function showconfig(&$row, &$lists, $option)
    {
        global $mosConfig_absolute_path, $mosConfig_live_site, $mosConfig_session_type, $mainframe;
        $tabs = new mosTabs(0);
        ?>
		<script type="text/javascript">
		<!--
		function saveFilePerms() {
			var f = document.adminForm;
			if (f.filePermsMode0.checked)
				f.config_fileperms.value = '';
			else {
				var perms = 0;
				if (f.filePermsUserRead.checked) perms += 400;
				if (f.filePermsUserWrite.checked) perms += 200;
				if (f.filePermsUserExecute.checked) perms += 100;
				if (f.filePermsGroupRead.checked) perms += 40;
				if (f.filePermsGroupWrite.checked) perms += 20;
				if (f.filePermsGroupExecute.checked) perms += 10;
				if (f.filePermsWorldRead.checked) perms += 4;
				if (f.filePermsWorldWrite.checked) perms += 2;
				if (f.filePermsWorldExecute.checked) perms += 1;
				f.config_fileperms.value = '0'+''+perms;
			}
		}
		function changeFilePermsMode(mode) {
			if(document.getElementById) {
				switch (mode) {
					case 0:
						document.getElementById('filePermsValue').style.display = 'none';
						document.getElementById('filePermsTooltip').style.display = '';
						document.getElementById('filePermsFlags').style.display = 'none';
						break;
					default:
						document.getElementById('filePermsValue').style.display = '';
						document.getElementById('filePermsTooltip').style.display = 'none';
						document.getElementById('filePermsFlags').style.display = '';
				} // switch
			} // if
			saveFilePerms();
		}
		function saveDirPerms() {
			var f = document.adminForm;
			if (f.dirPermsMode0.checked)
				f.config_dirperms.value = '';
			else {
				var perms = 0;
				if (f.dirPermsUserRead.checked) perms += 400;
				if (f.dirPermsUserWrite.checked) perms += 200;
				if (f.dirPermsUserSearch.checked) perms += 100;
				if (f.dirPermsGroupRead.checked) perms += 40;
				if (f.dirPermsGroupWrite.checked) perms += 20;
				if (f.dirPermsGroupSearch.checked) perms += 10;
				if (f.dirPermsWorldRead.checked) perms += 4;
				if (f.dirPermsWorldWrite.checked) perms += 2;
				if (f.dirPermsWorldSearch.checked) perms += 1;
				f.config_dirperms.value = '0'+''+perms;
			}
		}
		function changeDirPermsMode(mode) 	{
			if(document.getElementById) {
				switch (mode) {
					case 0:
						document.getElementById('dirPermsValue').style.display = 'none';
						document.getElementById('dirPermsTooltip').style.display = '';
						document.getElementById('dirPermsFlags').style.display = 'none';
						break;
					default:
						document.getElementById('dirPermsValue').style.display = '';
						document.getElementById('dirPermsTooltip').style.display = 'none';
						document.getElementById('dirPermsFlags').style.display = '';
				} // switch
			} // if
			saveDirPerms();
		}
		function submitbutton(pressbutton) {
			var form = document.adminForm;

			// do field validation
			if (form.config_session_type.value != <?php 
        echo $row->config_session_type;
        ?>
 ){
				if ( confirm('Are you sure you wish to change the `Session Authentication Method`? \n\n This will cause all existing front-end sessions to be deleted \n\n') ) {
					submitform( pressbutton );
				} else {
					return;
				}
			} else {
				submitform( pressbutton );
			}
		}
		//-->
		</script>
		<form action="index2.php" method="post" name="adminForm">
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<table cellpadding="1" cellspacing="1" border="0" width="100%">
		<tr>
			<td width="250"><table class="adminheading"><tr><th nowrap="nowrap" class="config">Global Configuration</th></tr></table></td>
			<td width="270">
				<span class="componentheading">configuration.php is :
				<?php 
        echo is_writable('../configuration.php') ? '<b><font color="green"> Writeable</font></b>' : '<b><font color="red"> Unwriteable</font></b>';
        ?>
				</span>
			</td>
			<?php 
        if (mosIsChmodable('../configuration.php')) {
            if (is_writable('../configuration.php')) {
                ?>
					<td>
						<input type="checkbox" id="disable_write" name="disable_write" value="1"/>
						<label for="disable_write">Make unwriteable after saving</label>
					</td>
					<?php 
            } else {
                ?>
					<td>
						<input type="checkbox" id="enable_write" name="enable_write" value="1"/>
						<label for="enable_write">Override write protection while saving</label>
					</td>
				<?php 
            }
            // if
        }
        // if
        ?>
		</tr>
		</table>
			<?php 
        $tabs->startPane("configPane");
        $tabs->startTab("Site", "site-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Site Offline:</td>
				<td><?php 
        echo $lists['offline'];
        ?>
</td>
			</tr>
			<tr>
				<td valign="top">Offline Message:</td>
				<td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_offline_message"><?php 
        echo $row->config_offline_message;
        ?>
</textarea><?php 
        $tip = 'A message that displays if your site is offline';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td valign="top">System Error Message:</td>
				<td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_error_message"><?php 
        echo $row->config_error_message;
        ?>
</textarea><?php 
        $tip = 'A message that displays if Joomla! could not connect to the database';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Site Name:</td>
				<td><input class="text_area" type="text" name="config_sitename" size="50" value="<?php 
        echo $row->config_sitename;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Show Unauthorised Links:</td>
				<td><?php 
        echo $lists['shownoauth'];
        $tip = 'If yes, will show links to content to registered content even if you are not logged in.  The user will need to login to see the item in full.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Allow User Registration:</td>
				<td><?php 
        echo $lists['allowUserRegistration'];
        $tip = 'If yes, allows users to self-register';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Use New Account Activation:</td>
				<td><?php 
        echo $lists['useractivation'];
        ?>
				<?php 
        $tip = 'If yes, the user will be mailed a link to activate their account before they can log in.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Require Unique E-mail:</td>
				<td><?php 
        echo $lists['uniquemail'];
        $tip = 'If yes, users cannot share the same e-mail address';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Front-end Login:</td>
				<td>
					<?php 
        echo $lists['frontend_login'];
        ?>
					<?php 
        $tip = 'If `No`, disables the Front-end login page and module even when associated with a menu item. Will also disable Registration functionality';
        echo mosToolTip($tip);
        ?>
				</td>
			</tr>
			<tr>
				<td>Front-end User Params:</td>
				<td>
					<?php 
        echo $lists['frontend_userparams'];
        ?>
					<?php 
        $tip = 'If `No`, disables the front-end User params functionality';
        echo mosToolTip($tip);
        ?>
				</td>
			</tr>
			<tr>
				<td>Debug Site:</td>
				<td>
					<?php 
        echo $lists['debug'];
        ?>
					<?php 
        $tip = 'If yes, displays diagnostic information and SQL errors if present';
        echo mosToolTip($tip);
        ?>
				</td>
			</tr>
			<tr>
				<td>Default WYSIWYG Editor:</td>
				<td><?php 
        echo $lists['editor'];
        ?>
</td>
			</tr>
			<tr>
				<td>List Length:</td>
				<td>
					<?php 
        echo $lists['list_limit'];
        ?>
					<?php 
        $tip = 'Sets the default length of lists in the administrator for all users';
        echo mosToolTip($tip);
        ?>
				</td>
			</tr>
			<tr>
				<td>Favourites Site Icon:</td>
				<td>
				<input class="text_area" type="text" name="config_favicon" size="20" value="<?php 
        echo $row->config_favicon;
        ?>
"/>
				<?php 
        $tip = 'If left blank or the file cannot be found, the default favicon.ico will be used.';
        echo mosToolTip($tip, 'Favourite Icon');
        ?>
				</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Locale", "Locale-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Language:</td>
				<td><?php 
        echo $lists['lang'];
        ?>
</td>
			</tr>
			<tr>
				<td width="185">Time Offset:</td>
				<td>
				<?php 
        echo $lists['offset'];
        ?>
				<?php 
        $tip = "Current date/time configured to display: " . mosCurrentDate(_DATE_FORMAT_LC2);
        echo mosToolTip($tip);
        ?>
				</td>
			</tr>
			<tr>
				<td width="185">Server Offset:</td>
				<td>
				<input class="text_area" type="text" name="config_offset" size="15" value="<?php 
        echo $row->config_offset;
        ?>
" disabled="disabled" />
				</td>
			</tr>
			<tr>
				<td width="185">Country Locale:</td>
				<td>
				<input class="text_area" type="text" name="config_locale" size="15" value="<?php 
        echo $row->config_locale;
        ?>
"/>
				</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Content", "content-page");
        ?>
			<table class="adminform">
			<tr>
				<td colspan="3">* These Parameters control Output elements*<br/><br/></td>
			</tr>
			<tr>
				<td width="200">Linked Titles:</td>
				<td width="100"><?php 
        echo $lists['link_titles'];
        ?>
</td>
				<td><?php 
        $tip = 'If yes, the title of content items will be hyperlinked to the item';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td width="200">Read More Link:</td>
				<td width="100"><?php 
        echo $lists['readmore'];
        ?>
</td>
				<td><?php 
        $tip = 'If set to show, the read-more link will show if main-text has been provided for the item';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Item Rating/Voting:</td>
				<td><?php 
        echo $lists['vote'];
        ?>
</td>
				<td><?php 
        $tip = 'If set to show, a voting system will be enabled for content items';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Author Names:</td>
				<td><?php 
        echo $lists['hideAuthor'];
        ?>
</td>
				<td><?php 
        $tip = 'If set to show, the name of the author will be displayed.  This a global setting but can be changed at menu and item levels.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Created Date and Time:</td>
				<td><?php 
        echo $lists['hideCreateDate'];
        ?>
</td>
				<td><?php 
        $tip = 'If set to show, the date and time an item was created will be displayed. This a global setting but can be changed at menu and item levels.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Modified Date and Time:</td>
				<td><?php 
        echo $lists['hideModifyDate'];
        ?>
</td>
				<td><?php 
        $tip = 'If set to show, the date and time an item was last modified will be displayed.  This a global setting but can be changed at menu and item levels.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Hits:</td>
				<td><?php 
        echo $lists['hits'];
        ?>
</td>
				<td><?php 
        $tip = 'If set to show, the hits for a particular item will be displayed.  This a global setting but can be changed at menu and item levels.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>PDF Icon:</td>
				<td><?php 
        echo $lists['hidePdf'];
        ?>
</td>
				<?php 
        if (!is_writable("{$mosConfig_absolute_path}/media/")) {
            echo "<td align=\"left\">";
            echo mosToolTip('Option not available as /media directory not writable');
            echo "</td>";
        } else {
            ?>
					<td>&nbsp;</td>
					<?php 
        }
        ?>
			</tr>
			<tr>
				<td>Print Icon:</td>
				<td><?php 
        echo $lists['hidePrint'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>E-mail Icon:</td>
				<td><?php 
        echo $lists['hideEmail'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Icons:</td>
				<td><?php 
        echo $lists['icons'];
        ?>
</td>
				<td><?php 
        echo mosToolTip('Print, PDF and E-mail will utilise Icons or Text');
        ?>
</td>
			</tr>
			<tr>
				<td>Table of Contents on multi-page items:</td>
				<td><?php 
        echo $lists['multipage_toc'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Back Button:</td>
				<td><?php 
        echo $lists['back_button'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Content Item Navigation:</td>
				<td><?php 
        echo $lists['item_navigation'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Itemid Compatibility Mode:</td>
				<td><?php 
        echo $lists['itemid_compat'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			</table>
			<input type="hidden" name="config_multilingual_support" value="<?php 
        echo $row->config_multilingual_support;
        ?>
">
			<?php 
        $tabs->endTab();
        $tabs->startTab("Database", "db-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Hostname:</td>
				<td><input class="text_area" type="text" name="config_host" size="25" value="<?php 
        echo $row->config_host;
        ?>
"/></td>
			</tr>
			<tr>
				<td>MySQL Username:</td>
				<td><input class="text_area" type="text" name="config_user" size="25" value="<?php 
        echo $row->config_user;
        ?>
"/></td>
			</tr>
			<tr>
				<td>MySQL Database:</td>
				<td><input class="text_area" type="text" name="config_db" size="25" value="<?php 
        echo $row->config_db;
        ?>
"/></td>
			</tr>
			<tr>
				<td>MySQL Database Prefix:</td>
				<td>
				<input class="text_area" type="text" name="config_dbprefix" size="10" value="<?php 
        echo $row->config_dbprefix;
        ?>
"/>
				&nbsp;<?php 
        echo mosWarning('!! DO NOT CHANGE UNLESS YOU HAVE A DATABASE BUILT USING TABLES WITH THE PREFIX YOU ARE SETTING !!');
        ?>
				</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Server", "server-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Absolute Path:</td>
				<td width="450"><strong><?php 
        echo $row->config_absolute_path;
        ?>
</strong></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Live Site:</td>
				<td><strong><?php 
        echo $row->config_live_site;
        ?>
</strong></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Secret Word:</td>
				<td><strong><?php 
        echo $row->config_secret;
        ?>
</strong></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>GZIP Page Compression:</td>
				<td>
				<?php 
        echo $lists['gzip'];
        ?>
				<?php 
        echo mosToolTip('Compress buffered output if supported');
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Site Session Lifetime:</td>
				<td>
				<input class="text_area" type="text" name="config_lifetime" size="10" value="<?php 
        echo $row->config_lifetime;
        ?>
"/>
				&nbsp;seconds&nbsp;
				<?php 
        echo mosWarning('Auto logout after this time of inactivity for <strong>site/front-end</strong> users. The higher the value the greater the security risk!');
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Admin Session Lifetime:</td>
				<td>
				<input class="text_area" type="text" name="config_session_life_admin" size="10" value="<?php 
        echo $row->config_session_life_admin;
        ?>
"/>
				&nbsp;seconds&nbsp;
				<?php 
        echo mosWarning('Auto logout after this time of inactivity for <strong>admin/back-end</strong> users. The higher the value the greater the security risk!');
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Remember Expired Admin page:</td>
				<td>
				<?php 
        echo $lists['admin_expired'];
        ?>
				<?php 
        echo mosToolTip('If session expires, when you log back in within 10 minutes of logout, you will be redirected on login to the page you were trying to access when you were logged out');
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Session Authentication Method:</td>
				<td>
				<?php 
        echo $lists['session_type'];
        ?>
				&nbsp;&nbsp;
				<?php 
        echo mosWarning('Do not change unless you know what you are doing!<br /><br /> If you have a number of users using AOL or behind Proxy banks, you might consider using the Level 2 setting');
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Error Reporting:</td>
				<td><?php 
        echo $lists['error_reporting'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Help Server:</td>
				<td><input class="text_area" type="text" name="config_helpurl" size="50" value="<?php 
        echo $row->config_helpurl;
        ?>
"/></td>
			</tr>
			<tr>
				<?php 
        $mode = 0;
        $flags = 0644;
        if ($row->config_fileperms != '') {
            $mode = 1;
            $flags = octdec($row->config_fileperms);
        }
        // if
        ?>
				<td valign="top">File Creation:</td>
				<td>
					<fieldset><legend>File Permissions</legend>
						<table cellpadding="1" cellspacing="1" border="0">
							<tr>
								<td><input type="radio" id="filePermsMode0" name="filePermsMode" value="0" onclick="changeFilePermsMode(0)"<?php 
        if (!$mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td><label for="filePermsMode0">Dont CHMOD new files (use server defaults)</label></td>
							</tr>
							<tr>
								<td><input type="radio" id="filePermsMode1" name="filePermsMode" value="1" onclick="changeFilePermsMode(1)"<?php 
        if ($mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td>
									<label for="filePermsMode1">CHMOD new files</label>
									<span id="filePermsValue"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
									to:	<input class="text_area" type="text" readonly="readonly" name="config_fileperms" size="4" value="<?php 
        echo $row->config_fileperms;
        ?>
"/>
									</span>
									<span id="filePermsTooltip"<?php 
        if ($mode) {
            echo ' style="display:none"';
        }
        ?>
>
									&nbsp;<?php 
        echo mosToolTip('Select this option to define permission flags for new created files');
        ?>
									</span>
								</td>
							</tr>
							<tr id="filePermsFlags"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
								<td>&nbsp;</td>
								<td>
									<table cellpadding="0" cellspacing="1" border="0">
										<tr>
											<td style="padding:0px">User:</td>
											<td style="padding:0px"><input type="checkbox" id="filePermsUserRead" name="filePermsUserRead" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 0400) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsUserRead">read</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsUserWrite" name="filePermsUserWrite" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 0200) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsUserWrite">write</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsUserExecute" name="filePermsUserExecute" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 0100) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" colspan="3"><label for="filePermsUserExecute">execute</label></td>
										</tr>
										<tr>
											<td style="padding:0px">Group:</td>
											<td style="padding:0px"><input type="checkbox" id="filePermsGroupRead" name="filePermsGroupRead" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 040) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsGroupRead">read</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsGroupWrite" name="filePermsGroupWrite" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 020) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsGroupWrite">write</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsGroupExecute" name="filePermsGroupExecute" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 010) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" width="70"><label for="filePermsGroupExecute">execute</label></td>
											<td><input type="checkbox" id="applyFilePerms" name="applyFilePerms" value="1"/></td>
											<td nowrap="nowrap">
												<label for="applyFilePerms">
													Apply to existing files
													&nbsp;<?php 
        echo mosWarning('Checking here will apply the permission flags to <em>all existing files</em> of the site.<br/>' . '<b>INAPPROPRIATE USAGE OF THIS OPTION MAY RENDER THE SITE INOPERATIVE!</b>');
        ?>
												</label>
											</td>
										</tr>
										<tr>
											<td style="padding:0px">World:</td>
											<td style="padding:0px"><input type="checkbox" id="filePermsWorldRead" name="filePermsWorldRead" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 04) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsWorldRead">read</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsWorldWrite" name="filePermsWorldWrite" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 02) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsWorldWrite">write</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsWorldExecute" name="filePermsWorldExecute" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 01) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" colspan="4"><label for="filePermsWorldExecute">execute</label></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</fieldset>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<?php 
        $mode = 0;
        $flags = 0755;
        if ($row->config_dirperms != '') {
            $mode = 1;
            $flags = octdec($row->config_dirperms);
        }
        // if
        ?>
				<td valign="top">Directory Creation:</td>
				<td>
					<fieldset><legend>Directory Permissions</legend>
						<table cellpadding="1" cellspacing="1" border="0">
							<tr>
								<td><input type="radio" id="dirPermsMode0" name="dirPermsMode" value="0" onclick="changeDirPermsMode(0)"<?php 
        if (!$mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td><label for="dirPermsMode0">Dont CHMOD new directories (use server defaults)</label></td>
							</tr>
							<tr>
								<td><input type="radio" id="dirPermsMode1" name="dirPermsMode" value="1" onclick="changeDirPermsMode(1)"<?php 
        if ($mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td>
									<label for="dirPermsMode1">CHMOD new directories</label>
									<span id="dirPermsValue"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
									to: <input class="text_area" type="text" readonly="readonly" name="config_dirperms" size="4" value="<?php 
        echo $row->config_dirperms;
        ?>
"/>
									</span>
									<span id="dirPermsTooltip"<?php 
        if ($mode) {
            echo ' style="display:none"';
        }
        ?>
>
									&nbsp;<?php 
        echo mosToolTip('Select this option to define permission flags for new created directories');
        ?>
									</span>
								</td>
							</tr>
							<tr id="dirPermsFlags"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
								<td>&nbsp;</td>
								<td>
									<table cellpadding="1" cellspacing="0" border="0">
										<tr>
											<td style="padding:0px">User:</td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsUserRead" name="dirPermsUserRead" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 0400) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsUserRead">read</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsUserWrite" name="dirPermsUserWrite" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 0200) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsUserWrite">write</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsUserSearch" name="dirPermsUserSearch" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 0100) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" colspan="3"><label for="dirPermsUserSearch">search</label></td>
										</tr>
										<tr>
											<td style="padding:0px">Group:</td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsGroupRead" name="dirPermsGroupRead" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 040) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsGroupRead">read</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsGroupWrite" name="dirPermsGroupWrite" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 020) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsGroupWrite">write</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsGroupSearch" name="dirPermsGroupSearch" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 010) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" width="70"><label for="dirPermsGroupSearch">search</label></td>
											<td><input type="checkbox" id="applyDirPerms" name="applyDirPerms" value="1"/></td>
											<td nowrap="nowrap">
												<label for="applyDirPerms">
													Apply to existing directories
													&nbsp;<?php 
        echo mosWarning('Checking here will apply the permission flags to <em>all existing directories</em> of the site.<br/>' . '<b>INAPPROPRIATE USAGE OF THIS OPTION MAY RENDER THE SITE INOPERATIVE!</b>');
        ?>
												</label>
											</td>
										</tr>
										<tr>
											<td style="padding:0px">World:</td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsWorldRead" name="dirPermsWorldRead" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 04) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsWorldRead">read</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsWorldWrite" name="dirPermsWorldWrite" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 02) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsWorldWrite">write</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsWorldSearch" name="dirPermsWorldSearch" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 01) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" colspan="3"><label for="dirPermsWorldSearch">search</label></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</fieldset>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<?php 
        $rgmode = 0;
        if (defined('RG_EMULATION')) {
            $rgmode = RG_EMULATION;
        }
        ?>
				<td valign="top">Register Globals Emulation:</td>
				<td>
					<fieldset><legend>Register Globals Emulation</legend>
						<table cellpadding="1" cellspacing="1" border="0">
							<tr>
								<td><input type="radio" id="rgemulation" name="rgemulation" value="0"<?php 
        if (!$rgmode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td><label for="rgemulation">OFF - more secure and the preferred setting</label></td>
							</tr>
							<tr>
								<td><input type="radio" id="rgemulation" name="rgemulation" value="1"<?php 
        if ($rgmode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td><label for="rgemulation">ON - better compatibility but less secure</label></td>
							</tr>
							</tr>
						</table>
					</fieldset>
				</td>
				<td>&nbsp;</td>
			</tr>

			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Metadata", "metadata-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185" valign="top">Global Site Meta Description:</td>
				<td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_MetaDesc"><?php 
        echo $row->config_MetaDesc;
        ?>
</textarea></td>
			</tr>
			<tr>
				<td valign="top">Global Site Meta Keywords:</td>
				<td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_MetaKeys"><?php 
        echo $row->config_MetaKeys;
        ?>
</textarea></td>
			</tr>
			<tr>
				<td valign="top">Show Title Meta Tag:</td>
				<td>
				<?php 
        echo $lists['MetaTitle'];
        ?>
				&nbsp;&nbsp;&nbsp;
				<?php 
        echo mosToolTip('Show the title meta tag when viewing content items');
        ?>
				</td>
			  	</tr>
			<tr>
				<td valign="top">Show Author Meta Tag:</td>
				<td>
				<?php 
        echo $lists['MetaAuthor'];
        ?>
				&nbsp;&nbsp;&nbsp;
				<?php 
        echo mosToolTip('Show the author meta tag when viewing content items');
        ?>
				</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Mail", "mail-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Mailer:</td>
				<td><?php 
        echo $lists['mailer'];
        ?>
</td>
			</tr>
			<tr>
				<td>Mail From:</td>
				<td><input class="text_area" type="text" name="config_mailfrom" size="50" value="<?php 
        echo $row->config_mailfrom;
        ?>
"/></td>
			</tr>
			<tr>
				<td>From Name:</td>
				<td><input class="text_area" type="text" name="config_fromname" size="50" value="<?php 
        echo $row->config_fromname;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Sendmail Path:</td>
				<td><input class="text_area" type="text" name="config_sendmail" size="50" value="<?php 
        echo $row->config_sendmail;
        ?>
"/></td>
			</tr>
			<tr>
				<td>SMTP Auth:</td>
				<td><?php 
        echo $lists['smtpauth'];
        ?>
</td>
			</tr>
			<tr>
				<td>SMTP User:</td>
				<td><input class="text_area" type="text" name="config_smtpuser" size="50" value="<?php 
        echo $row->config_smtpuser;
        ?>
"/></td>
			</tr>
			<tr>
				<td>SMTP Pass:</td>
				<td><input class="text_area" type="text" name="config_smtppass" size="50" value="<?php 
        echo $row->config_smtppass;
        ?>
"/></td>
			</tr>
			<tr>
				<td>SMTP Host:</td>
				<td><input class="text_area" type="text" name="config_smtphost" size="50" value="<?php 
        echo $row->config_smtphost;
        ?>
"/></td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Cache", "cache-page");
        ?>
			<table class="adminform" border="0">
			<?php 
        if (is_writeable($row->config_cachepath)) {
            ?>
				<tr>
					<td width="185">Caching:</td>
					<td width="500"><?php 
            echo $lists['caching'];
            ?>
</td>
					<td>&nbsp;</td>
				</tr>
				<?php 
        }
        ?>
			<tr>
				<td>Cache Folder:</td>
				<td>
				<input class="text_area" type="text" name="config_cachepath" size="50" value="<?php 
        echo $row->config_cachepath;
        ?>
"/>
				<?php 
        if (is_writeable($row->config_cachepath)) {
            echo mosToolTip('Current cache is directory is <b>Writeable</b>');
        } else {
            echo mosWarning('The cache directory is UNWRITEABLE - please set this directory to CHMOD755 before turning on the cache');
        }
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Cache Time:</td>
				<td><input class="text_area" type="text" name="config_cachetime" size="5" value="<?php 
        echo $row->config_cachetime;
        ?>
"/> seconds</td>
				<td>&nbsp;</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Statistics", "stats-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Statistics:</td>
				<td width="100"><?php 
        echo $lists['enable_stats'];
        ?>
</td>
				<td><?php 
        echo mostooltip('Enable/disable collection of site statistics');
        ?>
</td>
			</tr>
			<tr>
				<td>Log Content Hits by Date:</td>
				<td><?php 
        echo $lists['log_items'];
        ?>
</td>
				<td><span class="error"><?php 
        echo mosWarning('WARNING : Large amounts of data will be collected');
        ?>
</span></td>
			</tr>
			<tr>
				<td>Log Search Strings:</td>
				<td><?php 
        echo $lists['log_searches'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("SEO", "seo-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="200"><strong>Search Engine Optimization</strong></td>
				<td width="100">&nbsp;</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Search Engine Friendly URLs:</td>
				<td><?php 
        echo $lists['sef'];
        ?>
&nbsp;</td>
				<td><span class="error"><?php 
        echo mosWarning('Apache only! Rename htaccess.txt to .htaccess before activating');
        ?>
</span></td>
			</tr>
			<tr>
				<td>Dynamic Page Titles:</td>
				<td><?php 
        echo $lists['pagetitles'];
        ?>
</td>
				<td><?php 
        echo mosToolTip('Dynamically changes the page title to reflect current content viewed');
        ?>
</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->endPane();
        // show security setting check
        josSecurityCheck();
        ?>

		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
"/>
		<input type="hidden" name="config_absolute_path" value="<?php 
        echo $row->config_absolute_path;
        ?>
"/>
		<input type="hidden" name="config_live_site" value="<?php 
        echo $row->config_live_site;
        ?>
"/>
		<input type="hidden" name="config_secret" value="<?php 
        echo $row->config_secret;
        ?>
"/>
	  	<input type="hidden" name="task" value=""/>
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
		<script  type="text/javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>
		<?php 
    }
Exemplo n.º 8
0
    static function showConfiguration_backend($lists, $option)
    {
        global $mosConfig_live_site, $act, $task, $mainframe, $doc;
        // for J 1.6
        $doc->addStyleSheet($mosConfig_live_site . '/components/com_booklibrary/includes/booklibrary.css');
        $html = "<div class='book_manager_caption' ><img src='./components/com_booklibrary/images/cfg.png' alt ='Config' /> " . _BOOKLIBRARY_ADMIN_CONFIG_BACKEND . "</div>";
        $app = JFactory::getApplication();
        $app->JComponentTitle = $html;
        ?>
        <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
        <script type="text/javascript" language="Javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>

        <form class="bl_admin_settings_backend_form_with_accordion" action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">
            <ul class="my_accordion_menu">
                <li>
                    <input type="radio" name="odin" id="vkl7"/>
                    <label for="vkl7">Media Files</label>
                    <div>
                        <table class="adminform bl_admin_settings_backend my_table" width="100%">
                            <tr>
                                <td colspan="6">
                                    <h1>Media Files</h1>
                                </td>
                            </tr>
                            <tr>
                                <td><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD;
        ?>
:</td>
            <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
            <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
            <?php 
        }
        ?>
                                <td><?php 
        echo $lists['fetchImages']['boolean'];
        ?>
</td>
                                <td style="text-align:right;"><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD_LOCATION;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD_LOCATION_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_IMAGES_DOWNLOAD_LOCATION_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['fetchImages']['location'];
        ?>
</td>
                            </tr>
                            <tr>
                                <td colspan="6"><hr /></td>
                            </tr>
                            <tr>
                                <td><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_EBOOKS_DOWNLOAD;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EBOOKS_DOWNLOAD_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EBOOKS_DOWNLOAD_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
                <?php 
        }
        ?>
                                <td><?php 
        echo $lists['ebooks']['allow'];
        ?>
</td>
                                <td style="text-align:right;"><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_EBOOKS_DOWNLOAD_LOCATION;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EBOOKS_DOWNLOAD_LOCATION_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EBOOKS_DOWNLOAD_LOCATION_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['ebooks']['location'];
        ?>
</td>
                            </tr>
                        </table>
                    </div>
                </li>
                <li>
                    <input type="radio" name="odin" id="vkl8"/>
                    <label for="vkl8">Amazon Settings</label>
                    <div>
                        <table class="adminform bl_admin_settings_backend my_table" width="100%">
                            <tr>
                                <td colspan="6">
                                    <h1>Amazon Settings</h1>
                                </td>
                            </tr>
                            <tr>
                                <td><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_WS_AMAZON_TAG;
        ?>
:</td>
            <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_WS_AMAZON_TAG_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
            <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_WS_AMAZON_TAG_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['ws']['amazon']['tag'];
        ?>
</td>
                                <td colspan="3"></td>
                            </tr>
                            <tr>
                                <td><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_WS_AMAZON_DEVTAG;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_WS_AMAZON_DEVTAG_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_WS_AMAZON_DEVTAG_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['ws']['amazon']['devtag'];
        ?>
</td>
                                <td colspan="3"></td>
                            </tr>
                            <tr>
                                <td><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_WS_AMAZON_SECRET_KEY;
        ?>
:</td>
                <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_WS_AMAZON_SECRET_KEY_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_WS_AMAZON_SECRET_KEY_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['ws']['amazon']['secret_key'];
        ?>
</td>
                                <td colspan="3"></td>
                            </tr>
                            <td colspan="3"></td>
                            </tr>
                        </table>
                    </div>
                </li>

                <li>
                    <input type="radio" name="odin" id="vkl10"/>
                    <label for="vkl10">Common Settings</label>
                    <div>
                        <table class="adminform bl_admin_settings_backend my_table" width="100%">
                            <tr>
                                <td colspan="6">
                                    <h1>Common Settings</h1>
                                </td>
                            </tr>
                            <tr>
                                <td ><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_EDITBOOK_CHECK_ISBN;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EDITBOOK_CHECK_ISBN_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EDITBOOK_CHECK_ISBN_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
                        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['editbook']['check']['isbn'];
        ?>
</td>
                                <td colspan="3"></td>

                            </tr>
                             <tr>
                                <td><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_BOOKID_AUTO_INCREMENT;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_BOOKID_AUTO_INCREMENT_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_BOOKID_AUTO_INCREMENT_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
                        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['bookid']['auto-increment']['boolean'];
        ?>
</td>
                                <td colspan="3"></td>
                            </tr>

                            <tr>
                                <td><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_DESCRIPTION_MERGE_USE;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_DESCRIPTION_MERGE_USE_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_DESCRIPTION_MERGE_USE_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['merge_description']['use'];
        ?>
</td>
                                <td style="text-align:right;"><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_DESCRIPTION_MERGE_REGISTRATIONLEVEL;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_DESCRIPTION_MERGE_REGISTRATIONLEVEL_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_DESCRIPTION_MERGE_REGISTRATIONLEVEL_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['merge_description']['registrationlevel'];
        ?>
</td>
                            </tr>

                            <tr>
                                <td><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_EDITBOOK_DEFAULT_LANG;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EDITBOOK_DEFAULT_LANG_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EDITBOOK_DEFAULT_LANG_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['editbook']['default']['lang'];
        ?>
</td>
                                <td colspan="3"></td>
                            </tr>
                            <tr>
                                <td style="text-align:right;"><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_EDITBOOK_DEFAULT_HOST;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EDITBOOK_DEFAULT_HOST_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_EDITBOOK_DEFAULT_HOST_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['editbook']['default']['host'];
        ?>
</td>
                                <td colspan="3"></td>
                            </tr>
                             <tr>
                                <td style="text-align:right;"><?php 
        echo _BOOKLIBRARY_ADMIN_CONFIG_UPDATE;
        ?>
:</td>
        <?php 
        if (version_compare(JVERSION, "1.7.0", "ge")) {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_UPDATE_TT_BODY, '', JURI::root() . '/components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        } else {
            ?>
                                    <td><?php 
            echo mosToolTip('', _BOOKLIBRARY_ADMIN_CONFIG_UPDATE_TT_BODY, '', '../../../components/com_booklibrary/images/circle-info.png');
            ?>
</td>
        <?php 
        }
        ?>
                                <td><?php 
        echo $lists['update'];
        ?>
</td>
                                <td colspan="3"></td>
                            </tr>
                      </table>
                    </div>
                </li>


            </ul>
            <input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
            <input type="hidden" name="task" value="config_save_backend" />
        </form>
    <?php 
    }
Exemplo n.º 9
0
    /**
     * writes a form to take the name of the menu you would like created
     * @param option	display options for the form
     */
    function edit(&$row, $option)
    {
        global $mosConfig_live_site;
        $new = $row->menutype ? 0 : 1;
        ?>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			var form = document.adminForm;

			if (pressbutton == 'savemenu') {
				if ( form.menutype.value == '' ) {
					alert( '<?php 
        echo T_('Please enter a menu name');
        ?>
' );
					form.menutype.focus();
					return;
				}
				<?php 
        if ($new) {
            ?>
					if ( form.title.value == '' ) {
						alert( '<?php 
            echo T_('Please enter a module name for your menu');
            ?>
' );
						form.title.focus();
						return;
					}
					<?php 
        }
        ?>
				submitform( 'savemenu' );
			} else {
				submitform( pressbutton );
			}
		}
		</script>
		<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 class="menus">
			<?php 
        echo T_('Menu Details');
        ?>
			</th>
		</tr>
		</table>

		<table class="adminform">
		<tr height="45px;">
			<td width="100px" align="left">
			<strong><?php 
        echo T_('Menu Name:');
        ?>
</strong>
			</td>
			<td>
			<input class="inputbox" type="text" name="menutype" size="30" value="<?php 
        echo isset($row->menutype) ? $row->menutype : '';
        ?>
" />
			<?php 
        $tip = T_('This is the identification name used by mambo to identify this menu within the code - it must be unique. It is recommended that you do not have any spaces in your Menu Name');
        echo mosToolTip($tip);
        ?>
			</td>
		</tr>
		<?php 
        if ($new) {
            ?>
			<tr>
				<td width="100px" align="left" valign="top">
				<strong><?php 
            echo T_('Module Title:');
            ?>
</strong>
				</td>
				<td>
				<input class="inputbox" type="text" name="title" size="30" value="<?php 
            echo $row->title ? $row->title : '';
            ?>
" />
				<?php 
            $tip = T_('Title of the mod_mainmenu module required to show this Menu');
            echo mosToolTip($tip);
            ?>
				<br /><br /><br />
				<strong>

				* <?php 
            echo T_('A new mod_mainmenu module, with the Title you have entered above will automatically be created when you save this menu.');
            ?>
 *
				<br /><br />
				<?php 
            echo T_('Parameters for the module created are to be edited through the "Modules Manager [site]": Modules -> Site Modules');
            ?>
				</strong>
				</td>
			</tr>
			<?php 
        }
        ?>
		<tr>
			<td colspan="2">
			</td>
		</tr>
		</table>
		<br /><br />

		<script language="Javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>
		<?php 
        if ($new) {
            ?>
			<input type="hidden" name="id" value="<?php 
            echo $row->id;
            ?>
" />
			<input type="hidden" name="iscore" value="<?php 
            echo $row->iscore;
            ?>
" />
			<input type="hidden" name="published" value="<?php 
            echo $row->published;
            ?>
" />
			<input type="hidden" name="position" value="<?php 
            echo $row->position;
            ?>
" />
			<input type="hidden" name="module" value="mod_mainmenu" />
			<input type="hidden" name="params" value="<?php 
            echo $row->params;
            ?>
" />
			<?php 
        }
        ?>

		<input type="hidden" name="new" value="<?php 
        echo $new;
        ?>
" />
		<input type="hidden" name="old_menutype" value="<?php 
        echo $row->menutype;
        ?>
" />
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="task" value="savemenu" />
		<input type="hidden" name="boxchecked" value="0" />
		</form>
		<?php 
    }
Exemplo n.º 10
0
<tbody>      
<?php 
$a = 0;
foreach ($catalog->strings as $id => $message) {
    ?>
        <?php 
    if (is_array($message->comments)) {
        $ref = '';
        $tt = '';
        foreach ($message->comments as $comment) {
            if (strncmp($comment, "#: ", 3) == 0) {
                $ref .= ltrim(trim($comment), '#: ') . "\n";
            }
            $tt .= addslashes(htmlspecialchars(ltrim(trim($comment), '#: ,#. ,#  '))) . "<br />";
        }
        $tip = mosToolTip($tt);
    }
    $is_plural = strlen($message->msgid_plural) > 1 ? 1 : 0;
    ?>
  
	<tr class="<?php 
    echo "row{$a}";
    ?>
" id="row_<?php 
    echo $id;
    ?>
" onclick="translate(<?php 
    echo $id;
    ?>
, <?php 
    echo $is_plural && $language_plurals ? 1 : 0;
Exemplo n.º 11
0
    /**
     * Displays a selection list for menu item types
     */
    function addMenuItem(&$cid, $menutype, $option, $types_content, $types_component, $types_link, $types_other)
    {
        mosCommonHTML::loadOverlib();
        ?>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th class="menus">
			<?php 
        echo T_('New Menu Item');
        ?>
			</th>
			<td valign="bottom" nowrap style="color: red;">
			<?php 
        //echo _MENU_GROUP;
        ?>
			</td>
		</tr>
		</table>
<style type="text/css">
fieldset {
	border: 1px solid #777;
}
legend {
	font-weight: bold;
}
</style>
<table class="adminform">
	<tr>
		<td width="50%" valign="top">
			<fieldset>
				<legend><?php 
        echo T_('Content');
        ?>
</legend>
				<table class="adminform">
				<?php 
        $k = 0;
        $count = count($types_content);
        for ($i = 0; $i < $count; $i++) {
            $row =& $types_content[$i];
            $link = 'index2.php?option=com_menus&menutype=' . $menutype . '&task=edit&hidemainmenu=1&type=' . $row->type;
            ?>
					<tr class="<?php 
            echo "row{$k}";
            ?>
">
						<td width="20">
						<input type="radio" id="cb<?php 
            echo $i;
            ?>
" name="type" value="<?php 
            echo $row->type;
            ?>
" onClick="isChecked(this.checked);" />
						</td>
						<td>
						<a href="<?php 
            echo $link;
            ?>
">
						<?php 
            echo T_($row->name);
            ?>
						</a>
						</td>
						<td align="center" width="20">
						<?php 
            echo mosToolTip(T_($row->descrip), T_($row->name), 250);
            ?>
						</td>
					</tr>
					<?php 
            $k = 1 - $k;
        }
        ?>
				</table>
			</fieldset>
			<fieldset>
				<legend><?php 
        echo T_('Miscellaneous');
        ?>
</legend>
				<table class="adminform">
				<?php 
        $k = 0;
        $count = count($types_other);
        for ($i = 0; $i < $count; $i++) {
            $row =& $types_other[$i];
            $link = 'index2.php?option=com_menus&menutype=' . $menutype . '&task=edit&type=' . $row->type;
            ?>
					<tr class="<?php 
            echo "row{$k}";
            ?>
">
						<td width="20">
						<input type="radio" id="cb<?php 
            echo $i;
            ?>
" name="type" value="<?php 
            echo $row->type;
            ?>
" onClick="isChecked(this.checked);" />
						</td>
						<td>
						<a href="<?php 
            echo $link;
            ?>
">
						<?php 
            echo T_($row->name);
            ?>
						</a>
						</td>
						<td align="center" width="20">
						<?php 
            echo mosToolTip(T_($row->descrip), T_($row->name), 250);
            ?>
						</td>
					</tr>
					<?php 
            $k = 1 - $k;
        }
        ?>
				</table>
			</fieldset>
			* <?php 
        echo T_('Note that some menu types appear in more that one grouping, but they are still the same menu type.');
        ?>
		</td>
		<td width="50%" valign="top">
			<fieldset>
				<legend><?php 
        echo T_('Components');
        ?>
</legend>
				<table class="adminform">
				<?php 
        $k = 0;
        $count = count($types_component);
        for ($i = 0; $i < $count; $i++) {
            $row =& $types_component[$i];
            $link = 'index2.php?option=com_menus&menutype=' . $menutype . '&task=edit&type=' . $row->type;
            ?>
					<tr class="<?php 
            echo "row{$k}";
            ?>
">
						<td width="20">
						<input type="radio" id="cb<?php 
            echo $i;
            ?>
" name="type" value="<?php 
            echo $row->type;
            ?>
" onClick="isChecked(this.checked);" />
						</td>
						<td>
						<a href="<?php 
            echo $link;
            ?>
">
						<?php 
            echo T_($row->name);
            ?>
						</a>
						</td>
						<td align="center" width="20">
						<?php 
            echo mosToolTip(T_($row->descrip), T_($row->name), 250);
            ?>
						</td>
					</tr>
					<?php 
            $k = 1 - $k;
        }
        ?>
				</table>
			</fieldset>
			<fieldset>
				<legend><?php 
        echo T_('Links');
        ?>
</legend>
				<table class="adminform">
				<?php 
        $k = 0;
        $count = count($types_link);
        for ($i = 0; $i < $count; $i++) {
            $row =& $types_link[$i];
            $link = 'index2.php?option=com_menus&menutype=' . $menutype . '&task=edit&type=' . $row->type;
            ?>
					<tr class="<?php 
            echo "row{$k}";
            ?>
">
						<td width="20">
						<input type="radio" id="cb<?php 
            echo $i;
            ?>
" name="type" value="<?php 
            echo $row->type;
            ?>
" onClick="isChecked(this.checked);" />
						</td>
						<td>
						<a href="<?php 
            echo $link;
            ?>
">
						<?php 
            echo T_($row->name);
            ?>
						</a>
						</td>
						<td align="center" width="20">
						<?php 
            echo mosToolTip(T_($row->descrip), T_($row->name), 250);
            ?>
						</td>
					</tr>
					<?php 
            $k = 1 - $k;
        }
        ?>
				</table>
			</fieldset>
		</td>
	</tr>
</table>



		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="menutype" value="<?php 
        echo $menutype;
        ?>
" />
		<input type="hidden" name="task" value="edit" />
		<input type="hidden" name="boxchecked" value="0" />
		<input type="hidden" name="hidemainmenu" value="0" />
		</form>
		<?php 
    }
Exemplo n.º 12
0
 /**
 * @param object A param tag node
 * @return array Any array of the label, the form element and the tooltip
 */
 function renderParam(&$param)
 {
     $result = array();
     $name = $param->getAttribute('name');
     $label = $param->getAttribute('label');
     $value = $this->get($name, $param->getAttribute('default'));
     $description = $param->getAttribute('description');
     $result[0] = $label ? $label : $name;
     if ($result[0] == '@spacer') {
         $result[0] = '<hr/>';
     } else {
         if ($result[0]) {
             $result[0] .= ':';
         }
     }
     $type = $param->getAttribute('type');
     if (in_array('_form_' . $type, $this->_methods)) {
         $result[1] = call_user_func(array('mosParameters', '_form_' . $type), $name, $value, $param);
     } else {
         $result[1] = _HANDLER . ' = ' . $type;
     }
     if ($description) {
         $result[2] = mosToolTip($description, $name);
     } else {
         $result[2] = '';
     }
     return $result;
 }
Exemplo n.º 13
0
    ?>
        </td>
    </tr>
    <tr>
        <td><?php 
    echo T_('Locales');
    ?>
</td>
        <td>
            <input type="text" name="locale" maxlength="100" class="inputbox" style="width:400px" value="<?php 
    echo $language->locale;
    ?>
" />
			<input type="hidden" name="page_" value="editpage" />
            <?php 
    echo mosToolTip(T_('The locale list for setlocale(). \\nLocale names must be comma separated.'));
    ?>
        </td>
    </tr>
</table>
<?php 
    $tabs->endTab();
    $tabs->startTab(T_('Days'), "days");
    ?>
<table class="adminform">
<tr><td style="width:150px">&nbsp;</td><td>&nbsp;</td></tr> 
    <?php 
    foreach ($language->days as $kd => $day) {
        ?>
    <tr>
        <td>
    function edit(&$row, $lists, $option)
    {
        global $live_site;
        $path = 'index.php';
        JFilterOutput::objectHTMLSafe($row, ENT_QUOTES);
        JHTML::_('behavior.tooltip');
        if ($row->id) {
            JToolBarHelper::title(JText::_('DETAIL_EDIT') . ' :: ' . $row->text);
        } else {
            JToolBarHelper::title(JText::_('DETAIL_NEW'));
        }
        $pane =& JPane::getInstance('tabs');
        ?>
		<script type="text/javascript">
            /* <![CDATA[ */
            function string_replace( string, search, replace ) {
                var new_string = '';
                var i = 0;
                var n = string.length;

                while( i <= n ) {
	                if( string.substring( i, i + search.length ) == search ) {
	                    new_string = new_string + replace;
	                    i = i + search.length;
	                }else{
	                    new_string = new_string + string.substring( i, i + 1 );
	                    i++;
	                }
                }
                return new_string;
            };

            function applyTag( tag, obj ) {
            	var pre		= document.adminForm.prefix;
                var post	= document.adminForm.postfix;
                var preTag	= '<' + tag + '>';
                var postTag = '</' + tag + '>';

                if( !obj.checked ) {
                	if( pre.value ) {
                    	pre.value	= string_replace( pre.value, preTag, '' );
                	}
                	if( post.value ) {
                    	post.value	= string_replace( post.value, postTag, '' );
                	}
                }else{
                    pre.value	= preTag + pre.value;
                    post.value	= post.value + postTag;
                }
            };

            function changeIcon( icon ) {
                if (document.all) {
                    document.all.iconImg.src = icon;
                }else{
                    document.getElementById('iconImg').src = icon;
                }
            };

            function addTarget() {
            	// taken from daniel grothe - thx!
	            var exclude = document.adminForm.target.value.split(',');
                exclude.push( document.adminForm.tar_gets.value );

                //remove duplicates;
                var tmp = new Object();
                for(var i = 0; i < exclude.length; i++) {
                    var id = exclude[i];
                    if( !isNaN(id)) {
                        continue;
                    }

                    tmp[id] = '<?php 
        echo $path;
        ?>
?' + id;
                }
                exclude = new Array();
                for( var k in tmp ) {
                    exclude.push( tmp[k] );
                }

                document.adminForm.target.value = exclude.pop('');
            };

            function chooseIcon() {
            	var width = screen.availWidth - 30;
            	var height = screen.availHeight - 30;
            	var val = document.getElementById('folder').value;
            	window.open( '<?php 
        echo $path;
        ?>
?option=<?php 
        echo $option;
        ?>
&task=chooseIcon&hidemainmenu=1&folder=' + val,'','width=' + width + ',height=' + height + ',location=no,menubar=no,status=no,scrollbars=yes' );
            };
            /* ]]> */
		</script>
		<form action="<?php 
        echo $path;
        ?>
" method="post" name="adminForm">
			<table class="adminheading">
            <tr>
                <th>
                    <?php 
        if (!defined('_JEXEC')) {
            if ($row->id) {
                echo JTEXT::_('DETAIL_EDIT');
                ?>
	                        &nbsp;[&nbsp;<small><?php 
                echo $row->text;
                ?>
</small>&nbsp;]
	                        <?php 
            } else {
                echo JTEXT::_('DETAIL_NEW');
            }
        }
        ?>
                </th>
            </tr>
            </table>
			<table width="100%" border="0" cellpadding="2" cellspacing="0" class="adminForm">
                <tr>
                    <td>
                    <?php 
        echo $pane->startPane('qicons');
        echo $pane->startPanel(JTEXT::_('TABS_GENERAL'), 'tab_general');
        ?>
                    <table width="100%" border="0" cellpadding="2" cellspacing="0" class="admintable">
                    	<tr>
                            <td class="key" width="120"><?php 
        echo JTEXT::_('TARGET');
        ?>
</td>
                            <td>
                                <input class="inputbox" type="text" name="target" id="target" size="75" maxlength="255" value="<?php 
        echo $row->target ? $row->target : $path . '?option=';
        ?>
" />
                                &nbsp;
                                &nbsp;<button onclick="addTarget(); return false;">&larr;</button>&nbsp;
                                &nbsp;<?php 
        echo $lists['targets'];
        ?>
                                &nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_TARGET');
        // echo JHTML::_('tooltip', $tip);
        echo JHTML::tooltip($tip, '', 'tip.png');
        ?>
                            </td>
                        </tr>
                        <tr>
                        	<td class="key"><label for="new_window"><?php 
        echo JTEXT::_('DETAIL_NEW_WINDOW');
        ?>
</label></td>
                        	<td>
                        		<input type="checkbox" name="new_window" value="1" id="new_window"<?php 
        echo $row->new_window ? ' checked="checked"' : '';
        ?>
 />
                        		&nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_DETAIL_NEW_WINDOW');
        //echo JHTML::_('tooltip', $tip);
        echo JHTML::tooltip($tip, '', 'tip.png');
        ?>
                        	</td>
                        </tr>
                        <tr>
                            <td class="key">
                                <?php 
        echo JTEXT::_('PUBLISHED');
        ?>
                            </td>
                            <td>
                                <input type="radio" id="published1" name="published" value="1"<?php 
        echo $row->published ? ' checked="checked"' : '';
        ?>
 /><label for="published1"><?php 
        echo JTEXT::_('DETAIL_YES');
        ?>
</label>
                                &nbsp;&nbsp;
                                <input type="radio" id="published2" name="published" value="0"<?php 
        echo $row->published ? '' : ' checked="checked"';
        ?>
 /><label for="published2"><?php 
        echo JTEXT::_('DETAIL_NO');
        ?>
</label>
                            </td>
                        </tr>
                        <tr>
                            <td class="key">
                                <?php 
        echo JTEXT::_('DETAIL_ORDER');
        ?>
                            </td>
                            <td>
                                <?php 
        echo $lists['ordering'];
        ?>
                            </td>
                        </tr>
                        <tr>
                            <td class="key"><?php 
        echo JTEXT::_('CMN_ACCESS');
        ?>
</td>
                            <td>
                                <?php 
        echo $lists['gid'];
        ?>
                            </td>
                        </tr>
                        <tr>
                        	<td class="key"><?php 
        echo JTEXT::_('DETAIL_USER');
        ?>
</td>
                            <td>
                                <?php 
        echo $lists['access'];
        ?>
                                &nbsp;
                                <?php 
        $tip = JTEXT::_('DETAIL_USER_TIP');
        // echo JHTML::_( 'tooltip', $tip );
        echo JHTML::tooltip($tip, '', 'tip.png');
        ?>
                            </td>
                        </tr>
                    </table>
                    <?php 
        echo $pane->endPanel();
        echo $pane->startPanel(JTEXT::_('TABS_TEXT'), 'tab_text');
        ?>
                    <table width="100%" border="0" cellpadding="2" cellspacing="0" class="admintable">
                        <tr>
                            <td class="key" width="120">
                                <?php 
        echo JTEXT::_('DETAIL_PREFIX');
        ?>
                            </td>
                            <td>
                                <input class="inputbox" type="text" name="prefix" id="prefix" size="50" maxlength="100" value="<?php 
        echo $row->prefix;
        ?>
" />
                            </td>
                        </tr>
                        <tr>
                            <td class="key"><?php 
        echo JTEXT::_('DETAIL_TEXT');
        ?>
</td>
                            <td>
                                <input class="inputbox" type="text" name="text" id="text" size="50" maxlength="64" value="<?php 
        echo $row->text;
        ?>
" />
                                &nbsp;&nbsp;
                                <input type="checkbox" name="bold" id="bold" onclick="applyTag('b',this)"<?php 
        if (strpos($row->prefix, '&lt;b') !== false) {
            echo ' checked="checked"';
        }
        ?>
 />
                                <label for="bold"><strong><?php 
        echo JTEXT::_('FONT_BOLD');
        ?>
</strong></label>
                                <input type="checkbox" name="italic" id="italic" onclick="applyTag('i',this)"<?php 
        if (strpos($row->prefix, '&lt;i') !== false) {
            echo ' checked="checked"';
        }
        ?>
 />
                                <label for="italic"><i><?php 
        echo JTEXT::_('FONT_ITALIC');
        ?>
</i></label>
                                <input type="checkbox" name="underlined" id="underlined" onclick="applyTag('u',this)"<?php 
        if (strpos($row->prefix, '&lt;u') !== false) {
            echo ' checked="checked"';
        }
        ?>
 />
                                <label for="underlined"><u><?php 
        echo JTEXT::_('FONT_UNDERLINE');
        ?>
</u></label>
                                &nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_FONT');
        // echo JHTML::_( 'tooltip', $tip );
        echo JHTML::tooltip($tip, '', 'tip.png');
        ?>
                            </td>
                        </tr>
                        <tr>
                            <td class="key"><?php 
        echo JTEXT::_('DETAIL_POSTFIX');
        ?>
</td>
                            <td>
                                <input class="inputbox" type="text" name="postfix" id="postfix" size="50" maxlength="100" value="<?php 
        echo $row->postfix;
        ?>
" />
                            </td>
                        </tr>
                        <tr>
                            <td class="key"><?php 
        echo JTEXT::_('ACCESSKEY');
        ?>
</td>
                            <td>
                                <input class="inputbox" type="text" name="akey" size="1" maxlength="1" value="<?php 
        echo $row->akey;
        ?>
" />
                                &nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_ACCESSKEY');
        // echo JHTML::_( 'tooltip', $tip );
        echo JHTML::tooltip($tip, '', 'tip.png');
        ?>
                            </td>
                        </tr>
                        <tr>
                            <td class="key"><?php 
        echo JTEXT::_('TITLE');
        ?>
</td>
                            <td>
                                <input class="inputbox" type="text" name="title" size="50" maxlength="64" value="<?php 
        echo $row->title;
        ?>
" />
                                &nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_TITLE');
        // echo JHTML::_( 'tooltip', $tip );
        echo JHTML::tooltip($tip, '', 'tip.png');
        ?>
                            </td>
                        </tr>
                    </table>
                    <?php 
        echo $pane->endPanel();
        echo $pane->startPanel(JTEXT::_('TABS_DISPLAY'), 'tab_display');
        ?>
                    <table width="100%" border="0" cellpadding="2" cellspacing="0" class="admintable">
                        <tr>
                            <td class="key"><?php 
        echo JTEXT::_('DISPLAY');
        ?>
</td>
                            <td><?php 
        echo $lists['display'];
        ?>
</td>
                        </tr>
                        <tr>
                        	<td class="key"><?php 
        echo JTEXT::_('IMAGE_FOLDERS');
        ?>
</td>
                        	<td><?php 
        echo $lists['folder'];
        ?>
</td>
                        </tr>
                        <tr>
                            <td class="key"><?php 
        echo JTEXT::_('DETAIL_ICON');
        ?>
</td>
                            <td>
                                <input class="inputbox" type="text" name="icon" size="120" maxlength="255" value="<?php 
        echo $live_site . $row->icon;
        ?>
" onblur="changeIcon(this.value)" />
                                &nbsp;&nbsp;
                                <a href="javascript:void(0);" target="_blank" title="<?php 
        echo JTEXT::_('TIT_CHOOSE_ICON');
        ?>
" onclick="chooseIcon(); return false;"><strong><?php 
        echo JTEXT::_('DETAIL_CHOOSE_ICON');
        ?>
</strong></a>
                                &nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_ICON');
        // echo JHTML::_('tooltip', $tip);
        echo JHTML::tooltip($tip, '', 'tip.png');
        ?>
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td style="padding-top:10px">
                                <?php 
        if (empty($row->icon)) {
            $iconLink = 'blank.png';
        } else {
            $iconLink = $row->icon;
        }
        ?>
                                <img id="iconImg" src="<?php 
        echo $live_site . $iconLink;
        ?>
" alt="" />
                            </td>
                        </tr>
                    </table>
                    <?php 
        echo $pane->endPanel();
        echo $pane->startPanel(JTEXT::_('TABS_CHECK'), 'tab_check');
        ?>
                    <table width="100%" border="0" cellpadding="2" cellspacing="0" class="admintable">
                        <tr>
                            <td class="key" width="120">
                            	<label for="new_window"><?php 
        echo JTEXT::_('CMT_CHECK');
        ?>
</label>
                            </td>
                            <td>
                            	<input type="checkbox" name="cm_check" value="1" id="cm_check"<?php 
        echo $row->cm_check ? ' checked="checked"' : '';
        ?>
/>
                            	&nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_CMT_CHECK');
        // echo JHTML::_('tooltip', $tip);
        echo JHTML::tooltip($tip, '', 'tip.png');
        ?>
                            </td>
                        </tr>
                        <tr>
                            <td class="key">&nbsp;</td>
                            <td><?php 
        echo JTEXT::_('CMT_NAME_TO_CHECK');
        ?>
</td>
                        </tr>
                        <tr>
                            <td class="key">
                            	../administrator/components/
                            </td>
                            <td>
                            	<input class="inputbox" type="text" name="cm_path" size="75" maxlength="255" value="<?php 
        echo $row->cm_path ? $row->cm_path : '';
        ?>
" />
                            	&nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_CM_PATH');
        if (defined('_JEXEC')) {
            // echo JHTML::_('tooltip', $tip);
            echo JHTML::tooltip($tip, '', 'tip.png');
        } else {
            echo mosToolTip($tip);
        }
        ?>
                                <br />
                                <?php 
        echo $lists['components_check'];
        ?>
                                &nbsp;
                                <?php 
        $tip = JTEXT::_('TIP_CM_PATH_CHECK');
        // echo JHTML::_('tooltip', $tip);
        echo JHTML::tooltip($tip, '', 'tip.png');
        ?>
                            </td>
                        </tr>
                    </table>
                    <?php 
        echo $pane->endPanel();
        echo $pane->startPanel(JTEXT::_('TABS_ABOUT'), 'tab_about');
        ?>
		            <table width="100%" border="0" cellpadding="2" cellspacing="0" class="admintable">
		            	<tr>
		            		<td colspan="2">
		            		<?php 
        $supportlink = '<a target="popup" href="' . $path . '?option=com_customquickicons&amp;task=about&amp;no_html=1"' . ' onclick="window.open(\'\',\'popup\'' . ',\'resizable=yes,status=no,toolbar=no,location=no,scrollbars=yes,width=650,height=450\')"' . ' title="' . JTEXT::_('SUPP_HEAD_TITLE') . '" style="text-decoration:none;">' . '<img src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" alt="" height="26" width="92" />' . '&nbsp;' . '<img src="http://www.moneybookers.com/images/banners/flags.gif" alt="" border="0" height="31" width="88" />' . '</a>';
        echo '<h1 class="jx_h1">' . JTEXT::_('QUICKICONS') . '</h1>';
        include_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_customquickicons' . DS . 'help' . DS . 'README.php';
        ?>
		            		</td>
		            	</tr>
		            </table>
		            <?php 
        echo $pane->endPanel();
        echo $pane->endPane();
        ?>
                </td>
            </tr>
        </table>
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="id" value="<?php 
        echo $row->id;
        ?>
" />
		<input type="hidden" name="task" value="" />
		</form>
		<?php 
        HTML_QuickIcons::_qiFOOTER();
    }
Exemplo n.º 15
0
    function showconfig(&$row, &$lists, $option)
    {
        global $mosConfig_absolute_path, $mosConfig_live_site, $adminLanguage;
        $tabs = new mosTabs(0);
        ?>

		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<table class="adminheading">
		<tr>
			<th class="config">
			<?php 
        echo $adminLanguage->A_COMP_CONF_GC;
        ?>
 :
			<span class="componentheading">
			configuration.php <?php 
        echo $adminLanguage->A_COMP_CONF_IS;
        ?>
 :
			 <?php 
        echo is_writable('../configuration.php') ? '<b><font color="green">' . $adminLanguage->A_COMP_CONF_WRT . '</font></b>' : '<b><font color="red">' . $adminLanguage->A_COMP_CONF_UNWRT . '</font></b>';
        ?>
			</span>
			</th>
		</tr>
		</table>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			var form = document.adminForm;
			if (pressbutton == 'save') {
				//if (confirm ("Are you sure?")) {
				submitform( pressbutton );
				//}
			} else {
				document.location.href = 'index2.php';
			}
		}
		</script>
		<form action="index2.php" method="post" name="adminForm">
		<?php 
        $tabs->startPane("configPane");
        $tabs->startTab($adminLanguage->A_COMP_MAMB_SITE, "site-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185">
			<?php 
        echo $adminLanguage->A_COMP_CONF_OFFLINE;
        ?>
:
			</td>
			<td><?php 
        echo $lists['offline'];
        ?>
</td>
		</tr>
		<tr>
			<td valign="top">
			<?php 
        echo $adminLanguage->A_COMP_CONF_OFFMESSAGE;
        ?>
:
			</td>
			<td> 
			<textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_offline_message"><?php 
        echo $row->config_offline_message;
        ?>
</textarea>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<?php 
        echo $adminLanguage->A_COMP_CONF_ERR_MESSAGE;
        ?>
:
			</td>
			<td> 
			<textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_error_message"><?php 
        echo $row->config_error_message;
        ?>
</textarea>
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_SITE_NAME;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_sitename" size="50" value="<?php 
        echo $row->config_sitename;
        ?>
">
			</td>
		</tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_UN_LINKS;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['auth'];
        ?>
 
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_USER_REG;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['allowuserregistration'];
        ?>
 
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_AC_ACT;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['useractivation'];
        ?>
 
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_REQ_EMAIL;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['uniquemail'];
        ?>
 
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_DEBUG;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['debug'];
        ?>
 
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_EDITOR;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['editor'];
        ?>
 
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_LENGTH;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['list_length'];
        ?>
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab($adminLanguage->A_COMP_CONF_LOCALE, "Locale-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185">
			<?php 
        echo $adminLanguage->A_COMP_CONF_LANG;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['lang'];
        ?>
 
			</td>
		</tr>
			<td width="185">
			<?php 
        echo $adminLanguage->A_COMP_CONF_ALANG;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['alang'];
        ?>
 
			</td>
		</tr>
		<tr>
			<td width="185">
			<?php 
        echo $adminLanguage->A_COMP_CONF_TIME_SET;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['offset'];
        $tip = $adminLanguage->A_COMP_CONF_DATE . ": " . mosCurrentDate(_DATE_FORMAT_LC2);
        echo mosToolTip($tip);
        ?>
			</td>
		</tr>
		<tr>
			<td width="185">
			<?php 
        echo $adminLanguage->A_COMP_CONF_LOCAL;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_locale" size="15" value="<?php 
        echo $row->config_locale;
        ?>
">
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab($adminLanguage->A_COMP_MOD_CONTENT, "content-page");
        ?>
		<table class="adminform">
		<tr>
			<td colspan="2">
			<?php 
        echo $adminLanguage->A_COMP_CONF_CONTROL;
        ?>
			<br /><br />
			</td>
		</tr>
		<tr>
			<td width="200">
			<?php 
        echo $adminLanguage->A_COMP_CONF_LINK_TITLES;
        ?>
:
			</td>
			<td width="100">
			<?php 
        echo $lists['link_titles'];
        ?>
 
			</td>
			<td width="*" align="left">
			<?php 
        echo mosToolTip($adminLanguage->A_COMP_CONF_HYPER);
        ?>
			</td>
		</tr>
		<tr>
			<td width="200">
			<?php 
        echo $adminLanguage->A_COMP_CONF_MORE_LINK;
        ?>
:
			</td>
			<td width="100">
			<?php 
        echo $lists['readmore'];
        ?>
 
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_RATE_VOTE;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['vote'];
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_AUTHOR;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['hideauthor'];
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_CREATED;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['hidecreate'];
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_MOD_DATE;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['hidemodify'];
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_HITS;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['hits'];
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_PDF;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['hidepdf'];
        ?>
			</td>
			<?php 
        if (!is_writable("{$mosConfig_absolute_path}/media/")) {
            echo "<td align=\"left\">";
            echo mosToolTip($adminLanguage->A_COMP_CONF_OPT_MEDIA);
            echo "</td>";
        } else {
            ?>
				<td align="left">&nbsp;
							
				</td>
				<?php 
        }
        ?>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_PRINT_ICON;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['hideprint'];
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_EMAIL_ICON;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['hideemail'];
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_ICONS;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['icons'];
        ?>
			</td>
			<td align="left">
			<?php 
        echo mosToolTip($adminLanguage->A_COMP_CONF_USE_OR_TEXT);
        ?>
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_TBL_CONTENTS;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['multipage_toc'];
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_BACK_BUTTON;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['back_button'];
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_CONTENT_NAV;
        ?>
			</td>
			<td>
			<?php 
        echo $lists['item_navigation'];
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab($adminLanguage->A_COMP_CONF_DB_NAME, "db-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185">
			<?php 
        echo $adminLanguage->A_COMP_CONF_HOSTNAME;
        ?>
:
			</td>
			<td width="786">
			<input class="text_area" type="text" name="config_host" size="25" value="<?php 
        echo $row->config_host;
        ?>
">
			</td>
		</tr>
		<tr>
			<td width="185">
			MySQL <?php 
        echo $adminLanguage->A_COMP_CONF_DB_USERNAME;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_user" size="25" value="<?php 
        echo $row->config_user;
        ?>
">
			</td>
		</tr>
		<tr>
			<td width="185">
			MySQL <?php 
        echo $adminLanguage->A_COMP_CONF_DB_PW;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_password" size="25" value="<?php 
        echo $row->config_password;
        ?>
">
			</td>
		</tr>
		<tr>
			<td width="185">
			MySQL <?php 
        echo $adminLanguage->A_COMP_CONF_DB_NAME;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_db" size="25" value="<?php 
        echo $row->config_db;
        ?>
">
			</td>
		</tr>
		<tr>
			<td width="185">
			MySQL <?php 
        echo $adminLanguage->A_COMP_CONF_DB_PREFIX;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_dbprefix" size="10" value="<?php 
        echo $row->config_dbprefix;
        ?>
">
			&nbsp;<?php 
        echo mosWarning($adminLanguage->A_COMP_CONF_NOT_CH);
        ?>
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab($adminLanguage->A_COMP_CONF_SERVER, "server-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185">
			<?php 
        echo $adminLanguage->A_COMP_CONF_ABS_PATH;
        ?>
:
			</td>
			<td>
			<strong>
			<?php 
        echo $row->config_path;
        ?>
			</strong>
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_LIVE;
        ?>
:
			</td>
			<td>
			<strong>
			<?php 
        echo $row->config_live_site;
        ?>
			</strong>
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_SECRET;
        ?>
:
			</td>
			<td>
			<strong>
			<?php 
        echo $row->config_secret;
        ?>
			</strong>
			</td>
		</tr>
		<tr>
			<td width="185">
			<?php 
        echo $adminLanguage->A_COMP_CONF_GZIP;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['gzip'];
        echo mosToolTip($adminLanguage->A_COMP_CONF_CP_BUFFER);
        ?>
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_SESSION_TIME;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_lifetime" size="10" value="<?php 
        echo $row->config_lifetime;
        ?>
">
			&nbsp;<?php 
        echo $adminLanguage->A_COMP_CONF_SEC;
        ?>
&nbsp;
			<?php 
        echo mosToolTip($adminLanguage->A_COMP_CONF_AUTO_LOGOUT);
        ?>
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_ERR_REPORT;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['error_reporting'];
        ?>
 
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab($adminLanguage->A_COMP_CONF_METADATA, "metadata-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185" valign="top">
			<?php 
        echo $adminLanguage->A_COMP_CONF_META_DESC;
        ?>
:
			</td>
			<td> 
			<textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_metadesc"><?php 
        echo $row->config_metadesc;
        ?>
</textarea>
			</td>
		</tr>
		<tr>
			<td width="185" valign="top">
			<?php 
        echo $adminLanguage->A_COMP_CONF_META_KEY;
        ?>
:
			</td>
			<td> 
			<textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_metakeys"><?php 
        echo $row->config_metakeys;
        ?>
</textarea>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<?php 
        echo $adminLanguage->A_COMP_CONF_META_TITLE;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['metatitle'];
        ?>
			&nbsp;&nbsp;&nbsp; 
			<?php 
        echo mosToolTip($adminLanguage->A_COMP_CONF_META_ITEMS);
        ?>
			</td>
		  	</tr>
		<tr>
			<td valign="top">
			<?php 
        echo $adminLanguage->A_COMP_CONF_META_AUTHOR;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['metaauthor'];
        ?>
			&nbsp;&nbsp;&nbsp; 
			<?php 
        echo mosToolTip($adminLanguage->A_COMP_CONF_META_AUTHOR);
        ?>
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab($adminLanguage->A_COMP_CONF_EMAIL, "mail-page");
        ?>
		<table class="adminform">
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_MAIL;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['mailer'];
        ?>
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_MAIL_FROM;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_mailfrom" size="25" value="<?php 
        echo $row->config_mailfrom;
        ?>
">
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_MAIL_FROM_NAME;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_fromname" size="25" value="<?php 
        echo $row->config_fromname;
        ?>
">
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_MAIL_SMTP_AUTH;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['smtpauth'];
        ?>
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_MAIL_SMTP_USER;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_smtpuser" size="15" value="<?php 
        echo $row->config_smtpuser;
        ?>
">
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_MAIL_SMTP_PASS;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_smtppass" size="12" value="<?php 
        echo $row->config_smtppass;
        ?>
">
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_MAIL_SMTP_HOST;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_smtphost" size="20" value="<?php 
        echo $row->config_smtphost;
        ?>
">
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab($adminLanguage->A_COMP_CONF_CACHE_TAB, "cache-page");
        ?>
		<table class="adminform" border="0">
		<?php 
        if (is_writeable($row->config_cachepath)) {
            ?>
			<tr>
				<td width="100">
				<?php 
            echo $adminLanguage->A_COMP_CONF_CACHE;
            ?>
:
				</td>
				<td width="500"> 	
				<?php 
            echo $lists['caching'];
            ?>
 
				</td>
				<td width="*">&nbsp;
												
				</td>
			</tr>
			<?php 
        }
        ?>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_CACHE_FOLDER;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_cachepath" size="50" value="<?php 
        echo $row->config_cachepath;
        ?>
" />
			<?php 
        if (is_writeable($row->config_cachepath)) {
            echo mosToolTip($adminLanguage->A_COMP_CONF_CACHE_DIR . " <b>" . $adminLanguage->A_COMP_CONF_WRT . "</b>");
        } else {
            echo mosWarning($adminLanguage->A_COMP_CONF_CACHE_DIR_UNWRT);
        }
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_CACHE_TIME;
        ?>
:
			</td>
			<td>
			<input class="text_area" type="text" name="config_cachetime" size="5" value="<?php 
        echo $row->config_cachetime;
        ?>
" /> 	
			<?php 
        echo $adminLanguage->A_COMP_CONF_SEC;
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab($adminLanguage->A_MENU_STATISTICS, "stats-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="200">
			<?php 
        echo $adminLanguage->A_COMP_CONF_STATS;
        ?>
:
			</td>
			<td width="100">
			<?php 
        echo $lists['enable_stats'];
        ?>
			</td>
			<td width="*" align="left">
			<?php 
        echo mostooltip($adminLanguage->A_COMP_CONF_STATS_ENABLE);
        ?>
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_STATS_LOG_HITS;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['log_items'];
        ?>
			</td>
			<td align="left">
			<span class="error">
			<?php 
        echo mosWarning($adminLanguage->A_COMP_CONF_STATS_WARN_DATA);
        ?>
			</span>
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_STATS_LOG_SEARCH;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['log_searches'];
        ?>
			</td>
			<td align="left">&nbsp;
						
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab($adminLanguage->A_COMP_CONF_SEO_LBL, "seo-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="200">
			<strong> 
			<?php 
        echo $adminLanguage->A_COMP_CONF_SEO;
        ?>
			</strong>
			</td>
			<td width="100">&nbsp;
			  
			</td>
			<td width="*" align="left">&nbsp;
			  
			</td>
		</tr>
		<tr>
			<td> 
			<?php 
        echo $adminLanguage->A_COMP_CONF_SEO_SEFU;
        ?>
:
			</td>
			<td> 
			<?php 
        echo $lists['sef'];
        ?>
&nbsp; 
			</td>
			<td align="left">
			<span class="error">
			<?php 
        echo mosWarning($adminLanguage->A_COMP_CONF_SEO_APACHE);
        ?>
			</span> 
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_CONF_SEO_DYN;
        ?>
:
			</td>
			<td>
			<?php 
        echo $lists['pagetitles'];
        ?>
 
			</td>
			<td align="left">
			<?php 
        echo mosToolTip($adminLanguage->A_COMP_CONF_SEO_DYN_TITLE);
        ?>
			</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->endPane();
        ?>

		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
">
		<input type="hidden" name="config_path" value="<?php 
        echo $row->config_path;
        ?>
">
		<input type="hidden" name="config_live_site" value="<?php 
        echo $row->config_live_site;
        ?>
">
		<input type="hidden" name="config_secret" value="<?php 
        echo $row->config_secret;
        ?>
">
		<input type="hidden" name="task" value="">
		</form>
		<script language="Javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>
		<?php 
    }
    function editCategory(&$menu, &$lists, &$params, $option)
    {
        global $mosConfig_live_site;
        ?>
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			if ( pressbutton == 'cancel' ) {
				submitform( pressbutton );
				return;
			}
			var form = document.adminForm;
			<?php 
        if (!$menu->id) {
            ?>
				if ( getSelectedValue( 'adminForm', 'componentid' ) < 1 ) {
					alert( 'You must select a category' );
					return;
				}
				cat = getSelectedText( 'adminForm', 'componentid' );

				form.link.value = "index.php?option=com_newsfeeds&catid=" + form.componentid.value;
				if ( form.name.value == '' ) {
					form.name.value = cat;
				}
				submitform( pressbutton );
				<?php 
        } else {
            ?>
				if ( form.name.value == '' ) {
					alert( 'This Menu item must have a title' );
				} else {
					submitform( pressbutton );
				}
				<?php 
        }
        ?>
		}
		</script>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th>
			<?php 
        echo $menu->id ? 'Edit' : 'Add';
        ?>
 Menu Item :: Table - News Feed Category
			</th>
		</tr>
		</table>

		<table width="100%">
		<tr valign="top">
			<td width="60%">
				<table class="adminform">
				<tr>
					<th colspan="3">
					Details
					</th>
				</tr>
				<tr>
					<td width="10%" align="right" valign="top">
					Name:
					</td>
					<td width="200px">
					<input type="text" name="name" size="30" maxlength="100" class="inputbox" value="<?php 
        echo htmlspecialchars($menu->name, ENT_QUOTES);
        ?>
"/>
					</td>
					<td>
					<?php 
        if (!$menu->id) {
            echo mosToolTip('If you leave this blank the Category name will be automatically used');
        }
        ?>
					</td>
				</tr>
				<tr>
					<td width="10%" align="right" valign="top">
					Category:
					</td>
					<td colspan="2">
					<?php 
        echo $lists['componentid'];
        ?>
					</td>
				</tr>
				<tr>
					<td align="right">
					URL:
					</td>
					<td colspan="2">
                    <?php 
        echo ampReplace($lists['link']);
        ?>
					</td>
				</tr>
				<tr>
					<td align="right">
					Parent Item:
					</td>
					<td colspan="2">
					<?php 
        echo $lists['parent'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">
					Ordering:
					</td>
					<td colspan="2">
					<?php 
        echo $lists['ordering'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">
					Access Level:
					</td>
					<td colspan="2">
					<?php 
        echo $lists['access'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">
					Published:
					</td>
					<td colspan="2">
					<?php 
        echo $lists['published'];
        ?>
					</td>
				</tr>
				<tr>
					<td colspan="3">&nbsp;</td>
				</tr>
				</table>
			</td>
			<td width="40%">
				<table class="adminform">
				<tr>
					<th>
					Parameters
					</th>
				</tr>
				<tr>
					<td>
					<?php 
        echo $params->render();
        ?>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>

		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="id" value="<?php 
        echo $menu->id;
        ?>
" />
		<input type="hidden" name="menutype" value="<?php 
        echo $menu->menutype;
        ?>
" />
		<input type="hidden" name="type" value="<?php 
        echo $menu->type;
        ?>
" />
		<input type="hidden" name="link" value="<?php 
        echo $menu->link;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="hidemainmenu" 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 
    }
Exemplo n.º 17
0
?>
</td>
			<td>
				<input type="text" name="dateformat" maxlength="100" class="inputbox" style="width:180px" value="<?php 
echo $language['dateformat'];
?>
" />
				<?php 
echo mosToolTip(T_('Date format for strftime().'));
?>
			</td>
		</tr>
		<tr>
			<td><?php 
echo T_('Plural forms');
?>
</td>
			<td>
				<input type="text" name="plural-forms"  maxlength="100" class="inputbox" style="width:180px" value="<?php 
echo $language['plural-forms'];
?>
" /></label>				
				<?php 
echo mosToolTip(T_('Plural forms for gettext.'));
?>
			</td>
		</tr>
	</table>
	<?php 
$tabs->endTab();
$tabs->endPane();
Exemplo n.º 18
0
 /**
 * @param object A param tag node
 * @param string The control name
 * @return array Any array of the label, the form element and the tooltip
 */
 function renderParam(&$param, $control_name = 'params')
 {
     $result = array();
     $name = $param->getAttribute('name');
     $label = $param->getAttribute('label');
     $value = $this->get($name, $param->getAttribute('default'));
     $description = $param->getAttribute('description');
     $result[0] = $label ? $label : $name;
     if ($result[0] == '@spacer') {
         $result[0] = '&nbsp;';
     } else {
         $result[0] = mosToolTip(addslashes($description), addslashes($result[0]), '', '', $result[0], '#', 0);
     }
     $type = $param->getAttribute('type');
     if (in_array('_form_' . $type, $this->_methods)) {
         $result[1] = call_user_func(array(&$this, '_form_' . $type), $name, $value, $param, $control_name);
     } else {
         $result[1] = _HANDLER . ' = ' . $type;
     }
     if ($description) {
         $result[2] = mosToolTip($description, $result[0]);
         $result[2] = '';
     } else {
         $result[2] = '';
     }
     return $result;
 }
    function editCategory(&$menu, &$lists, &$params, $option)
    {
        global $mosConfig_live_site;
        ?>
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}
			var form = document.adminForm;
			<?php 
        if (!$menu->id) {
            ?>
				if ( getSelectedValue( 'adminForm', 'componentid' ) < 1 ) {
					alert( 'Você deve selecionar uma categoria' );
					return;
				}
				sectcat = getSelectedText( 'adminForm', 'componentid' );
				sectcats = sectcat.split('/');
				section = getSelectedOption( 'adminForm', 'componentid' );

				form.link.value = "index.php?option=com_content&task=archivecategory&id=" + form.componentid.value;
				if ( form.name.value == '' ) {
					form.name.value = sectcats[1];
				}
				submitform( pressbutton );
				<?php 
        } else {
            ?>
				if ( form.name.value == '' ) {
					alert( 'Este item de menu deve possuir um título' );
				} else {
					submitform( pressbutton );
				}
				<?php 
        }
        ?>
		}
		</script>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th>
			<?php 
        echo $menu->id ? 'Editar' : 'Adicionar';
        ?>
 Blog - Arquivo de Conteúdo da Categoria
			</th>
		</tr>
		</table>

		<table width="100%">
		<tr valign="top">
			<td width="60%">
				<table class="adminform">
				<tr>
					<th colspan="3">
					Detalhes
					</th>
				</tr>
				<tr>
					<td width="10%" align="right" valign="top">Nome:</td>
					<td width="200px">
					<input type="text" name="name" size="30" maxlength="100" class="inputbox" value="<?php 
        echo htmlspecialchars($menu->name, ENT_QUOTES);
        ?>
"/>
					</td>
					<td>
					<?php 
        if (!$menu->id) {
            echo mosToolTip('Se você deixar este em branco o nome da categoria será automaticamente usado');
        }
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">Categoria:</td>
					<td>
					<?php 
        echo $lists['componentid'];
        ?>
					</td>
				</tr>
				<tr>
					<td align="right">Url:</td>
					<td>
                    <?php 
        echo ampReplace($lists['link']);
        ?>
					</td>
				</tr>
				<tr>
					<td align="right">Nível do Item:</td>
					<td>
					<?php 
        echo $lists['parent'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">Ordenação:</td>
					<td>
					<?php 
        echo $lists['ordering'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">Nível de Acesso:</td>
					<td>
					<?php 
        echo $lists['access'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">Publicado:</td>
					<td>
					<?php 
        echo $lists['published'];
        ?>
					</td>
				</tr>
				<tr>
					<td colspan="2">&nbsp;</td>
				</tr>
				</table>
			</td>
			<td width="40%">
				<table class="adminform">
				<tr>
					<th>
					Parâmetros
					</th>
				</tr>
				<tr>
					<td>
					<?php 
        echo $params->render();
        ?>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>

		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="id" value="<?php 
        echo $menu->id;
        ?>
" />
		<input type="hidden" name="menutype" value="<?php 
        echo $menu->menutype;
        ?>
" />
		<input type="hidden" name="type" value="<?php 
        echo $menu->type;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="hidemainmenu" 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 
    }
Exemplo n.º 20
0
    function showconfig(&$row, &$lists, $option)
    {
        global $mosConfig_absolute_path, $mosConfig_live_site;
        $tabs = new mosTabs(1);
        ?>
		<script type="text/javascript">
		<!--
	        function saveFilePerms()
	        {
				var f = document.adminForm;
				if (f.filePermsMode0.checked)
					f.config_fileperms.value = '';
				else {
					var perms = 0;
		        	if (f.filePermsUserRead.checked) perms += 400;
					if (f.filePermsUserWrite.checked) perms += 200;
					if (f.filePermsUserExecute.checked) perms += 100;
					if (f.filePermsGroupRead.checked) perms += 40;
					if (f.filePermsGroupWrite.checked) perms += 20;
					if (f.filePermsGroupExecute.checked) perms += 10;
					if (f.filePermsWorldRead.checked) perms += 4;
					if (f.filePermsWorldWrite.checked) perms += 2;
					if (f.filePermsWorldExecute.checked) perms += 1;
					f.config_fileperms.value = '0'+''+perms;
				}
	        }
	        function changeFilePermsMode(mode)
	        {
	            if(document.getElementById) {
	                switch (mode) {
	                    case 0:
	                        document.getElementById('filePermsValue').style.display = 'none';
	                        document.getElementById('filePermsTooltip').style.display = '';
	                        document.getElementById('filePermsFlags').style.display = 'none';
	                        break;
	                    default:
	                        document.getElementById('filePermsValue').style.display = '';
	                        document.getElementById('filePermsTooltip').style.display = 'none';
	                        document.getElementById('filePermsFlags').style.display = '';
	                } // switch
	            } // if
				saveFilePerms();
	        }
	        function saveDirPerms()
	        {
				var f = document.adminForm;
				if (f.dirPermsMode0.checked)
					f.config_dirperms.value = '';
				else {
					var perms = 0;
		        	if (f.dirPermsUserRead.checked) perms += 400;
					if (f.dirPermsUserWrite.checked) perms += 200;
					if (f.dirPermsUserSearch.checked) perms += 100;
					if (f.dirPermsGroupRead.checked) perms += 40;
					if (f.dirPermsGroupWrite.checked) perms += 20;
					if (f.dirPermsGroupSearch.checked) perms += 10;
					if (f.dirPermsWorldRead.checked) perms += 4;
					if (f.dirPermsWorldWrite.checked) perms += 2;
					if (f.dirPermsWorldSearch.checked) perms += 1;
					f.config_dirperms.value = '0'+''+perms;
				}
	        }
	        function changeDirPermsMode(mode)
	        {
	            if(document.getElementById) {
	                switch (mode) {
	                    case 0:
	                        document.getElementById('dirPermsValue').style.display = 'none';
	                        document.getElementById('dirPermsTooltip').style.display = '';
	                        document.getElementById('dirPermsFlags').style.display = 'none';
	                        break;
	                    default:
	                        document.getElementById('dirPermsValue').style.display = '';
	                        document.getElementById('dirPermsTooltip').style.display = 'none';
	                        document.getElementById('dirPermsFlags').style.display = '';
	                } // switch
	            } // if
				saveDirPerms();
	        }
        //-->
		</script>
		<form action="index2.php" method="post" name="adminForm">
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
	    <table cellpadding="1" cellspacing="1" border="0" width="100%">
	    <tr>
	        <td width="250"><table class="adminheading"><tr><th nowrap class="config"><?php 
        echo T_('Global Configuration');
        ?>
</th></tr></table></td>
	        <td width="270">
	            <span class="componentheading"><?php 
        echo T_('configuration.php is :');
        ?>
	            <strong><?php 
        echo is_writable('../configuration.php') ? '<span class="green"> ' . T_('Writeable') . '</span>' : '<span class="red"> ' . T_('Unwriteable') . '</span>';
        ?>
</strong>
	            </span>
	        </td>
<?php 
        if (mosIsChmodable('../configuration.php')) {
            if (is_writable('../configuration.php')) {
                ?>
	        <td>
	            <input type="checkbox" id="disable_write" name="disable_write" value="1"/>
	            <label for="disable_write"><?php 
                echo T_('Make unwriteable after saving');
                ?>
</label>
	        </td>
<?php 
            } else {
                ?>
	        <td>
	            <input type="checkbox" id="enable_write" name="enable_write" value="1"/>
	            <label for="enable_write"><?php 
                echo T_('Override write protection while saving');
                ?>
</label>
	        </td>
<?php 
            }
            // if
        }
        // if
        ?>
	    </tr>
	    </table>
<?php 
        $tabs->startPane("configPane");
        $tabs->startTab(T_("Site"), "site-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185"><?php 
        echo T_('Site Offline:');
        ?>
</td>
			<td><?php 
        echo $lists['offline'];
        ?>
</td>
		</tr>
		<tr>
			<td valign="top"><?php 
        echo T_('Offline Message:');
        ?>
</td>
			<td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_offline_message"><?php 
        echo htmlspecialchars($row->config_offline_message, ENT_QUOTES);
        ?>
</textarea><?php 
        $tip = T_('A message that displays if your site is offline');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td valign="top"><?php 
        echo T_('System Error Message:');
        ?>
</td>
			<td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_error_message"><?php 
        echo htmlspecialchars($row->config_error_message, ENT_QUOTES);
        ?>
</textarea><?php 
        $tip = T_('A message that displays if Mambo could not connect to the database');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Site Name:');
        ?>
</td>
			<td><input class="text_area" type="text" name="config_sitename" size="50" value="<?php 
        echo $row->config_sitename;
        ?>
"/></td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Use Captcha Authentication:');
        ?>
</td>
			<td><?php 
        echo $lists['usecaptcha'];
        $tip = T_('Captcha images assist in the reduction of automated entries and spam. Requires the GD image library');
        echo mosToolTip($tip);
        echo T_('*Requires the GD image library.');
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Show UnAuthorized Links:');
        ?>
</td>
			<td><?php 
        echo $lists['auth'];
        $tip = T_('If yes, will show links to content to registered content even if you are not logged in.  The user will need to login to see the item in full.');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Allow User Registration:');
        ?>
</td>
			<td><?php 
        echo $lists['allowuserregistration'];
        $tip = T_('If yes, allows users to self-register');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Use New Account Activation:');
        ?>
</td>
			<td><?php 
        echo $lists['useractivation'];
        ?>
			<?php 
        $tip = T_('If yes, the user will be mailed a link to activate their account before they can log in.');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>

		<tr>
			<td><?php 
        echo T_('Require Unique Email:');
        ?>
</td>
			<td><?php 
        echo $lists['uniquemail'];
        $tip = T_('If yes, users cannot share the same email address');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>

		<tr>
			<td><?php 
        echo T_('Debug Site:');
        ?>
</td>
			<td><?php 
        echo $lists['debug'];
        $tip = T_('If yes, displays diagnostic information and SQL errors if present');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('WYSIWYG Editor:');
        ?>
</td>
			<td><?php 
        echo $lists['editor'];
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('List Length:');
        ?>
</td>
			<td><?php 
        echo $lists['list_length'];
        $tip = T_('Sets the default length of lists in the administrator for all users');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Favorites Site Icon:');
        ?>
</td>
			<td>
			<input class="text_area" type="text" name="config_favicon" size="20" value="<?php 
        echo $row->config_favicon;
        ?>
"/>
<?php 
        $tip = T_('If left blank or the file cannot be found, the default favicon.ico will be used.');
        echo mosToolTip($tip, T_('Favourite Icon'));
        ?>
			</td>
		</tr>
		</table>
<?php 
        $tabs->endTab();
        $tabs->startTab(T_('Locale'), "Locale-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185"><?php 
        echo T_('Language:');
        ?>
</td>
			<td><?php 
        echo $lists['lang'];
        ?>
<input type="hidden" name="config_lang" value="<?php 
        echo $row->config_lang;
        ?>
"></td>
		</tr>
		<tr>
			<td width="185"><?php 
        echo T_('Time Offset:');
        ?>
</td>
			<td>
			<?php 
        echo $lists['offset'];
        $tip = sprintf(T_("Current date/time configured to display: %s"), mosCurrentDate(_DATE_FORMAT_LC2));
        echo mosToolTip($tip);
        ?>
			</td>
		</tr>
		<tr>
			<td width="185"><?php 
        echo T_('Debugging:');
        ?>
</td>
			<td><?php 
        echo $lists['locale_debug'];
        ?>
</td>
		</tr>
		<tr>
			<td width="185"><?php 
        echo T_('Use Gettext:');
        ?>
</td>
			<td><?php 
        echo $lists['locale_use_gettext'];
        ?>
</td>
		</tr>
		</table>
<?php 
        $tabs->endTab();
        $tabs->startTab(T_('Content'), "content-page");
        ?>
		<table class="adminform">
		<tr>
			<td colspan="3">* <?php 
        echo T_('These Parameters control Output elements');
        ?>
 *<br /><br /></td>
		</tr>
		<tr>
			<td width="200"><?php 
        echo T_('Linked Titles:');
        ?>
</td>
			<td width="100"><?php 
        echo $lists['link_titles'];
        ?>
</td>
			<td><?php 
        $tip = T_('If yes, the title of content items will be hyperlinked to the item');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td width="200"><?php 
        echo T_('Read More Link:');
        ?>
</td>
			<td width="100"><?php 
        echo $lists['readmore'];
        ?>
</td>
			<td><?php 
        $tip = T_('If set to show, the read-more link will show if main-text has been provided for the item');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Item Rating/Voting:');
        ?>
</td>
			<td><?php 
        echo $lists['vote'];
        ?>
</td>
			<td><?php 
        $tip = T_('If set to show, a voting system will be enabled for content items');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Author Names:');
        ?>
</td>
			<td><?php 
        echo $lists['hideauthor'];
        ?>
</td>
			<td><?php 
        $tip = T_('If set to show, the name of the author will be displayed.  This a global setting but can be changed at menu and item levels.');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Created Date and Time:');
        ?>
</td>
			<td><?php 
        echo $lists['hidecreate'];
        ?>
</td>
			<td><?php 
        $tip = T_('If set to show, the date and time an item was created will be displayed. This a global setting but can be changed at menu and item levels.');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Modified Date and Time:');
        ?>
</td>
			<td><?php 
        echo $lists['hidemodify'];
        ?>
</td>
			<td><?php 
        $tip = T_('If set to show, the date and time an item was last modified will be displayed.  This a global setting but can be changed at menu and item levels.');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Hits:');
        ?>
</td>
			<td><?php 
        echo $lists['hits'];
        ?>
</td>
			<td><?php 
        $tip = T_('If set to show, the hits for a particular item will be displayed.  This a global setting but can be changed at menu and item levels.');
        echo mosToolTip($tip);
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('PDF Icon:');
        ?>
</td>
			<td><?php 
        echo $lists['hidepdf'];
        ?>
</td>
<?php 
        if (!is_writable("{$mosConfig_absolute_path}/media/")) {
            echo "<td align=\"left\">";
            echo mosToolTip(T_('Option not available as /media directory not writable'));
            echo "</td>";
        } else {
            ?>
				<td>&nbsp;</td>
<?php 
        }
        ?>
		</tr>
		<tr>
			<td><?php 
        echo T_('Print Icon:');
        ?>
</td>
			<td><?php 
        echo $lists['hideprint'];
        ?>
</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Email Icon:');
        ?>
</td>
			<td><?php 
        echo $lists['hideemail'];
        ?>
</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Icons:');
        ?>
</td>
			<td><?php 
        echo $lists['icons'];
        ?>
</td>
			<td><?php 
        echo mosToolTip(T_('Print, PDF and Email will utilise Icons or Text'));
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Table of Contents on multi-page items:');
        ?>
</td>
			<td><?php 
        echo $lists['multipage_toc'];
        ?>
</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Back Button:');
        ?>
</td>
			<td><?php 
        echo $lists['back_button'];
        ?>
</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Content Item Navigation:');
        ?>
</td>
			<td><?php 
        echo $lists['item_navigation'];
        ?>
</td>
			<td>&nbsp;</td>
		</tr>
<!-- prepared for future releases
		<tr>
			<td>Multi lingual content support:</td>
			<td><?php 
        //echo $lists['ml_support'];
        ?>
</td>
			<td><?php 
        //echo mosToolTip('In order to use multi lingual content you MUST have installed the MambelFish component.');
        ?>
</td>
		</tr>
-->
		<input type="hidden" name="config_ml_support" value="<?php 
        echo $row->config_ml_support;
        ?>
">
		</table>
<?php 
        $tabs->endTab();
        $tabs->startTab(T_("Database"), "db-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185"><?php 
        echo T_('Hostname:');
        ?>
</td>
			<td><input class="text_area" type="text" name="config_host" size="25" value="<?php 
        echo $row->config_host;
        ?>
"/></td>
		</tr>
		<tr>
			<td><?php 
        echo T_('MySQL Username:'******'MySQL Password:'******'MySQL Database:');
        ?>
</td>
			<td><input class="text_area" type="text" name="config_db" size="25" value="<?php 
        echo $row->config_db;
        ?>
"/></td>
		</tr>
		<tr>
			<td><?php 
        echo T_('MySQL Database Prefix:');
        ?>
</td>
			<td>
			<input class="text_area" type="text" name="config_dbprefix" size="10" value="<?php 
        echo $row->config_dbprefix;
        ?>
"/>
			&nbsp;<?php 
        echo mosWarning(T_('!! DO NOT CHANGE UNLESS YOU HAVE A DATABASE BUILT USING TABLES WITH THE PREFIX YOU ARE SETTING !!'));
        ?>
			</td>
		</tr>
		</table>
<?php 
        $tabs->endTab();
        $tabs->startTab(T_('Server'), "server-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185"><?php 
        echo T_('Absolute Path:');
        ?>
</td>
			<td width="450"><strong><?php 
        echo $row->config_path;
        ?>
</strong></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Live Site:');
        ?>
</td>
			<td><input class="text_area" type="text" name="config_live_site" size="50" value="<?php 
        echo $row->config_live_site;
        ?>
"/></td>
			<td>&nbsp;</td>
		</tr>
		<!--
		<tr>
			<td><?php 
        echo T_('Secret Word:');
        ?>
</td>
			<td><strong><?php 
        echo $row->config_secret;
        ?>
</strong></td>
			<td>&nbsp;</td>
		</tr>
		-->
		<tr>
			<td><?php 
        echo T_('GZIP Page Compression:');
        ?>
</td>
			<td>
			<?php 
        echo $lists['gzip'];
        ?>
			<?php 
        echo mosToolTip(T_('Compress buffered output if supported'));
        ?>
			</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Login Session Lifetime:');
        ?>
</td>
			<td>
			<input class="text_area" type="text" name="config_lifetime" size="10" value="<?php 
        echo $row->config_lifetime;
        ?>
"/>
			&nbsp;<?php 
        echo T_('seconds');
        ?>
&nbsp;
			<?php 
        echo mosToolTip(T_('Auto logout after this time of inactivity'));
        ?>
			</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Error Reporting:');
        ?>
</td>
			<td><?php 
        echo $lists['error_reporting'];
        ?>
</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Register Globals Emulation:');
        ?>
</td>
			<td>
			<?php 
        echo $lists['register_globals'];
        ?>
			<?php 
        echo mosToolTip(T_("Register globals emulation. Some components may stop working if this option is set to Off."));
        ?>
			</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Help Server:');
        ?>
</td>
			<td><input class="text_area" type="text" name="config_helpurl" size="50" value="<?php 
        echo $row->config_helpurl;
        ?>
"/></td>
		</tr>
		<tr>
<?php 
        $mode = 0;
        $flags = 0644;
        if ($row->config_fileperms != '') {
            $mode = 1;
            $flags = octdec($row->config_fileperms);
        }
        // if
        ?>
			<td valign="top"><?php 
        echo T_('File Creation:');
        ?>
</td>
	        <td>
	            <fieldset><legend><?php 
        echo T_('File Permissions');
        ?>
</legend>
	                <table cellpadding="1" cellspacing="1" border="0">
	                    <tr>
	                        <td><input type="radio" id="filePermsMode0" name="filePermsMode" value="0" onclick="changeFilePermsMode(0)"<?php 
        if (!$mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                        <td><label for="filePermsMode0"><?php 
        echo T_('Dont CHMOD new files (use server defaults)');
        ?>
</label></td>
	                    </tr>
	                    <tr>
	                        <td><input type="radio" id="filePermsMode1" name="filePermsMode" value="1" onclick="changeFilePermsMode(1)"<?php 
        if ($mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                        <td>
								<label for="filePermsMode1"><?php 
        echo T_('CHMOD new files');
        ?>
</label>
								<span id="filePermsValue"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
								<?php 
        echo T_('to:');
        ?>
	<input class="text_area" type="text" readonly="readonly" name="config_fileperms" size="4" value="<?php 
        echo $row->config_fileperms;
        ?>
"/>
								</span>
								<span id="filePermsTooltip"<?php 
        if ($mode) {
            echo ' style="display:none"';
        }
        ?>
>
								&nbsp;<?php 
        echo mosToolTip(T_('Select this option to define permission flags for new created files'));
        ?>
								</span>
							</td>
	                    </tr>
	                    <tr id="filePermsFlags"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
	                        <td>&nbsp;</td>
	                        <td>
	                            <table cellpadding="0" cellspacing="1" border="0">
	                                <tr>
	                                    <td style="padding:0px"><?php 
        echo T_('User:'******' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="filePermsUserRead"><?php 
        echo T_('read');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="filePermsUserWrite" name="filePermsUserWrite" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 0200) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="filePermsUserWrite"><?php 
        echo T_('write');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="filePermsUserExecute" name="filePermsUserExecute" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 0100) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px" colspan="3"><label for="filePermsUserExecute"><?php 
        echo T_('execute');
        ?>
</label></td>
	                                </tr>
	                                <tr>
	                                    <td style="padding:0px"><?php 
        echo T_('Group:');
        ?>
</td>
	                                    <td style="padding:0px"><input type="checkbox" id="filePermsGroupRead" name="filePermsGroupRead" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 040) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="filePermsGroupRead"><?php 
        echo T_('read');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="filePermsGroupWrite" name="filePermsGroupWrite" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 020) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="filePermsGroupWrite"><?php 
        echo T_('write');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="filePermsGroupExecute" name="filePermsGroupExecute" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 010) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px" width="70"><label for="filePermsGroupExecute"><?php 
        echo T_('execute');
        ?>
</label></td>
										<td><input type="checkbox" id="applyFilePerms" name="applyFilePerms" value="1"/></td>
	                                    <td nowrap="nowrap">
											<label for="applyFilePerms">
												<?php 
        echo T_('Apply to existing files');
        ?>
												&nbsp;<?php 
        echo mosWarning(T_('Checking here will apply the permission flags to <em>all existing files</em> of the site.<br />' . '<strong>INAPPROPRIATE USAGE OF THIS OPTION MAY RENDER THE SITE INOPERATIVE!</strong>'));
        ?>
											</label>
										</td>
	                                </tr>
	                                <tr>
	                                    <td style="padding:0px"><?php 
        echo T_('World:');
        ?>
</td>
	                                    <td style="padding:0px"><input type="checkbox" id="filePermsWorldRead" name="filePermsWorldRead" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 04) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="filePermsWorldRead"><?php 
        echo T_('read');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="filePermsWorldWrite" name="filePermsWorldWrite" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 02) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="filePermsWorldWrite"><?php 
        echo T_('write');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="filePermsWorldExecute" name="filePermsWorldExecute" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 01) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px" colspan="4"><label for="filePermsWorldExecute"><?php 
        echo T_('execute');
        ?>
</label></td>
	                                </tr>
	                            </table>
	                        </td>
	                    </tr>
	                </table>
	            </fieldset>
	        </td>
			<td>&nbsp;</td>
	    </tr>
	    <tr>
<?php 
        $mode = 0;
        $flags = 0755;
        if ($row->config_dirperms != '') {
            $mode = 1;
            $flags = octdec($row->config_dirperms);
        }
        // if
        ?>
			<td valign="top"><?php 
        echo T_('Directory Creation:');
        ?>
</td>
	        <td>
	            <fieldset><legend><?php 
        echo T_('Directory Permissions');
        ?>
</legend>
	                <table cellpadding="1" cellspacing="1" border="0">
	                    <tr>
	                        <td><input type="radio" id="dirPermsMode0" name="dirPermsMode" value="0" onclick="changeDirPermsMode(0)"<?php 
        if (!$mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                        <td><label for="dirPermsMode0"><?php 
        echo T_('Dont CHMOD new directories (use server defaults)');
        ?>
</label></td>
	                    </tr>
	                    <tr>
	                        <td><input type="radio" id="dirPermsMode1" name="dirPermsMode" value="1" onclick="changeDirPermsMode(1)"<?php 
        if ($mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                        <td>
								<label for="dirPermsMode1"><?php 
        echo T_('CHMOD new directories');
        ?>
</label>
								<span id="dirPermsValue"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
   							    to: <input class="text_area" type="text" readonly="readonly" name="config_dirperms" size="4" value="<?php 
        echo $row->config_dirperms;
        ?>
"/>
								</span>
								<span id="dirPermsTooltip"<?php 
        if ($mode) {
            echo ' style="display:none"';
        }
        ?>
>
								&nbsp;<?php 
        echo mosToolTip(T_('Select this option to define permission flags for new created directories'));
        ?>
								</span>
							</td>
	                    </tr>
	                    <tr id="dirPermsFlags"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
	                        <td>&nbsp;</td>
	                        <td>
	                            <table cellpadding="1" cellspacing="0" border="0">
	                                <tr>
	                                    <td style="padding:0px"><?php 
        echo T_('User:'******' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="dirPermsUserRead"><?php 
        echo T_('read');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="dirPermsUserWrite" name="dirPermsUserWrite" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 0200) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="dirPermsUserWrite"><?php 
        echo T_('write');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="dirPermsUserSearch" name="dirPermsUserSearch" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 0100) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px" colspan="3"><label for="dirPermsUserSearch"><?php 
        echo T_('search');
        ?>
</label></td>
	                                </tr>
	                                <tr>
	                                    <td style="padding:0px"><?php 
        echo T_('Group:');
        ?>
</td>
	                                    <td style="padding:0px"><input type="checkbox" id="dirPermsGroupRead" name="dirPermsGroupRead" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 040) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="dirPermsGroupRead"><?php 
        echo T_('read');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="dirPermsGroupWrite" name="dirPermsGroupWrite" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 020) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="dirPermsGroupWrite"><?php 
        echo T_('write');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="dirPermsGroupSearch" name="dirPermsGroupSearch" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 010) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px" width="70"><label for="dirPermsGroupSearch"><?php 
        echo T_('search');
        ?>
</label></td>
										<td><input type="checkbox" id="applyDirPerms" name="applyDirPerms" value="1"/></td>
	                                    <td nowrap="nowrap">
											<label for="applyDirPerms">
												<?php 
        echo T_('Apply to existing directories');
        ?>
												&nbsp;<?php 
        echo mosWarning(T_('Checking here will apply the permission flags to <em>all existing directories</em> of the site.<br />' . '<strong>INAPPROPRIATE USAGE OF THIS OPTION MAY RENDER THE SITE INOPERATIVE!</strong>'));
        ?>
											</label>
										</td>
	                                </tr>
	                                <tr>
	                                    <td style="padding:0px"><?php 
        echo T_('World:');
        ?>
</td>
	                                    <td style="padding:0px"><input type="checkbox" id="dirPermsWorldRead" name="dirPermsWorldRead" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 04) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="dirPermsWorldRead"><?php 
        echo T_('read');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="dirPermsWorldWrite" name="dirPermsWorldWrite" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 02) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px"><label for="dirPermsWorldWrite"><?php 
        echo T_('write');
        ?>
</label></td>
	                                    <td style="padding:0px"><input type="checkbox" id="dirPermsWorldSearch" name="dirPermsWorldSearch" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 01) {
            echo ' checked="checked"';
        }
        ?>
/></td>
	                                    <td style="padding:0px" colspan="3"><label for="dirPermsWorldSearch"><?php 
        echo T_('search');
        ?>
</label></td>
	                                </tr>
	                            </table>
	                        </td>
	                    </tr>
	                </table>
	            </fieldset>
	        </td>
			<td>&nbsp;</td>
	      </tr>
		</table>
<?php 
        $tabs->endTab();
        $tabs->startTab(T_('Metadata'), "metadata-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185" valign="top"><?php 
        echo T_('Global Site Meta Description:');
        ?>
</td>
			<td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_metadesc"><?php 
        echo htmlspecialchars($row->config_metadesc, ENT_QUOTES);
        ?>
</textarea></td>
		</tr>
		<tr>
			<td valign="top"><?php 
        echo T_('Global Site Meta Keywords:');
        ?>
</td>
			<td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_metakeys"><?php 
        echo htmlspecialchars($row->config_metakeys, ENT_QUOTES);
        ?>
</textarea></td>
		</tr>
		<tr>
			<td valign="top"><?php 
        echo T_('Show Title Meta Tag:');
        ?>
</td>
			<td>
			<?php 
        echo $lists['metatitle'];
        ?>
			&nbsp;&nbsp;&nbsp;
			<?php 
        echo mosToolTip(T_('Show the title meta tag when viewing content items'));
        ?>
			</td>
		  	</tr>
		<tr>
			<td valign="top"><?php 
        echo T_('Show Author Meta Tag:');
        ?>
</td>
			<td>
			<?php 
        echo $lists['metaauthor'];
        ?>
			&nbsp;&nbsp;&nbsp;
			<?php 
        echo mosToolTip(T_('Show the author meta tag when viewing content items'));
        ?>
			</td>
		</tr>
		</table>
<?php 
        $tabs->endTab();
        $tabs->startTab(T_('Mail'), "mail-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185"><?php 
        echo T_('Mailer:');
        ?>
</td>
			<td><?php 
        echo $lists['mailer'];
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Mail From:');
        ?>
</td>
			<td><input class="text_area" type="text" name="config_mailfrom" size="50" value="<?php 
        echo $row->config_mailfrom;
        ?>
"/></td>
		</tr>
		<tr>
			<td><?php 
        echo T_('From Name:');
        ?>
</td>
			<td><input class="text_area" type="text" name="config_fromname" size="50" value="<?php 
        echo $row->config_fromname;
        ?>
"/></td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Sendmail Path:');
        ?>
</td>
			<td><input class="text_area" type="text" name="config_sendmail" size="50" value="<?php 
        echo $row->config_sendmail;
        ?>
"/></td>
		</tr>
		<tr>
			<td><?php 
        echo T_('SMTP Auth:');
        ?>
</td>
			<td><?php 
        echo $lists['smtpauth'];
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('SMTP User:'******'SMTP Pass');
        ?>
:</td>
			<td><input class="text_area" type="text" name="config_smtppass" size="50" value="<?php 
        echo $row->config_smtppass;
        ?>
"/></td>
		</tr>
		<tr>
			<td><?php 
        echo T_('SMTP Host:');
        ?>
</td>
			<td><input class="text_area" type="text" name="config_smtphost" size="50" value="<?php 
        echo $row->config_smtphost;
        ?>
"/></td>
		</tr>
		</table>
<?php 
        $tabs->endTab();
        $tabs->startTab(T_("Cache"), "cache-page");
        ?>
		<table class="adminform" border="0">
		<?php 
        if (is_writeable($row->config_cachepath)) {
            ?>
			<tr>
				<td width="185"><?php 
            echo T_('Caching:');
            ?>
</td>
				<td width="500"><?php 
            echo $lists['caching'];
            ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<?php 
        }
        ?>
		<tr>
			<td><?php 
        echo T_('Cache Folder:');
        ?>
</td>
			<td>
			<input class="text_area" type="text" name="config_cachepath" size="50" value="<?php 
        echo $row->config_cachepath;
        ?>
"/>
<?php 
        if (is_writeable($row->config_cachepath)) {
            echo mosToolTip(T_('Current cache is directory is <strong>Writeable</strong>'));
        } else {
            echo mosWarning(T_('The cache directory is UNWRITEABLE - please set this directory to CHMOD755 before turning on the cache'));
        }
        ?>
			</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Cache Time:');
        ?>
</td>
			<td><input class="text_area" type="text" name="config_cachetime" size="5" value="<?php 
        echo $row->config_cachetime;
        ?>
"/> <?php 
        echo T_('seconds');
        ?>
</td>
			<td>&nbsp;</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab(T_('Statistics'), "stats-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="185"><?php 
        echo T_('Statistics:');
        ?>
</td>
			<td width="100"><?php 
        echo $lists['enable_stats'];
        ?>
</td>
			<td><?php 
        echo mostooltip(T_('Enable/disable collection of site statistics'));
        ?>
</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Log Content Hits by Date:');
        ?>
</td>
			<td><?php 
        echo $lists['log_items'];
        ?>
</td>
			<td><span class="error"><?php 
        echo mosWarning(T_('WARNING : Large amounts of data will be collected'));
        ?>
</span></td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Log Search Strings:');
        ?>
</td>
			<td><?php 
        echo $lists['log_searches'];
        ?>
</td>
			<td>&nbsp;</td>
		</tr>
		</table>
		<?php 
        $tabs->endTab();
        $tabs->startTab(T_('SEO'), "seo-page");
        ?>
		<table class="adminform">
		<tr>
			<td width="200"><strong><?php 
        echo T_('Search Engine Optimization');
        ?>
</strong></td>
			<td width="100">&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Search Engine Friendly URLs:');
        ?>
</td>
			<td><?php 
        echo $lists['sef'];
        ?>
&nbsp;</td>
			<td><span class="error"><?php 
        echo mosWarning(T_('Apache only! Rename htaccess.txt to .htaccess before activating'));
        ?>
</span></td>
		</tr>
		<tr>
			<td><?php 
        echo T_('Dynamic Page Titles:');
        ?>
</td>
			<td><?php 
        echo $lists['pagetitles'];
        ?>
</td>
			<td><?php 
        echo mosToolTip(T_('Dynamically changes the page title to reflect current content viewed'));
        ?>
</td>
		</tr>
		</table>
<?php 
        $tabs->endTab();
        $tabs->endPane();
        ?>
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
"/>
		<input type="hidden" name="config_path" value="<?php 
        echo $row->config_path;
        ?>
"/>
		<input type="hidden" name="config_secret" value="<?php 
        echo $row->config_secret;
        ?>
"/>
	  	<input type="hidden" name="task" value=""/>
		</form>
		<script  type="text/javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>
<?php 
    }
    function edit(&$menu, &$lists, &$params, $option)
    {
        /* in the HTML below, references to "section" were changed to "category" */
        global $mosConfig_live_site;
        ?>
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}
			var form = document.adminForm;
			<?php 
        if (!$menu->id) {
            ?>
				if ( form.name.value == '' ) {
					alert( 'This Menu item must have a title' );
					return;
				} else {
					submitform( pressbutton );
				}
				<?php 
        } else {
            ?>
				if ( form.name.value == '' ) {
					alert( 'This Menu item must have a title' );
				} else {
					submitform( pressbutton );
				}
				<?php 
        }
        ?>
		}
		</script>

		<form action="index2.php" method="post" name="adminForm">

		<table class="adminheading">
		<tr>
			<th>
			<?php 
        echo $menu->id ? 'Edit' : 'Add';
        ?>
 Menu Item :: Blog - Content Category
			</th>
		</tr>
		</table>

		<table width="100%">
		<tr valign="top">
			<td width="60%">
				<table class="adminform">
				<tr>
					<th colspan="3">
					Details
					</th>
				</tr>
				<tr>
					<td width="10%" align="right">Name:</td>
					<td width="200px">
					<input class="inputbox" type="text" name="name" size="30" maxlength="100" value="<?php 
        echo htmlspecialchars($menu->name, ENT_QUOTES);
        ?>
" />
					</td>
					<td>
					</td>
				</tr>
				<tr>
			  		<td valign="top" align="right">
			  		Category:
			  		</td>
			 		<td>
			  		<?php 
        echo $lists['categoryid'];
        ?>
			 		</td>
			 		<td valign="top">
			 		<?php 
        echo mosToolTip('You can select multiple Categories');
        ?>
			  		</td>
				</tr>
				<tr>
					<td align="right">URL:</td>
					<td colspan="2">
                    <?php 
        echo ampReplace($lists['link']);
        ?>
					</td>
				</tr>
				<tr>
					<td align="right">Parent Item:</td>
					<td colspan="2">
					<?php 
        echo $lists['parent'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">Ordering:</td>
					<td colspan="2">
					<?php 
        echo $lists['ordering'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">Access Level:</td>
					<td colspan="2">
					<?php 
        echo $lists['access'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">Published:</td>
					<td colspan="2">
					<?php 
        echo $lists['published'];
        ?>
					</td>
				</tr>
				<tr>
					<td colspan="3">&nbsp;</td>
				</tr>
				</table>
			</td>
			<td width="40%">
				<table class="adminform">
				<tr>
					<th>
					Parameters
					</th>
				</tr>
				<tr>
					<td>
					<?php 
        echo $params->render();
        ?>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>

		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="id" value="<?php 
        echo $menu->id;
        ?>
" />
		<input type="hidden" name="menutype" value="<?php 
        echo $menu->menutype;
        ?>
" />
		<input type="hidden" name="type" value="<?php 
        echo $menu->type;
        ?>
" />
		<input type="hidden" name="link" value="index.php?option=com_content&task=blogcategory&id=0" />
		<input type="hidden" name="componentid" value="0" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="hidemainmenu" 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 
    }
Exemplo n.º 22
0
    /**
     * 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;
        $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' ) {
				if ( document.adminForm.title.value == "" ) {
					alert("<?php 
        echo T_('Module must have a title');
        ?>
");
					return;
				} else if ( (document.adminForm.access.value == 2) && (document.adminForm.elements['groups[]'].selectedIndex < 0) ) {
						alert("<?php 
        echo T_('Special Access groups required for access level Special');
        ?>
");
						return;
				}
			} else {
				<?php 
        if ($row->module == "") {
            getEditorContents('editor1', 'content');
        }
        ?>
				submitform(pressbutton);
			}
			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'] ? T_('Administrator') : T_('Site');
        ?>
			<?php 
        echo T_('Module:');
        ?>
			<small>
			<?php 
        echo $row->id ? T_('Edit') : T_('New');
        ?>
			</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">
					<?php 
        echo T_('Details');
        ?>
					</th>
				</tr>
				<tr>
					<td width="100" align="left">
					<?php 
        echo T_('Title:');
        ?>
					</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">
					<?php 
        echo T_('Show title:');
        ?>
					</td>
					<td>
					<?php 
        echo $lists['showtitle'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="left">
					<?php 
        echo T_('Position:');
        ?>
					</td>
					<td>
					<?php 
        echo $lists['position'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="left">
					<?php 
        echo T_('Module Order:');
        ?>
					</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">
					<?php 
        echo T_('Access Level:');
        ?>
					</td>
					<td>
					<?php 
        echo $lists['access'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="left">
					<?php 
        echo T_('Special Access:');
        ?>
					</td>
					<td>
					<?php 
        echo $lists['groups'] . "&nbsp;" . mosToolTip(T_('Special Access Groups'), T_('If Access Level is Special, only the selected groups will have access to the module'));
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top">
					<?php 
        echo T_('Published:');
        ?>
					</td>
					<td>
					<?php 
        echo $lists['published'];
        ?>
					</td>
				</tr>
				<tr>
					<td colspan="2">
					</td>
				</tr>
				<tr>
					<td valign="top">
					<?php 
        echo T_('ID:');
        ?>
					</td>
					<td>
					<?php 
        echo $row->id;
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top">
					<?php 
        echo T_('Description:');
        ?>
					</td>
					<td>
					<?php 
        echo $row->description;
        ?>
					</td>
				</tr>
				</table>

				<table class="adminform">
				<tr>
					<th >
					<?php 
        echo T_('Parameters');
        ?>
					</th>
				</tr>
				<tr>
					<td>
					<?php 
        echo $params->render();
        ?>
					</td>
				</tr>
				</table>
			</td>
			<td width="40%" >
				<table width="100%" class="adminform">
				<tr>
					<th>
					<?php 
        echo T_('Pages / Items');
        ?>
					</th>
				</tr>
				<tr>
					<td>
					<?php 
        echo T_('Menu Item Link(s):');
        ?>
					<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">
							<?php 
            echo T_('Custom Output');
            ?>
							</th>
						</tr>
						<tr>
							<td valign="top" align="left">
							<?php 
            echo T_('Content:');
            ?>
							</td>
							<td>
							<?php 
            // parameters : areaname, content, hidden field, width, height, rows, cols
            editorArea('editor1', $row->content, 'content', '700', '350', '95', '30');
            ?>
							</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" />';
        }
        ?>
		</form>
		<?php 
    }
Exemplo n.º 23
0
    function showconfig(&$row, &$lists, $option)
    {
        global $mosConfig_absolute_path, $mosConfig_live_site, $mosConfig_session_type, $mainframe;
        $tabs = new mosTabs(0);
        ?>
		<script type="text/javascript">
		<!--
		function saveFilePerms() {
			var f = document.adminForm;
			if (f.filePermsMode0.checked)
				f.config_fileperms.value = '';
			else {
				var perms = 0;
				if (f.filePermsUserRead.checked) perms += 400;
				if (f.filePermsUserWrite.checked) perms += 200;
				if (f.filePermsUserExecute.checked) perms += 100;
				if (f.filePermsGroupRead.checked) perms += 40;
				if (f.filePermsGroupWrite.checked) perms += 20;
				if (f.filePermsGroupExecute.checked) perms += 10;
				if (f.filePermsWorldRead.checked) perms += 4;
				if (f.filePermsWorldWrite.checked) perms += 2;
				if (f.filePermsWorldExecute.checked) perms += 1;
				f.config_fileperms.value = '0'+''+perms;
			}
		}
		function changeFilePermsMode(mode) {
			if(document.getElementById) {
				switch (mode) {
					case 0:
						document.getElementById('filePermsValue').style.display = 'none';
						document.getElementById('filePermsTooltip').style.display = '';
						document.getElementById('filePermsFlags').style.display = 'none';
						break;
					default:
						document.getElementById('filePermsValue').style.display = '';
						document.getElementById('filePermsTooltip').style.display = 'none';
						document.getElementById('filePermsFlags').style.display = '';
				} // switch
			} // if
			saveFilePerms();
		}
		function saveDirPerms() {
			var f = document.adminForm;
			if (f.dirPermsMode0.checked)
				f.config_dirperms.value = '';
			else {
				var perms = 0;
				if (f.dirPermsUserRead.checked) perms += 400;
				if (f.dirPermsUserWrite.checked) perms += 200;
				if (f.dirPermsUserSearch.checked) perms += 100;
				if (f.dirPermsGroupRead.checked) perms += 40;
				if (f.dirPermsGroupWrite.checked) perms += 20;
				if (f.dirPermsGroupSearch.checked) perms += 10;
				if (f.dirPermsWorldRead.checked) perms += 4;
				if (f.dirPermsWorldWrite.checked) perms += 2;
				if (f.dirPermsWorldSearch.checked) perms += 1;
				f.config_dirperms.value = '0'+''+perms;
			}
		}
		function changeDirPermsMode(mode) 	{
			if(document.getElementById) {
				switch (mode) {
					case 0:
						document.getElementById('dirPermsValue').style.display = 'none';
						document.getElementById('dirPermsTooltip').style.display = '';
						document.getElementById('dirPermsFlags').style.display = 'none';
						break;
					default:
						document.getElementById('dirPermsValue').style.display = '';
						document.getElementById('dirPermsTooltip').style.display = 'none';
						document.getElementById('dirPermsFlags').style.display = '';
				} // switch
			} // if
			saveDirPerms();
		}
		function submitbutton(pressbutton) {
			var form = document.adminForm;

			// do field validation
			if (form.config_session_type.value != <?php 
        echo $row->config_session_type;
        ?>
 ){
				if ( confirm('Tem a certeza que quer mudar o `Método de Autenticação de Sessão`? \n\n Isto irá fazer com que todas as atuais sessões do Site sejam eliminadas d \n\n') ) {
					submitform( pressbutton );
				} else {
					return;
				}
			} else {
				submitform( pressbutton );
			}
		}
		//-->
		</script>
		<form action="index2.php" method="post" name="adminForm">
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<table cellpadding="1" cellspacing="1" border="0" width="100%">
		<tr>
			<td width="250"><table class="adminheading"><tr><th nowrap="nowrap" class="config">Configuração Global</th></tr></table></td>
			<td width="270">
				<span class="componentheading">configuration.php está:
				<?php 
        echo is_writable('../configuration.php') ? '<b><font color="green"> Permissão para escrita</font></b>' : '<b><font color="red"> Não tem permissão para escrita</font></b>';
        ?>
				</span>
			</td>
			<?php 
        if (mosIsChmodable('../configuration.php')) {
            if (is_writable('../configuration.php')) {
                ?>
					<td>
						<input type="checkbox" id="disable_write" name="disable_write" value="1"/>
						<label for="disable_write">Tornar inalterável após salvar</label>
					</td>
					<?php 
            } else {
                ?>
					<td>
						<input type="checkbox" id="enable_write" name="enable_write" value="1"/>
						<label for="enable_write">Anular proteção e sobrescrever</label>
					</td>
				<?php 
            }
            // if
        }
        // if
        ?>
		</tr>
		</table>
			<?php 
        $tabs->startPane("configPane");
        $tabs->startTab("Site", "site-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Site Off-line:</td>
				<td><?php 
        echo $lists['offline'];
        ?>
</td>
			</tr>
			<tr>
				<td valign="top">Mensagem Off-line:</td>
				<td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_offline_message"><?php 
        echo $row->config_offline_message;
        ?>
</textarea><?php 
        $tip = 'Uma mensagem a ser exibida caso o site esteja Off-line';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td valign="top">Mensagem de erro de sistema:</td>
				<td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_error_message"><?php 
        echo $row->config_error_message;
        ?>
</textarea><?php 
        $tip = 'Uma mensagem a ser exibida caso o Joomla! não consiga efetuar uma ligação à base de dados';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Nome do site:</td>
				<td><input class="text_area" type="text" name="config_sitename" size="50" value="<?php 
        echo $row->config_sitename;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Exibir links não autorizados:</td>
				<td><?php 
        echo $lists['shownoauth'];
        $tip = 'Se escolher `Sim´, serão exibidos os links para conteúdos que exigem registro.  O usuário deverá autenticar-se para ver o artigo completo.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Permitir cadastro de usuários:</td>
				<td><?php 
        echo $lists['allowUserRegistration'];
        $tip = 'Se escolher `Sim´, permite que usuários se registrem';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Ativação de novas contas:</td>
				<td><?php 
        echo $lists['useractivation'];
        ?>
				<?php 
        $tip = 'Se escolher `Sim´, o usuário receberá um e-mail com um link de ativação da sua conta antes de poder autenticar.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Requerer e-mail único:</td>
				<td><?php 
        echo $lists['uniquemail'];
        $tip = 'Se escolher `Sim´, os usuários não poderam partilhar o mesmo endereço de e-mail';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Autenticação no site - Frontend:</td>
				<td>
					<?php 
        echo $lists['frontend_login'];
        ?>
					<?php 
        $tip = 'Se escolher `Não´, impossibilita a autenticação no Site frontend, até mesmo quando não associado a um item de menu. Também impede a funcionalidade de Inscrição.';
        echo mosToolTip($tip);
        ?>
				</td>
			</tr>
			<tr>
				<td>Parâmetros do usuário no frontend:</td>
				<td>
					<?php 
        echo $lists['frontend_userparams'];
        ?>
					<?php 
        $tip = 'Se escolher `Não´, impede a funcionalidade de parâmetros de usuário no frontend';
        echo mosToolTip($tip);
        ?>
				</td>
			</tr>
			<tr>
				<td>Depurar site:</td>
				<td>
					<?php 
        echo $lists['debug'];
        ?>
					<?php 
        $tip = 'Se escolher `Sim´, exibe informações de diagnóstico e erros de SQL quando existirem';
        echo mosToolTip($tip);
        ?>
				</td>
			</tr>
			<tr>
				<td>Editor padrão WYSIWYG:</td>
				<td><?php 
        echo $lists['editor'];
        ?>
</td>
			</tr>
			<tr>
				<td>Tamanho da Lista:</td>
				<td>
					<?php 
        echo $lists['list_limit'];
        ?>
					<?php 
        $tip = 'Configura o tamanho das listas da administração para todos os usuários';
        echo mosToolTip($tip);
        ?>
				</td>
			</tr>
			<tr>
				<td>Ícone de favoritos do site:</td>
				<td>
				<input class="text_area" type="text" name="config_favicon" size="20" value="<?php 
        echo $row->config_favicon;
        ?>
"/>
				<?php 
        $tip = 'Se deixado em branco ou se o arquivo não for encontrado, o favicon.ico padrão será usando.';
        echo mosToolTip($tip, 'Favourite Icon');
        ?>
				</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Localização", "Locale-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Idioma do Site:</td>
				<td><?php 
        echo $lists['lang'];
        ?>
</td>
			</tr>
			<tr>
				<td width="185">Fuso Horário:</td>
				<td>
				<?php 
        echo $lists['offset'];
        ?>
				<?php 
        $tip = "Data/hora atual configurada para exibição: " . mosCurrentDate(_DATE_FORMAT_LC2);
        echo mosToolTip($tip);
        ?>
				</td>
			</tr>
			<tr>
				<td width="185">Diferença do Servidor:</td>
				<td>
				<input class="text_area" type="text" name="config_offset" size="15" value="<?php 
        echo $row->config_offset;
        ?>
" disabled="disabled" />
				</td>
			</tr>
			<tr>
				<td width="185">Código do País:</td>
				<td>
				<input class="text_area" type="text" name="config_locale" size="15" value="<?php 
        echo $row->config_locale;
        ?>
"/>
				</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Conteúdo", "content-page");
        ?>
			<table class="adminform">
			<tr>
				<td colspan="3">* Estes parâmeteros controlam os elementos de saída *<br/><br/></td>
			</tr>
			<tr>
				<td width="260">Títulos como Link:</td>
				<td width="150"><?php 
        echo $lists['link_titles'];
        ?>
</td>
				<td><?php 
        $tip = 'Se escolher `Sim´, o título dos artigos serão linkados para os artigos';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td width="200">Link leia mais:</td>
				<td width="150"><?php 
        echo $lists['readmore'];
        ?>
</td>
				<td><?php 
        $tip = 'Se configurado para exibir, o link ´Ler mais´ será exibido caso o conteúdo possua um texto principal';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Avaliação/Votação do Item:</td>
				<td><?php 
        echo $lists['vote'];
        ?>
</td>
				<td><?php 
        $tip = 'Se configurado para exibir, o sistema de votação será habilitado para itens de conteúdo';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Nomes dos Autores:</td>
				<td><?php 
        echo $lists['hideAuthor'];
        ?>
</td>
				<td><?php 
        $tip = 'Se configurado para exibir, o nome do autor será exibido. Esta é a configuração global mas pode ser alterada no menu e nos níveis do item.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Data e Hora de Criação:</td>
				<td><?php 
        echo $lists['hideCreateDate'];
        ?>
</td>
				<td><?php 
        $tip = 'Se configurado para exibir, a data e hora que um item foi criado será exibido. Esta é a configuração global mas pode ser alterada no menu e nos níveis do item.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Data e Hora de Alteração:</td>
				<td><?php 
        echo $lists['hideModifyDate'];
        ?>
</td>
				<td><?php 
        $tip = 'Se configurado para exibir, a data e hora que um item foi alterado será exibido. Esta é a configuração global mas pode ser alterada no menu e nos níveis do item.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Acessos:</td>
				<td><?php 
        echo $lists['hits'];
        ?>
</td>
				<td><?php 
        $tip = 'Se configurado para exibir, os acesso para o item específico será exibido.  Esta é a configuração global mas pode ser alterada no menu e nos níveis do item.';
        echo mosToolTip($tip);
        ?>
</td>
			</tr>
			<tr>
				<td>Ícone PDF:</td>
				<td><?php 
        echo $lists['hidePdf'];
        ?>
</td>
				<?php 
        if (!is_writable("{$mosConfig_absolute_path}/media/")) {
            echo "<td align=\"left\">";
            echo mosToolTip('Opção não disponível pois o diretório /media não possui permissão para escrita');
            echo "</td>";
        } else {
            ?>
					<td>&nbsp;</td>
					<?php 
        }
        ?>
			</tr>
			<tr>
				<td>Ícone Impressora:</td>
				<td><?php 
        echo $lists['hidePrint'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Ícone E-mail:</td>
				<td><?php 
        echo $lists['hideEmail'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Ícones:</td>
				<td><?php 
        echo $lists['icons'];
        ?>
</td>
				<td><?php 
        echo mosToolTip('Imprimir, PDF e Email podem utilizar Icones ou Texto');
        ?>
</td>
			</tr>
			<tr>
				<td>Tabela de Índice em artigos de múltiplas páginas:</td>
				<td><?php 
        echo $lists['multipage_toc'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Botão ` Voltar ´:</td>
				<td><?php 
        echo $lists['back_button'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Navegação de Item de Conteúdo:</td>
				<td><?php 
        echo $lists['item_navigation'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Modo de Compatibilidade de Itemid:</td>
				<td><?php 
        echo $lists['itemid_compat'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			</table>
			<input type="hidden" name="config_multilingual_support" value="<?php 
        echo $row->config_multilingual_support;
        ?>
">
			<?php 
        $tabs->endTab();
        $tabs->startTab("Base Dados", "db-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Nome do Servidor:</td>
				<td><input class="text_area" type="text" name="config_host" size="25" value="<?php 
        echo $row->config_host;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Nome de Utilizador MySQL:</td>
				<td><input class="text_area" type="text" name="config_user" size="25" value="<?php 
        echo $row->config_user;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Base de Dados MySQL:</td>
				<td><input class="text_area" type="text" name="config_db" size="25" value="<?php 
        echo $row->config_db;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Prefixo da Base de Dados MySQL:</td>
				<td>
				<input class="text_area" type="text" name="config_dbprefix" size="10" value="<?php 
        echo $row->config_dbprefix;
        ?>
"/>
				&nbsp;<?php 
        echo mosWarning('!! NÃO ALTERE A NÃO SER QUE TENHA UMA BASE DE DADOS COM UM PREFIXO DE TABELAS DIFERENTE DESTE !!');
        ?>
				</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Servidor", "server-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Caminho Absoluto:</td>
				<td width="450"><strong><?php 
        echo $row->config_absolute_path;
        ?>
</strong></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>URL do Site:</td>
				<td><strong><?php 
        echo $row->config_live_site;
        ?>
</strong></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Palavra Secreta:</td>
				<td><strong><?php 
        echo $row->config_secret;
        ?>
</strong></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Compressão GZIP de Páginas:</td>
				<td>
				<?php 
        echo $lists['gzip'];
        ?>
				<?php 
        echo mosToolTip('Memória de Compressão de saída caso seja suportado');
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Duração da Sessão do Usuário:</td>
				<td>
				<input class="text_area" type="text" name="config_lifetime" size="10" value="<?php 
        echo $row->config_lifetime;
        ?>
"/>
				&nbsp;segundos&nbsp;
				<?php 
        echo mosWarning('Fim de sessão automático após este tempo de inatividade. Quanto mais alto o valor maior o risco de segurança!');
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Duração da Sessão de Administração:</td>
				<td>
				<input class="text_area" type="text" name="config_session_life_admin" size="10" value="<?php 
        echo $row->config_session_life_admin;
        ?>
"/>
				&nbsp;segundos&nbsp;
				<?php 
        echo mosWarning('Fim de sessão automático após este tempo de inatividade. Quanto mais alto o valor maior o risco de segurança!');
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Lembre de página de Admin Expirada:</td>
				<td>
				<?php 
        echo $lists['admin_expired'];
        ?>
				<?php 
        echo mosToolTip('Se a sessão expirar, e se efetuar novo início de sessão num espaço de tempo inferior a 10 minutos, será redirecionado à página que estava a tentando acessar quando foi desligado.');
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Método de Autenticação de sessão:</td>
				<td>
				<?php 
        echo $lists['session_type'];
        ?>
				&nbsp;&nbsp;
				<?php 
        echo mosWarning('Não mude a menos que saiba o que está a fazer!<br /> <br /> Se tem muitos usuários AOL ou condicionados por Proxys, poderá considerar a utilização da configuração Nível 2');
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Relatório de Erros:</td>
				<td><?php 
        echo $lists['error_reporting'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Servidor de Ajuda:</td>
				<td><input class="text_area" type="text" name="config_helpurl" size="50" value="<?php 
        echo $row->config_helpurl;
        ?>
"/></td>
			</tr>
			<tr>
				<?php 
        $mode = 0;
        $flags = 0644;
        if ($row->config_fileperms != '') {
            $mode = 1;
            $flags = octdec($row->config_fileperms);
        }
        // if
        ?>
				<td valign="top">Criação de Arquivos:</td>
				<td>
					<fieldset><legend>Permissões de Arquivos</legend>
						<table cellpadding="1" cellspacing="1" border="0">
							<tr>
								<td><input type="radio" id="filePermsMode0" name="filePermsMode" value="0" onclick="changeFilePermsMode(0)"<?php 
        if (!$mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td><label for="filePermsMode0">Não aplicar CHMOD a novos arquivos (usar padrão do servidor)</label></td>
							</tr>
							<tr>
								<td><input type="radio" id="filePermsMode1" name="filePermsMode" value="1" onclick="changeFilePermsMode(1)"<?php 
        if ($mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td>
									<label for="filePermsMode1">Aplicar CHMOD a novos arquivos </label>
									<span id="filePermsValue"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
									para: <input class="text_area" type="text" readonly="readonly" name="config_fileperms" size="4" value="<?php 
        echo $row->config_fileperms;
        ?>
"/>
									</span>
									<span id="filePermsTooltip"<?php 
        if ($mode) {
            echo ' style="display:none"';
        }
        ?>
>
									&nbsp;<?php 
        echo mosToolTip('Selecione esta opção para definir as permissões para novos arquivos criados');
        ?>
									</span>
								</td>
							</tr>
							<tr id="filePermsFlags"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
								<td>&nbsp;</td>
								<td>
									<table cellpadding="0" cellspacing="1" border="0">
										<tr>
											<td style="padding:0px">Usuário:</td>
											<td style="padding:0px"><input type="checkbox" id="filePermsUserRead" name="filePermsUserRead" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 0400) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsUserRead">leitura</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsUserWrite" name="filePermsUserWrite" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 0200) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsUserWrite">escrita</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsUserExecute" name="filePermsUserExecute" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 0100) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" colspan="3"><label for="filePermsUserExecute">execução</label></td>
										</tr>
										<tr>
											<td style="padding:0px">Grupo:</td>
											<td style="padding:0px"><input type="checkbox" id="filePermsGroupRead" name="filePermsGroupRead" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 040) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsGroupRead">leitura</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsGroupWrite" name="filePermsGroupWrite" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 020) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsGroupWrite">escrita</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsGroupExecute" name="filePermsGroupExecute" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 010) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" width="70"><label for="filePermsGroupExecute">execução</label></td>
											<td><input type="checkbox" id="applyFilePerms" name="applyFilePerms" value="1"/></td>
											<td nowrap="nowrap">
												<label for="applyFilePerms">
													Aplicar a arquivos existentes
													&nbsp;<?php 
        echo mosWarning('Selecionando aqui serão aplicadas as permissões a <em>todos os arquivos existentes</em> do site.<br/>' . '<b>USO INAPROPRIADO DESTA OPÇÃO PODE DEIXAR O SITE INOPERANTE!</b>');
        ?>
												</label>
											</td>
										</tr>
										<tr>
											<td style="padding:0px">Geral:</td>
											<td style="padding:0px"><input type="checkbox" id="filePermsWorldRead" name="filePermsWorldRead" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 04) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsWorldRead">leitura</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsWorldWrite" name="filePermsWorldWrite" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 02) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="filePermsWorldWrite">escrita</label></td>
											<td style="padding:0px"><input type="checkbox" id="filePermsWorldExecute" name="filePermsWorldExecute" value="1" onclick="saveFilePerms()"<?php 
        if ($flags & 01) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" colspan="4"><label for="filePermsWorldExecute">execução</label></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</fieldset>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<?php 
        $mode = 0;
        $flags = 0755;
        if ($row->config_dirperms != '') {
            $mode = 1;
            $flags = octdec($row->config_dirperms);
        }
        // if
        ?>
				<td valign="top">Criação de Diretórios:</td>
				<td>
					<fieldset><legend>Permissões de Diretórios</legend>
						<table cellpadding="1" cellspacing="1" border="0">
							<tr>
								<td><input type="radio" id="dirPermsMode0" name="dirPermsMode" value="0" onclick="changeDirPermsMode(0)"<?php 
        if (!$mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td><label for="dirPermsMode0">Não aplicar CHMOD a novos diretórios (usar padrão do servidor)</label></td>
							</tr>
							<tr>
								<td><input type="radio" id="dirPermsMode1" name="dirPermsMode" value="1" onclick="changeDirPermsMode(1)"<?php 
        if ($mode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td>
									<label for="dirPermsMode1">Aplicar CHMOD a novos diretórios para </label> 
									<span id="dirPermsValue"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
									to: <input class="text_area" type="text" readonly="readonly" name="config_dirperms" size="4" value="<?php 
        echo $row->config_dirperms;
        ?>
"/>
									</span>
									<span id="dirPermsTooltip"<?php 
        if ($mode) {
            echo ' style="display:none"';
        }
        ?>
>
									&nbsp;<?php 
        echo mosToolTip('Selecione esta opção para definir as permissões para os novos diretórios a serem criados');
        ?>
									</span>
								</td>
							</tr>
							<tr id="dirPermsFlags"<?php 
        if (!$mode) {
            echo ' style="display:none"';
        }
        ?>
>
								<td>&nbsp;</td>
								<td>
									<table cellpadding="1" cellspacing="0" border="0">
										<tr>
											<td style="padding:0px">Usuário:</td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsUserRead" name="dirPermsUserRead" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 0400) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsUserRead">leitura</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsUserWrite" name="dirPermsUserWrite" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 0200) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsUserWrite">escrita</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsUserSearch" name="dirPermsUserSearch" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 0100) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" colspan="3"><label for="dirPermsUserSearch">execução</label></td>
										</tr>
										<tr>
											<td style="padding:0px">Grupo:</td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsGroupRead" name="dirPermsGroupRead" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 040) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsGroupRead">leitura</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsGroupWrite" name="dirPermsGroupWrite" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 020) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsGroupWrite">escrita</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsGroupSearch" name="dirPermsGroupSearch" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 010) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" width="70"><label for="dirPermsGroupSearch">execução</label></td>
											<td><input type="checkbox" id="applyDirPerms" name="applyDirPerms" value="1"/></td>
											<td nowrap="nowrap">
												<label for="applyDirPerms">
													Aplicar a diretórios existentes
													&nbsp;<?php 
        echo mosWarning('Selecione para aplicar as permissões a <em>todos os diretórios existentes</em> no site.<br/>' . '<b>O USO INAPROPRIADO DESTA OPÇÃO PODE DEIXAR O SITE INOPERANTE!</b>');
        ?>
												</label>
											</td>
										</tr>
										<tr>
											<td style="padding:0px">Todos:</td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsWorldRead" name="dirPermsWorldRead" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 04) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsWorldRead">leitura</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsWorldWrite" name="dirPermsWorldWrite" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 02) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px"><label for="dirPermsWorldWrite">escrita</label></td>
											<td style="padding:0px"><input type="checkbox" id="dirPermsWorldSearch" name="dirPermsWorldSearch" value="1" onclick="saveDirPerms()"<?php 
        if ($flags & 01) {
            echo ' checked="checked"';
        }
        ?>
/></td>
											<td style="padding:0px" colspan="3"><label for="dirPermsWorldSearch">execução</label></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</fieldset>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<?php 
        $rgmode = 0;
        if (defined('RG_EMULATION')) {
            $rgmode = RG_EMULATION;
        }
        ?>
				<td valign="top">Registro Emulação de Globals:</td>
				<td>
					<fieldset><legend>Register Globals Emulation</legend>
						<table cellpadding="1" cellspacing="1" border="0">
							<tr>
								<td><input type="radio" id="rgemulation" name="rgemulation" value="0"<?php 
        if (!$rgmode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td><label for="rgemulation">OFF - more secure and the preferred setting</label></td>
							</tr>
							<tr>
								<td><input type="radio" id="rgemulation" name="rgemulation" value="1"<?php 
        if ($rgmode) {
            echo ' checked="checked"';
        }
        ?>
/></td>
								<td><label for="rgemulation">ON - better compatibility but less secure</label></td>
							</tr>
							</tr>
						</table>
					</fieldset>
				</td>
				<td>&nbsp;</td>
			</tr>

			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Metadados", "metadata-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185" valign="top">Metadados de Descrição Global do Site:</td>
				<td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_MetaDesc"><?php 
        echo $row->config_MetaDesc;
        ?>
</textarea></td>
			</tr>
			<tr>
				<td valign="top">Palavras-Chave do Site:</td>
				<td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_MetaKeys"><?php 
        echo $row->config_MetaKeys;
        ?>
</textarea></td>
			</tr>
			<tr>
				<td valign="top">Exibir Metadados de Título:</td>
				<td>
				<?php 
        echo $lists['MetaTitle'];
        ?>
				&nbsp;&nbsp;&nbsp;
				<?php 
        echo mosToolTip('Exibir a tag de título quando exibir artigos');
        ?>
				</td>
			  	</tr>
			<tr>
				<td valign="top">Exibir Metadados de Autor:</td>
				<td>
				<?php 
        echo $lists['MetaAuthor'];
        ?>
				&nbsp;&nbsp;&nbsp;
				<?php 
        echo mosToolTip('Exibir a tag de autor quando exibir artigos');
        ?>
				</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("E-mail", "mail-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="185">Emissor de E-mail:</td>
				<td><?php 
        echo $lists['mailer'];
        ?>
</td>
			</tr>
			<tr>
				<td>E-Mail do Remetente:</td>
				<td><input class="text_area" type="text" name="config_mailfrom" size="50" value="<?php 
        echo $row->config_mailfrom;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Nome do Remetente:</td>
				<td><input class="text_area" type="text" name="config_fromname" size="50" value="<?php 
        echo $row->config_fromname;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Caminho do Sendmail:</td>
				<td><input class="text_area" type="text" name="config_sendmail" size="50" value="<?php 
        echo $row->config_sendmail;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Autenticação de SMTP:</td>
				<td><?php 
        echo $lists['smtpauth'];
        ?>
</td>
			</tr>
			<tr>
				<td>Utilizador SMTP:</td>
				<td><input class="text_area" type="text" name="config_smtpuser" size="50" value="<?php 
        echo $row->config_smtpuser;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Senha SMTP:</td>
				<td><input class="text_area" type="text" name="config_smtppass" size="50" value="<?php 
        echo $row->config_smtppass;
        ?>
"/></td>
			</tr>
			<tr>
				<td>Servidor SMTP:</td>
				<td><input class="text_area" type="text" name="config_smtphost" size="50" value="<?php 
        echo $row->config_smtphost;
        ?>
"/></td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Cache", "cache-page");
        ?>
			<table class="adminform" border="0">
			<?php 
        if (is_writeable($row->config_cachepath)) {
            ?>
				<tr>
					<td width="185">Cache:</td>
					<td width="500"><?php 
            echo $lists['caching'];
            ?>
</td>
					<td>&nbsp;</td>
				</tr>
				<?php 
        }
        ?>
			<tr>
				<td>Diretório de Cache:</td>
				<td>
				<input class="text_area" type="text" name="config_cachepath" size="50" value="<?php 
        echo $row->config_cachepath;
        ?>
"/>
				<?php 
        if (is_writeable($row->config_cachepath)) {
            echo mosToolTip('O atual Diretório de Cache é <b>Possui permissão para escrita</b>');
        } else {
            echo mosWarning('O diretório de cache não possui permissão para escrita - por favor configure este diretório para CHMOD 0766 antes de ativar a cache');
        }
        ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>Duração da Cache:</td>
				<td><input class="text_area" type="text" name="config_cachetime" size="5" value="<?php 
        echo $row->config_cachetime;
        ?>
"/> segundos</td>
				<td>&nbsp;</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("Estatísticas", "stats-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="250">Estatísticas:</td>
				<td width="100"><?php 
        echo $lists['enable_stats'];
        ?>
</td>
				<td><?php 
        echo mostooltip('Ativar/Desativar estatísticas do site');
        ?>
</td>
			</tr>
			<tr>
				<td>Registro de acessos ao conteúdo por data:</td>
				<td><?php 
        echo $lists['log_items'];
        ?>
</td>
				<td><span class="error"><?php 
        echo mosWarning('CUIDADO : Serão recolhidas grandes quantidades de dados. Por motivos de segurança não deve utilizar esta funcionalidade. Utilize um componente ou serviço independente');
        ?>
</span></td>
			</tr>
			<tr>
				<td>Registro de palavras pesquisadas:</td>
				<td><?php 
        echo $lists['log_searches'];
        ?>
</td>
				<td>&nbsp;</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->startTab("SEO", "seo-page");
        ?>
			<table class="adminform">
			<tr>
				<td width="250"><strong>Otimização para motores de busca</strong></td>
				<td width="100">&nbsp;</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>URLs Amigáveis para motores de busca:</td>
				<td><?php 
        echo $lists['sef'];
        ?>
&nbsp;</td>
				<td><span class="error"><?php 
        echo mosWarning('Somente Apache! Renomear htaccess.txt para .htaccess antes de ativar');
        ?>
</span></td>
			</tr>
			<tr>
				<td>Títulos dinâmicos de páginas:</td>
				<td><?php 
        echo $lists['pagetitles'];
        ?>
</td>
				<td><?php 
        echo mosToolTip('Alterar dinamicamente o título da página para refletir o conteúdo visualizado');
        ?>
</td>
			</tr>
			</table>
			<?php 
        $tabs->endTab();
        $tabs->endPane();
        // show security setting check
        josSecurityCheck();
        ?>

		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
"/>
		<input type="hidden" name="config_absolute_path" value="<?php 
        echo $row->config_absolute_path;
        ?>
"/>
		<input type="hidden" name="config_live_site" value="<?php 
        echo $row->config_live_site;
        ?>
"/>
		<input type="hidden" name="config_secret" value="<?php 
        echo $row->config_secret;
        ?>
"/>
	  	<input type="hidden" name="task" value=""/>
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
		<script  type="text/javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>
		<?php 
    }
    function editCategory(&$menu, &$lists, &$params, $option)
    {
        global $mosConfig_live_site;
        ?>
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}
			var form = document.adminForm;
			<?php 
        if (!$menu->id) {
            ?>
				if ( getSelectedValue( 'adminForm', 'componentid' ) < 1 ) {
					alert( '<?php 
            echo T_('You must select a category');
            ?>
' );
					return;
				}
				sectcat = getSelectedText( 'adminForm', 'componentid' );
				sectcats = sectcat.split('/');
				section = getSelectedOption( 'adminForm', 'componentid' );

				form.link.value = "index.php?option=com_content&task=archivecategory&id=" + form.componentid.value;
				if ( form.name.value == '' ) {
					form.name.value = sectcats[1];
				}
				submitform( pressbutton );
				<?php 
        } else {
            ?>
				if ( form.name.value == '' ) {
					alert( '<?php 
            echo T_('This Menu item must have a title');
            ?>
' );
				} else {
					submitform( pressbutton );
				}
				<?php 
        }
        ?>
		}
		</script>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th>
			<?php 
        echo $menu->id ? T_('Edit') : T_('Add');
        ?>
 <?php 
        echo T_('Menu Item :: Blog - Content Category Archive');
        ?>
			</th>
		</tr>
		</table>

		<table width="100%">
		<tr valign="top">
			<td width="60%">
				<table class="adminform">
				<tr>
					<th colspan="3">
					<?php 
        echo T_('Details');
        ?>
					</th>
				</tr>
				<tr>
					<td width="10%" align="right" valign="top"><?php 
        echo T_('Name:');
        ?>
</td>
					<td width="200px">
					<input type="text" name="name" size="30" maxlength="100" class="inputbox" value="<?php 
        echo $menu->name;
        ?>
"/>
					</td>
					<td>
					<?php 
        if (!$menu->id) {
            echo mosToolTip(T_('If you leave this blank the Category name will be automatically used'));
        }
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right"><?php 
        echo T_('Category:');
        ?>
</td>
					<td>
					<?php 
        echo $lists['componentid'];
        ?>
					</td>
				</tr>
				<tr>
					<td align="right"><?php 
        echo T_('Url:');
        ?>
</td>
					<td>
					<?php 
        echo $lists['link'];
        ?>
					</td>
				</tr>
				<tr>
					<td align="right"><?php 
        echo T_('Parent Item:');
        ?>
</td>
					<td>
					<?php 
        echo $lists['parent'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right"><?php 
        echo T_('Ordering:');
        ?>
</td>
					<td>
					<?php 
        echo $lists['ordering'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right"><?php 
        echo T_('Access Level:');
        ?>
</td>
					<td>
					<?php 
        echo $lists['access'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right"><?php 
        echo T_('Published:');
        ?>
</td>
					<td>
					<?php 
        echo $lists['published'];
        ?>
					</td>
				</tr>
				<tr>
					<td colspan="2">&nbsp;</td>
				</tr>
				</table>
			</td>
			<td width="40%">
				<table class="adminform">
				<tr>
					<th>
					<?php 
        echo T_('Parameters');
        ?>
					</th>
				</tr>
				<tr>
					<td>
					<?php 
        echo $params->render();
        ?>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>

		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="id" value="<?php 
        echo $menu->id;
        ?>
" />
		<input type="hidden" name="menutype" value="<?php 
        echo $menu->menutype;
        ?>
" />
		<input type="hidden" name="type" value="<?php 
        echo $menu->type;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="hidemainmenu" value="0" />
		</form>
		<script language="Javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>
		<?php 
    }
    /**
     * writes a form to take the name of the menu you would like created
     * @param option	display options for the form
     */
    function edit(&$row, $option)
    {
        global $mosConfig_live_site;
        $new = $row->menutype ? 0 : 1;
        $row->menutype = htmlspecialchars($row->menutype);
        ?>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			var form = document.adminForm;

			if (pressbutton == 'savemenu') {
				if ( form.menutype.value == '' ) {
					alert( 'Por favor, entre com um nome para o menu' );
					form.menutype.focus();
					return;
				}
				var r = new RegExp("[\']", "i");
				if ( r.exec(form.menutype.value) ) {
					alert( 'O nome não pode conter uma \'' );
					form.menutype.focus();
					return;
				}
				<?php 
        if ($new) {
            ?>
					if ( form.title.value == '' ) {
						alert( 'Por favor, informe um nome fácil para o módulo para seu menu' );
						form.title.focus();
						return;
					}
					<?php 
        }
        ?>
				submitform( 'savemenu' );
			} else {
				submitform( pressbutton );
			}
		}
		</script>
		<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 class="menus">
			Detalhes do Menu
			</th>
		</tr>
		</table>

		<table class="adminform">
		<tr height="45px;">
			<td width="100px" align="left">
			<strong>Nome do Menu:</strong>
			</td>
			<td>
			<input class="inputbox" type="text" name="menutype" size="30" maxlength="25" value="<?php 
        echo isset($row->menutype) ? $row->menutype : '';
        ?>
" />
			<?php 
        $tip = 'Este é o nome de identificação usado pelo Joomla para identificar este dentro do código - deve ser único. É recomendável a você não ter espaços no Nome do Menu';
        echo mosToolTip($tip);
        ?>
			</td>
		</tr>
		<?php 
        if ($new) {
            ?>
			<tr>
				<td width="100px" align="left" valign="top">
				<strong>Título do Módulo:</strong>
				</td>
				<td>
				<input class="inputbox" type="text" name="title" size="30" value="<?php 
            echo $row->title ? $row->title : '';
            ?>
" />
				<?php 
            $tip = 'Título do módulo mod_mainmenu necessário para exibir este Menu';
            echo mosToolTip($tip);
            ?>
				<br/><br/><br/>
				<strong>
				Um novo módulo mod_mainmenu, com o Título que você informou acima será automaticamente criado quando você salvar este menu.
				<br/><br/>
				Parâmetros para este módulo criado são editados através do 'Administrado de Módulo [site]': Módulos -> Módulos do Site 
				</strong>
				</td>
			</tr>
			<?php 
        }
        ?>
		<tr>
			<td colspan="2">
			</td>
		</tr>
		</table>
		<br /><br />

		<script language="Javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>
		<?php 
        if ($new) {
            ?>
			<input type="hidden" name="id" value="<?php 
            echo $row->id;
            ?>
" />
			<input type="hidden" name="iscore" value="<?php 
            echo $row->iscore;
            ?>
" />
			<input type="hidden" name="published" value="<?php 
            echo $row->published;
            ?>
" />
			<input type="hidden" name="position" value="<?php 
            echo $row->position;
            ?>
" />
			<input type="hidden" name="module" value="mod_mainmenu" />
			<input type="hidden" name="params" value="<?php 
            echo $row->params;
            ?>
" />
			<?php 
        }
        ?>

		<input type="hidden" name="new" value="<?php 
        echo $new;
        ?>
" />
		<input type="hidden" name="old_menutype" value="<?php 
        echo $row->menutype;
        ?>
" />
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="task" value="savemenu" />
		<input type="hidden" name="boxchecked" value="0" />
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
		<?php 
    }
Exemplo n.º 26
0
    function JLMS_editPlan(&$row, &$lists, $option)
    {
        JHTML::_('behavior.tooltip');
        ?>
		<script language="javascript" type="text/javascript">
		<!--
		function submitbutton(pressbutton) 
		{
			var form = document.adminForm;
			
			if ( pressbutton == 'plans' ) {
				submitform( pressbutton );
				return;
			}			
			
			if ( form.p1.value == 0 && form.p2.value != 0 )
			{
				alert('<?php 
        echo _JLMS_PLANS_TRIAL2_SPEC;
        ?>
');
				return false;
			}
			
			if ( form.p3.value == 0 )
			{
				alert("<?php 
        echo _JLMS_PLANS_REG_PERIOD_REQ;
        ?>
");
				return false;
			}		
			
			if( trim(form.name.value)  == '' ) {			
				alert('<?php 
        echo _JLMS_PLANS_ENTER_P_NAME;
        ?>
');
			} else {
				submitform( pressbutton );
			}
			
			return true;			
		}
		
		<?php 
        if (JLMS_J16version()) {
            ?>
		Joomla.submitbutton = submitbutton;
		<?php 
        }
        ?>
		
		function trim( value ) {
			return value.replace(/(^\s+)|(\s+$)/g, "");
		}
		//-->
		</script>
		
		<form action="index.php" method="post" name="adminForm">		
		<table width="100%" >
			<tr>
				<td valign="top" width="220">
				<div>
					<?php 
        echo joomla_lms_adm_html::JLMS_menu();
        ?>
				</div>
				</td>
				<td valign="top">
				<div class="width-100">
				<fieldset class="adminform">
				<?php 
        if (!class_exists('JToolBarHelper')) {
            ?>
					<table class="adminheading" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<th class="categories">
						<?php 
            echo _JOOMLMS_COMP_NAME;
            ?>
: <small><?php 
            echo $row->id ? _JLMS_PLANS_EDIT_PLAN : _JLMS_PLANS_NEW_PLAN;
            ?>
</small>
						</th>
					</tr>
					</table>
				<?php 
        }
        ?>
				
				<table width="100%" >
				<tr><th colspan="2"><?php 
        echo _JLMS_PLANS_PLAN_DETS;
        ?>
</th></tr>
				<tr><td width="20%" align="right"><?php 
        echo _JLMS_NAME;
        ?>
:</td>
					<td><input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php 
        echo $row->name;
        ?>
" /></td>
				</tr>
<input class="inputbox" type="hidden" name="params" size="10" maxlength="100" value="<?php 
        echo $row->params;
        ?>
" />
				<tr><td align="right" colspan="2"><?php 
        echo _JLMS_DESCRIPTION;
        ?>
:
					<br /><?php 
        editorArea('editor1', $row->description, 'description', '100%;', '250', '75', '30');
        ?>
					</td>
				</tr>
				<tr><td colspan="2">&nbsp;</td></tr>
				</table>
				
				<div  style="float:left;width:50%">
				<table width="100%" >
					<tr><th colspan="2"><?php 
        echo _JLMS_PLANS_PAY_PERIOD_SET;
        ?>
:</th></tr>
					<tr><td width="180"><?php 
        echo _JLMS_PLANS_PERIOD1_LENGTH;
        ?>
:</td>
						<td><input class="inputbox" type="text" name="p1" size="10" maxlength="10" value="<?php 
        echo $row->p1;
        ?>
" />&nbsp;&nbsp;<?php 
        echo mosToolTip(_JLMS_PLANS_TIP_TRIAL_1_PAY);
        ?>
</td>
					</tr>	
					<tr><td width="180"><?php 
        echo _JLMS_PLANS_PERIOD2_LENGTH;
        ?>
:</td>
						<td><input class="inputbox" type="text" name="p2" size="10" maxlength="10" value="<?php 
        echo $row->p2;
        ?>
" />&nbsp;&nbsp;<?php 
        echo mosToolTip(_JLMS_PLANS_TIP_TRIAL_2_PAY);
        ?>
</td>
					</tr>				
					<tr><td width="180"><?php 
        echo _JLMS_PLANS_REG_PERIOD_LENGTH;
        ?>
:</td>
						<td><input class="inputbox" type="text" name="p3" size="10" maxlength="10" value="<?php 
        echo $row->p3;
        ?>
" />&nbsp;&nbsp;<?php 
        echo mosToolTip(_JLMS_PLANS_TIP_REGULAR_PAY);
        ?>
</td>
					</tr>						
					<tr><td colspan="2">&nbsp;</td></tr>					
				</table>
				</div> 

				<div  style="float:right;width:50%">
				<table width="100%" >
					<tr><th colspan="2"><?php 
        echo _JLMS_PLANS_RECURR_OPT;
        ?>
</th></tr>				
					<tr><td width="180"><?php 
        echo _JLMS_PLANS_RECR_TIMES;
        ?>
:</td>
						<td><input class="inputbox" type="text" name="srt" size="10" maxlength="10" value="<?php 
        echo $row->srt;
        ?>
" />&nbsp;&nbsp;<?php 
        echo mosToolTip(_JLMS_PLANS_TIP_RECR_TIMES);
        ?>
</td>
					</tr>									
					<tr><td colspan="2">&nbsp;</td></tr>
				</table>								
				</div>

				<div style="clear:both "></div>	
				
				<table width="100%" >
					<tr><th colspan="2"><?php 
        echo _JLMS_PLANS_PUBLISH_INF;
        ?>
</th></tr>
					<tr><td width="180"><?php 
        echo _JLMS_PUBLISHED;
        ?>
:</td>
						<td>
						<fieldset class="radio">
						<?php 
        echo $lists['published'];
        ?>
						</fieldset>
						</td>
					</tr>
					<tr><td colspan="2">&nbsp;</td></tr>
				</table>
				</fieldset>
				</div>
			</td>
		</tr>
		</table>	
		
		<input type="hidden" name="t1" value="D"/>
		<input type="hidden" name="t2" value="D"/>
		<input type="hidden" name="t3" value="D"/>
		<input type="hidden" name="sra" value="1"/>
		<input type="hidden" name="src" value="1"/>
		
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="id" value="<?php 
        echo $row->id;
        ?>
" />
		<input type="hidden" name="task" value="" />		
		</form>
		<?php 
    }
Exemplo n.º 27
0
    public static function htmlOptions(&$row, $link, $k, $i)
    {
        ?>
		<tr class="<?php 
        echo "row{$k}";
        ?>
">
			<td width="20">
			</td>
			<td style="height: 30px;">
				<span class="editlinktip" style="cursor: pointer;">
						<?php 
        echo mosToolTip($row->descrip, $row->name, 250, '', $row->name, $link, 1);
        ?>
				</span>
			</td>
			<td width="20">
				<input type="radio" id="cb<?php 
        echo $i;
        ?>
" name="type" value="<?php 
        echo $row->type;
        ?>
" onClick="isChecked(this.checked);" />
			</td>
			<td width="20">
			</td>
		</tr>
		<?php 
    }
Exemplo n.º 28
0
    function showconfig(&$row, &$lists, $option)
    {
        global $mosConfig_absolute_path, $mosConfig_live_site, $mosConfig_lang;
        $tabs = new mosTabs(0);
        if (!file_exists("{$mosConfig_absolute_path}/mambots/editors/mostlyce/jscripts/tiny_mce/info/editor_info_{$mosConfig_lang}.php")) {
            $editor_info_lang = "english";
        } else {
            $editor_info_lang = "{$mosConfig_lang}";
        }
        //Setup version information so we can decide which tooltip library to utilize
        if (file_exists($mosConfig_absolute_path . 'includes/version.php')) {
            require_once $mosConfig_absolute_path . 'includes/version.php';
            $_VERSION =& new version();
            $version = (double) $_VERSION->RELEASE;
        } else {
            //Unsupported Mambo version.  MOStlyCE 2.0+ is for Mambo 4.6+.
            $version = 0;
        }
        //Build version specific tooltip statement
        if ($version >= 4.7) {
            mosCommonHTML::loadPrototype();
            mosCommonHTML::loadToolTip();
            $lib = 'prototype';
        } else {
            mosCommonHTML::loadOverlib();
            $lib = 'overlib';
        }
        ?>
                <?php 
        if ($version < 4.6) {
            echo '<span style="color: red;font-size: 1.5em;">' . T_('Warning: This version of MOStlyCE is not support in Mambo versions less than 4.6!') . '</span>';
        }
        ?>
                <table class="adminheading">
                <tr>
                        <th class="config">
                        <?php 
        echo T_('MOStlyCE Configuration :');
        ?>
                        <span class="componentheading">
                        <?php 
        echo T_('mostlyce_config.php is :');
        ?>
                         <?php 
        echo is_writable('../mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_config.php') ? '<span style="color: green;font-weight:bold;">' . T_('Writeable') . '</span>' : '<span style="color: red;font-weight:bold;">' . T_('Unwriteable') . '</span>';
        ?>
                        </span>
                        </th>
                </tr>
                </table>
                <script type="text/javascript">
                function submitbutton(pressbutton) {
                        var form = document.adminForm;
                        if (pressbutton == 'save') {
                                //if (confirm ("Are you sure?")) {
                                submitform( pressbutton );
                                //}
                        } else {
                                document.location.href = 'index2.php';
                        }
                }
                </script>
                <form action="index2.php" method="post" name="adminForm">
                <?php 
        $tabs->startPane("mosCE");
        $tabs->startTab(T_('General'), "editor_options");
        ?>
                <table class="adminform">
                <tr>
                    <td colspan="2"><?php 
        echo sprintf(T_('The URL specified in $mosConfig_live_site in configuration.php is <strong>%s</strong><br />You <strong>MUST</strong> access this site from this <strong>exact URL</strong> when editing content.'), $mosConfig_live_site);
        ?>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Editor Themes');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_themes'];
        ?>
</td>
                </tr>
				<tr>
                        <td>
                        <?php 
        echo T_('Editor Compression');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_compression'];
        $tip = T_('Turning compression on enables the TinyMCE compressor. This reduces traffic and speeds up the editor by up to 75%. NOTE: Not recommended for IE users at this time.  Causes editor in IE not to appear.');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
						</td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Editor Language');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_lang'];
        $tip = T_('Additional languages can be added by downloading and install TinyMCE language packs found here - http://tinymce.moxiecode.com/language.php');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('List of supported Languages.');
        ?>
:
                        </td>
                        <td><input type="text" class="text_area" size="50" name="editor_lang_list" value="<?php 
        echo $row->editor_lang_list;
        ?>
" /></td>
                </tr>

                <tr>
                        <td>
                        <?php 
        echo T_('Override Template CSS');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_css_override'];
        $tip = T_('Override your Template CSS file');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Custom CSS File');
        ?>
:
                        </td>
                        <td>
                        <input type="text" class="text_area" size="30" name="editor_custom_css" value="<?php 
        echo $row->editor_custom_css;
        ?>
" />
                        <?php 
        $tip = T_('Name of custom css file. This file should be placed in your Template CSS directory.');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Newlines');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_newlines'];
        $tip = T_('Result of a carriage return in the editor content area, BR or P.');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Convert Absolute URLS.');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_convert_urls'];
        $tip = T_('If Yes, Absolute URLS from the Editor are converted to Relative URLS for page display. Necessary for SEF support.');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Allow script elements');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_script_acl'];
        ?>
                        &nbsp;
                        <?php 
        echo T_('SCRIPT Elements');
        ?>
                        <input type="text" class="text_area" size="40" name="editor_script_elms" value="<?php 
        echo $row->editor_script_elms;
        ?>
" />
                        <?php 
        $tip = T_('List of SCRIPT Elements. Must be seperated by | ');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Allow IFRAME elements');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_iframe_acl'];
        ?>
                        &nbsp;
                        <?php 
        echo T_('IFRAME Elements');
        ?>
                        <input type="text" class="text_area" size="40" name="editor_iframe_elms" value="<?php 
        echo $row->editor_iframe_elms;
        ?>
" />
                        <?php 
        $tip = T_('List of IFRAME Elements. Must be seperated by | ');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Extended Elements List');
        ?>
:
                        </td>
                        <td><input type="text" class="text_area" size="80" name="editor_xtd_elms" value="<?php 
        echo $row->editor_xtd_elms;
        ?>
" />
                        <?php 
        $tip = T_('List of Extended Elements. Format is tag1[element1|element2],tag2[element1|element2]');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Path to HTML Template Directory');
        ?>
:
                        </td>
                        <td><?php 
        echo $mosConfig_absolute_path;
        ?>
<input type="text" class="text_area" size="30" name="editor_tmpl_dir" value="<?php 
        echo $row->editor_tmpl_dir;
        ?>
" />
                        <?php 
        $tip = T_('Absolute path to the directory where HTML templates are stored (HTML Template plugin).');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                
                <tr>
                        <td>
                        <?php 
        echo T_('Directionality');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_direction'];
        ?>
</td>
                </tr>
                </table>
                <?php 
        $tabs->endTab();
        $tabs->startTab(T_('Layout'), "editor_layout");
        ?>
                <table class="adminform" border="1" width="75%">
                <tr>
                    <td><?php 
        echo T_('Preview :');
        ?>
</td>
                    <td>
                            <?php 
        $row_buttons1 = explode(',', $row->editor_layout_row1);
        foreach ($row_buttons1 as $btnImg1) {
            echo '<img src="components/com_mostlyce/images/' . trim($btnImg1) . '.gif" alt="' . $btnImg1 . '" title="' . $btnImg1 . '" />';
        }
        ?>
                            <?php 
        $row_buttons2 = explode(',', $row->editor_layout_row2);
        foreach ($row_buttons2 as $btnImg2) {
            echo '<img src="components/com_mostlyce/images/' . trim($btnImg2) . '.gif" alt="' . $btnImg2 . '" title="' . $btnImg2 . '" />';
        }
        ?>
                            <?php 
        $row_buttons3 = explode(',', $row->editor_layout_row3);
        foreach ($row_buttons3 as $btnImg3) {
            echo '<img src="components/com_mostlyce/images/' . trim($btnImg3) . '.gif" alt="' . $btnImg3 . '" title="' . $btnImg3 . '" />';
        }
        ?>
                            <?php 
        $row_buttons4 = explode(',', $row->editor_layout_row4);
        foreach ($row_buttons4 as $btnImg4) {
            echo '<img src="components/com_mostlyce/images/' . trim($btnImg4) . '.gif" alt="' . $btnImg4 . '" title="' . $btnImg4 . '" />';
        }
        ?>
                    </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Editor Width');
        ?>
:
                        </td>
                        <td>
                        <input type="text" class="text_area" size="5" name="editor_width" value="<?php 
        echo $row->editor_width;
        ?>
" />&nbsp;px
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Editor Height');
        ?>
:
                        </td>
                        <td>
                        <input type="text" class="text_area" size="5" name="editor_height" value="<?php 
        echo $row->editor_height;
        ?>
" />&nbsp;px
                        </td>
                </tr>
                <tr>
                        <td colspan="2">
                        <?php 
        echo T_('You can remove buttons from the layout by placing a minus sign (-) in front of the button name, eg: -cut');
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Row 1 buttons');
        ?>
:
                        </td>
                        <td><textarea class="text_area" cols="100" rows="5" name="editor_layout_row1"><?php 
        echo $row->editor_layout_row1;
        ?>
</textarea></td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Row 2 buttons');
        ?>
:
                        </td>
                        <td><textarea class="text_area" cols="100" rows="5" name="editor_layout_row2"><?php 
        echo $row->editor_layout_row2;
        ?>
</textarea></td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Row 3 buttons');
        ?>
:
                        </td>
                        <td><textarea class="text_area" cols="100" rows="5" name="editor_layout_row3"><?php 
        echo $row->editor_layout_row3;
        ?>
</textarea></td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Row 4 buttons');
        ?>
:
                        </td>
                        <td><textarea class="text_area" cols="100" rows="5" name="editor_layout_row4"><?php 
        echo $row->editor_layout_row4;
        ?>
</textarea></td>
                </tr>
                </table>
                <?php 
        $tabs->endTab();
        $tabs->startTab(T_('Plugins'), "editor_plugins");
        ?>
                <table class="adminform">
                <tr>
                <td><?php 
        echo T_('<strong>Note:</strong>  Disabling these may speed up the editor since there is less to load, but it will also mean the editor has less functionality.  If you disable plugins you\'ll probably want to rearrange your plugin icon layout as well.');
        ?>
                </td>
                </tr>
                </table>
                <table class="adminform">
                <tr>
                        <td>
                        <?php 
        echo T_('Load Date/Time');
        ?>
:
                        </td>
                        <td>
                        <?php 
        echo $lists['editor_plugin_datetime_acl'];
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Date Format');
        ?>
:
                        </td>
                        <td>
                        <input type="text" class="text_area" size="30" name="editor_plugin_dateformat" value="<?php 
        echo $row->editor_plugin_dateformat;
        ?>
" />
                        <?php 
        $tip = T_('%y  year as number without century (00 to 99), %Y year as number including the century, %d day of month as number (01 to 31), %m month as number (01 to 12), %D same as %m/%d/%y');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Time Format');
        ?>
:
                        </td>
                        <td>
                        <input type="text" class="text_area" size="30" name="editor_plugin_timeformat" value="<?php 
        echo $row->editor_plugin_timeformat;
        ?>
" />
                        <?php 
        $tip = T_('%r time with a.m./p.m. , %H hour as number 24-hour clock (00 to 23), %I hour as number 12-hour clock (01 to 12), %M min as number (00-59), %S sec as number (00-59), %p either a.m. or p.m. based on given time');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Load Emotions');
        ?>
:
                        </td>
                        <td>
                        <?php 
        echo $lists['editor_plugin_emotions_acl'];
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Load Media (ex) Flash');
        ?>
:
                        </td>
                        <td>
                        <?php 
        echo $lists['editor_plugin_media_acl'];
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Load Tables');
        ?>
:
                        </td>
                        <td>
                        <?php 
        echo $lists['editor_plugin_table_acl'];
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Load Font Options');
        ?>
:
                        </td>
                        <td>
                        <?php 
        echo $lists['editor_font_tools_acl'];
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Load Print');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_plugin_print'];
        ?>
</td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Load Search and Replace');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_plugin_searchreplace'];
        ?>
</td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Load Spellchecker');
        ?>
:
                        </td>
                        <td>
                        <?php 
        echo $lists['editor_plugin_spellchecker'];
        ?>
                        <?php 
        $tip = T_('The Spellchecker plugin is still experimental, but seems to work well in FireFox 1.5+ on non-Windows machines.  This plugin requires CURL.');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Load Layers');
        ?>
:
                        </td>
                        <td><?php 
        echo $lists['editor_plugin_layer'];
        ?>
</td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('3rd Party Plugins');
        ?>
:
                        </td>
                        <td>
                        <input type="text" class="text_area" size="30" name="editor_extra_plugins" value="<?php 
        echo $row->editor_extra_plugins;
        ?>
" />
                        <?php 
        $tip = T_('Comma seperated list of extra plugins. The plugins indicated should be placed in the MOStlyCE plugins directory and should be named exactly as specified.');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                </table>
                <?php 
        $tabs->endTab();
        $tabs->startTab(T_('Image Mgr'), "editor_img_mgr_tab");
        ?>
                <table class="adminform">
                <tr>
                <?php 
        $docroot = $_SERVER['DOCUMENT_ROOT'];
        ?>

                <td>
                <?php 
        echo sprintf(T_('
						<strong>Note:</strong>  The Image Manager plugin allows for basic image editing and
						linking functionality directly within the editor.  It duplicates some of the
						functionality found in Media Manager, but allows you to do these functions
						while actually creating content.  The file manager supports some basic file
						management capabilites like uploading, creating directories, renaming and
						deleting files / folders, etc.  It does not yet allow for linking to files
						which are not images.<br /><br />
						
						<span style="color: Red;"><strong>Important</strong></span>: In
						order to utilize the Image Manager functionality you must create the folder
						structure shown below in your document root folder.  Not your Mambo root,
						your document root!  For this installation your document root is
						<strong>%s</strong>.  You can create this structure manually or extract the
						UserFiles.zip file included with MOStlyCE at that location.  You can find
						the UserFiles.zip file at /mambots/editors/mostlyce.<br /><br />
						
						You must also make sure these folders are writable after you have created
						them (ex) chmod to 0755:<br />
						   1) UserFiles<br />
						 2) UserFiles/Image<br />
						 3) UserFiles/File<br />
						 4) UserFiles/Media<br />
						 5) UserFiles/Flash'), $docroot);
        ?>

                </td>
                </tr>
                </table>
                <table class="adminform">
                <tr>
                        <td>
                        <?php 
        echo T_('Load Image Manager');
        ?>
:
                        <?php 
        echo $lists['editor_plugin_img_mgr'];
        ?>
                        <?php 
        $tip = T_('Turns the Image Manager plugin on and off. Do not turn this on until you have created the folder structure show above and have made them writable. NOTE: Not recommended for use with the Opera web browser.');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                <tr>
                        <td>
                        <?php 
        echo T_('Display {mosimage} Icon');
        ?>
:
                        <?php 
        echo '<img src="components/com_mostlyce/images/mosimage.gif" alt="mosimage" title="mosimage" />';
        ?>
                        <?php 
        echo $lists['editor_mosimage_icon'];
        ?>
                        <?php 
        $tip = T_('If you are using the MOStlyCE Image Manager plugin then you may wish to remove the original {mosimage} option.');
        echo mosToolTip($tip, 'editor_lang', '', 'tooltip.png', '', '#', $lib);
        ?>
                        </td>
                </tr>
                </table>
                <?php 
        $tabs->endTab();
        $tabs->startTab(T_('Editor Info'), "editor_info2");
        ?>
                <table class="adminform">
                <tr>
                    <td>
                    <?php 
        readfile("{$mosConfig_absolute_path}/mambots/editors/mostlyce/jscripts/tiny_mce/info/editor_info_{$editor_info_lang}.txt");
        ?>
                    </td>
                </tr>
                </table>
                <?php 
        $tabs->endTab();
        $tabs->endPane();
        ?>

                <input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
                <input type="hidden" name="task" value="" />
                </form>
                <?php 
    }