Example #1
0
$mimeTypes = MFile::parseData(_FM_HOME_DIR . DS . "data" . DS . "suffix.ini", true, false);
$GLOBALS['mimeTypes'] = $mimeTypes;
//Task
$task = trim(MRequest::cmd('task'));
$GLOBALS['task'] = $task;
//View
$view = trim(MRequest::cmd('view', 'default'));
$GLOBALS['view'] = $view;
//Check if this is a first time call
if (!MFile::is(_FM_HOME_DIR . DS . "data" . DS . "diagnostic_log.php")) {
    $view = 'diagnostics';
    $GLOBALS['view'] = $view;
}
//Check root only views
$rootOnlyViews = array("rootsandrights", "config", "diagnostics");
if (in_array($view, $rootOnlyViews) && !MRights::userIsRoot() && !_FM_IS_DEMO) {
    ob_start();
    include "templates" . DS . "noaccess.php";
    $dieOut = ob_get_clean();
    ob_get_clean();
    die($dieOut);
}
//File
$file = MRequest::clean('file');
$file = urldecode(myStripSlashes($file));
$file = MRequest::filter($file, MREQUEST_CLEANPATH);
$GLOBALS['file'] = $file;
//Destination
$destination = urldecode(MRequest::clean('destination'));
$destination = MRequest::filter($destination, MREQUEST_CLEANPATH);
$destination = _START_FOLDER . myStripSlashes($destination);
Example #2
0
 * @license		Libraries can be under a different license in other environments
 * @license		Media files owned and created by Mad4Media such as
 * @license 	Javascript / CSS / Shockwave or Images are licensed under GFML (GPL Friendly Media License). See GFML.txt.
 * @license		3rd party scripts are under the license of the copyright holder. See source header or license text file which is included in the appropriate folders
 * @version		1.0
 * @link		http://www.mad4media.de
 * Creation date 2013/02
 */

//CUSTOMPLACEHOLDER
//CUSTOMPLACEHOLDER2

defined('_JEXEC') or die;
$imagePath = _FM_HOME_FOLDER . "/images/";
$imagesLangPath = $imagePath . "languages/en-GB/";
$isRoot = MRights::userIsRoot();
$advice = '<span style="color:red; font-weight: bold;">Only for Superadmins</span>';
?>
							<!-- INFO STARTS HERE -->

<div style="margin: 10px;">
	<table cellpadding="0" cellspacing="0" border="0" style="width:100%;" class="infoTable"><tbody>
		<tr>
			<td align="left" valign="top" colspan="2"><h1 style="padding-left:50px;">Thank you for choosing ProFiles.</h1><br/></td>
		</tr>
	<tr>
		<td align="left" valign="top" style="width:300px;"><img src="<?php echo $imagePath;?>cover.png" /></td>
		<td align="left" valign="top">
			<ul style="font-size: 16px;">
			<li>Version: <b><?php echo $isRoot ? MVersion::getFull() : $advice; ?></b></li>
			<li>Author: <?php echo MVersion::getAuthor(); ?></li>