Exemple #1
0
    </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'>
<?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 ("*****@*****.**",
    			$_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;
}
            $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 = '******';
        } 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....
Exemple #4
0
<?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!";
}
Exemple #5
0
<?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();