Initial commit of the Win Platform module.
This commit is contained in:
parent
a817a09b88
commit
2f2f426816
7
3.0/modules/win_platform/module.info
Normal file
7
3.0/modules/win_platform/module.info
Normal 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"
|
28
3.0/modules/win_platform/views/admin_block_platform.html.php
Normal file
28
3.0/modules/win_platform/views/admin_block_platform.html.php
Normal 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>
|
7
3.1/modules/win_platform/module.info
Normal file
7
3.1/modules/win_platform/module.info
Normal 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"
|
28
3.1/modules/win_platform/views/admin_block_platform.html.php
Normal file
28
3.1/modules/win_platform/views/admin_block_platform.html.php
Normal 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>
|
Reference in New Issue
Block a user