mirror of
				https://github.com/brmlab/brmbiolab_sklad.git
				synced 2025-10-30 23:14:01 +01:00 
			
		
		
		
	Initial commit
This commit is contained in:
		
						commit
						3b93da31de
					
				
					 1004 changed files with 265840 additions and 0 deletions
				
			
		
							
								
								
									
										31
									
								
								lib/Cake/Test/test_app/View/Pages/extract.ctp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								lib/Cake/Test/test_app/View/Pages/extract.ctp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,31 @@ | |||
| <?php | ||||
| $count = 10; | ||||
| $messages = array('count' => 10); | ||||
| 
 | ||||
| // Plural | ||||
| echo __n('You have %d new message.', 'You have %d new messages.', $count); | ||||
| echo __n('You deleted %d message.', 'You deleted %d messages.', $messages['count']); | ||||
| 
 | ||||
| // Domain Plural | ||||
| echo __dn('domain', 'You have %d new message (domain).', 'You have %d new messages (domain).', '10'); | ||||
| echo __dn('domain', 'You deleted %d message (domain).', 'You deleted %d messages (domain).', $messages['count']); | ||||
| 
 | ||||
| // Duplicated Message | ||||
| echo __('Editing this Page'); | ||||
| echo __('You have %d new message.'); | ||||
| 
 | ||||
| // Contains quotes | ||||
| echo __('double "quoted"'); | ||||
| echo __("single 'quoted'"); | ||||
| 
 | ||||
| // Multiline | ||||
| __('Hot features!' | ||||
| 	. "\n - No Configuration:" | ||||
| 		. ' Set-up the database and let the magic begin' | ||||
| 	. "\n - Extremely Simple:" | ||||
| 		. ' Just look at the name...It\'s Cake' | ||||
| 	. "\n - Active, Friendly Community:" | ||||
| 		. ' Join us #cakephp on IRC. We\'d love to help you get started'); | ||||
| 
 | ||||
| // Category | ||||
| echo __c('You have a new message (category: LC_TIME).', 5); | ||||
							
								
								
									
										72
									
								
								lib/Cake/Test/test_app/View/Pages/home.ctp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										72
									
								
								lib/Cake/Test/test_app/View/Pages/home.ctp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,72 @@ | |||
| <p> | ||||
| 	<?php | ||||
| 		if (is_writable(TMP)): | ||||
| 			echo '<span class="notice success">'; | ||||
| 				echo __d('cake_dev', 'Your tmp directory is writable.'); | ||||
| 			echo '</span>'; | ||||
| 		else: | ||||
| 			echo '<span class="notice">'; | ||||
| 				echo __d('cake_dev', 'Your tmp directory is NOT writable.'); | ||||
| 			echo '</span>'; | ||||
| 		endif; | ||||
| 	?> | ||||
| </p> | ||||
| <p> | ||||
| 	<?php | ||||
| 		$settings = Cache::settings(); | ||||
| 		if (!empty($settings)): | ||||
| 			echo '<span class="notice success">'; | ||||
| 				echo __d('cake_dev', 'The %s is being used for caching. To change the config edit APP/config/core.php ', '<em>'. $settings['engine'] . 'Engine</em>'); | ||||
| 			echo '</span>'; | ||||
| 		else: | ||||
| 			echo '<span class="notice">'; | ||||
| 				echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/config/core.php'); | ||||
| 			echo '</span>'; | ||||
| 		endif; | ||||
| 	?> | ||||
| </p> | ||||
| <p> | ||||
| 	<?php | ||||
| 		$filePresent = null; | ||||
| 		if (file_exists(APP . 'Config' . DS . 'database.php')): | ||||
| 			echo '<span class="notice success">'; | ||||
| 				echo __d('cake_dev', 'Your database configuration file is present.'); | ||||
| 				$filePresent = true; | ||||
| 			echo '</span>'; | ||||
| 		else: | ||||
| 			echo '<span class="notice">'; | ||||
| 				echo __d('cake_dev', 'Your database configuration file is NOT present.'); | ||||
| 				echo '<br/>'; | ||||
| 				echo __d('cake_dev', 'Rename config/database.php.default to config/database.php'); | ||||
| 			echo '</span>'; | ||||
| 		endif; | ||||
| 	?> | ||||
| </p> | ||||
| <?php | ||||
| if (isset($filePresent)): | ||||
| 	App::uses('ConnectionManager', 'Model'); | ||||
| 	try { | ||||
| 		$connected = ConnectionManager::getDataSource('default'); | ||||
| 	} catch (Exception $e) { | ||||
| 		$connected = false; | ||||
| 	} | ||||
| ?> | ||||
| <p> | ||||
| 	<?php | ||||
| 		if ($connected && $connected->isConnected()): | ||||
| 			echo '<span class="notice success">'; | ||||
| 				echo __d('cake_dev', 'Cake is able to connect to the database.'); | ||||
| 			echo '</span>'; | ||||
| 		else: | ||||
| 			echo '<span class="notice">'; | ||||
| 				echo __d('cake_dev', 'Cake is NOT able to connect to the database.'); | ||||
| 			echo '</span>'; | ||||
| 		endif; | ||||
| 	?> | ||||
| </p> | ||||
| <?php endif; ?> | ||||
| <h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3> | ||||
| <?php | ||||
| echo __d('cake_dev', 'To change the content of this page, create: APP/views/pages/home.ctp.<br /> | ||||
| To change its layout, create: APP/views/layouts/default.ctp.<br /> | ||||
| You can also add some CSS styles for your pages at: APP/webroot/css.'); | ||||
							
								
								
									
										2
									
								
								lib/Cake/Test/test_app/View/Pages/page.home.ctp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								lib/Cake/Test/test_app/View/Pages/page.home.ctp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,2 @@ | |||
| Empty page with a dot in the filename. | ||||
| Used to test plugin.view and missing plugins. | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 mareksebera
						mareksebera