Location: PHPKode > projects > ActualAnalyzer > view.php
<?php

/*------------------------------------------------------------------------*/
// Product: ActualAnalyzer
// Script: view.php
// Source: http://www.actualscripts.com/
// Copyright: (c) 2002-2006 ActualScripts, Company. All rights reserved.
//
// YOU DON'T NEED TO EDIT ANYTHING IN THIS SCRIPT.
// SEE LICENSE AGREEMENT FOR MORE DETAILS
/*------------------------------------------------------------------------*/

//p3p header
require './data/p3pheader.php';

//root folder of Actualanalyzer
$rf='./';

require './common/error.php';
require './common/global.php';
require './common/config.php';
require './common/confdb.php';
require './common/auth.php';
require './view/vdb.php';
require './view/vstat.php';

//HTML code accumulator
$pagehtml='';

//errors
$err = new error($rf);

//config
$conf = new config($rf);
if($err->flag) {
  $err->reason('view.php||constructor of config class has failed');
  $err->log_out();
  $err->scr_out();
  exit;
}

//database functions
require './common/db/'.$conf->db.'.php';

//database initialisation
db_init();
if($err->flag) {
  $err->reason('view.php||can\'t init database');
  $err->log_out();
  $err->scr_out();
  exit;
}

//config in database
$configdb = new confdb;
if($err->flag) {
  $err->reason('view.php||constructor of confdb class has failed');
  $err->log_out();
  $err->scr_out();
  exit;
}

//authentication
$login = new auth($rf,'view',_VIEWAREA);
if($err->flag) {
  $err->reason('view.php||constructor of auth class has failed');
  $err->log_out();
  $err->scr_out();
  exit;
}

//database
$vdb = new vdb;
if($err->flag) {
  $err->reason('view.php||constructor of vdb class has failed');
  $err->log_out();
  $err->scr_out();
  exit;
}

//view
$vstat = new vstat($rf);
if($err->flag) {
  $err->reason('view.php||constructor of vstat class has failed');
  $err->log_out();
  $err->scr_out();
  exit;
}

//create reports
$vstat->goo();
if($err->flag) {
  $err->reason('view.php||can\'t create reports');
  $err->log_out();
  $err->scr_out();
  exit;
}

//database closing
db_exit();
if($err->flag) {
  $err->reason('admin.php||can\'t close connection with database');
  $err->log_out();
  $err->scr_out();
  exit;
}

//output HTML page
out();

?>
Return current item: ActualAnalyzer