Example #1
0
 /**
  * Establish DB connection
  *
  * @return		DB link
  */
 function AA_connectToDB()
 {
     $db = AA_utils_connectToDB();
     if (!empty($GLOBALS['AA_ERROR'])) {
         AA_printErrorPage($GLOBALS['AA_ERROR']);
     }
     return $db;
 }
Example #2
0
 *
 */
require './lib/utils.lib.php';
require './lib/cl_action_default.lib.php';
require './lib/cl_action_saveFilm.lib.php';
require './lib/cl_action_saveResult.lib.php';
require './lib/cl_action_saveHeatStatus.lib.php';
require './lib/cl_action_saveSpeakerStatus.lib.php';
require './lib/cl_action_saveWind.lib.php';
require './lib/cl_action_saveHandStopped.lib.php';
require './lib/cl_gui_faq.lib.php';
$AA_ERROR = '';
//
// connect to DB
//
AA_utils_connectToDB();
if (!empty($GLOBALS['AA_ERROR'])) {
    errorExit($action, $errParams);
}
//
//	Load action class
//
if ($_POST['act'] == 'saveFilm') {
    $action = new Action_saveFilm();
} else {
    if ($_POST['act'] == 'saveHeatStatus') {
        $action = new Action_saveHeatStatus();
    } else {
        if ($_POST['act'] == 'saveResult') {
            $action = new Action_saveResult();
        } else {