Changeset 69 for trunk/add.php


Ignore:
Timestamp:
Feb 28, 2016, 10:54:30 AM (8 years ago)
Author:
chronos
Message:
  • Modified: Use object oriented approach for page drawing using Application class.
  • Added: SQL updated will be automatic using UpdateTrace.php file.
  • Added: Use generic setup page at URL /setup for SQL structure update.
  • Modified: Update Common package to newer version.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/add.php

    r68 r69  
    11<?php
    22
    3 include('Global.php');
     3include_once('Application/Core.php');
    44
    5 $Application = new Application();
    6 $Application->Start();
     5$Core = new Core();
     6$Core->ShowPage = false;
     7$Core->Run();
     8
    79
    810if(array_key_exists('MeasureId', $_GET) and array_key_exists('Value', $_GET))
     
    1012  $MeasureId = addslashes($_GET['MeasureId']);
    1113  $Value = addslashes($_GET['Value']);
    12   $Measure = new Measure($Application->Database);
     14  $Measure = new Measure($Core->Database);
    1315  $Measure->Load($MeasureId);
    1416  $HostName = gethostbyaddr($_SERVER['REMOTE_ADDR']);
Note: See TracChangeset for help on using the changeset viewer.