/**
  * Draws the menu to edit a menu item
  */
 function _EDIT()
 {
     global $id;
     if (!$id) {
         $cid = josGetArrayInts('cid');
         $id = $cid[0];
     }
     $menutype = strval(mosGetParam($_REQUEST, 'menutype', 'mainmenu'));
     mosMenuBar::startTable();
     if (!$id) {
         $link = 'index2.php?option=com_menus&menutype=' . $menutype . '&task=new&hidemainmenu=1&' . josSpoofValue() . '=1';
         mosMenuBar::back('Back', $link);
         mosMenuBar::spacer();
     }
     mosMenuBar::save();
     mosMenuBar::spacer();
     mosMenuBar::apply();
     mosMenuBar::spacer();
     if ($id) {
         // for existing content items the button is renamed `close`
         mosMenuBar::cancel('cancel', 'Close');
     } else {
         mosMenuBar::cancel();
     }
     mosMenuBar::spacer();
     mosMenuBar::help('screen.menus.edit');
     mosMenuBar::endTable();
 }
Ejemplo n.º 2
0
    /**
    * Displays the installed non-core Mambot
    * @param array An array of mambot object
    * @param strong The URL option
    */
    function showInstalledMambots(&$rows, $option)
    {
        ?>
		<table class="adminheading">
		<tr>
			<th class="install">
			Plugins Instalados
			</th>
		</tr>
		<tr>
			<td>
			Apenas são exibidos os plugins que podem ser desinstalados - alguns plugins são parte do sistema e não podem ser removidos.
			<br /><br />
			</td>
		</tr>
		</table>
		<?php 
        if (count($rows)) {
            ?>
			<form action="index2.php" method="post" name="adminForm">
			<table class="adminlist">
			<tr>
				<th width="20%" class="title">
				Plugin
				</th>
				<th width="10%" class="title">
				Tipo
				</th>
				<!--
				Currently Unsupported
				<th width="10%" align="left">
				Client
				</th>
				-->
				<th width="10%" align="left">
				Autor
				</th>
				<th width="5%" align="center">
				Versão
				</th>
				<th width="10%" align="center">
				Data
				</th>
				<th width="15%" align="left">
				E-mail do Autor
				</th>
				<th width="15%" align="left">
				URL do Autor
				</th>
			</tr>
			<?php 
            $rc = 0;
            $n = count($rows);
            for ($i = 0; $i < $n; $i++) {
                $row =& $rows[$i];
                ?>
				<tr class="<?php 
                echo "row{$rc}";
                ?>
">
					<td>
					<input type="radio" id="cb<?php 
                echo $i;
                ?>
" name="cid[]" value="<?php 
                echo $row->id;
                ?>
" onclick="isChecked(this.checked);">
					<span class="bold">
					<?php 
                echo $row->name;
                ?>
					</span>
					</td>
					<td>
					<?php 
                echo $row->folder;
                ?>
					</td>
					<!--
					Currently Unsupported
					<td>
					<?php 
                //echo $row->client_id == "0" ? 'Site' : 'Administrator';
                ?>
					</td>
					-->
					<td>
					<?php 
                echo @$row->author != '' ? $row->author : "&nbsp;";
                ?>
					</td>
					<td align="center">
					<?php 
                echo @$row->version != '' ? $row->version : "&nbsp;";
                ?>
					</td>
					<td align="center">
					<?php 
                echo @$row->creationdate != '' ? $row->creationdate : "&nbsp;";
                ?>
					</td>
					<td>
					<?php 
                echo @$row->authorEmail != '' ? $row->authorEmail : "&nbsp;";
                ?>
					</td>
					<td>
					<?php 
                echo @$row->authorUrl != "" ? "<a href=\"" . (substr($row->authorUrl, 0, 7) == 'http://' ? $row->authorUrl : 'http://' . $row->authorUrl) . "\" target=\"_blank\">{$row->authorUrl}</a>" : "&nbsp;";
                ?>
					</td>
				</tr>
				<?php 
                $rc = 1 - $rc;
            }
            ?>
			</table>

			<input type="hidden" name="task" value="" />
			<input type="hidden" name="boxchecked" value="0" />
			<input type="hidden" name="option" value="com_installer" />
			<input type="hidden" name="element" value="mambot" />
			<input type="hidden" name="<?php 
            echo josSpoofValue();
            ?>
" value="1" />
		</form>
			<?php 
        } else {
            ?>
			Não há plugins personalizados instalados.
			<?php 
        }
    }
    /**
     * Form to select Section/Category to copys item(s) to
     */
    function copySection($option, $cid, $sectCatList, $sectionid, $items)
    {
        ?>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			var form = document.adminForm;
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}

			// do field validation
			if (!getSelectedValue( 'adminForm', 'sectcat' )) {
				alert( "Por favor, selecione um seção/categoria para mover os artigos" );
			} else {
				submitform( pressbutton );
			}
		}
		</script>
		<form action="index2.php" method="post" name="adminForm">
		<br />
		<table class="adminheading">
		<tr>
			<th class="edit">
			Copiar itens de conteúdo
			</th>
		</tr>
		</table>

		<br />
		<table class="adminform">
		<tr>
			<td align="left" valign="top" width="40%">
			<strong>Copiar para Seção/Categoria:</strong>
			<br />
			<?php 
        echo $sectCatList;
        ?>
			<br /><br />
			</td>
			<td align="left" valign="top">
			<strong>Itens que serão copiados:</strong>
			<br />
			<?php 
        echo "<ol>";
        foreach ($items as $item) {
            echo "<li>" . $item->title . "</li>";
        }
        echo "</ol>";
        ?>
			</td>
		</tr>
		</table>
		<br /><br />

		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="sectionid" value="<?php 
        echo $sectionid;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<?php 
        foreach ($cid as $id) {
            echo "\n<input type=\"hidden\" name=\"cid[]\" value=\"{$id}\" />";
        }
        ?>
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
		<?php 
    }
Ejemplo n.º 4
0
    public static function edit(&$menu, &$components, &$lists, &$params, $option)
    {
        global $mosConfig_live_site;
        if ($menu->id) {
            $title = '[ ' . $lists['componentname'] . ' ]';
        } else {
            $title = '';
        }
        ?>
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			var form = document.adminForm;
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}

			var comp_links = new Array;
			<?php 
        foreach ($components as $row) {
            ?>
				comp_links[ <?php 
            echo $row->value;
            ?>
 ] = 'index.php?<?php 
            echo addslashes($row->link);
            ?>
';
				<?php 
        }
        ?>
			if ( form.id.value == 0 ) {
				var comp_id = getSelectedValue( 'adminForm', 'componentid' );
				form.link.value = comp_links[comp_id];
			} else {
				form.link.value = comp_links[form.componentid.value];
			}

			if ( trim( form.name.value ) == "" ){
				alert( "Item must have a name" );
			} else if (form.componentid.value == ""){
				alert( "Please select a Component" );
			} else {
				submitform( pressbutton );
			}
		}
		</script>

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

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

		<table width="100%">
		<tr valign="top">
			<td width="60%">
				<table class="adminform">
				<tr>
					<th colspan="2">
					Details
					</th>
				</tr>
				<tr>
					<td width="10%" align="right">Name:</td>
					<td width="80%">
					<input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php 
        echo htmlspecialchars($menu->name, ENT_QUOTES);
        ?>
