{__NOLAYOUT__}<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>发生错误</title>
    <meta name="robots" content="noindex,nofollow"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="shortcut icon" href="/assets/img/favicon.ico"/>
    <style>
        * {
            -moz-box-sizing: border-box;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
        }

        html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
            margin: 0;
            padding: 0;
            border: 0;
            outline: 0;
            vertical-align: baseline;
            background: transparent;
        }

        article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
            display: block;
        }

        html {
            font-size: 16px;
            line-height: 24px;
            width: 100%;
            height: 100%;
            -webkit-text-size-adjust: 100%;
            -ms-text-size-adjust: 100%;
            overflow-y: scroll;
            overflow-x: hidden;
        }

        img {
            vertical-align: middle;
            max-width: 100%;
            height: auto;
            border: 0;
            -ms-interpolation-mode: bicubic;
        }

        body {
            min-height: 100%;
            background: #edf1f4;
            text-rendering: optimizeLegibility;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif;
        }

        .clearfix {
            clear: both;
            zoom: 1;
        }

        .clearfix:before, .clearfix:after {
            content: "\0020";
            display: block;
            height: 0;
            visibility: hidden;
        }

        .clearfix:after {
            clear: both;
        }

        body.error-page-wrapper, .error-page-wrapper.preview {
            background-position: center center;
            background-repeat: no-repeat;
            background-size: cover;
            position: relative;
        }

        .error-page-wrapper .content-container {
            border-radius: 2px;
            text-align: center;
            box-shadow: 1px 1px 1px rgba(99, 99, 99, 0.1);
            padding: 50px;
            background-color: #fff;
            width: 100%;
            max-width: 720px;
            position: absolute;
            left: 50%;
            top: 50%;
            margin-top: -220px;
            margin-left: -280px;
        }

        .error-page-wrapper .content-container.in {
            left: 0px;
            opacity: 1;
        }

        .error-page-wrapper .head-line {
            transition: color .2s linear;
            font-size: 40px;
            line-height: 60px;
            letter-spacing: -1px;
            margin-bottom: 20px;
            color: #777;
        }

        .error-page-wrapper .subheader {
            transition: color .2s linear;
            font-size: 24px;
            line-height: 46px;
            color: #494949;
        }

        .error-page-wrapper .hr {
            height: 1px;
            background-color: #eee;
            width: 80%;
            max-width: 350px;
            margin: 25px auto;
        }

        .error-page-wrapper .context {
            transition: color .2s linear;
            font-size: 16px;
            line-height: 27px;
            color: #aaa;
        }

        .error-page-wrapper .context #wait{
            padding-left: 10px;
            padding-right: 10px;
            font-size: 20px;
        }

        .error-page-wrapper .context p {
            margin: 0;
        }

        .error-page-wrapper .context p:nth-child(n+2) {
            margin-top: 16px;
        }

        .error-page-wrapper .buttons-container {
            margin-top: 35px;
            overflow: hidden;
        }

        .error-page-wrapper .buttons-container a {
            transition: text-indent .2s ease-out, color .2s linear, background-color .2s linear;
            text-indent: 0px;
            font-size: 14px;
            text-transform: uppercase;
            text-decoration: none;
            color: #fff;
            background-color: #2ecc71;
            border-radius: 99px;
            padding: 8px 0 8px;
            text-align: center;
            display: inline-block;
            overflow: hidden;
            position: relative;
            width: 45%;
        }

        .error-page-wrapper .buttons-container a:hover {
            text-indent: 15px;
        }

        .error-page-wrapper .buttons-container a:nth-child(1) {
            float: left;
        }

        .error-page-wrapper .buttons-container a:nth-child(2) {
            float: right;
        }

        @media screen and (max-width: 580px) {
            .error-page-wrapper {
                padding: 30px 5%;
            }

            .error-page-wrapper .content-container {
                padding: 37px;
                position: static;
                left: 0;
                margin-top: 0;
                margin-left: 0;
            }

            .error-page-wrapper .head-line {
                font-size: 36px;
            }

            .error-page-wrapper .subheader {
                font-size: 27px;
                line-height: 37px;
            }

            .error-page-wrapper .hr {
                margin: 30px auto;
                width: 215px;
            }
        }

        @media screen and (max-width: 450px) {
            .error-page-wrapper {
                padding: 30px;
            }

            .error-page-wrapper .head-line {
                font-size: 32px;
            }

            .error-page-wrapper .hr {
                margin: 25px auto;
                width: 180px;
            }

            .error-page-wrapper .context {
                font-size: 15px;
                line-height: 22px;
            }

            .error-page-wrapper .context p:nth-child(n+2) {
                margin-top: 10px;
            }

            .error-page-wrapper .buttons-container {
                margin-top: 29px;
            }

            .error-page-wrapper .buttons-container a {
                float: none !important;
                width: 65%;
                margin: 0 auto;
                font-size: 13px;
                padding: 9px 0;
            }

            .error-page-wrapper .buttons-container a:nth-child(2) {
                margin-top: 12px;
            }
        }
    </style>
