Beispiel #1
0
 public static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new NoNumberLicenses();
     }
     return self::$instance;
 }
Beispiel #2
0
 protected function getInput()
 {
     $this->params = $this->element->attributes();
     $extension = $this->get('extension');
     if (!strlen($extension)) {
         return '';
     }
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/licenses.php';
     return '</div><div class="hide">' . NNLicenses::getInstance()->getMessage($extension);
 }
Beispiel #3
0
 function fetchElement($name, $value, &$node)
 {
     $extension = $node->attributes('extension');
     if (!strlen($extension)) {
         return;
     }
     // Import library dependencies
     require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'licenses.php';
     $licenses = NNLicenses::instance();
     return $licenses->getMessage($extension);
 }
Beispiel #4
0
 function getInput($name, $id, $value, $params, $children, $j15 = 0)
 {
     $this->params = $params;
     $extension = $this->def('extension');
     if (!strlen($extension)) {
         return;
     }
     // Import library dependencies
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/licenses.php';
     $licenses = NNLicenses::getInstance();
     return $licenses->getMessage($extension);
 }
 protected function getInput()
 {
     $this->params = $this->element->attributes();
     $extension = $this->def('extension');
     if (!strlen($extension)) {
         return '';
     }
     // Import library dependencies
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/licenses.php';
     $licenses = NNLicenses::getInstance();
     return $licenses->getMessage($extension);
 }
Beispiel #6
0
			<input type="hidden" name="filter_order" value="<?php 
echo $listOrder;
?>
" />
			<input type="hidden" name="filter_order_Dir" value="<?php 
echo $listDirn;
?>
" />
			<?php 
echo JHtml::_('form.token');
?>
		</div>
	</form>

<?php 
if ($this->config->show_switch) {
    ?>
	<a style="float:right;" href="<?php 
    echo JRoute::_('index.php?option=com_modules&force=1');
    ?>
"><?php 
    echo JText::_('AMM_SWITCH_TO_CORE');
    ?>
</a>
<?php 
}
// PRO Check
require_once JPATH_PLUGINS . '/system/nnframework/helpers/licenses.php';
echo NNLicenses::getInstance()->getMessage('ADVANCED_MODULE_MANAGER', 0);
// Copyright
echo NNVersions::getInstance()->getCopyright('ADVANCED_MODULE_MANAGER', '', 10307, 'advancedmodules', 'component');
$lang->load('plg_system_nonumberelements', JPATH_ADMINISTRATOR, null, 1);
// Require the base controller
require_once JPATH_COMPONENT . DS . 'controller.php';
// Do the version check
require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'versions.php';
$versions = NNVersions::instance();
$version = '';
$xml = JApplicationHelper::parseXMLInstallFile(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_advancedmodules' . DS . 'advancedmodules.xml');
if ($xml && isset($xml['version'])) {
    $version = $xml['version'];
}
if (JRequest::getCmd('task', 'view') == 'view') {
    $versions->setMessage($version, 'advancedmodules', 'http://www.nonumber.nl/versions', 'http://www.nonumber.nl/advancedmodules/download');
}
// Create the controller
$controller = new ModulesController(array('default_task' => 'view'));
// Perform the Request task
$controller->execute(JRequest::getCmd('task', 'view'));
// Redirect if set by the controller
$controller->redirect();
// Place Commercial License Code check
if (JRequest::getCmd('task', 'view') == 'view') {
    require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'licenses.php';
    $licenses = NNLicenses::instance();
    echo $licenses->getMessage('ADVANCED_MODULE_MANAGER');
}
echo '<p style="text-align:center;">' . JText::_('ADVANCED_MODULE_MANAGER');
if ($version) {
    echo ' v' . $version;
}
echo ' - ' . JText::_('COPYRIGHT') . ' (C) 2011 NoNumber! ' . JText::_('ALL_RIGHTS_RESERVED') . '</p>';