1
0

Initial commit of the Win Platform module.

This commit is contained in:
rWatcher 2011-07-04 13:45:36 -04:00
parent a817a09b88
commit 2f2f426816
4 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,7 @@
name = "Win Platform"
description = "An alternate version of Gallery's admin dashboard platform information block for unsupported configurations."
version = 1
author_name = "rWatcher"
author_url = "http://codex.gallery2.org/User:RWatcher"
info_url = "http://codex.gallery2.org/Gallery3:Modules:win_platform"
discuss_url = "http://gallery.menalto.com/node/102809"

View File

@ -0,0 +1,28 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul>
<li>
<?= t("Host name: %host_name", array("host_name" => php_uname("n"))) ?>
</li>
<li>
<?= t("Operating system: %os %version", array("os" => php_uname("s"), "version" => php_uname("r"))) ?>
</li>
<li>
<?php if (function_exists("apache_get_version")): ?>
<?= t("Apache: %apache_version", array("apache_version" => function_exists("apache_get_version") ? apache_get_version() : t("Unknown"))) ?>
<?php else: ?>
<?= t("Server software: %apache_version", array("apache_version" => getenv("SERVER_SOFTWARE") != "" ? getenv("SERVER_SOFTWARE") : t("Unknown"))) ?>
<?php endif; ?>
</li>
<li>
<?= t("PHP: %php_version", array("php_version" => phpversion())) ?>
</li>
<li>
<?= t("MySQL: %mysql_version", array("mysql_version" => Database::instance()->query("SELECT version() as v")->current()->v)) ?>
</li>
<li>
<?= t("Server load: %load_average", array("load_average" => function_exists("sys_getloadavg") ? sys_getloadavg() : t("Unknown"))) ?>
</li>
<li>
<?= t("Graphics toolkit: %toolkit", array("toolkit" => module::get_var("gallery", "graphics_toolkit"))) ?>
</li>
</ul>

View File

@ -0,0 +1,7 @@
name = "Win Platform"
description = "An alternate version of Gallery's admin dashboard platform information block for unsupported configurations."
version = 1
author_name = "rWatcher"
author_url = "http://codex.gallery2.org/User:RWatcher"
info_url = "http://codex.gallery2.org/Gallery3:Modules:win_platform"
discuss_url = "http://gallery.menalto.com/node/102809"

View File

@ -0,0 +1,28 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul>
<li>
<?= t("Host name: %host_name", array("host_name" => php_uname("n"))) ?>
</li>
<li>
<?= t("Operating system: %os %version", array("os" => php_uname("s"), "version" => php_uname("r"))) ?>
</li>
<li>
<?php if (function_exists("apache_get_version")): ?>
<?= t("Apache: %apache_version", array("apache_version" => function_exists("apache_get_version") ? apache_get_version() : t("Unknown"))) ?>
<?php else: ?>
<?= t("Server software: %apache_version", array("apache_version" => getenv("SERVER_SOFTWARE") != "" ? getenv("SERVER_SOFTWARE") : t("Unknown"))) ?>
<?php endif; ?>
</li>
<li>
<?= t("PHP: %php_version", array("php_version" => phpversion())) ?>
</li>
<li>
<?= t("MySQL: %mysql_version", array("mysql_version" => Database::instance()->query("SELECT version() as v")->current()->v)) ?>
</li>
<li>
<?= t("Server load: %load_average", array("load_average" => function_exists("sys_getloadavg") ? sys_getloadavg() : t("Unknown"))) ?>
</li>
<li>
<?= t("Graphics toolkit: %toolkit", array("toolkit" => module::get_var("gallery", "graphics_toolkit"))) ?>
</li>
</ul>