\n
\n
Standalone file scan - checks for a valid set of E107 files
";
// Sort out other directories
@include_once('./../e107_config.php');
if(!isset($ADMIN_DIRECTORY))
{
// e107_config.php is either empty, not valid or doesn't exist so use some defaults
echo "e107_config.php not found or not configured. Using default directory structure.
";
$ADMIN_DIRECTORY = "e107_admin/";
$FILES_DIRECTORY = "e107_files/";
$IMAGES_DIRECTORY = "e107_images/";
$THEMES_DIRECTORY = "e107_themes/";
$PLUGINS_DIRECTORY = "e107_plugins/";
$HANDLERS_DIRECTORY = "e107_handlers/";
$LANGUAGES_DIRECTORY = "e107_languages/";
$HELP_DIRECTORY = "e107_docs/help/";
$DOWNLOADS_DIRECTORY = "e107_files/downloads/";
}
else
{
echo "Using directory structure from e107_config.php
";
}
$imode = 'nuvola_light';
$fi = new file_inspector(TRUE);
// Needed to make everything work
define("e107_INIT", TRUE);
define("e_BASE", $fi->root_web."/"); // No trailing slash stored
define("e_IMAGE", e_BASE.$IMAGES_DIRECTORY);
define("e_LANGUAGEDIR", e_BASE.$LANGUAGES_DIRECTORY);
echo "Image Directory: ".e_IMAGE."
";
if (!realpath(__FILE__))
{
echo 'realpath() function disabled by host - E107 will not run without modification
';
}
if (!function_exists('ob_end_clean'))
{
echo "function ob_end_clean() does not exist. Creating temporary function.
";
function ob_end_clean() { return FALSE; }
}
if (!file_exists('core_image.php'))
{
echo 'Cannot continue - core_image.php does not exist
';
return;
}
if (!file_exists(e_LANGUAGEDIR.'English/admin/lan_fileinspector.php'))
{
echo 'Language file not found - cannot continue
';
return;
}
// Strip trailing '/' off each directory name
$DOCS_DIRECTORY = str_replace('help/', '', $HELP_DIRECTORY);
$maindirs = array('admin' => $ADMIN_DIRECTORY, 'files' => $FILES_DIRECTORY, 'images' => $IMAGES_DIRECTORY, 'themes' => $THEMES_DIRECTORY, 'plugins' => $PLUGINS_DIRECTORY, 'handlers' => $HANDLERS_DIRECTORY, 'languages' => $LANGUAGES_DIRECTORY, 'downloads' => $DOWNLOADS_DIRECTORY, 'docs' => $DOCS_DIRECTORY);
foreach ($maindirs as $maindirs_key => $maindirs_value)
{
$coredir[$maindirs_key] = substr($maindirs_value, 0, -1);
if (!file_exists(e_BASE.$coredir[$maindirs_key]))
{
echo "Complete directory missing: ".$coredir[$maindirs_key]."
";
}
}
require_once('core_image.php');
require_once(e_LANGUAGEDIR.'English/admin/lan_fileinspector.php');
define ("SITENAME", "Current E107 Site");
$fi -> scan_results();
echo "