1.6&1.7授权源码:
<?php if (isset($_POST['action'])){ $domain = $_POST['domain']; $type = $_POST['type']; $license = "system=$type|forum=$type|article=$type|obook=$type|pay=$type|wap=$type|waparticle=$type|wapforum=$type|badge=$type|group=$type|space=$type|info=$type|cartoon=$type|quiz=$type|news=$type|product=$type|team=$type|vote=$type|note=$type|link=$type"; $encode = "jnyzn090211"; $md5 = md5($domain.$license.$encode); $array = array(); $array[] = base64_encode($md5); $array[] = base64_encode($domain); $array[] = base64_encode($license); $key = implode("@", $array); }else{ $domain = ""; $type = "FREE"; $key = ""; } ?> <div class="container container-page"> <div class="content"> <h1 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h1> <h3>杰奇授权生成 for 1.6&1.7</h3> <form action="key.php" method="post"> <table> <tr> <td>授权域名:(多个域名用“|”分隔)</td> <td><input type="text" name="domain" value="<?php echo $domain?>" size="60" /></td> </tr> <tr> <td>选择授权模式:</td> <td> <select name="type"> <option value="FREE"<?php if ($type == "FREE"){ ?> selected<?php }?>>免费版</option> <option value="POPULAR"<?php if ($type == "POPULAR"){ ?> selected<?php }?>>普及版</option> <option value="STANDARD"<?php if ($type == "STANDARD"){ ?> selected<?php }?>>标准版</option> <option value="PROFESSION"<?php if ($type == "PROFESSION"){ ?> selected<?php }?>>专业版</option> <option value="ENTERPRISE"<?php if ($type == "ENTERPRISE"){ ?> selected<?php }?>>企业版</option> <option value="DELUXE"<?php if ($type == "DELUXE"){ ?> selected<?php }?>>豪华版</option> <option value="CUSTOM"<?php if ($type == "CUSTOM"){ ?> selected<?php }?>>定制版</option> </select> </td> </tr> <tr> <td>生成授权:</td> <td><textarea class="textarea" name="key" rows="10" cols="60"><?php echo $key?></textarea></td> </tr> <tr> <td><input type="hidden" name="action" value="make" /></td> <td><input type="submit" value="生成" /></td> </tr> </table> </form> </div> </div>
1.8授权源码
<?php if (isset($_POST['action'])){ $domain = $_POST['domain']; $type = $_POST['type']; $license = "system=$type|forum=$type|article=$type|obook=$type|pay=$type|wap=$type|waparticle=$type|wapforum=$type|badge=$type|group=$type|space=$type|info=$type|cartoon=$type|quiz=$type|news=$type|product=$type|team=$type|vote=$type|note=$type|link=$type"; $encode = "jnyzn090211"; $md5 = md5($domain.$license."yscp" . chr(88) . "13" . "top" . "dyxz" . chr(66) . "52DDjc", true); $array = array(); $array[] = base64_encode($md5); $array[] = base64_encode($domain); $array[] = base64_encode($license); $key = implode("@", $array); }else{ $domain = ""; $type = "FREE"; $key = ""; } ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk" /> <title>杰奇授权生成</title> </head> <body> <h3>杰奇授权生成 for 1.8</h3> <form action="key.php" method="post"> <table> <tr> <td>授权域名:(多个域名用“|”分隔)</td> <td><input type="text" name="domain" value="<?php echo $domain?>" size="60" /></td> </tr> <tr> <td>选择授权模式:</td> <td> <select name="type"> <option value="FREE"<?php if ($type == "FREE"){ ?> selected<?php }?>>免费版</option> <option value="POPULAR"<?php if ($type == "POPULAR"){ ?> selected<?php }?>>普及版</option> <option value="STANDARD"<?php if ($type == "STANDARD"){ ?> selected<?php }?>>标准版</option> <option value="PROFESSION"<?php if ($type == "PROFESSION"){ ?> selected<?php }?>>专业版</option> <option value="ENTERPRISE"<?php if ($type == "ENTERPRISE"){ ?> selected<?php }?>>企业版</option> <option value="DELUXE"<?php if ($type == "DELUXE"){ ?> selected<?php }?>>豪华版</option> <option value="CUSTOM"<?php if ($type == "CUSTOM"){ ?> selected<?php }?>>定制版</option> </select> </td> </tr> <tr> <td>生成授权:</td> <td><textarea class="textarea" name="key" rows="10" cols="60"><?php echo $key?></textarea></td> </tr> <tr> <td><input type="hidden" name="action" value="make" /></td> <td><input type="submit" value="生成" /></td> </tr> </table> </form> </body> </html>