init
This commit is contained in:
63
vendor/yiisoft/yii2/requirements/views/web/css.php
vendored
Normal file
63
vendor/yiisoft/yii2/requirements/views/web/css.php
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
<style type="text/css">
|
||||
*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
:before,:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}
|
||||
header,main,footer{display:block}
|
||||
a{background-color:transparent;color:#337ab7;text-decoration:none}
|
||||
a:hover,a:focus{color:#23527c;text-decoration:underline}
|
||||
a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
a:active,a:hover{outline:0}
|
||||
abbr[title]{border-bottom:1px dotted}
|
||||
abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #777}
|
||||
strong{font-weight:700}
|
||||
h1{font-size:36px;margin:.67em 0}
|
||||
h3{font-size:24px}
|
||||
h1,h3{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}
|
||||
h1,h3{margin-top:20px;margin-bottom:10px}
|
||||
hr{box-sizing:content-box;height:0;margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
code{font-family:Menlo,Monaco,Consolas,"Courier New",monospace;padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}
|
||||
table{border-collapse:collapse;border-spacing:0}
|
||||
td,th{padding:0}
|
||||
p{margin:0 0 10px}
|
||||
.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
table{background-color:transparent}
|
||||
th{text-align:left}
|
||||
.table{width:100%;max-width:100%;margin-bottom:20px}
|
||||
.table>tbody>tr>th,.table>tbody>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}
|
||||
.table>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}
|
||||
.table>tr:first-child>th,.table>tr:first-child>td{border-top:0}
|
||||
.table>tbody+tbody{border-top:2px solid #ddd}
|
||||
.table .table{background-color:#fff}
|
||||
.table-bordered{border:1px solid #ddd}
|
||||
.table-bordered>tbody>tr>th,.table-bordered>tbody>tr>td{border:1px solid #ddd}
|
||||
.table-bordered>tr>th,.table-bordered>tr>td{border-bottom-width:2px}
|
||||
table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}
|
||||
.table tr>td.active,.table tr>th.active,.table tr.active>td,.table tr.active>th{background-color:#f5f5f5;border-color:#e8e8e8}
|
||||
.table tr>td.success,.table tr>th.success,.table tr.success>td,.table tr.success>th{background-color:#dff0d8;border-color:#d6e9c6}
|
||||
.table tr>td.info,.table tr>th.info,.table tr.info>td,.table tr.info>th{background-color:#d9edf7;border-color:#c4ebf3}
|
||||
.table tr>td.warning,.table tr>th.warning,.table tr.warning>td,.table tr.warning>th{background-color:#fcf8e3;border-color:#faebcc}
|
||||
.table tr>td.danger,.table tr>th.danger,.table tr.danger>td,.table tr.danger>th{background-color:#f2dede;border-color:#ebccd1}
|
||||
.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}
|
||||
.alert>p{margin-bottom:0}.alert>p+p{margin-top:5px}
|
||||
.alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}
|
||||
.alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}
|
||||
.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}
|
||||
.alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442}
|
||||
@media (min-width:768px){.container{width:750px}}
|
||||
@media (min-width:992px){.container{width:970px}}
|
||||
@media (min-width:1200px){.container{width:1170px}}
|
||||
@media print{
|
||||
*,:before,:after{background:transparent!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}
|
||||
a,a:visited{text-decoration:underline}
|
||||
a[href]:after{content:" (" attr(href) ")"}
|
||||
abbr[title]:after{content:" (" attr(title) ")"}
|
||||
a[href^="#"]:after,a[href^="javascript:"]:after{content:""}
|
||||
tr{page-break-inside:avoid}
|
||||
p,h3{orphans:3;widows:3}
|
||||
h3{page-break-after:avoid}
|
||||
.table{border-collapse:collapse!important}
|
||||
.table td,.table th{background-color:#fff!important}
|
||||
.table-bordered th,.table-bordered td{border:1px solid #ddd!important}
|
||||
}
|
||||
</style>
|
||||
77
vendor/yiisoft/yii2/requirements/views/web/index.php
vendored
Normal file
77
vendor/yiisoft/yii2/requirements/views/web/index.php
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/* @var $this YiiRequirementChecker */
|
||||
/* @var $summary array */
|
||||
/* @var $requirements array[] */
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Yii Application Requirement Checker</title>
|
||||
<?php $this->renderViewFile(dirname(__FILE__) . '/css.php'); ?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<h1>Yii Application Requirement Checker</h1>
|
||||
</header>
|
||||
<hr>
|
||||
<main>
|
||||
<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>
|
||||
<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 being 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>
|
||||
|
||||
<h3>Conclusion</h3>
|
||||
<?php if ($summary['errors'] > 0): ?>
|
||||
<div class="alert alert-danger">
|
||||
<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>
|
||||
<?php else: ?>
|
||||
<div class="alert alert-success">
|
||||
<strong>Congratulations! Your server configuration satisfies all requirements.</strong>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<h3>Details</h3>
|
||||
|
||||
<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'] ? 'danger' : 'warning') ?>">
|
||||
<td>
|
||||
<?php echo $requirement['name'] ?>
|
||||
</td>
|
||||
<td>
|
||||
<span class="result"><?php echo $requirement['condition'] ? 'Passed' : ($requirement['mandatory'] ? 'Failed' : 'Warning') ?></span>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $requirement['by'] ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $requirement['memo'] ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</main>
|
||||
<hr>
|
||||
<footer>
|
||||
<p>Server: <?php echo $this->getServerInfo() . ' ' . $this->getNowDate() ?></p>
|
||||
<p>Powered by <a href="http://www.yiiframework.com/" rel="external">Yii Framework</a></p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user