..one or more modules you must have seen the iframes used for realtime result display. In this tutorial I'm going to show you how to insert them into your module and how they..
xAnalyze is a module that can search through corrupt data and configuration files in order to find the exact position of errors
<?php
/* Functions that checks whether a file is there or not
Will add the error to the context array in case of a failure.
PARAMETERS:
$sFile: path to the local file
RETURNS:
TRUE: the file exists
FALSE: the file doesn't exist
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 12-11-2014
*/
function IsThere($sFile){
global $_CONTEXT;
if(!file_exists($sFile)){
// define the error
$_CONTEXT['errors'][] = "File <b>".$sFile."</b> doesn't exist";
// files that aren't there should always be fatal
$_CONTEXT['fatal'] = true;
return(false);
}
return(true);
}
?>