<?php header("Content-Type:text/html; charset=UTF-8");
error_reporting(E_ALL & ~E_NOTICE);
$d = $_SERVER['QUERY_STRING'];?>
<?php
$hu   = 'mds';
$mds  = $_POST['mds']?$_POST['mds']:$_GET['mds'];
$mds  = $mds?$mds:"md5";
$typ  = $_POST['Md5Type'];
$mds1 = strtoupper(md5($mds));
$mds2 = strtolower($mds1);
$mds3 = substr($mds1,8,16);
$mds4 = strtolower($mds3);
if($typ == '3'){
	$results  = "加密后的结果：<input type=text class=input size=40 value=".$mds4.">";
}elseif($typ == '1'){
	$results =  "加密后的结果：<input type=text class=input size=40 value=".$mds2.">";
}elseif($typ == '2'){
	$results = "加密后的结果：<input type=text class=input size=40 value=".$mds3.">";
}else{
	$results = "加密后的结果：<input type=text class=input size=40 value=".$mds1.">";
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<title>MD5加密工具 - 站长社站长工具</title>
<meta name="keywords" content="MD5加密工具,站长工具" />
<meta name="description" content="MD5加密工具" />
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet" />
<link type="text/css" href="css/main.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<?php include('topnav.php');?>

<div class="container" style="margin-top: 68px;">
<?php include("main_header.php");?>
	<div class="row" style="margin-top: 28px;">
		<div class="col-md-9">
			<div class="panel panel-tianyu">
				<header class="panel-heading">
					<span class="glyphicon glyphicon-link"></span><strong>MD5加密工具</strong>
				</header>
				<div class="panel-body">
				<div class="box">
    <div id="c">
      <div class="box1" style="text-align:center;"> 
	  <form action="" method="post">
          <span class="info3" > 请输入欲加密的字符串：
            <input name="mds" type="text" id="mds" class="input" size="35" url="true" value="<?php echo $mds;?>"/>
            <input id="md32l" name="Md5Type" value="0" <?php if($typ==0) echo "checked";?> type="radio" /><label for="md32l">32位[大]</label>
      <input id="md32s" name="Md5Type" value="1" <?php if($typ==1) echo "checked";?> type="radio" /><label for="md32s">32位[小]</label>
      <input id="md16l" name="Md5Type" value="2" <?php if($typ==2) echo "checked";?> type="radio" /><label for="md16l">16位[大]</label>
      <input id="md16s" name="Md5Type" value="3" <?php if($typ==3) echo "checked";?> type="radio" /><label for="md16s">16位[小]</label> <input name="btnS" class="but" type="submit" value="加密"  id="sub"/>
          </span>
		  </form>
		  <divs style="text-align:left"><?php echo $results;?></div>         
          <div style="width:100%">
              <div id="detail" class="info1">                     
<div id="result" class="div_whois">
<div class="t" style="display:none" id="seo_result">
</div>
       </div>
              </div>
              <div style="float:right; width:40%; text-align:right; padding-top:9px;">
              </div>
          </div>
      </div>
    </div>
				
				
					
				</div>
			</div>
		</div>
		<div class="col-md-3">
			<div class="panel panel-tianyu">
				<header class="panel-heading">
					<span class="glyphicon glyphicon-wrench"></span>工具介绍
				</header>
				<div class="panel-body">
						<p>MD5加密工具</p>
				</div>
			</div>
		</div>
		<div class="col-md-3">
			<div class="panel panel-tianyu">
				<header class="panel-heading">
					<span class="glyphicon glyphicon-save"></span>下载源码
				</header>
				<div class="panel-body">
						<p>本工具源码提供下载</p>
						<a href="http://www.zzs1.com/code/" class="btn btn-tianyu" target="_blank"><span class="glyphicon glyphicon-save">下载地址</a>
				</div>
			</div>
		</div>
	</div>
</div>
<?php include('footer.php');?>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1361866808579755" charset="utf-8"></script>
</body>
</html>