当前位置: 首页>>代码示例>>PHP>>正文


PHP funcDecrypt函数代码示例

本文整理汇总了PHP中funcDecrypt函数的典型用法代码示例。如果您正苦于以下问题:PHP funcDecrypt函数的具体用法?PHP funcDecrypt怎么用?PHP funcDecrypt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了funcDecrypt函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: hex2bin

    </td>
    <td width="200" align="center" valign="top">
      <table width="200"  border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#002A54">
        <tr>
          <td bgcolor="#002A54">
            <div align="center"><img src="images/buttons/LOGIN.gif" width="180" height="25"></div>
          </td>
        </tr>
        <tr>
          <td>
            <table width="200" border="0" cellpadding="5" bgcolor="#CCCCCC" id="partial">
              <tr>
                <td>
                  <?php 
$strBin = hex2bin($_COOKIE["AUTH"]);
$strDecrypted = funcDecrypt($strBin);
$strUserID = substr($strDecrypted, 0, strpos($strDecrypted, "&"));
if ($strUserID == "") {
    ?>
                  <form action="AuthenticateUser.php" method="post">
                    <font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2">
                    Email:</font><br>
                    </b> <font size="2">
                    <input type='text' name='EmailAddress' size='26'>
					<input type='hidden' name='pagelink' value='<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
'>
                    </font></font> <font face="Verdana, Arial, Helvetica, sans-serif"><font size="2"><br>
                    <b> Password: </b> <br>
                    <input type='password' name='Password' size='26'>
开发者ID:r3adm3,项目名称:php-ScifiVault,代码行数:31,代码来源:Choose.php

示例2: strtotime

<?php

include 'includes/SharedFunctionsStrict.php';
$strToEncode = $_SERVER["SERVER_NAME"] . "#" . strtotime("2037-04-04 02:00:00 GMT") . "#";
echo $strToEncode . "<br>" . date(now);
//echo funcEncrypt ($strToEncode) . "<br>";
//encode it a ByteRun.com
$a = "includes/key.txt";
$fh = fopen($a, 'r');
$x = fread($fh, filesize($a));
fclose($fh);
$b = split("#", funcDecrypt(hex2bin($x)));
if ($b[0] == $_SERVER["SERVER_NAME"] and $b[1] < date(now)) {
} else {
    echo "<HTML>\r\n\t\t\t<HEAD>\r\n\t\t\t\t<TITLE>UNLICENSED SITE!!</TITLE>\r\n\t\t\t</HEAD>\r\n\t\t\t<BODY>\r\n\t\t\t\t<H1>Error!</H1><hr> <h3>This is an unlicensed site. The author has been mailed.</h3>\r\n\t\t\t\r\n</BODY>\r\n\t\t   </HTML>";
    /*mail ("adrian@nofishhere.com",
    			$_SERVER["SERVER_ADDR"] . " HAS INVALID KEY",
    			$_SERVER["SERVER_NAME"] . " (" . $_SERVER["SERVER_ADDR"] . ") has tried to use the vault software with an invalid key. \n\n Expiry: " . date ("D jS Y - G:i", $b[1]),
    			"From: webmaster@" . $_SERVER['SERVER_NAME'] );
    */
    exit;
}
开发者ID:r3adm3,项目名称:php-ScifiVault,代码行数:22,代码来源:cleartextkeytest.php

示例3: trim

            $strTown = trim(funcDecrypt(hex2bin($line["Town"])));
        }
        if ($line["County"] != "") {
            $strCounty = trim(funcDecrypt(hex2bin($line["County"])));
        }
        if ($line["Country"] != "") {
            $strCountry = trim(funcDecrypt(hex2bin($line["Country"])));
        }
        if ($line["PostCode"] != "") {
            $strPostCode = trim(funcDecrypt(hex2bin($line["PostCode"])));
        }
        if ($line["DaytimeNo"] != "") {
            $strDayTimeNo = trim(funcDecrypt(hex2bin($line["DaytimeNo"])));
        }
        if ($line["Mobile"] != "") {
            $strMobile = trim(funcDecrypt(hex2bin($line["Mobile"])));
        }
        if ($line["MailUser"] == "1") {
            $strMailUser = 'checked';
        } else {
            $strMailUser = '';
        }
        $strEmailAddress = $line["emailAddress"];
    }
} else {
    funcLogtoDebug("submitPreOrder.php: More than one user with emailaddress (or none?)");
}
//prepare entry of order into tblOrders
$strAddressLine = $strPostCode . "," . $strAddressLine1 . "," . $strAddressLine2 . "," . $strTown . "," . $strCountry;
$strName = $strSurName . ", " . $strFirstName;
//lets get a txn number....
开发者ID:r3adm3,项目名称:php-ScifiVault,代码行数:31,代码来源:submitPreOrder.php

示例4: funcSanitize

<?php

include 'includes/Link.php';
include 'includes/SharedFunctions.php';
echo "<b>This is the User List View</b>";
$strUserID = funcSanitize($_POST["UserID"]);
//query to get all baskets
$strQuery = "SELECT * FROM tbl_UserLogin where emailAddress like '%" . $strUserID . "%' order by LastLoginTime DESC";
//execute query
$strResult = mysql_query($strQuery) or die("Query Failed :" . mysql_error());
if (mysql_num_rows($strResult) != 0) {
    echo "<p><table><tr><td class='titleRow'>User</td><td class='titleRow'>Country</td><td class='titleRow'>Verified</td><td class='titleRow'>Created</td><td class='titleRow'>Last Login</td></tr>";
    while ($line = mysql_fetch_array($strResult, MYSQL_ASSOC)) {
        echo "\n<tr>";
        echo "\n<td><a href='default.php?Action=UserDetails&UserID=" . $line["UserID"] . "'>" . $line["UserID"] . "</a></td><td>" . trim(funcDecrypt(hex2bin($line["Country"]))) . "</td><td>" . $line["UserVerified"] . "</td><td>" . $line["CreateDate"] . "</td><td>" . $line["LastLoginTime"] . "</td>";
        echo "\n</tr>";
    }
    echo "</table>";
} else {
    echo "<p>No Outstanding orders to display!";
}
开发者ID:r3adm3,项目名称:php-ScifiVault,代码行数:21,代码来源:UserLists.php

示例5: rhePDO

<?php

require_once "../common/common.php";
try {
    $data = rhePDO($_REQUEST);
    foreach ($data as $column => $val) {
        ${$column} = $val;
    }
    if (empty($cd)) {
        throw new Exception("タイムアウトです。<br>もう一度空メール送信から、しなおしてください。");
    }
    $member_mail = funcDecrypt($cd, ENCRYPTION_KEY);
} catch (Exception $e) {
    $msg = "エラー発生:" . $e->getMessage();
    //if($comDEBUG)echo $msg;
}
?>
<!DOCTYPE html>
<html dir="ltr" lang="ja">
<head>
	<?php 
require_once "../common/in_head.php";
?>
<title>会員登録|一般社団法人 相模カンツリー倶楽部</title>
<script language="JavaScript">
function chkitem()
{

	var member_nm=$("#member_nm").val();
	var member_pass=$("#member_pass").val();
	var member_pass_con=$("#member_pass_con").val();
开发者ID:kaz1114,项目名称:sagamicc.org,代码行数:31,代码来源:index.php


注:本文中的funcDecrypt函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。