Esempio n. 1
0
 * any later version.
 *
 * OSMap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with OSMap. If not, see <http://www.gnu.org/licenses/>.
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
use Alledia\Framework\Joomla\Extension\Helper as ExtensionHelper;
use Alledia\Framework\Joomla\Extension\Licensed;
// Alledia Framework
if (!defined('ALLEDIA_FRAMEWORK_LOADED')) {
    $allediaFrameworkPath = JPATH_SITE . '/libraries/allediaframework/include.php';
    if (file_exists($allediaFrameworkPath)) {
        require_once $allediaFrameworkPath;
    } else {
        JFactory::getApplication()->enqueueMessage('[OSMap] Alledia framework not found', 'error');
    }
}
$osmap = new Licensed('OSMap', 'component');
if (!defined('OSMAP_LICENSE')) {
    $license = $osmap->isPro() ? 'pro' : 'free';
    define('OSMAP_LICENSE', $license);
}
$osmap->loadLibrary();
require_once JPATH_ADMINISTRATOR . '/components/com_osmap/include.php';
require_once JPATH_COMPONENT . '/displayer.php';