基本信息
源码名称:php会员卡密系统源码
源码大小:0.01M
文件格式:.zip
开发语言:PHP
更新时间:2018-10-09
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍



生成的卡密如下:



<?php
$dl=$_COOKIE["zh"];
if ($dl=="")
{
 echo "<script>alert('请进行登陆或注册');location='index.html';</script>";
}else{
 
}
$sj=$_POST['sj'];
if($sj=="")
{
echo <<< EOT
<head>
  <meta charset="utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <title>创建卡密</title>
  <link href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
  <script src="//cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
  <script src="//cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<head>
<link rel="shortcut icon" type="image/x-icon" href="http://www.mmajd.com/tu/zhu.ico" media="screen" />
	  <meta charset="utf-8">
	 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	 <title>主页面</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; minimum-scale=1.0; maximum-scale=1.0">

<style>
</style>
 </head>
  <nav class="navbar navbar-fixed-top navbar-default">
 <a class="navbar-brand" href="./">创建卡密</a>
 </nav>
   <div class="container" style="padding-top:70px;">
    <div class="col-xs-12 col-sm-10 col-lg-8 center-block" style="float: none;">
	 <body>
<form action="cjkm.php" method="post"    
enctype="multipart/form-data" class="form-horizontal" role="form">
	<div class="form-group">
 <label class="col-sm-2 control-label">时间天数</label>
	  <div class="col-sm-10"><input type="text" name="sj" value="" class="form-control" maxlength="25"/></div><br/>

<input type="submit" name="submit" value="创建" class="btn btn-primary form-control"/><br/>
	 </div></form></br>

 	 <p style="text-align:center"><br>&copy; Powered by <a href="http://wpa.qq.com/msgrd?v=3&uin=2389256983&site=qq&menu=yes">鹏哥</a></p></div>

</body>
</div>
</div>
EOT;
}else{
function make_password( $length = 10)
{
    // 密码字符集,可任意添加你需要的字符
    $chars = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 
    'i', 'j', 'k', 'l','m', 'n', 'o', 'p', 'q', 'r', 's', 
    't', 'u', 'v', 'w', 'x', 'y','z', 'A', 'B', 'C', 'D', 
    'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L','M', 'N', 'O', 
    'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y','Z', 
    '0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
    $keys = array_rand($chars, $length); 
    $password = '';
    for($i = 0; $i < $length; $i  )
    {
        // 将 $length 个数组元素连接成字符串
        $password .= $chars[$keys[$i]];
    }
    return $password;
}

$km=make_password();
mkdir("km/".$km);
$sjlj="km/".$km.'/a.txt';
file_put_contents($sjlj,$sj);
echo "<script>alert('创建成功,请查看你的卡密!');location='zhu.php';</script>";}


?>