Your IP : 216.73.216.134


Current Path : /home/bijouxly/www/libraries/nextend/
Upload File :
Current File : /home/bijouxly/www/libraries/nextend/library.php

<?php
/*
# author Roland Soos
# copyright Copyright (C) Nextendweb.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-3.0.txt GNU/GPL
*/
defined('_JEXEC') or die('Restricted access'); ?><?php
define('NEXTENDLIBRARY', dirname(__FILE__) . DIRECTORY_SEPARATOR);

/*
* nextend.form
*/

function nextendimport($key) {

    $keys = explode('.', $key);
    array_shift($keys);
    require_once(NEXTENDLIBRARY . implode(DIRECTORY_SEPARATOR, $keys) . '.php');
}

function nextendimportpath($file) {
    $file .= '.php';
    if (NextendFilesystem::fileexists($file)){
        require_once($file);
        return true;
    }
    return false;
}

function nextendIsJoomla() {
    return (!defined('ABSPATH') || class_exists('wpj_loader', false)) && defined('_JEXEC');
}

function nextendIsWordPress() {
    return defined('ABSPATH');
}

function nextendIsMagento() {
    return class_exists('Mage', false);
}

nextendimport('nextend.configuration');

if (nextendIsJoomla()) {
    nextendimport('nextend.joomla');
} else if (nextendIsWordPress()) {
    nextendimport('nextend.wordpress');
} else if (nextendIsMagento()) {
    nextendimport('nextend.magento');
}
if (!defined('NEXTENDLIBRARYASSETS')) define('NEXTENDLIBRARYASSETS', NEXTENDLIBRARY . 'assets' . DIRECTORY_SEPARATOR);
nextendimport('nextend.language.language');
nextendimport('nextend.uri.uri');
nextendimport('nextend.filesystem.filesystem');
nextendimport('nextend.plugin.plugin');

if (nextendIsWordPress()) {
    do_action('nextend_load');
}

?>