2007-06-30 01:19:11 +00:00
|
|
|
<?php
|
|
|
|
|
2019-05-28 16:59:38 +00:00
|
|
|
class ETTheme extends Themelet
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Create a page showing info
|
|
|
|
*
|
|
|
|
* $info = an array of ($name => $value)
|
|
|
|
*/
|
|
|
|
public function display_info_page($info)
|
|
|
|
{
|
|
|
|
global $page;
|
2012-01-27 16:52:12 +00:00
|
|
|
|
2019-05-28 16:59:38 +00:00
|
|
|
$page->set_title("System Info");
|
|
|
|
$page->set_heading("System Info");
|
|
|
|
$page->add_block(new NavBlock());
|
|
|
|
$page->add_block(new Block("Information:", $this->build_data_form($info)));
|
|
|
|
}
|
2009-01-04 19:18:37 +00:00
|
|
|
|
2019-05-28 16:59:38 +00:00
|
|
|
protected function build_data_form($info)
|
|
|
|
{
|
|
|
|
$data = <<<EOD
|
2007-06-30 01:19:11 +00:00
|
|
|
Optional:
|
|
|
|
Site title: {$info['site_title']}
|
|
|
|
Theme: {$info['site_theme']}
|
2009-07-20 03:27:21 +00:00
|
|
|
Genre: [describe your site here]
|
2007-06-30 01:19:11 +00:00
|
|
|
URL: {$info['site_url']}
|
|
|
|
|
|
|
|
System stats:
|
|
|
|
Shimmie: {$info['sys_shimmie']}
|
2007-09-18 09:21:58 +00:00
|
|
|
Schema: {$info['sys_schema']}
|
2007-06-30 01:19:11 +00:00
|
|
|
PHP: {$info['sys_php']}
|
|
|
|
OS: {$info['sys_os']}
|
2012-02-04 15:55:37 +00:00
|
|
|
Database: {$info['sys_db']}
|
2007-06-30 01:19:11 +00:00
|
|
|
Server: {$info['sys_server']}
|
2009-07-20 03:27:21 +00:00
|
|
|
Disk use: {$info['sys_disk']}
|
2007-06-30 01:19:11 +00:00
|
|
|
|
2012-04-09 21:11:03 +00:00
|
|
|
Thumbnail Generation:
|
|
|
|
Engine: {$info['thumb_engine']}
|
2019-06-09 18:22:48 +00:00
|
|
|
Type: {$info['thumb_type']}
|
2012-04-09 21:11:03 +00:00
|
|
|
Memory: {$info['thumb_mem']}
|
|
|
|
Quality: {$info['thumb_quality']}
|
|
|
|
Width: {$info['thumb_width']}
|
|
|
|
Height: {$info['thumb_height']}
|
2019-06-06 01:09:03 +00:00
|
|
|
Scaling: {$info['thumb_scaling']}
|
2012-04-09 21:11:03 +00:00
|
|
|
|
2007-06-30 01:19:11 +00:00
|
|
|
Shimmie stats:
|
|
|
|
Images: {$info['stat_images']}
|
|
|
|
Comments: {$info['stat_comments']}
|
|
|
|
Users: {$info['stat_users']}
|
|
|
|
Tags: {$info['stat_tags']}
|
2007-07-05 21:30:37 +00:00
|
|
|
Applications: {$info['stat_image_tags']}
|
2009-07-20 03:27:21 +00:00
|
|
|
Extensions: {$info['sys_extensions']}
|
2007-06-30 01:19:11 +00:00
|
|
|
EOD;
|
2019-05-28 16:59:38 +00:00
|
|
|
$html = <<<EOD
|
2007-06-30 01:19:11 +00:00
|
|
|
<form action='http://shimmie.shishnet.org/register.php' method='POST'>
|
|
|
|
<input type='hidden' name='registration_api' value='1'>
|
|
|
|
<textarea name='data' rows='20' cols='80'>$data</textarea>
|
|
|
|
<br><input type='submit' value='Click to send to Shish'>
|
|
|
|
<br>Your stats are useful so that I know which combinations
|
2009-01-04 17:38:23 +00:00
|
|
|
of web servers / databases / etc I need to support.
|
2007-06-30 01:19:11 +00:00
|
|
|
</form>
|
|
|
|
EOD;
|
2019-05-28 16:59:38 +00:00
|
|
|
return $html;
|
|
|
|
}
|
2007-06-30 01:19:11 +00:00
|
|
|
}
|