Esempio n. 1
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&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 
    }
Esempio n. 2
0
    /**
     * Display Help Page
     */
    function help()
    {
        global $mosConfig_live_site;
        $helpurl = mosGetParam($GLOBALS, 'mosConfig_helpurl', '');
        $helpurl = false;
        $fullhelpurl = $helpurl . '/index2.php?option=com_content&amp;task=findkey&pop=1&keyref=';
        $fullhelpurl = $mosConfig_live_site . '/help/';
        $helpsearch = mosGetParam($_REQUEST, 'helpsearch', '');
        $page = mosGetParam($_REQUEST, 'page', 'mambo.whatsnew.html');
        $toc = getHelpToc($helpsearch);
        if (!eregi('\\.html$', $page)) {
            $page .= '.xml';
        }
        ?>
		<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" action="">
		<table class="adminform" border="1">
		<tr>
			<th colspan="2" class="title">
			<?php 
        echo T_('Help');
        ?>
			</th>
		</tr>
		<tr>
			<td colspan="2">
				<table width="100%">
				<tr>
					<td>
					<strong><?php 
        echo T_('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="<?php 
        echo T_('Go');
        ?>
" class="button" />
					<input type="button" value="<?php 
        echo T_('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;
            ?>
mambo.glossary" target="helpFrame">
						<?php 
            echo T_('Glossary');
            ?>
</a>
					|
					<a href="<?php 
            echo $fullhelpurl;
            ?>
mambo.credits" target="helpFrame">
						<?php 
            echo T_('Credits');
            ?>
</a>
					|
					<a href="<?php 
            echo $fullhelpurl;
            ?>
mambo.support" target="helpFrame">
						<?php 
            echo T_('Support');
            ?>
</a>
					<?php 
        } else {
            ?>
					<a href="<?php 
            echo $mosConfig_live_site;
            ?>
/help/mambo.glossary.html" target="helpFrame">
						<?php 
            echo T_('Glossary');
            ?>
</a>
					|
					<a href="<?php 
            echo $mosConfig_live_site;
            ?>
/help/mambo.credits.html" target="helpFrame">
						<?php 
            echo T_('Credits');
            ?>
</a>
					|
					<a href="<?php 
            echo $mosConfig_live_site;
            ?>
/help/mambo.support.html" target="helpFrame">
						<?php 
            echo T_('Support');
            ?>
</a>
					<?php 
        }
        ?>
					|
					<a href="http://www.gnu.org/copyleft/gpl.html" target="helpFrame">
						<?php 
        echo T_('License');
        ?>
</a>
					|
					<a href="http://docs.mambo-foundation.org" target="_blank">
						docs.mambo-foundation.org</a>
					|
					<a href="<?php 
        echo $mosConfig_live_site;
        ?>
/administrator/index2.php?option=com_admin&task=sysinfo&no_html=1" target="helpFrame">
						<?php 
        echo T_('System Info');
        ?>
</a>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		<tr valign="top">
			<td width="20%" valign="top">
			<?php 
        if ($helpsearch) {
            ?>
				<strong><?php 
            echo T_('Search Results');
            ?>
</strong>
			<?php 
        } else {
            ?>
				<strong><?php 
            echo T_('Index');
            ?>
</strong>
		    <?php 
        }
        ?>
				<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" />
		</form>
		<?php 
    }
Esempio n. 3
0
    /**
     * Display Help Page
     *
     * For this method the important two scenarios are local or remote help files.
     * In the case of local help files the language tag will be added in order to
     * allow different languages of help.<br />
     * In case of the remote server it is assumed that this server provide one specific
     * help set of files in one particular language.
     */
    function help()
    {
        global $mainframe;
        jimport('joomla.filesystem.folder');
        jimport('joomla.language.help');
        // Get Help URL - an empty helpurl is interpreted as local help files!
        $helpurl = $mainframe->getCfg('helpurl');
        if ($helpurl == 'http://help.mamboserver.com') {
            $helpurl = 'http://help.joomla.org';
        }
        $fullhelpurl = $helpurl . '/index2.php?option=com_content&amp;task=findkey&amp;pop=1&amp;keyref=';
        $helpsearch = JRequest::getString('helpsearch');
        $page = JRequest::getCmd('page', 'joomla.whatsnew15.html');
        $toc = getHelpToc($helpsearch);
        $lang =& JFactory::getLanguage();
        $langTag = $lang->getTag();
        if (!JFolder::exists(JPATH_BASE . DS . 'help' . DS . $langTag)) {
            $langTag = 'en-GB';
            // use english as fallback
        }
        if (!eregi('\\.html$', $page)) {
            $page .= '.xml';
        }
        ?>
		<form action="index.php?option=com_admin&amp;task=help" method="post" name="adminForm">

		<table class="adminform" border="1">
		<tr>
			<td colspan="2">
				<table width="100%">
					<tr>
						<td>
							<strong><?php 
        echo JText::_('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="<?php 
        echo JText::_('Go');
        ?>
" class="button" />
							<input type="button" value="<?php 
        echo JText::_('Clear Results');
        ?>
" class="button" onclick="f=document.adminForm;f.helpsearch.value='';f.submit()" />
						</td>
						<td class="helpMenu">
							<?php 
        if ($helpurl) {
            ?>
							<?php 
            echo JHTML::_('link', JHelp::createUrl('joomla.glossary'), JText::_('Glossary'), array('target' => 'helpFrame'));
            ?>
							|
							<?php 
            echo JHTML::_('link', JHelp::createUrl('joomla.credits'), JText::_('Credits'), array('target' => 'helpFrame'));
            ?>
							|
							<?php 
            echo JHTML::_('link', JHelp::createUrl('joomla.support'), JText::_('Support'), array('target' => 'helpFrame'));
            ?>
							<?php 
        } else {
            ?>
							<?php 
            echo JHTML::_('link', JURI::base() . 'help/' . $langTag . '/joomla.glossary.html', JText::_('Glossary'), array('target' => 'helpFrame'));
            ?>
							|
							<?php 
            echo JHTML::_('link', JURI::base() . 'help/' . $langTag . '/joomla.credits.html', JText::_('Credits'), array('target' => 'helpFrame'));
            ?>
							|
							<?php 
            echo JHTML::_('link', JURI::base() . 'help/' . $langTag . '/joomla.support.html', JText::_('Support'), array('target' => 'helpFrame'));
            ?>
							<?php 
        }
        ?>
							|
							<?php 
        echo JHTML::_('link', 'http://www.gnu.org/licenses/gpl-2.0.html', JText::_('License'), array('target' => 'helpFrame'));
        ?>
							|
							<?php 
        echo JHTML::_('link', 'http://help.joomla.org', 'help.joomla.org', array('target' => 'helpFrame'));
        ?>
							|
							<?php 
        echo JHTML::_('link', 'index.php?option=com_admin&amp;task=changelog&amp;tmpl=component', JText::_('Changelog'), array('target' => 'helpFrame'));
        ?>
							|
							<?php 
        echo JHTML::_('link', 'http://www.joomla.org/content/blogcategory/57/111/', JText::_('Latest Version Check'), array('target' => 'helpFrame'));
        ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		</table>

		<div id="treecellhelp">
			<fieldset title="<?php 
        echo JText::_('Alphabetical Index');
        ?>
">
				<legend>
					<?php 
        echo JText::_('Alphabetical Index');
        ?>
				</legend>

				<div class="helpIndex">
					<ul class="subext">
						<?php 
        foreach ($toc as $k => $v) {
            if ($helpurl) {
                echo '<li>';
                echo JHTML::_('link', JHelp::createUrl($k), $v, array('target' => 'helpFrame'));
                echo '</li>';
            } else {
                echo '<li>';
                echo JHTML::_('link', JURI::base() . 'help/' . $langTag . '/' . $k, $v, array('target' => 'helpFrame'));
                echo '</li>';
            }
        }
        ?>
					</ul>
				</div>
			</fieldset>
		</div>

		<div id="datacellhelp">
			<fieldset title="<?php 
        echo JText::_('View');
        ?>
">
				<legend>
					<?php 
        echo JText::_('View');
        ?>
				</legend>
				<?php 
        if ($helpurl && $page != 'joomla.whatsnew15.html') {
            ?>
					<iframe name="helpFrame" src="<?php 
            echo $fullhelpurl . preg_replace('#\\.xml$|\\.html$#', '', $page);
            ?>
" class="helpFrame" frameborder="0"></iframe>
					<?php 
        } else {
            ?>
					<iframe name="helpFrame" src="<?php 
            echo JURI::base() . 'help/' . $langTag . '/' . $page;
            ?>
" class="helpFrame" frameborder="0"></iframe>
					<?php 
        }
        ?>
			</fieldset>
		</div>

		<input type="hidden" name="task" value="help" />
		</form>
		<?php 
    }
Esempio n. 4
0
    /**
     * Display Help Page
     */
    function help()
    {
        global $mosConfig_live_site;
        global $adminLanguage;
        $helpsearch = mosGetParam($_REQUEST, 'helpsearch', '');
        $page = mosGetParam($_REQUEST, 'page', 'apdx.whatsnew');
        $toc = getHelpToc($helpsearch);
        ?>
		<style type="text/css">
		.helpIndex {
			border: 0px;
			width: 95%;
			height: 400px;
			padding: 0px 5px 0px 10px;
			overflow: auto;
		}
		.helpFrame {
			border-left: 2px solid #222;
			border-right: none;
			border-top: none;
			border-bottom: none;
			width: 95%;
			height: 400px;
			padding: 0px 5px 0px 10px;
		}
		</style>
		<table class="adminform">
		<tr>
			<th colspan="2" class="title">
    <?php 
        echo $adminLanguage->A_COMP_ADMIN_PHP_VERSION;
        ?>
			Help
			</th>
		</tr>
		<tr>
			<td colspan="2">
			<form name="adminForm">
			<strong>Search:</strong>
			<input class="text_area" type="hidden" name="option" value="com_admin" />
			<input type="hidden" name="task" value="help" />
			<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()" />
			</form>
			</td>
		</tr>
		<tr>
			<td width="20%" valign="top">
			<strong>
    <?php 
        echo $adminLanguage->A_COMP_ADMIN_INDEX;
        ?>
            </strong>
			<div class="helpIndex">
			<?php 
        foreach ($toc as $k => $v) {
            echo '<br /><a href="' . $mosConfig_live_site . '/help/' . $k . '" target="helpFrame">' . $v . '</a>';
        }
        ?>
			</div>
			</td>
			<td>
			<iframe name="helpFrame" src="<?php 
        echo $mosConfig_live_site . '/help/' . $page . '.xml';
        ?>
" class="helpFrame" /></iframe>
			</td>
		</tr>
		</table>
		<?php 
    }