Exemplo n.º 1
0
    $flightsRelPath = "flights";
    $waypointsRelPath = "waypoints";
    $waypointsAbsPath = dirname(__FILE__) . "/" . $waypointsRelPath;
    $waypointsWebPath = $moduleRelPath . "/" . $waypointsRelPath;
    $flightsAbsPath = dirname(__FILE__) . "/" . $flightsRelPath;
    // $flightsWebPath=$moduleRelPath."/".$flightsRelPath;
}
define('SYNC_INSERT_FLIGHT_LINK', 1);
define('SYNC_INSERT_FLIGHT_LOCAL', 2);
define('SYNC_INSERT_FLIGHT_REPROCESS_LOCALLY', 64);
define('SYNC_INSERT_PILOT_LINK', 4);
define('SYNC_INSERT_PILOT_LOCAL', 8);
define('SYNC_INSERT_WAYPOINT_LINK', 16);
define('SYNC_INSERT_WAYPOINT_LOCAL', 32);
if (!function_exists('str_ireplace')) {
    function str_ireplace($needle, $str, $haystack)
    {
        $needle = preg_quote($needle, '/');
        return preg_replace("/{$needle}/i", $str, $haystack);
    }
}
//$CONF['sprites']
// list of takeoffs that will make all flights from them PRIVATE!
$CONF['takeoffs']['private'] = array();
if ($db) {
    $db->sql_query("set sql_mode = ''");
}
// replace the php array with DB entries
require_once dirname(__FILE__) . "/CL_brands.php";
brands::getBrandsListFromDB();