PHP为任意页面设拜访暗码代码PHP分享加密网页隐私页面源码
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><a style="color: black;">详情就点击进入</a></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">运用</span><span style="color: black;">办法</span>,把下面的代码放在你<span style="color: black;">必须</span>加密的页进行调用</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> <?php</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> require_once(MkEncrypt.php);</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> MkEncrypt(123456); </p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ?></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">PHPCopy</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">MkEncrypt(123456);括号里面123456修改成你<span style="color: black;">必须</span>设置的<span style="color: black;">暗码</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">暗码</span>正确<span style="color: black;">才可</span>进去页面,进入后会存下cookies值,下一次登录的时候则不<span style="color: black;">必须</span>再次输入了</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">只要是PHP程序 都是支持这代码的 来实现加密<span style="color: black;">拜访</span>你的加密页面 或<span style="color: black;">文案</span>等等的页面 不<span style="color: black;">保准</span>其他程序<span style="color: black;">能够</span>正常<span style="color: black;">运用</span> 麻烦先测试!</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">php加密演示<span style="color: black;">照片</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">新建一个MkEncrypt.php 文件在根目录下<span style="color: black;">或</span>同级目录下</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><?php</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">/********************************************</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">* <span style="color: black;">运用</span><span style="color: black;">办法</span>:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">*</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">* 1、将本段代码<span style="color: black;">保留</span>为 MkEncrypt.php</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">*</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">* 2、在要加密的页面前面引入这个 php 文件</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">* require_once(MkEncrypt.php);</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">*</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">* 3、设置页面<span style="color: black;">拜访</span><span style="color: black;">暗码</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">* MkEncrypt(页面<span style="color: black;">暗码</span>);</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">*</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">********************************************/</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">// <span style="color: black;">暗码</span> Cookie 加密盐</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">if(!defined(MK_ENCRYPT_SALT))</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">define(MK_ENCRYPT_SALT, Kgs$JC!V);</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">/**</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">* 设置<span style="color: black;">拜访</span><span style="color: black;">暗码</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">*</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">* @param $password <span style="color: black;">拜访</span><span style="color: black;">暗码</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">* @param $pageid 页面<span style="color: black;">独一</span> ID 值,用于区分同一网站的<span style="color: black;">区别</span>加密页面</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">*/</p>
论坛的成果是显著的,但我们不能因为成绩而沾沾自喜。 你的话深深触动了我,仿佛说出了我心里的声音。 论坛是一个舞台,让我们在这里尽情的释放自己。
页:
[1]