<?php
/**
 * @version		$Id: default.php 1695 2012-10-05 17:00:28Z lefteris.kavadas $
 * @package		K2
 * @author		JoomlaWorks http://www.joomlaworks.net
 * @copyright	Copyright (c) 2006 - 2012 JoomlaWorks Ltd. All rights reserved.
 * @license		GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 */

// no direct access
defined('_JEXEC') or die;

?>
<form action="index.php" method="post" name="adminForm">
	<table cellpadding="0" cellspacing="0" border="0" style="width:100%" id="k2InfoPage" class="table">
		<tr>
			<td>
				<fieldset class="adminform">
					<legend><?php echo JText::_('K2_ABOUT'); ?></legend>
					<div class="k2TextBox"><?php echo JText::_('K2_ABOUT_TEXT'); ?></div>
				</fieldset>

			  <fieldset class="adminform">
					<legend><?php echo JText::_('K2_CREDITS'); ?></legend>
					<table class="adminlist table table-striped">
						<thead>
			        <tr>
			        	<th><?php echo JText::_('K2_PROVIDER'); ?></th>
			          <th><?php echo JText::_('K2_VERSION'); ?></th>
			          <th><?php echo JText::_('K2_TYPE'); ?></th>
			          <th><?php echo JText::_('K2_LICENSE'); ?></th>
			        </tr>
			      </thead>
			      <tfoot>
			        <tr>
			          <th colspan="4">&nbsp;</th>
			        </tr>
			      </tfoot>
					  <tbody>
					    <tr>
					      <td><a target="_blank" href="http://nuovext.pwsp.net/">NuoveXT</a></td>
					      <td>2.2</td>
					      <td><?php echo JText::_('K2_ICONS'); ?></td>
					      <td><?php echo JText::_('K2_GNUGPL'); ?></td>
					    </tr>
					    <tr>
					      <td><a target="_blank" href="http://www.komodomedia.com/download/">Social Network Icon Pack &amp;<br />Social Media Mini Icon Pack<br />(by Komodo Media)</a></td>
					      <td><?php echo JText::_('K2_NA'); ?></td>
					      <td><?php echo JText::_('K2_ICONS'); ?></td>
					      <td><?php echo JText::_('K2_CREATIVE_COMMONS_ATTRIBUTIONSHARE_ALIKE_30_UNPORTED_LICENSE'); ?></td>
					    </tr>
					    <tr>
					      <td><a target="_blank" href="http://p.yusukekamiyamane.com/">Fugue Icons<br />(by Yusuke Kamiyamane)</a></td>
					      <td>2.9.4</td>
					      <td><?php echo JText::_('K2_ICONS'); ?></td>
					      <td><?php echo JText::_('K2_CREATIVE_COMMONS_ATTRIBUTION_30_LICENSE'); ?></td>
					    </tr>
					    <tr>
					      <td><a target="_blank" href="http://www.iconarchive.com/artist/tpdkdesign.net.html">"Choose Your Sport" Icon Pack<br />(by TpdkDesign.net)</a></td>
					      <td><?php echo JText::_('K2_NA'); ?></td>
					      <td><?php echo JText::_('K2_ICONS'); ?></td>
					      <td><?php echo JText::_('K2_INFO_FREE_LICENSE'); ?></td>
					    </tr>
					    <tr>
					      <td><a target="_blank" href="http://pear.php.net/package/Services_JSON/">Services_JSON</a></td>
					      <td>1.0.1</td>
					      <td><?php echo JText::_('K2_PHP_CLASS'); ?></td>
					      <td><?php echo JText::_('K2_BSD'); ?></td>
					    </tr>
					    <tr>
					      <td><a target="_blank" href="http://www.verot.net/php_class_upload.htm">class.upload.php</a></td>
					      <td>0.31</td>
					      <td><?php echo JText::_('K2_PHP_CLASS'); ?></td>
					      <td><?php echo JText::_('K2_GNUGPL'); ?></td>
					    </tr>
					    <tr>
					      <td><a target="_blank" href="http://jquery.com">jQuery</a></td>
					      <td>1.5.x - 1.8.x</td>
					      <td><?php echo JText::_('K2_JS_LIB'); ?></td>
					      <td><?php echo JText::_('K2_MIT'); ?></td>
					    </tr>
					    <tr>
					      <td><a target="_blank" href="http://jqueryui.com/">jQuery UI</a></td>
					      <td>1.8.24</td>
					      <td><?php echo JText::_('K2_JS_LIB'); ?></td>
					      <td><?php echo JText::_('K2_MIT'); ?></td>
					    </tr>
					    <tr>
					      <td><a target="_blank" href="http://elfinder.org/">elFinder</a></td>
					      <td>2.0 (rc1)</td>
					      <td><?php echo JText::_('K2_INFO_FILE_MANAGER'); ?></td>
					      <td><?php echo JText::_('K2_BSD'); ?></td>
					    </tr>
					  </tbody>
					</table>
				</fieldset>
			</td>
			<td>
			  <fieldset class="adminform">
			    <legend><?php echo JText::_('K2_SYSTEM_INFORMATION'); ?></legend>
			    <table class="adminlist table table-striped">
			      <thead>
			        <tr>
			          <th><?php echo JText::_('K2_CHECK'); ?></th>
			          <th><?php echo JText::_('K2_RESULT'); ?></th>
			        </tr>
			      </thead>
			      <tfoot>
			        <tr>
			          <th colspan="2">&nbsp;</th>
			        </tr>
			      </tfoot>
			      <tbody>
			        <tr>
			          <td><strong><?php echo JText::_('K2_WEB_SERVER'); ?></strong></td>
			          <td><?php echo $this->server; ?></td>
			        </tr>
			        <tr>
			          <td><strong><?php echo JText::_('K2_PHP_VERSION'); ?></strong></td>
			          <td><?php echo $this->php_version; ?></td>
			        </tr>
			        <tr>
			          <td><strong><?php echo JText::_('K2_MYSQL_VERSION'); ?></strong></td>
			          <td><?php echo $this->db_version; ?></td>
			        </tr>
			        <tr>
			          <td><strong><?php echo JText::_('K2_GD_IMAGE_LIBRARY'); ?></strong></td>
			          <td><?php if ($this->gd_check) {$gdinfo=gd_info(); echo $gdinfo["GD Version"];} else echo JText::_('K2_DISABLED'); ?></td>
			        </tr>
			        <tr>
			          <td><strong><?php echo JText::_('K2_MULTIBYTE_STRING_SUPPORT'); ?></strong></td>
			          <td><?php if ($this->mb_check) echo JText::_('K2_ENABLED'); else echo JText::_('K2_DISABLED'); ?></td>
			        </tr>
			        <tr>
			          <td><strong><?php echo JText::_('K2_UPLOAD_LIMIT'); ?></strong></td>
			          <td><?php echo ini_get('upload_max_filesize'); ?></td>
			        </tr>
			        <tr>
			          <td><strong><?php echo JText::_('K2_MEMORY_LIMIT'); ?></strong></td>
			          <td><?php echo ini_get('memory_limit'); ?></td>
			        </tr>
			        <tr>
			          <td><strong><?php echo JText::_('K2_OPEN_REMOTE_FILES_ALLOW_URL_FOPEN'); ?></strong></td>
			          <td><?php echo (ini_get('allow_url_fopen'))? JText::_('K2_YES'):JText::_('K2_NO'); ?></td>
			        </tr>
			      </tbody>
			    </table>
			  </fieldset>

			  <fieldset class="adminform">
			    <legend><?php echo JText::_('K2_DIRECTORY_PERMISSIONS'); ?></legend>
			    <table class="adminlist table table-striped">
			      <thead>
			        <tr>
			          <th><?php echo JText::_('K2_CHECK'); ?></th>
			          <th><?php echo JText::_('K2_RESULT'); ?></th>
			        </tr>
			      </thead>
			      <tfoot>
			        <tr>
			          <th colspan="2">&nbsp;</th>
			        </tr>
			      </tfoot>
			      <tbody>
			        <tr>
			          <td><strong>media/k2</strong></td>
			          <td><?php if ($this->media_folder_check) echo JText::_('K2_WRITABLE'); else echo JText::_('K2_NOT_WRITABLE'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>media/k2/attachments</strong></td>
			          <td><?php if ($this->attachments_folder_check) echo JText::_('K2_WRITABLE'); else echo JText::_('K2_NOT_WRITABLE'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>media/k2/categories</strong></td>
			          <td><?php if ($this->categories_folder_check) echo JText::_('K2_WRITABLE'); else echo JText::_('K2_NOT_WRITABLE'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>media/k2/galleries</strong></td>
			          <td><?php if ($this->galleries_folder_check) echo JText::_('K2_WRITABLE'); else echo JText::_('K2_NOT_WRITABLE'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>media/k2/items</strong></td>
			          <td><?php if ($this->items_folder_check) echo JText::_('K2_WRITABLE'); else echo JText::_('K2_NOT_WRITABLE'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>media/k2/users</strong></td>
			          <td><?php if ($this->users_folder_check) echo JText::_('K2_WRITABLE'); else echo JText::_('K2_NOT_WRITABLE'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>media/k2/videos</strong></td>
			          <td><?php if ($this->videos_folder_check) echo JText::_('K2_WRITABLE'); else echo JText::_('K2_NOT_WRITABLE'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>cache</strong></td>
			          <td><?php if ($this->cache_folder_check) echo JText::_('K2_WRITABLE'); else echo JText::_('K2_NOT_WRITABLE'); ?></td>
			        </tr>
			      </tbody>
			    </table>
			  </fieldset>

			  <fieldset class="adminform">
			    <legend><?php echo JText::_('K2_MODULES'); ?></legend>
			    <table class="adminlist table table-striped">
			      <thead>
			        <tr>
			          <th><?php echo JText::_('K2_CHECK'); ?></th>
			          <th><?php echo JText::_('K2_RESULT'); ?></th>
			        </tr>
			      </thead>
			      <tfoot>
			        <tr>
			          <th colspan="2">&nbsp;</th>
			        </tr>
			      </tfoot>
			      <tbody>
			        <tr>
			          <td><strong>mod_k2_comments</strong></td>
			          <td><?php echo (is_null(JModuleHelper::getModule('mod_k2_comments')))?JText::_('K2_NOT_INSTALLED'):JText::_('K2_INSTALLED'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>mod_k2_content</strong></td>
			          <td><?php echo (is_null(JModuleHelper::getModule('mod_k2_content')))?JText::_('K2_NOT_INSTALLED'):JText::_('K2_INSTALLED'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>mod_k2_login</strong></td>
			          <td><?php echo (is_null(JModuleHelper::getModule('mod_k2_login')))?JText::_('K2_NOT_INSTALLED'):JText::_('K2_INSTALLED'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>mod_k2_tools</strong></td>
			          <td><?php echo (is_null(JModuleHelper::getModule('mod_k2_tools')))?JText::_('K2_NOT_INSTALLED'):JText::_('K2_INSTALLED'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>mod_k2_user</strong></td>
			          <td><?php echo (is_null(JModuleHelper::getModule('mod_k2_user')))?JText::_('K2_NOT_INSTALLED'):JText::_('K2_INSTALLED'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>mod_k2_users</strong></td>
			          <td><?php echo (is_null(JModuleHelper::getModule('mod_k2_users')))?JText::_('K2_NOT_INSTALLED'):JText::_('K2_INSTALLED'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>mod_k2_quickicons</strong> (administrator)</td>
			          <td><?php echo (is_null(JModuleHelper::getModule('mod_k2_quickicons')))?JText::_('K2_NOT_INSTALLED'):JText::_('K2_INSTALLED'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>mod_k2_stats</strong> (administrator)</td>
			          <td><?php echo (is_null(JModuleHelper::getModule('mod_k2_stats')))?JText::_('K2_NOT_INSTALLED'):JText::_('K2_INSTALLED'); ?></td>
			        </tr>
			      </tbody>
			    </table>
			  </fieldset>

			  <fieldset class="adminform">
			    <legend><?php echo JText::_('K2_PLUGINS'); ?></legend>
			    <table class="adminlist table table-striped">
			      <thead>
			        <tr>
			          <th><?php echo JText::_('K2_CHECK'); ?></th>
			          <th><?php echo JText::_('K2_RESULT'); ?></th>
			        </tr>
			      </thead>
			      <tfoot>
			        <tr>
			          <th colspan="2">&nbsp;</th>
			        </tr>
			      </tfoot>
			      <tbody>
			        <?php if(version_compare(JVERSION,'2.5.0','ge')): ?>
			        <tr>
			          <td><strong>Finder - K2</strong></td>
			          <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'finder'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'finder'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('finder', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td>
			        </tr>
			        <?php endif; ?>
			        <tr>
			          <td><strong>Search - K2</strong></td>
			          <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'search'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'search'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('search', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>System - K2</strong></td>
			          <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'system'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'system'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('system', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td>
			        </tr>
			        <tr>
			          <td><strong>User - K2</strong></td>
			          <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'user'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'user'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('user', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td>
			        </tr>
			      </tbody>
			    </table>
			  </fieldset>

			  <fieldset class="adminform">
			    <legend><?php echo JText::_('K2_THIRDPARTY_PLUGIN_INFORMATION'); ?></legend>
			    <table class="adminlist table table-striped">
			      <thead>
			        <tr>
			          <th><?php echo JText::_('K2_CHECK'); ?></th>
			          <th><?php echo JText::_('K2_RESULT'); ?></th>
			        </tr>
			      </thead>
			      <tfoot>
			        <tr>
			          <th colspan="2">&nbsp;</th>
			        </tr>
			      </tfoot>
			      <tbody>
			        <tr>
			          <td><strong><?php echo JText::_('K2_ALLVIDEOS_PLUGIN'); ?></strong></td>
			          <td><?php
							if (JFile::exists(JPATH_PLUGINS.DS.'content'.DS.'jw_allvideos.php') || JFile::exists(JPATH_PLUGINS.DS.'content'.DS.'jw_allvideos'.DS.'jw_allvideos.php'))
								echo JText::_('K2_INSTALLED');
							else
								echo JText::_('K2_NOT_INSTALLED');
						?></td>
			        </tr>
			        <tr>
			          <td><strong><?php echo JText::_('K2_SIMPLE_IMAGE_GALLERY_PRO_PLUGIN'); ?></strong></td>
			          <td><?php
							if (JFile::exists(JPATH_PLUGINS.DS.'content'.DS.'jw_sigpro.php') || JFile::exists(JPATH_PLUGINS.DS.'content'.DS.'jw_sigpro'.DS.'jw_sigpro.php'))
								echo JText::_('K2_INSTALLED');
							else
								echo JText::_('K2_NOT_INSTALLED');
						?></td>
			        </tr>
			      </tbody>
			    </table>
			  </fieldset>
			</td>
		</tr>
	</table>
</form>
