<?php // Grab all content files, add a wrapper, a beat, and a melody $filelist = getContentList(PATH_TXT, '.php'); $findme = array(" ", "'"); $replaceme = array("_", ""); $home_page = 'Start'; foreach ($filelist as $file) { $filename = str_replace($findme, $replaceme, htmlentities(strip_ext(basename($file)))); if ($filename == '0') { $filename = $home_page; } echo '<div id="' . $filename . '" class="thisisapage">' . '<div class="heading"><h1></h1></div>' . get_include_contents(PATH_TXT . $file) . '</div>'; }
/** ensure this file is being included by a parent file */ defined('_VALID_MOS') or die('Direct Access to this location is not allowed.'); $mosConfig_absolute_path = mamboCore::get('mosConfig_absolute_path'); $mosConfig_secret = mamboCore::get('mosConfig_secret'); require $mosConfig_absolute_path . '/mambots/editors/mostlyce/jscripts/tiny_mce/auth_check.php'; $result = externalCallCheck($mosConfig_absolute_path, $mosConfig_secret); if (!$result) { die(T_('Direct Access to this location is not allowed.')); } $task = trim(mosGetParam($_GET, 'task', '')); switch (strtolower($task)) { case 'imagelist': getImageList(); break; case 'contentlist': getContentList(); break; default: die(T_('Direct Access to this location is not allowed.')); break; } /** * Purpose: This function creates a list of images to be displayed as a dropdown in all image dialogs * if the "external_link_image_url" option is defined in TinyMCE init. * * Expected output: * var tinyMCEImageList = new Array( * // Name, URL * ["Logo 1", "media/logo.jpg"], * ["Logo 2 Over", "media/logo_over.jpg"] * );