"Fossies" - the Fresh Open Source Software Archive

Member "Open-Web-Analytics-1.7.0/install.php" (16 Sep 2020, 1602 Bytes) of package /linux/www/Open-Web-Analytics-1.7.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "install.php" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 1.6.9_vs_1.7.0.

    1 <?php
    2 
    3 //
    4 // Open Web Analytics - An Open Source Web Analytics Framework
    5 //
    6 // Copyright 2006 Peter Adams. All rights reserved.
    7 //
    8 // Licensed under GPL v2.0 http://www.gnu.org/copyleft/gpl.html
    9 //
   10 // Unless required by applicable law or agreed to in writing, software
   11 // distributed under the License is distributed on an "AS IS" BASIS,
   12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   13 // See the License for the specific language governing permissions and
   14 // limitations under the License.
   15 //
   16 // $Id$
   17 //
   18 
   19 include_once('owa_env.php');
   20 require_once(OWA_BASE_DIR.'/owa.php');
   21 
   22 /**
   23  * Install Page Wrapper Script
   24  * 
   25  * @author      Peter Adams <peter@openwebanalytics.com>
   26  * @copyright   Copyright &copy; 2006 Peter Adams <peter@openwebanalytics.com>
   27  * @license     http://www.gnu.org/copyleft/gpl.html GPL v2.0
   28  * @category    owa
   29  * @package     owa
   30  * @version        $Revision$
   31  * @since        owa 1.0.0
   32  */
   33 
   34 // Initialize owa
   35 //define('OWA_ERROR_HANDLER', 'development');
   36 define('OWA_CACHE_OBJECTS', false);
   37 define('OWA_INSTALLING', true);
   38 $owa = new owa();
   39 if ( $owa->isEndpointEnabled( basename( __FILE__ ) ) ) {
   40 
   41     // need third param here so that seting is not persisted.
   42     $owa->setSetting('base','main_url', 'install.php');
   43     // run controller, echo page content
   44     $do = owa_coreAPI::getRequestParam('do');
   45     $params = array();
   46     if (empty($do)) {
   47 
   48         $params['do'] = 'base.installStart';
   49     }
   50 
   51     // run controller or view and echo page content
   52     echo $owa->handleRequest($params);
   53 
   54 } else {
   55     // unload owa
   56     $owa->restInPeace();
   57 }
   58 
   59 ?>