Example #1
0
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Modified version of class done by David Marco Martinez
*/
require_once "lib/cls/Web.cls.php";
require_once "cls/install.cls.php";
error_reporting(E_ALL);
// Record the start time of execution
$mtime = microtime(true);
// Start php session BEFORE ANY output
session_start();
// Load conf
//require_once( 'conf/user.conf.php' );
install::setDefines();
require_once 'conf/system.conf.php';
// Build the base of the app
$web = Web::getClass('install');
// Page specific operations and display
if (is_writable(DIR_TPL_COMPILE)) {
    $web->display('install/index');
} else {
    echo "Template dir " . DIR_TPL_COMPILE . " is not writable for webserver. Please change permissions and reload this page.";
}
// Record end time
$ftime = microtime(true);
$total = $ftime - $mtime;
//echo "total: " . $total . 's<br />';
// If end time is shorter than 0.5 segons sleep untill then
if ($total < MIN_TIME) {