" />
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">Component:</td>
					<td>
					<?php 
        echo $lists['componentid'];
        ?>
					</td>
				</tr>
				<tr>
					<td width="10%" align="right">URL:</td>
					<td width="80%">
                    <?php 
        echo ampReplace($lists['link']);
        ?>
					</td>
				</tr>
				<tr>
					<td align="right">Parent Item:</td>
					<td>
					<?php 
        echo $lists['parent'];
        ?>
					</td>
				</tr>

				<tr>
					<td valign="top" align="right">Ordering:</td>
					<td>
					<?php 
        echo $lists['ordering'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">Access Level:</td>
					<td>
					<?php 
        echo $lists['access'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">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>
					Parameters
					</th>
				</tr>
				<tr>
					<td>
					<?php 
        if ($menu->id) {
            echo $params->render();
        } else {
            ?>
						<strong>Parameter list will be available once you save this New menu item</strong>
						<?php 
        }
        ?>
					</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="link" value="" />
		<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 
    }
    public static function edit(&$menu, &$lists, &$params, $option, $content)
    {
        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) {
			var form = document.adminForm;
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}
			if (pressbutton == 'redirect') {
				submitform( pressbutton );
				return;
			}

			// do field validation
			if (trim(form.name.value) == ""){
				alert( "Link must have a name" );
			} else if (trim(form.content_typed.value) == ""){
				alert( "You must select a Content to link to" );
			} else {
				form.link.value = "index.php?option=com_content&task=view&id=" + form.content_typed.value;
				form.componentid.value = form.content_typed.value;
				submitform( pressbutton );
			}
		}
		</script>

		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th>
			<?php 
        echo $menu->id ? 'Edit' : 'Add';
        ?>
 Menu Item :: Link - Static Content
			</th>
		</tr>
		</table>

		<table width="100%">
		<tr valign="top">
			<td width="60%">
				<table class="adminform">
				<tr>
					<th colspan="2">
					Details
					</th>
				</tr>
				<tr>
					<td width="10%" align="right">
					Name:
					</td>
					<td width="80%">
					<input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php 
        echo htmlspecialchars($menu->name, ENT_QUOTES);
        ?>
