You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					82 lines
				
				2.7 KiB
			
		
		
			
		
	
	
					82 lines
				
				2.7 KiB
			| 
											13 years ago
										 | <?php
 | ||
|  | /* @var $this YiiRequirementChecker */
 | ||
|  | /* @var $summary array */
 | ||
|  | /* @var $requirements array[] */
 | ||
|  | ?>
 | ||
| 
											13 years ago
										 | <!DOCTYPE html>
 | ||
|  | <html lang="en">
 | ||
| 
											13 years ago
										 | <head>
 | ||
| 
											13 years ago
										 | 	<meta charset="utf-8"/>
 | ||
|  | 	<title>Yii Application Requirement Checker</title>
 | ||
| 
											13 years ago
										 | 	<?php $this->renderViewFile(dirname(__FILE__) . '/css.php'); ?>
 | ||
| 
											13 years ago
										 | </head>
 | ||
|  | <body>
 | ||
| 
											13 years ago
										 | <div class="container">
 | ||
|  | 	<div class="header">
 | ||
|  | 		<h1>Yii Application Requirement Checker</h1>
 | ||
|  | 	</div>
 | ||
|  | 	<hr>
 | ||
| 
											13 years ago
										 | 
 | ||
| 
											13 years ago
										 | 	<div class="content">
 | ||
|  | 		<h3>Description</h3>
 | ||
|  | 		<p>
 | ||
|  | 		This script checks if your server configuration meets the requirements
 | ||
|  | 		for running Yii application.
 | ||
|  | 		It checks if the server is running the right version of PHP,
 | ||
|  | 		if appropriate PHP extensions have been loaded, and if php.ini file settings are correct.
 | ||
|  | 		</p>
 | ||
| 
											13 years ago
										 | 		<p>
 | ||
|  | 		There are two kinds of requirements being checked. Mandatory requirements are those that have to be met
 | ||
|  | 		to allow Yii to work as expected. There are also some optional requirements beeing checked which will
 | ||
|  | 		show you a warning when they do not meet. You can use Yii framework without them but some specific
 | ||
|  | 		functionality may be not available in this case.
 | ||
|  | 		</p>
 | ||
| 
											13 years ago
										 | 
 | ||
| 
											13 years ago
										 | 		<h3>Conclusion</h3>
 | ||
| 
											13 years ago
										 | 		<?php if ($summary['errors'] > 0): ?>
 | ||
|  | 			<div class="alert alert-error">
 | ||
|  | 				<strong>Unfortunately your server configuration does not satisfy the requirements by this application.<br>Please refer to the table below for detailed explanation.</strong>
 | ||
|  | 			</div>
 | ||
|  | 		<?php elseif ($summary['warnings'] > 0): ?>
 | ||
|  | 			<div class="alert alert-info">
 | ||
|  | 				<strong>Your server configuration satisfies the minimum requirements by this application.<br>Please pay attention to the warnings listed below and check if your application will use the corresponding features.</strong>
 | ||
|  | 			</div>
 | ||
| 
											13 years ago
										 | 		<?php else: ?>
 | ||
| 
											13 years ago
										 | 			<div class="alert alert-success">
 | ||
|  | 				<strong>Congratulations! Your server configuration satisfies all requirements.</strong>
 | ||
|  | 			</div>
 | ||
| 
											13 years ago
										 | 		<?php endif; ?>
 | ||
| 
											13 years ago
										 | 
 | ||
| 
											13 years ago
										 | 		<h3>Details</h3>
 | ||
| 
											13 years ago
										 | 
 | ||
| 
											13 years ago
										 | 		<table class="table table-bordered">
 | ||
|  | 			<tr><th>Name</th><th>Result</th><th>Required By</th><th>Memo</th></tr>
 | ||
|  | 			<?php foreach($requirements as $requirement): ?>
 | ||
|  | 			<tr class="<?php echo $requirement['condition'] ? 'success' : ($requirement['mandatory'] ? 'error' : 'warning'); ?>">
 | ||
|  | 				<td>
 | ||
|  | 				<?php echo $requirement['name']; ?>
 | ||
|  | 				</td>
 | ||
|  | 				<td >
 | ||
|  | 				<?php echo $requirement['condition'] ? 'Passed' : ($requirement['mandatory'] ? 'Failed' : 'Warning'); ?>
 | ||
|  | 				</td>
 | ||
|  | 				<td>
 | ||
|  | 				<?php echo $requirement['by']; ?>
 | ||
|  | 				</td>
 | ||
|  | 				<td>
 | ||
|  | 				<?php echo $requirement['memo']; ?>
 | ||
|  | 				</td>
 | ||
|  | 			</tr>
 | ||
|  | 			<?php endforeach; ?>
 | ||
|  | 		</table>
 | ||
| 
											13 years ago
										 | 
 | ||
| 
											13 years ago
										 | 	</div>
 | ||
| 
											13 years ago
										 | 
 | ||
| 
											13 years ago
										 | 	<hr>
 | ||
| 
											13 years ago
										 | 
 | ||
| 
											13 years ago
										 | 	<div class="footer">
 | ||
| 
											13 years ago
										 | 		<p>Server: <?php echo $this->getServerInfo() . ' ' . $this->getNowDate(); ?></p>
 | ||
| 
											13 years ago
										 | 		<p>Powered by <a href="http://www.yiiframework.com/" rel="external">Yii Framework</a></p>
 | ||
|  | 	</div>
 | ||
|  | </div>
 | ||
| 
											13 years ago
										 | </body>
 | ||
|  | </html>
 |