Example #1
0
 public function getList()
 {
     if (!$this->_list) {
         $server_software = !empty($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : JText::_('n/a');
         $rows = array(array('setting' => JText::_('PHP Built On'), 'value' => php_uname()), array('setting' => JText::_('Database Version'), 'value' => mysqli_get_server_info($this->getService('koowa:database.adapter.mysqli')->getConnection())), array('setting' => JText::_('Database Collation'), 'value' => $this->getService('com://admin/extensions.database.table.plugins')->getSchema()->collation), array('setting' => JText::_('PHP Version'), 'value' => phpversion()), array('setting' => JText::_('Web Server'), 'value' => $server_software), array('setting' => JText::_('WebServer to PHP Interface'), 'value' => php_sapi_name()), array('setting' => JText::_('Nooku Server Version'), 'value' => Koowa::getVersion()), array('setting' => JText::_('User Agent'), 'value' => $_SERVER['HTTP_USER_AGENT'], ENT_QUOTES));
         $this->_list = $this->getService('com://admin/info.database.rowset.system')->addData($rows, false);
     }
     return $this->_list;
 }
Example #2
0
 function getInfo()
 {
     $db =& JFactory::getDBO();
     $version = new JVersion();
     $info = array('dm' => _DM_VERSION, 'j' => $version->getShortVersion(), 'k' => class_exists('Koowa') && method_exists('Koowa', 'getVersion') ? Koowa::getVersion() : 0, 'php' => phpversion(), 'db' => $db->getVersion());
     return http_build_query($info);
 }
Example #3
0
<?php

/**
 * @version     $Id$
 * @package     Koowa_Tests
 * @copyright   Copyright (C) 2007 - 2008 Joomlatools. All rights reserved.
 * @license     GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
 * @link        http://www.koowa.org
 */
?>

Koowa Unit Test Version:    0.1
Koowa Version:              <?php 
echo Koowa::getVersion() . PHP_EOL;
?>
Joomla! Version:            <?php 
echo JVERSION . PHP_EOL;
?>

Example #4
0
		<div class="container_16 clearfix">
			<div class="grid_16">
				<h1><?php echo JText::_('Pre-Installation check') ?></h1>
				<div class="buttons">
					<div class="button1-left"><div class="refresh"><a onclick="submitForm( adminForm, 'preinstall' );" alt="<?php echo JText::_('Check Again') ?>"><?php echo JText::_('Check Again') ?></a></div></div>
					<div class="button1-right"><div class="prev"><a onclick="submitForm( adminForm, 'lang' );" alt="<?php echo JText::_('Previous') ?>"><?php echo JText::_('Previous') ?></a></div></div>
						<div class="button1-left"><div class="next"><a onclick="submitForm( adminForm, 'dbconfig' );" alt="<?php echo JText::_('Next') ?>"><?php echo JText::_('Next') ?></a></div></div>
				</div>
			</div>
		</div>
	</div>

	<div id="content-box">
		<div class="container_16 clearfix">
			<div class="grid_16">
				<h2><?php echo JText::_('preTitle') ?> Nooku <?php echo Koowa::getVersion() ?>:</h2>
				<div class="install-text grid_6">
					<?php echo JText::_('tipPreinstall') ?>
				</div>
				<div class="install-body grid_10">
					<fieldset>
						<table class="content">
							<?php foreach($this->php_options as $option) : ?>
							<tr>
								<td class="item" valign="top">
									<?php echo $option['label'] ?>
								</td>
								<td valign="top">
									<span class="<?php echo $option['state'] ?>">
										<?php echo JText::_($option['state']) ?>
									</span>
Example #5
0
<?php

/* $Id: default.php 48 2011-03-28 22:50:42Z stiandidriksen $ */
defined('KOOWA') or die('Restricted access');
?>

<style src="media://com_extensions/css/extensions.css" />
<script src="media://com_extensions/js/updater.css" />

<div class="extensions-outer">
    <div class="extensions-inner">
        <?php 
if (version_compare($latest, Koowa::getVersion())) {
    ?>
        <h2><?php 
    echo sprintf(@text("You're currently using the latest Nooku Framework %s"), Koowa::getVersion());
    ?>
</h2>
        <p><?php 
    echo @text('Congratulations, you have nothing to update.');
    ?>
</p>
        <?php 
} else {
    ?>
        <h2><?php 
    echo sprintf(@text("There is a new version of the Nooku Framework available: %s"), $latest);
    ?>
</h2>
        <form action="<?php 
    echo @route('action=update');
Example #6
0
	<head>
		<jdoc:include type="head" />
		<link href="template/css/960_fluid.css" rel="stylesheet" type="text/css" />
		<link href="template/css/template.css" rel="stylesheet" type="text/css" />
		<?php if($this->direction == 'rtl') : ?>
		<link href="template/css/template_rtl.css" rel="stylesheet" type="text/css" />
		<?php endif; ?>

		<script type="text/javascript" src="../media/system/js/mootools.js"></script>
		<script type="text/javascript" src="includes/js/installation.js"></script>
		<script type="text/javascript" src="template/js/validation.js"></script>

		<script type="text/javascript">
			Window.onDomReady(function(){ new Accordion($$('h3.moofx-toggler'), $$('div.moofx-slider'), {onActive: function(toggler, i) { toggler.addClass('moofx-toggler-down'); },onBackground: function(toggler, i) { toggler.removeClass('moofx-toggler-down'); },duration: 300,opacity: false, alwaysHide:true, show: 1}); });
  		</script>
	</head>
	<body onload="resizeFrame()">
		<div id="header-box">
			<div class="container_16 clearfix">
				<div class="grid_16">
					<div id="version">v<?php echo Koowa::getVersion() ?></div>
					<span><?php echo JText::_('Installation') ?> <?php echo JText::_('of') ?> Nooku Server</span>
				</div>
			</div>
		</div>
		
		<jdoc:include type="installation" />
				
	</body>
</html>
 function getInfo()
 {
     $db =& JFactory::getDBO();
     $version = new JVersion();
     $browsers = array("firefox", "msie", "opera", "chrome", "safari", "mozilla", "seamonkey", "konqueror", "netscape", "gecko", "navigator", "mosaic", "lynx", "amaya", "omniweb", "avant", "camino", "flock", "aol");
     $agent = strtolower($_SERVER['HTTP_USER_AGENT']);
     foreach ($browsers as $browser) {
         if (preg_match("#({$browser})[/ ]?([0-9.]*)#", $agent, $match)) {
             $browser = new stdclass();
             $browser->name = $match[1];
             $browserversion = explode('.', $match[2]);
             $browser->version = $browserversion[0];
             break;
         }
     }
     $server = @php_uname('s') . ' ' . @php_uname('r');
     if ($server == ' ') {
         // php_uname is disabled
         $server = 'Unknown';
     }
     $info = array('Version' => _DM_VERSION, 'CMS' => $version->PRODUCT . ' ' . $version->RELEASE . '.' . $version->DEV_LEVEL, 'Koowa' => class_exists('Koowa') && method_exists('Koowa', 'getVersion') ? Koowa::getVersion() : 0, 'PHP' => phpversion(), 'DB' => $db->getVersion(), 'Server' => $_SERVER['SERVER_SOFTWARE'], 'OS' => $server, 'Browser' => ucfirst($browser->name), 'BrowserVersion' => ucfirst($browser->name) . ' ' . $browser->version, 'Language' => JFactory::getLanguage()->getName());
     // Let's just return an array so we can do whatever we want with it when we call it
     return $info;
 }