<?php  
    header
("Content-type: text/html; charset=utf-8");
    if (isset(
$_GET['view-source'])) { 
        
show_source(__FILE__); 
        exit(); 
    } 

    include(
'flag.php'); 

    
$smile 1;  

   if (!isset (
$_GET['^_^'])) $smile 0;  
    if (
preg_match ('/\./'$_GET['^_^'])) $smile 0;  
    if (
preg_match ('/%/'$_GET['^_^'])) $smile 0;  
    if (
preg_match ('/[0-9]/'$_GET['^_^'])) $smile 0;  
    if (
preg_match ('/http/'$_GET['^_^']) ) $smile 0;  
    if (
preg_match ('/https/'$_GET['^_^']) ) $smile 0;  
    if (
preg_match ('/ftp/'$_GET['^_^'])) $smile 0;  
    if (
preg_match ('/telnet/'$_GET['^_^'])) $smile 0;  
    if (
preg_match ('/_/'$_SERVER['QUERY_STRING'])) $smile 0
    if (
$smile) { 
        if (@
file_exists ($_GET['^_^'])) $smile 0;  
    }  
    if (
$smile) { 
        
$smile = @file_get_contents ($_GET['^_^']);  
        if (
$smile === "(●'◡'●)") die($flag);  
    }  
?>  
<!doctype html> 
<html lang="en"> 

<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<title>Show me your smile :)</title> 
<link rel="stylesheet" href="style.css"> 
</head> 

<body> 
<br><br><br><br><br><br><br> 
<div class="loginform cf"> 
    <form name="login" action="index.php" method="POST" accept-charset="utf-8"> 
        <ul> 
            <li> 
                <label for="SMILE">请使用微笑过关<a href="?view-source">源代码</a></label> 
                <input type="text" name="T_T" placeholder="where is your smile" required> 
            </li> 
            <li><input type="submit" value="Show"> </li> 
        </ul> 
    </form> 
</div> 
<div style="text-align:center;clear:both"> 
</div> 
</body> 

</html>