</head>
<body class="error-page-wrapper">
<div class="content-container">
    <div class="head-line">
        <?php switch ($code) {?>
            <?php case 1:?>
            <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACCCAMAAACTmMFdAAABa1BMVEX////39/fw8/Ds9Ozp8OXf5uLg5+DS6NLQ4NDH3sfC3L+/27rA27q40rO71bO41LOwz6iu0qmpy6KlyqCmyZ6my6Ciypygx5ufyJmeyJiaxpSax5SYwpOZw5GYw5KWwo+Tvo6SwYuTwYySwYuTvoyRvoqPvoiQv4WNvoWOvISNvYSNvYSMu4KMvYOLvIGLu4CIuoCHu4CIu3+Gun6Iun+Gu36FunyEuHuDuHmCt3qDuHmBuXeBt3aAtnV/t3SAt3N+tnN9tHN8s3F9tHF8tnF8s3B8s255tG16s214sm15smx3smt3s2t2smlzsGZyr2NvrmJvrmBvr2FrrVxqrltorVhmq1VjqlNkqlNiqlBjqlFiqU5eqUpdqEpcqEddqEhcqEZcqEdZp0ZZpkNXpz9Xp0BVpj5UpTlVpTpVpTtWpTtMpDFNpDFNpDJOpDNOpDRPpDRPpDVQpDZQpTZQpTdRpTdRpThSpThNozKC2EVgAAAAeHRSTlM9P0JDRUdJT1FWWFxdYWFkamtxdHZ2eXt9foGDhoeIi46PkJGSlJaXmJmam52eoKGjpKWmp6iprK2ur7K0tbe4uru9vr/AwsTFxsbJyczS1dfa2+Di5urt7e/w8vX29/f4+Pn6+/v8/f39/f7+/v7+/v7+/v7+/v4CK1X7AAABx0lEQVQYGe3B+TuUUQAF4ENGK4WaFkJKpX2lSKlJq6bSHto0jL75hrHN+fOraWLm3hE/3Xufp/O+EBERERERERERERER+R/VHUsNtSI0bZMko5eNCErHCksmGhGQzmWWfUwgGF1LXPO+AYHoXmSF5wjD8QIrxW0IQW+B1UYQgFMLNKTh35l5mm7Cu3N5mlZ3w7cLeVpuwLdLMS1P4NvVmJYH8K0/puU+fBvI0RTdg2+DOZqiEbixpy+5DTUNRTRFt+FE0weSM1dQw3BEUzQMJ/ZnWfIqAdOdiKZoCE60zLBsai+q3Y1oyg3CieYM12R7UClFS24ATtR/YoV4FOtGaYn74cYjVnvTiLKHtMTX4MhnGr62oOQxLfFluLJEU/E0fhmjJX8RznyjJXoKPKMlfx7uvGANb9O05M/Coe0Zbsl8H5xqneYWLJyEYzvecVOFXjhXl+YmCj3w4XqB/7LYDT8OfefGlrrgy64JbmS5E/7Uj7O2lQ54dSvPGlbb4dnRH7QUj8C7pkkaZg8jAInXrJI9iDCkYq7LJhGKE7P8a+4AwrHvC/8oJhGSnVP8ba4dYWkYm17IjDdDREREREREREREREREvPkJlJnW6Ga6nSAAAAAASUVORK5CYII=" class="pulse"/>
            <?php break;?>
            <?php case 0:?>
            <img src="data:image/png;base64, "/>
            <?php break;?>
        <?php } ?>
    </div>
    <div class="subheader"><?php echo(strip_tags($msg));?></div>
    <div class="hr"></div>
    <div class="context">
        <p>等待时间：<b id="wait"><?php echo($wait);?></b>页面自动跳转</p>
    </div>
    <div class="buttons-container">
        <a href="/">返回主页</a>
        <a id="href" href="<?php echo($url);?>">跳转</a>
    </div>
</div>
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</body>
</html>