" />
					</td>
				</tr>
				<tr>
					<td width="10%" align="right" valign="top">
					Static Content:
					</td>
					<td width="80%">
					<?php 
        echo $lists['content'];
        ?>
					</td>
				</tr>
				<tr>
					<td width="10%" align="right">URL:</td>
					<td width="80%">
                    <?php 
        echo ampReplace($lists['link']);
        ?>
					</td>
				</tr>
				<tr>
					<td width="10%" align="right" valign="top">
					On Click, open:
					</td>
					<td width="80%">
					<?php 
        echo $lists['target'];
        ?>
					</td>
				</tr>
				<tr>
					<td align="right">
					Parent Item:
					</td>
					<td>
					<?php 
        echo $lists['parent'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">
					Ordering:
					</td>
					<td>
					<?php 
        echo $lists['ordering'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">
					Access Level:
					</td>
					<td>
					<?php 
        echo $lists['access'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="right">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>
					Parameters
					</th>
				</tr>
				<tr>
					<td>
					<?php 
        echo $params->render();
        ?>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>

		<input type="hidden" name="scid" value="<?php 
        echo $menu->componentid;
        ?>
" />
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="id" value="<?php 
        echo $menu->id;
        ?>
" />
		<input type="hidden" name="link" value="" />
		<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="componentid" 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 
    }
        ?>
			<input type="hidden" value="login" name="op2" />
			<input type="hidden" value="<?php 
        echo $return;
        ?>
" name="return" />
		  	<br/>
			<input type="submit" value="<?php 
        echo $VM_LANG->_('BUTTON_LOGIN');
        ?>
" class="button" name="Login" />
			<?php 
        if (vmIsJoomla(1.5)) {
            $validate = JUtility::getToken();
        } elseif (function_exists('josspoofvalue')) {
            $validate = josSpoofValue(1);
        } else {
            // used for spoof hardening
            $validate = vmSpoofValue(1);
        }
        ?>
			<input type="hidden" name="<?php 
        echo $validate;
        ?>
" value="1" />
			</form>
		  </td>
		</tr>
		<tr>
		  <td colspan="2">
			<a href="<?php 
    function registerForm($option, $useractivation)
    {
        // used for spoof hardening
        $validate = josSpoofValue();
        ?>
		<script language="javascript" type="text/javascript">
		function submitbutton_reg() {
			var form = document.mosForm;
			var r = new RegExp("[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]", "i");

			// do field validation
			if (form.name.value == "") {
				alert( "<?php 
        echo addslashes(html_entity_decode(_REGWARN_NAME));
        ?>
" );
			} else if (form.username.value == "") {
				alert( "<?php 
        echo addslashes(html_entity_decode(_REGWARN_UNAME));
        ?>
" );
			} else if (r.exec(form.username.value) || form.username.value.length < 3) {
				alert( "<?php 
        printf(addslashes(html_entity_decode(_VALID_AZ09_USER)), addslashes(html_entity_decode(_PROMPT_UNAME)), 2);
        ?>
" );
			} else if (form.email.value == "") {
				alert( "<?php 
        echo addslashes(html_entity_decode(_REGWARN_MAIL));
        ?>
" );
			} else if (form.password.value.length < 6) {
				alert( "<?php 
        echo addslashes(html_entity_decode(_REGWARN_PASS));
        ?>
" );
			} else if (form.password2.value == "") {
				alert( "<?php 
        echo addslashes(html_entity_decode(_REGWARN_VPASS1));
        ?>
" );
			} else if ((form.password.value != "") && (form.password.value != form.password2.value)){
				alert( "<?php 
        echo addslashes(html_entity_decode(_REGWARN_VPASS2));
        ?>
" );
			} else if (r.exec(form.password.value)) {
				alert( "<?php 
        printf(addslashes(html_entity_decode(_VALID_AZ09)), addslashes(html_entity_decode(_REGISTER_PASS)), 6);
        ?>
" );
			} else {
				form.submit();
			}
		}
		</script>
		<form action="index.php" method="post" name="mosForm">

		<div class="componentheading">
			<?php 
        echo _REGISTER_TITLE;
        ?>
		</div>

		<table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
		<tr>
			<td colspan="2"><?php 
        echo _REGISTER_REQUIRED;
        ?>
</td>
		</tr>
		<tr>
			<td width="30%">
				<?php 
        echo _REGISTER_NAME;
        ?>
 *
			</td>
		  	<td>
		  		<input type="text" name="name" size="40" value="" class="inputbox" maxlength="50" />
		  	</td>
		</tr>
		<tr>
			<td>
				<?php 
        echo _REGISTER_UNAME;
        ?>
 *
			</td>
			<td>
				<input type="text" name="username" size="40" value="" class="inputbox" maxlength="25" />
			</td>
		</tr>
		<tr>
			<td>
				<?php 
        echo _REGISTER_EMAIL;
        ?>
 *
			</td>
			<td>
				<input type="text" name="email" size="40" value="" class="inputbox" maxlength="100" />
			</td>
		</tr>
		<tr>
			<td>
				<?php 
        echo _REGISTER_PASS;
        ?>
 *
			</td>
		  	<td>
		  		<input class="inputbox" type="password" name="password" size="40" value="" />
		  	</td>
		</tr>
		<tr>
			<td>
				<?php 
        echo _REGISTER_VPASS;
        ?>
 *
			</td>
			<td>
				<input class="inputbox" type="password" name="password2" size="40" value="" />
			</td>
		</tr>
		<tr>
			  <td colspan="2">
			  </td>
		</tr>
		<tr>
			<td colspan=2>
			</td>
		</tr>
		</table>

		<input type="hidden" name="id" value="0" />
		<input type="hidden" name="gid" value="0" />
		<input type="hidden" name="useractivation" value="<?php 
        echo $useractivation;
        ?>
" />
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="task" value="saveRegistration" />
		<input type="button" value="<?php 
        echo _BUTTON_SEND_REG;
        ?>
" class="button" onclick="submitbutton_reg()" />
		<input type="hidden" name="<?php 
        echo $validate;
        ?>
" value="1" />
		</form>
		<?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 
    }
    function settings($option, &$params, $id)
    {
        global $mosConfig_live_site, $mosConfig_cachepath, $my;
        ?>
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th>
			Configurações do Difusor de Notícias
			</th>
		</tr>
		</table>

		<table class="adminform">
		<tr>
			<th>
			Parâmetros
			</th>
		</tr>
		<tr>
			<td>
			<?php 
        echo $params->render();
        ?>
			</td>
		</tr>
		</table>
		
		<table class="adminform">
		<tr>
			<td>
				<table align="center">
				<?php 
        $visible = 0;
        // check to hide certain paths if not super admin
        if ($my->gid == 25) {
            $visible = 1;
        }
        mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Diretório de Cache</strong> ', $visible);
        ?>
				</table>
			</td>
		</tr>
		</table>

		<input type="hidden" name="id" value="<?php 
        echo $id;
        ?>
" />
		<input type="hidden" name="name" value="Difusão de Notícias" />
		<input type="hidden" name="admin_menu_link" value="option=com_syndicate" />
		<input type="hidden" name="admin_menu_alt" value="Administrar configuração de Difusão de Notícias" />
		<input type="hidden" name="option" value="com_syndicate" />
		<input type="hidden" name="admin_menu_img" value="js/ThemeOffice/component.png" />
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="boxchecked" value="0" />
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
		<script language="Javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>
		<?php 
    }
Ejemplo n.º 10
0
    /**
     * Writes the edit form for new and existing record (FRONTEND)
     *
     * A new record is defined when <var>$row</var> is passed with the <var>id</var>
     * property set to 0.
     * @param mosWeblink The weblink object
     * @param string The html for the categories select list
     */
    function editWeblink($option, &$row, &$lists)
    {
        global $mainframe;
        require_once $GLOBALS['mosConfig_absolute_path'] . '/includes/HTML_toolbar.php';
        $Returnid = intval(mosGetParam($_REQUEST, 'Returnid', 0));
        // used for spoof hardening
        $validate = josSpoofValue();
        ?>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			var form = document.adminForm;
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}

			// do field validation
			if (form.title.value == ""){
				alert( "Weblink item must have a title" );
			} else if (getSelectedValue('adminForm','catid') < 1) {
				alert( "You must select a category." );
			} else if (form.url.value == ""){
				alert( "You must have a url." );
			} else {
				submitform( pressbutton );
			}
		}
		</script>

		<form action="<?php 
        echo sefRelToAbs("index.php");
        ?>
" method="post" name="adminForm" id="adminForm">
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr>
			<td class="contentheading">
			<?php 
        echo _SUBMIT_LINK;
        ?>
			</td>
			<td width="10%">
			<?php 
        mosToolBar::startTable();
        mosToolBar::spacer();
        mosToolBar::save();
        mosToolBar::cancel();
        mosToolBar::endtable();
        ?>
			</td>
		</tr>
		</table>

		<table cellpadding="4" cellspacing="1" border="0" width="100%">
		<tr>
			<td width="20%" align="right">
			<?php 
        echo _NAME;
        ?>
			</td>
			<td width="80%">
			<input class="inputbox" type="text" name="title" size="50" maxlength="250" value="<?php 
        echo htmlspecialchars($row->title, ENT_QUOTES);
        ?>
" />
			</td>
		</tr>
		<tr>
			<td valign="top" align="right">
			<?php 
        echo _SECTION;
        ?>
			</td>
			<td>
			<?php 
        echo $lists['catid'];
        ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="right">
			<?php 
        echo _URL;
        ?>
			</td>
			<td>
			<input class="inputbox" type="text" name="url" value="<?php 
        echo $row->url;
        ?>
" size="50" maxlength="250" />
			</td>
		</tr>
		<tr>
			<td valign="top" align="right">
			<?php 
        echo _URL_DESC;
        ?>
			</td>
			<td>
			<textarea class="inputbox" cols="30" rows="6" name="description" style="width:300px" width="300"><?php 
        echo htmlspecialchars($row->description, ENT_QUOTES);
        ?>
</textarea>
			</td>
		</tr>
		</table>

		<input type="hidden" name="id" value="<?php 
        echo $row->id;
        ?>
" />
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="ordering" value="<?php 
        echo $row->ordering;
        ?>
" />
		<input type="hidden" name="approved" value="<?php 
        echo $row->approved;
        ?>
" />
		<input type="hidden" name="Returnid" value="<?php 
        echo $Returnid;
        ?>
" />
		<input type="hidden" name="referer" value="<?php 
        echo $_SERVER['HTTP_REFERER'];
        ?>
" />
		<input type="hidden" name="<?php 
        echo $validate;
        ?>
" value="1" />
		</form>
		<?php 
    }
Ejemplo n.º 11
0
    /**
     * A restore confirmation page
     * Writes list of the items that have been selected for restore
     */
    function showRestore($option, $cid, $items, $type)
    {
        ?>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th>Restaurar Itens</th>
		</tr>
		</table>

		<br />
		<table class="adminform">
		<tr>
			<td width="3%"></td>
			<td align="left" valign="top" width="20%">
			<strong>Número de Itens:</strong>
			<br />
			<font color="#000066"><strong><?php 
        echo count($cid);
        ?>
</strong></font>
			<br /><br />
			</td>
			<td align="left" valign="top" width="25%">
			<strong>Itens sendo Restaurados:</strong>
			<br />
			<?php 
        echo "<ol>";
        foreach ($items as $item) {
            echo "<li>" . $item->name . "</li>";
        }
        echo "</ol>";
        ?>
			</td>
			 <td valign="top">
			* Isto vai <strong><font color="#FF0000">Restaurar</font></strong> estes itens,<br />eles serão devolvidos para os lugares de origem.*
			<br /><br /><br />
			<div style="border: 1px dotted gray; width: 80px; padding: 10px; margin-left: 50px;">
			<a class="toolbar" href="javascript:if (confirm('Tem certeza que deseja restaurar os itens listados?.')){ submitbutton('restore');}" onmouseout="MM_swapImgRestore();"  onmouseover="MM_swapImage('restore','','images/restore_f2.png',1);">
			<img name="restore" src="images/restore.png" alt="Restore" border="0" align="middle" />
			&nbsp;Restaurar
			</a>
			</div>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		</table>
		<br /><br />

		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="boxchecked" value="1" />
		<input type="hidden" name="type" value="<?php 
        echo $type;
        ?>
" />
		<?php 
        foreach ($cid as $id) {
            echo "\n<input type=\"hidden\" name=\"cid[]\" value=\"{$id}\" />";
        }
        ?>
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
		<?php 
    }
Ejemplo n.º 12
0
    function editConfigSource($content, $option)
    {
        $config_path = JPATH_SITE . '/components/com_joomla_lms/includes/config.inc.php';
        ?>

		<script type="text/javascript">
		<!--
		function submitbutton(pressbutton) {
			var form = document.adminForm;
			form.page.value = pressbutton;
			form.submit();
		}
		
		<?php 
        if (JLMS_J16version()) {
            ?>
		Joomla.submitbutton = submitbutton;
		<?php 
        }
        ?>
	
		//-->
		</script>

		<form action="index.php" method="post" name="adminForm">		
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr>
			<td valign="top" width="220px">
			<div>
				<?php 
        echo joomla_lms_adm_html::JLMS_menu();
        ?>
			</div>
			</td>
			<td valign="top">
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr>
			<td width="290">
		<?php 
        if (!class_exists('JToolBarHelper')) {
            ?>
			<table class="adminheading"><tr><th class="config"><?php 
            echo _JOOMLMS_COMP_NAME . ': <small>DEV.config</small>';
            ?>
</th></tr></table>
		<?php 
        }
        ?>
			</td>
			<td width="220">
				<span class="componentheading">config.inc.php is :
				<b><?php 
        echo is_writable($config_path) ? '<font color="green"> ' . _JLMS_WRITABLE . '</font>' : '<font color="red"> ' . _JLMS_UNWRITABLE . '</font>';
        ?>
</b>
				</span>
			</td>
<?php 
        if (mosIsChmodable($config_path)) {
            if (is_writable($config_path)) {
                ?>
			<td>
				<input type="checkbox" id="disable_write" name="disable_write" value="1"/>
				<label for="disable_write"><?php 
                echo _JLMS_CFG_MSG_UNWR_AFTER_SAVE;
                ?>
</label>
			</td>
<?php 
            } else {
                ?>
			<td>
				<input type="checkbox" id="enable_write" name="enable_write" value="1"/>
				<label for="enable_write"><?php 
                echo _JLMS_CFG_MSG_OVERRIDE_PROTT;
                ?>
</label>
			</td>
<?php 
            }
            // if
        }
        // if
        ?>
		</tr>
		</table>
		<div class="width-100">
		<fieldset class="adminform">
		<table >
			<tr><th><?php 
        echo $config_path;
        ?>
</th></tr>
			<tr><td><textarea style="width:100%;height:500px" cols="110" rows="25" name="filecontent" class="inputbox"><?php 
        echo $content;
        ?>
</textarea></td></tr>
		</table>
		</fieldset>
		</div>
		</td>
		</tr>
		</table>		
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="task" value="dev_config" />
		<input type="hidden" name="page" value="save_config" />
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>		
		<?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 
    }
Ejemplo n.º 14
0
    function showInstalledModules(&$rows, $option, &$xmlfile, &$lists)
    {
        if (count($rows)) {
            ?>
			<form action="index2.php" method="post" name="adminForm">
			<table class="adminheading">
			<tr>
				<th class="install">
				Módulos Instalados
				</th>
				<td>
				Filtro:
				</td>
				<td width="right">
				<?php 
            echo $lists['filter'];
            ?>
				</td>
			</tr>
			<tr>
				<td colspan="3">
				Apenas são exibidos os Módulos que podem ser desinstalados - alguns módulos atuam no funcionamento do sistema e não podem ser removidos
				<br /><br />
				</td>
			</tr>
			</table>

			<table class="adminlist">
			<tr>
				<th width="20%" class="title">
				Arquivo do Módulo
				</th>
				<th width="10%" align="left">
				Cliente
				</th>
				<th width="10%" align="left">
				Autor
				</th>
				<th width="5%" align="center">
				Versão
				</th>
				<th width="10%" align="center">
				Data
				</th>
				<th width="15%" align="left">
				 E-mail do Autor
				</th>
				<th width="15%" align="left">
				URL do Autor
				</th>
			</tr>
			<?php 
            $rc = 0;
            for ($i = 0, $n = count($rows); $i < $n; $i++) {
                $row =& $rows[$i];
                ?>
				<tr class="<?php 
                echo "row{$rc}";
                ?>
">
					<td>
					<input type="radio" id="cb<?php 
                echo $i;
                ?>
" name="cid[]" value="<?php 
                echo $row->id;
                ?>
" onclick="isChecked(this.checked);"><span class="bold"><?php 
                echo $row->module;
                ?>
</span></td>
					<td>
					<?php 
                echo $row->client_id == "0" ? 'Site' : 'Administração';
                ?>
					</td>
					<td>
					<?php 
                echo @$row->author != "" ? $row->author : "&nbsp;";
                ?>
					</td>
					<td align="center">
					<?php 
                echo @$row->version != "" ? $row->version : "&nbsp;";
                ?>
					</td>
					<td align="center">
					<?php 
                echo @$row->creationdate != "" ? $row->creationdate : "&nbsp;";
                ?>
					</td>
					<td>
					<?php 
                echo @$row->authorEmail != "" ? $row->authorEmail : "&nbsp;";
                ?>
					</td>
					<td>
					<?php 
                echo @$row->authorUrl != "" ? "<a href=\"" . (substr($row->authorUrl, 0, 7) == 'http://' ? $row->authorUrl : 'http://' . $row->authorUrl) . "\" target=\"_blank\">{$row->authorUrl}</a>" : "&nbsp;";
                ?>
					</td>
				</tr>
				<?php 
                $rc = $rc == 0 ? 1 : 0;
            }
        } else {
            ?>
			<td class="small">
			Não há módulos personalizados instalados
			</td>
			<?php 
        }
        ?>
		</table>

		<input type="hidden" name="task" value="" />
		<input type="hidden" name="boxchecked" value="0" />
		<input type="hidden" name="option" value="com_installer" />
		<input type="hidden" name="element" value="module" />
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
		<?php 
    }
    function editNewsFeed(&$row, &$lists, $option)
    {
        mosMakeHtmlSafe($row, ENT_QUOTES);
        ?>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			var form = document.adminForm;
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}

			// do field validation
			if (form.name.value == '') {
				alert( "Por favor, informe o nome da fonte de notícia." );
			} else if (form.catid.value == 0) {
				alert( "Por favor, selecione uma Categoria." );
			} else if (form.link.value == '') {
				alert( "Por favor, informe o link da fonte de notícia." );
			} else if (getSelectedValue('adminForm','catid') < 0) {
				alert( "Por favor, selecione uma categoria." );
			} else if (form.numarticles.value == "" || form.numarticles.value == 0) {
				alert( "Por favor, informe o número de artigos a exibir." );
			} else if (form.cache_time.value == "" || form.cache_time.value == 0) {
				alert( "Por favor, informe o tempo de atualização do cache." );
			} else {
				submitform( pressbutton );
			}
		}
		</script>

		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th class="edit">
			Fonte da Notícia: <small><?php 
        echo $row->id ? 'Editar' : 'Novo';
        ?>
</small> <small><small>[ <?php 
        echo $row->name;
        ?>
 ]</small></small>
			</th>
		</tr>
		</table>

		<table class="adminform">
		<tr>
			<th colspan="2">
			Detalhes
			</th>
		</tr>
		<tr>
			<td>
			Nome
			</td>
			<td>
			<input class="inputbox" type="text" size="40" name="name" value="<?php 
        echo $row->name;
        ?>
">
			</td>
		</tr>
		<tr>
			<td>
			Categoria
			</td>
			<td>
			<?php 
        echo $lists['category'];
        ?>
			</td>
		</tr>
		<tr>
			<td>
			URL
			</td>
			<td>
			<input class="inputbox" type="text" size="60" name="link" value="<?php 
        echo $row->link;
        ?>
">
			</td>
		</tr>
		<tr>
			<td>
			Número de Artigos
			</td>
			<td>
			<input class="inputbox" type="text" size="2" name="numarticles" value="<?php 
        echo $row->numarticles;
        ?>
">
			</td>
		</tr>
		<tr>
			<td>
			Duração da Cache (em segundos)
			</td>
			<td>
			<input class="inputbox" type="text" size="4" name="cache_time" value="<?php 
        echo $row->cache_time;
        ?>
">
			</td>
		</tr>
		<tr>
			<td>
			Ordem
			</td>
			<td>
			<?php 
        echo $lists['ordering'];
        ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="right">
			Publicado:
			</td>
			<td>
			<?php 
        echo $lists['published'];
        ?>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
			</td>
		</tr>
		</table>

		<input type="hidden" name="id" value="<?php 
        echo $row->id;
        ?>
">
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
">
		<input type="hidden" name="task" value="">
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
	<?php 
    }
    function edit(&$menu, &$lists, &$params, $option, $newsfeed)
    {
        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) {
			var form = document.adminForm;
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}

			// do field validation
			if (trim(form.name.value) == ""){
				alert( "Link deve possuir um nome" );
			} else if (trim(form.newsfeed_link.value) == ""){
				alert( "Você deve selecionar um notícia externa para linkar" );
			} else {
				form.link.value = "index.php?option=com_newsfeeds&task=view&feedid=" + form.newsfeed_link.value;
				form.componentid.value = form.newsfeed_link.value;
				submitform( pressbutton );
			}
		}
		</script>

		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th>
			<?php 
        echo $menu->id ? 'Editar' : 'Adicionar';
        ?>
 Link - Notícias Externas
			</th>
		</tr>
		</table>

		<table width="100%">
		<tr valign="top">
			<td width="60%">
				<table class="adminform">
				<tr>
					<th colspan="2">
					Detalhes
					</th>
				</tr>
				<tr>
					<td width="10%" align="right">
					Nome:
					</td>
					<td width="80%">
					<input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php 
        echo htmlspecialchars($menu->name, ENT_QUOTES);
        ?>
" />
					</td>
				</tr>
				<tr>
					<td width="10%" align="right" valign="top">
					Notícia Externa para Linkar:
					</td>
					<td width="80%">
					<?php 
        echo $lists['newsfeed'];
        ?>
					</td>
				</tr>
				<tr>
					<td width="10%" align="right">Url:</td>
					<td width="80%">
                    <?php 
        echo ampReplace($lists['link']);
        ?>
					</td>
				</tr>
				<tr>
					<td width="10%" align="right" valign="top">
					Ao clicar, abrir em:
					</td>
					<td width="80%">
					<?php 
        echo $lists['target'];
        ?>
					</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="componentid" value="" />
		<input type="hidden" name="link" value="" />
		<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 
    }
Ejemplo n.º 17
0
    /**
     * Display Help Page
     */
    public static function help()
    {
        global $mosConfig_live_site;
        $helpurl = strval(mosGetParam($GLOBALS, 'mosConfig_helpurl', ''));
        if ($helpurl == 'http://help.mamboserver.com') {
            $helpurl = 'http://help.joomla.org';
        }
        $fullhelpurl = $helpurl . '/index2.php?option=com_content&amp;task=findkey&pop=1&keyref=';
        $helpsearch = strval(mosGetParam($_REQUEST, 'helpsearch', ''));
        $helpsearch = addslashes(htmlspecialchars($helpsearch));
        $page = strval(mosGetParam($_REQUEST, 'page', 'joomla.whatsnew100.html'));
        $toc = getHelpToc($helpsearch);
        if (!preg_match('/\\.html$/', $page)) {
            $page .= '.xml';
        }
        echo $helpsearch;
        ?>
		<style type="text/css">
		.helpIndex {
			border: 0px;
			width: 95%;
			height: 100%;
			padding: 0px 5px 0px 10px;
			overflow: auto;
		}
		.helpFrame {
			border-left: 0px solid #222;
			border-right: none;
			border-top: none;
			border-bottom: none;
			width: 100%;
			height: 700px;
			padding: 0px 5px 0px 10px;
		}
		</style>
		<form name="adminForm">
		<table class="adminform" border="1">
			<tr>
				<th colspan="2" class="title">
					Help
				</th>
			</tr>
			<tr>
			<td colspan="2">
				<table width="100%">
					<tr>
						<td>
							<strong>Search:</strong>
							<input class="text_area" type="hidden" name="option" value="com_admin" />
							<input type="text" name="helpsearch" value="<?php 
        echo $helpsearch;
        ?>
" class="inputbox" />
							<input type="submit" value="Go" class="button" />
							<input type="button" value="Clear Results" class="button" onclick="f=document.adminForm;f.helpsearch.value='';f.submit()" />
							</td>
							<td style="text-align:right">
							<?php 
        if ($helpurl) {
            ?>
							<a href="<?php 
            echo $fullhelpurl;
            ?>
joomla.glossary" target="helpFrame">
								Glossary</a>
							|
							<a href="<?php 
            echo $fullhelpurl;
            ?>
joomla.credits" target="helpFrame">
								Credits</a>
							|
							<a href="<?php 
            echo $fullhelpurl;
            ?>
joomla.support" target="helpFrame">
								Support</a>
							<?php 
        } else {
            ?>
							<a href="<?php 
            echo $mosConfig_live_site;
            ?>
/help/joomla.glossary.html" target="helpFrame">
								Glossary</a>
							|
							<a href="<?php 
            echo $mosConfig_live_site;
            ?>
/help/joomla.credits.html" target="helpFrame">
								Credits</a>
							|
							<a href="<?php 
            echo $mosConfig_live_site;
            ?>
/help/joomla.support.html" target="helpFrame">
								Support</a>
							<?php 
        }
        ?>
							|
							<a href="http://www.gnu.org/licenses/gpl-2.0.html" target="helpFrame">
								License</a>
							|
							<a href="http://help.joomla.org" target="_blank">
								help.joomla.org</a>
							|
							<a href="<?php 
        echo $mosConfig_live_site;
        ?>
/administrator/index3.php?option=com_admin&task=changelog" target="helpFrame">
								Changelog</a>
							|
							<a href="<?php 
        echo $mosConfig_live_site;
        ?>
/administrator/index3.php?option=com_admin&task=sysinfo" target="helpFrame">
								System Info</a>
							|
							<a href="http://www.joomla.org/latest10" target="_blank">
								Latest Version Info</a>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr valign="top">
			<td width="20%" valign="top">
				<strong>Index</strong>
				<div class="helpIndex">
				<?php 
        foreach ($toc as $k => $v) {
            if ($helpurl) {
                echo '<br /><a href="' . $fullhelpurl . urlencode($k) . '" target="helpFrame">' . $v . '</a>';
            } else {
                echo '<br /><a href="' . $mosConfig_live_site . '/help/' . $k . '" target="helpFrame">' . $v . '</a>';
            }
        }
        ?>
				</div>
			</td>
			<td valign="top">
				<iframe name="helpFrame" src="<?php 
        echo $mosConfig_live_site . '/help/' . $page;
        ?>
" class="helpFrame" frameborder="0" /></iframe>
			</td>
		</tr>
		</table>

		<input type="hidden" name="task" value="help" />
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
		<?php 
    }
    function edit($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;
			submitform( pressbutton );
		}
		</script>

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

		<table class="adminheading">
		<tr>
			<th>
			<?php 
        echo $menu->id ? 'Editar' : 'Adicionar';
        ?>
 Separador / Espaço em branco
			</th>
		</tr>
		</table>

		<table width="100%">
		<tr valign="top">
			<td width="60%">
				<table class="adminform">
				<tr>
					<th colspan="2">
					Detalhes
					</th>
				</tr>
				<tr>
					<td align="right">
					Estilo/Nome:
					</td>
					<td>
					<input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php 
        echo htmlspecialchars($menu->name, ENT_QUOTES);
        ?>
" />
					</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="link" value="" />
		<input type="hidden" name="menutype" value="<?php 
        echo $menu->menutype;
        ?>
" />
		<input type="hidden" name="type" value="<?php 
        echo $menu->type;
        ?>
" />
		<input type="hidden" name="browserNav" value="3" />
		<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 
    }
Ejemplo n.º 19
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 
    }
Ejemplo n.º 20
0
/**
* Remove the selected language
*/
function removeLanguage($cid, $option, $client = 'admin')
{
    global $mosConfig_lang;
    josSpoofCheck();
    $client_id = $client == 'admin' ? 1 : 0;
    $cur_language = $mosConfig_lang;
    if ($cur_language == $cid) {
        mosErrorAlert("You can not delete language in use.");
    }
    /*$lang_path = "../language/$cid.php";
    	$lang_ignore_path = "../language/$cid.ignore.php";
    	$xml_path = "../language/$cid.xml";
    
    	unlink($lang_path);
    	unlink($lang_ignore_path);
    	unlink($xml_path);
    	*/
    mosRedirect('index2.php?option=com_installer&element=language&client=' . $client . '&task=remove&cid[]=' . $cid . '&' . josSpoofValue() . '=1');
}
Ejemplo n.º 21
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( '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 
    }
    /**
     * A copy confirmation page
     * Writes list of the items that have been selected for copy
     */
    function showCopy($option, $type, $items)
    {
        ?>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			if (pressbutton == 'copymenu') {
				if ( document.adminForm.menu_name.value == '' ) {
					alert( 'Por favor, informe um nome para a cópia do menu' );
					return;
				} else if ( document.adminForm.module_name.value == '' ) {
					alert( 'Por favor, informe um nome para o novo módulo' );
					return;
				} else {
					submitform( 'copymenu' );
				}
			} else {
				submitform( pressbutton );
			}
		}
		</script>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th>
			Copiar Menu
			</th>
		</tr>
		</table>

		<br />
		<table class="adminform">
		<tr>
			<td width="3%"></td>
			<td align="left" valign="top" width="30%">
			<strong>Nome do Novo Menu:</strong>
			<br />
			<input class="inputbox" type="text" name="menu_name" size="30" value="" />
			<br /><br /><br />
			<strong>Nome do Novo Módulo:</strong>
			<br />
			<input class="inputbox" type="text" name="module_name" size="30" value="" />
			<br /><br />
			</td>
			<td align="left" valign="top" width="25%">
			<strong>
			Menu que será copiado:
			</strong>
			<br />
			<font color="#000066">
			<strong>
			<?php 
        echo $type;
        ?>
			</strong>
			</font>
			<br /><br />
			<strong>
			Itens do Menu que serão copiados:
			</strong>
			<br />
			<ol>
			<?php 
        foreach ($items as $item) {
            ?>
				<li>
				<font color="#000066">
				<?php 
            echo $item->name;
            ?>
				</font>
				</li>
				<input type="hidden" name="mids[]" value="<?php 
            echo $item->id;
            ?>
" />
				<?php 
        }
        ?>
			</ol>
			</td>
			<td valign="top">
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		</table>
		<br /><br />

		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="type" value="<?php 
        echo $type;
        ?>
" />
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
		<?php 
    }
Ejemplo n.º 24
0
 public static function formToken()
 {
     if (JCOMMENTS_JVERSION == '1.5') {
         return JHTML::_('form.token');
     } else {
         if (JCOMMENTS_JVERSION == '1.7') {
             return JHTML::_('form.token');
         } else {
             return '<input type="hidden" name="' . josSpoofValue() . '" value="1" />';
         }
     }
 }
Ejemplo n.º 25
0
    /**
     * Form to select Menu to copy menu item(s) to
     */
    public static function copyMenu($option, $cid, $MenuList, $items, $menutype)
    {
        ?>
		<form action="index2.php" method="post" name="adminForm">
		<br />
		<table class="adminheading">
		<tr>
			<th>
			Copy Menu Items
			</th>
		</tr>
		</table>

		<br />
		<table class="adminform">
		<tr>
			<td width="3%"></td>
			<td align="left" valign="top" width="30%">
			<strong>
			Copy to Menu:
			</strong>
			<br />
			<?php 
        echo $MenuList;
        ?>
			<br /><br />
			</td>
			<td align="left" valign="top">
			<strong>
			Menu Items being copied:
			</strong>
			<br />
			<ol>
			<?php 
        foreach ($items as $item) {
            ?>
				<li>
				<?php 
            echo $item->name;
            ?>
				</li>
				<?php 
        }
        ?>
			</ol>
			</td>
		</tr>
		</table>
		<br /><br />

		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="boxchecked" value="0" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="menutype" value="<?php 
        echo $menutype;
        ?>
" />
		<?php 
        foreach ($cid as $id) {
            echo "\n <input type=\"hidden\" name=\"cid[]\" value=\"{$id}\" />";
        }
        ?>
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
		<?php 
    }
    /**
     * 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 editMambot(&$row, &$lists, &$params, $option)
    {
        global $mosConfig_live_site;
        $row->nameA = '';
        if ($row->id) {
            $row->nameA = '<small><small>[ ' . $row->name . ' ]</small></small>';
        }
        ?>
		<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;
			}
			// validation
			var form = document.adminForm;
			if (form.name.value == "") {
				alert( "O Plugin deve possuir um nome" );
			} else if (form.element.value == "") {
				alert( "O Plugin deve ter nome de arquivo" );
			} else {
				submitform(pressbutton);
			}
		}
		</script>
		<table class="adminheading">
		<tr>
			<th class="mambots">
			Criar Plugin:
			<small>
			<?php 
        echo $row->id ? 'Editar' : 'Novo';
        ?>
			</small>
			<?php 
        echo $row->nameA;
        ?>
			</th>
		</tr>
		</table>

		<form action="index2.php" method="post" name="adminForm">
		<table cellspacing="0" cellpadding="0" width="100%">
		<tr valign="top">
			<td width="60%" valign="top">
				<table class="adminform">
				<tr>
					<th colspan="2">
					Detalhes do Plugin
					</th>
				<tr>
				<tr>
					<td width="100" align="left">
					Nome:
					</td>
					<td>
					<input class="text_area" type="text" name="name" size="35" value="<?php 
        echo $row->name;
        ?>
" />
					</td>
				</tr>
				<tr>
					<td valign="top" align="left">
					Diretório:
					</td>
					<td>
					<?php 
        echo $lists['folder'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="left">
					Arquivo do Plugin:
					</td>
					<td>
					<input class="text_area" type="text" name="element" size="35" value="<?php 
        echo $row->element;
        ?>
" />.php
					</td>
				</tr>
				<tr>
					<td valign="top" align="left">
					Ordem do Plugin:
					</td>
					<td>
					<?php 
        echo $lists['ordering'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="left">
					Nível de Acesso:
					</td>
					<td>
					<?php 
        echo $lists['access'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top">
					Publicado:
					</td>
					<td>
					<?php 
        echo $lists['published'];
        ?>
					</td>
				</tr>
				<tr>
					<td valign="top" colspan="2">&nbsp;

					</td>
				</tr>
				<tr>
					<td valign="top">
					Descrição:
					</td>
					<td>
					<?php 
        echo $row->description;
        ?>
					</td>
				</tr>
				</table>
			</td>
			<td width="40%">
				<table class="adminform">
				<tr>
					<th colspan="2">
					Parâmetros
					</th>
				<tr>
				<tr>
					<td>
					<?php 
        if ($row->id) {
            echo $params->render();
        } else {
            echo '<i>Sem Parâmetros</i>';
        }
        ?>
					</td>
				</tr>
				</table>
			</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="client" value="<?php 
        echo $row->client_id;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<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 
    }
Ejemplo n.º 27
0
    /**
    * @param array An array of records
    * @param string The URL option
    */
    function showInstalledComponents($rows, $option)
    {
        if (count($rows)) {
            ?>
			<form action="index2.php" method="post" name="adminForm">
			<table class="adminheading">
			<tr>
				<th class="install">
				Installed Components
				</th>
			</tr>
			</table>

			<table class="adminlist">
			<tr>
				<th width="20%" class="title">
				Currently Installed
				</th>
				<th width="20%" class="title">
				Component Menu Link
				</th>
				<th width="10%" align="left">
				Author
				</th>
				<th width="5%" align="center">
				Version
				</th>
				<th width="10%" align="center">
				Date
				</th>
				<th width="15%" align="left">
				Author E-mail
				</th>
				<th width="15%" align="left">
				Author URL
				</th>
			</tr>
			<?php 
            $rc = 0;
            for ($i = 0, $n = count($rows); $i < $n; $i++) {
                $row =& $rows[$i];
                ?>
				<tr class="<?php 
                echo "row{$rc}";
                ?>
">
					<td align="left">
					<input type="radio" id="cb<?php 
                echo $i;
                ?>
" name="cid[]" value="<?php 
                echo $row->id;
                ?>
" onclick="isChecked(this.checked);">
					<span class="bold">
					<?php 
                echo $row->name;
                ?>
					</span>
					</td>
					<td align="left">
					<?php 
                echo @$row->link != "" ? $row->link : "&nbsp;";
                ?>
					</td>
					<td align="left">
					<?php 
                echo @$row->author != "" ? $row->author : "&nbsp;";
                ?>
					</td>
					<td align="center">
					<?php 
                echo @$row->version != "" ? $row->version : "&nbsp;";
                ?>
					</td>
					<td align="center">
					<?php 
                echo @$row->creationdate != "" ? $row->creationdate : "&nbsp;";
                ?>
					</td>
					<td>
					<?php 
                echo @$row->authorEmail != "" ? $row->authorEmail : "&nbsp;";
                ?>
					</td>
					<td>
					<?php 
                echo @$row->authorUrl != "" ? "<a href=\"" . (substr($row->authorUrl, 0, 7) == 'http://' ? $row->authorUrl : 'http://' . $row->authorUrl) . "\" target=\"_blank\">{$row->authorUrl}</a>" : "&nbsp;";
                ?>
					</td>
				</tr>
				<?php 
                $rc = 1 - $rc;
            }
        } else {
            ?>
			<td class="small">
			There are no custom components installed
			</td>
			<?php 
        }
        ?>
		</table>

		<input type="hidden" name="task" value="" />
		<input type="hidden" name="boxchecked" value="0" />
		<input type="hidden" name="option" value="com_installer" />
		<input type="hidden" name="element" value="component" />
		<input type="hidden" name="<?php 
        echo josSpoofValue();
        ?>
" value="1" />
		</form>
		<?php 
    }
Ejemplo n.º 28
0
    /**
     * Writes Email form for filling in the send destination
     */
    function emailForm($uid, $title, $template = '', $itemid)
    {
        global $mainframe;
        // used for spoof hardening
        $validate = josSpoofValue();
        $mainframe->setPageTitle($title);
        $mainframe->addCustomHeadTag('<link rel="stylesheet" href="templates/' . $template . '/css/template_css.css" type="text/css" />');
        ?>
		<script language="javascript" type="text/javascript">
		function submitbutton() {
			var form = document.frontendForm;
			// do field validation
			if (form.email.value == "" || form.youremail.value == "") {
				alert( '<?php 
        echo addslashes(_EMAIL_ERR_NOINFO);
        ?>
' );
				return false;
			}
			return true;
		}
		</script>

		<form action="index2.php?option=com_content&amp;task=emailsend" name="frontendForm" method="post" onSubmit="return submitbutton();">
		<table cellspacing="0" cellpadding="0" border="0">
		<tr>
			<td colspan="2">
			<?php 
        echo _EMAIL_FRIEND;
        ?>
			</td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td width="130">
			<?php 
        echo _EMAIL_FRIEND_ADDR;
        ?>
			</td>
			<td>
			<input type="text" name="email" class="inputbox" size="25" />
			</td>
		</tr>
		<tr>
			<td height="27">
			<?php 
        echo _EMAIL_YOUR_NAME;
        ?>
			</td>
			<td>
			<input type="text" name="yourname" class="inputbox" size="25" />
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo _EMAIL_YOUR_MAIL;
        ?>
			</td>
			<td>
			<input type="text" name="youremail" class="inputbox" size="25" />
			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo _SUBJECT_PROMPT;
        ?>
			</td>
			<td>
			<input type="text" name="subject" class="inputbox" maxlength="100" size="40" />
			</td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2">
			<input type="submit" name="submit" class="button" value="<?php 
        echo _BUTTON_SUBMIT_MAIL;
        ?>
" />
			&nbsp;&nbsp;
			<input type="button" name="cancel" value="<?php 
        echo _BUTTON_CANCEL;
        ?>
" class="button" onclick="window.close();" />
			</td>
		</tr>
		</table>

		<input type="hidden" name="id" value="<?php 
        echo $uid;
        ?>
" />
		<input type="hidden" name="itemid" value="<?php 
        echo $itemid;
        ?>
" />
		<input type="hidden" name="<?php 
        echo $validate;
        ?>
" value="1" />
		</form>
		<?php 
    }
Ejemplo n.º 29
0
    function show_doc($doc, $size, $listdir, $icon)
    {
        $size = HTML_Media::parse_size($size);
        $doc_url_link = COM_MEDIA_BASEURL . $listdir . '/' . rawurlencode($doc);
        $overlib = 'Filesize: ' . $size;
        $overlib .= '<br/><br/> *Clique para Url*';
        ?>
		<div style="float:left; padding: 5px">
			<div class="imgTotal" onmouseover="return overlib( '<?php 
        echo $overlib;
        ?>
', CAPTION, '<?php 
        echo $doc;
        ?>
', BELOW, RIGHT, WIDTH, 200 );" onmouseout="return nd();">
				<div align="center" class="imgBorder">
				  <a href="index3.php?option=com_media&amp;task=list&amp;listdir=<?php 
        echo $listdir;
        ?>
" onclick="javascript:window.top.document.forms[0].imagecode.value = '<a href=&quot;<?php 
        echo $doc_url_link;
        ?>
&quot;>Insert your text here</a>';">
		  				<img border="0" src="<?php 
        echo $icon;
        ?>
" alt="<?php 
        echo $doc;
        ?>
" /></a>
		  		</div>
			</div>
			<div class="imginfoBorder">
				<small>
					<?php 
        echo $doc;
        ?>
				</small>
				<div class="buttonOut">
					<a href="index2.php?option=com_media&amp;task=delete&amp;delFile=<?php 
        echo $doc;
        ?>
&amp;listdir=<?php 
        echo $listdir;
        ?>
&amp;<?php 
        echo josSpoofValue();
        ?>
=1" target="_top" onclick="return deleteImage('<?php 
        echo $doc;
        ?>
');">
						<img src="components/com_media/images/edit_trash.gif" width="15" height="15" border="0" alt="Delete" /></a>
				</div>
			</div>
		</div>
		<?php 
    }
Ejemplo n.º 30
0
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
/** ensure this file is being included by a parent file */
defined('_VALID_MOS') or die('Restricted access');
?>
<table class="adminform">
<tr>
	<td width="55%" valign="top">
	   <?php 
mosLoadAdminModules('icon', 0);
?>
	</td>
	<td width="45%" valign="top">
		<div style="width: 100%;">
			<form action="index2.php" method="post" name="adminForm">
			<?php 
mosLoadAdminModules('cpanel', 1);
?>
			<input type="hidden" name="<?php 
echo josSpoofValue();
?>
" value="1" />
		</form>
		</div>
	</td>
</tr>
</table>