Bug fixes and consolidation of various thumbnail and resize functionality Changed resize/rotate extensions to use replace image event Added content-disposition header to image responses to provide a human-friendly filename when saving Added more bulk thumbnail regeneration tools Tweaks to bulk actions to correct totals when batching items
		
			
				
	
	
		
			67 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| class ETTheme extends Themelet
 | |
| {
 | |
|     /*
 | |
|      * Create a page showing info
 | |
|      *
 | |
|      * $info = an array of ($name => $value)
 | |
|      */
 | |
|     public function display_info_page($info)
 | |
|     {
 | |
|         global $page;
 | |
| 
 | |
|         $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)));
 | |
|     }
 | |
| 
 | |
|     protected function build_data_form($info)
 | |
|     {
 | |
|         $data = <<<EOD
 | |
| Optional:
 | |
| Site title: {$info['site_title']}
 | |
| Theme: {$info['site_theme']}
 | |
| Genre: [describe your site here]
 | |
| URL: {$info['site_url']}
 | |
| 
 | |
| System stats:
 | |
| Shimmie: {$info['sys_shimmie']}
 | |
| Schema: {$info['sys_schema']}
 | |
| PHP: {$info['sys_php']}
 | |
| OS: {$info['sys_os']}
 | |
| Database: {$info['sys_db']}
 | |
| Server: {$info['sys_server']}
 | |
| Disk use: {$info['sys_disk']}
 | |
| 
 | |
| Thumbnail Generation:
 | |
| Engine: {$info['thumb_engine']}
 | |
| Type: {$info['thumb_type']}
 | |
| Memory: {$info['thumb_mem']}
 | |
| Quality: {$info['thumb_quality']}
 | |
| Width: {$info['thumb_width']}
 | |
| Height: {$info['thumb_height']}
 | |
| Scaling: {$info['thumb_scaling']}
 | |
| 
 | |
| Shimmie stats:
 | |
| Images: {$info['stat_images']}
 | |
| Comments: {$info['stat_comments']}
 | |
| Users: {$info['stat_users']}
 | |
| Tags: {$info['stat_tags']}
 | |
| Applications: {$info['stat_image_tags']}
 | |
| Extensions: {$info['sys_extensions']}
 | |
| EOD;
 | |
|         $html = <<<EOD
 | |
| <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
 | |
| 	of web servers / databases / etc I need to support.
 | |
| </form>
 | |
| EOD;
 | |
|         return $html;
 | |
|     }
 | |
| }
 |