#!/usr/bin/env php
<?php

/*
 * Set some constants
 */
define('UPDATESELF', pathinfo(__FILE__, PATHINFO_BASENAME));

define('UPDATEFCPATH', str_replace(UPDATESELF, '', __FILE__));

/*
 * Some basic tests
 */
    if (!@extension_loaded('ionCube Loader')) {
        echo "ionCube Loader missing \n\n You might have to add the same 'zend_extension ...' entry into your cli php.ini \n as you've added to you apache2 php.ini \n\n";
        die(1);
    }
if (php_sapi_name()!=='cli') {
    echo "You may not call this file using a web browser! \n\n Please call this file using php update.php \n\n";
    die(1);
}

/*
 * Startup
 */
$routing['controller'] = 'common';
$routing['function'] = 'installupdate';

require_once UPDATEFCPATH.'index_us.php';