本文整理汇总了PHP中customEncrypt函数的典型用法代码示例。如果您正苦于以下问题:PHP customEncrypt函数的具体用法?PHP customEncrypt怎么用?PHP customEncrypt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了customEncrypt函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: format_email
public static function format_email($info, $format)
{
//set the root
$root = $_SERVER['DOCUMENT_ROOT'] . '/mis.unijos.edu.ng/app_transcript_template';
//grab the template content
$template = file_get_contents($root . '/mail_templates/signup_template.' . $format);
//replace all the tags
$template = ereg_replace('{APPLICANT}', "Applicant", $template);
$template = ereg_replace('{EMAIL}', customEncrypt($info['email']), $template);
$template = ereg_replace('{KEY}', $info['key'], $template);
$template = ereg_replace('{SITEPATH}', 'http://localhost/mis.unijos.edu.ng/app_transcript_template', $template);
//return the html of the template
return $template;
}
示例2: while
$credits = $db->query("SELECT * FROM credits WHERE status='active' ORDER BY credit_id ASC");
$numrows = $db->num_rows($credits);
$passport_path = "documents" . DS . "credit_passports" . DS;
$serial_no = 1;
$numrows;
while ($row = $db->fetch_array($credits)) {
$mail = str_replace("@", "[at]", $row["email"]);
if (empty($numrows)) {
echo '<tr><td colspan="5" align="center">No Information Uploaded for the developer\'s Team</td></tr>';
} else {
echo '<tr>
<td>' . $serial_no . '</td>
<td><div class="thumbnail" style="width: 100px; height: 133px;"><img src="' . $passport_path . $row["passport"] . '" width="100px" height="90px"></div></td>
<td>' . $row["fullname"] . '</td>
<td>' . $mail . '</td>
<td><a href="developer_details.php?id=' . customEncrypt($row["credit_id"]) . '" class="btn">More...</a></td>
</tr>';
$serial_no++;
}
}
?>
<tr><td colspan="5" align="center"><a href="index.php" class="btn btn-info">Back to Home Page</a></td></tr>
</tbody>
</table>
</div>
<!--The Main Content Here Please-->
<?php
include_layout_template("footer.php");
?>
示例3: include_layout_template
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<?php
include_layout_template("left_menu.php");
?>
</div><!--/span-->
<div class="span8">
<div class="hero-unit">
<h4 align="center">Where do you want to go?</h4>
<hr class="line">
<center>
<a class="btn btn-danger" href="payment.php">Pay for New Form</a>
<a class="btn btn-success" href="<?php
echo "apply.php?app_no=" . customEncrypt($application_no);
?>
">Continue Transcript Application</a>
</center>
<hr class="line">
</div>
</div><!--/span-->
</div><!--/row-->
</div><!--/.fluid-container-->
<div id="displayinfo" class="modal hide" tabindex="-1" data-backdrop="static" data-keyboard="false" style="display: none;">
<div class="modal-body ajax_data"></div>
<div class="modal-footer">
<a href="#" class="btn" id="close">Close</a>
</div>
</div>
<!--The Main Content Here Please-->
示例4: mkdir
//html PNG location prefix
$PNG_WEB_DIR = 'inc/qrcode/temp/';
include "inc/qrcode/qrlib.php";
//ofcourse we need rights to create temp dir
if (!file_exists($PNG_TEMP_DIR)) {
mkdir($PNG_TEMP_DIR);
}
$filename = $PNG_TEMP_DIR . 'test.png';
$errorCorrectionLevel = 'H';
$matrixPointSize = 4;
// $naira = ₦
// remove before going live
//$server = 'http://196.220.226.128';
$stud_id = $session->applicant_id;
//$url = $server."/app_form_template/ajiya.php?ajiya=".customEncrypt($programmedetails['form_id']);
$url = $_SERVER['DOCUMENT_ROOT'] . "/app_form_template/ajiya.php?ajiya=" . customEncrypt($programmedetails['form_id']);
//$data = $url;
$data .= $programmedetails['surname'] . ' ' . $programmedetails['first_name'] . ' ' . $programmedetails['middle_name'];
$data .= ' ' . $paymentdetails['pin'] . $paymentdetails['amount'];
// user data
$filename = $PNG_TEMP_DIR . 'test' . md5($_REQUEST['data'] . '|' . $errorCorrectionLevel . '|' . $matrixPointSize . '|' . $programmedetails['form_id']) . '.png';
QRcode::png($data, $filename, $errorCorrectionLevel, $matrixPointSize, 2);
$imgqrcode = '<img src="' . $PNG_WEB_DIR . basename($filename) . '" />';
// Transactions amount
$trans = 100;
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>University of Jos, Nigeria</title>
示例5: customEncrypt
</tr>
</thead>
<tbody>';
}
echo '<form action="view_applicant_notification.php" method="POST">
<tr>
<td>' . $serialno . '</td>
<td>' . $row["surname"], $row["first_name"], $row["middle_name"] . '</td>
<td>' . $row["title"] . '</td>
<td>' . $row["notification_date"] . '</td>
<td>' . $row["notification_time"] . '</td>
<td><button type="submit" class="btn btn-info" name="read_notification">View Message</button></td>
</tr>
<input type="hidden" name="nid" value="' . customEncrypt($row["notification_id"]) . '" />
<input type="hidden" name="from" value="' . customEncrypt($file) . '" />
</form>';
if ($serialno % $max == 0) {
echo '</tbody>';
echo '</table>';
echo '</div>';
$pagecounter++;
} elseif ($serialno == $number_of_notifications) {
echo '</tbody>';
echo '</table>';
echo '</div>';
}
$serialno++;
}
echo '</div>
</div>';
示例6: customEncrypt
$icon = '<i class="icon-user"></i>';
break;
default:
$icon = '<i class="icon-user"></i>';
break;
}
?>
<p align="justify" >
<span class=""><?php
//echo $icon;
?>
</span>
<a href="all_news.php?id=<?php
echo customEncrypt($item->id);
?>
">
<h4 style ="color:#006699;"> <?php
echo $item->title;
?>
</h4>
<strong> <?php
echo $item->display_line;
?>
</strong><br>
</a>
<?php
if (strlen($item->content) >= 200) {
echo substr($item->content, 0, 200) . '...';
} else {
示例7: customEncrypt
$matrixPointSize = 4;
// if (isset($_REQUEST['size']))
// $matrixPointSize = min(max((int)$_REQUEST['size'], 1), 10);
// if (isset($_REQUEST['data'])) {
//it's very important!
// if (trim($_REQUEST['data']) == '')
// die('data cannot be empty! <a href="?">back</a>');
// $programmedetails['form_id']; $paymentdetails['pin'];
//$naira = ₦
// server
// $server = $_SERVER['SERVER_ADDR'];
//$server = $_SERVER['SERVER_NAME'];
$server = 'http://196.220.226.128';
$stud_id = $session->applicant_id;
//$url = "localhost/mis.unijos.edu.ng/";
$url = $server . "/mis.unijos.edu.ng/app_form_template/ajiya.php?ajiya=" . customEncrypt($programmedetails['form_id']);
$data = $url;
// $data .= $programmedetails['surname'].' '.$programmedetails['first_name'].' '.$programmedetails['middle_name'];
//$data .= ' '. $paymentdetails['pin'] . $paymentdetails['amount'];
// user data
$filename = $PNG_TEMP_DIR . 'test' . md5($_REQUEST['data'] . '|' . $errorCorrectionLevel . '|' . $matrixPointSize) . '.png';
QRcode::png($data, $filename, $errorCorrectionLevel, $matrixPointSize, 2);
// } else {
// //default data
// echo 'You can provide data in GET parameter: <a href="?data=like_that">like that</a><hr/>';
// QRcode::png('PHP QR Code :)', $filename, $errorCorrectionLevel, $matrixPointSize, 2);
// }
//display generated file
$imgqrcode = '<img src="' . $PNG_WEB_DIR . basename($filename) . '" />';
//config form
// echo '<form action="index.php" method="post">
示例8: customEncrypt
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputEmail">Message: </label>
<div class="controls">
<div class="input-prepend">
<textarea class="textarea" style="width: 610px; height: 200px" name="message" id="message"></textarea>
</div>
</div>
</div>
<div class="control-group">
<div class="controls">
<input type="hidden" value="<?php
echo customEncrypt($admin_details->surname . ' ' . $admin_details->othernames);
?>
" id="sender" name="sender" />
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-primary" id="send_mail">Send Mail</button>
</div>
</div>
</form>
</div>
</div>
<!-- //Content -->
示例9: customEncrypt
</thead>';
echo '<tbody>';
}
echo '
<tr>';
// if($role == 1 || $role == 6){
// echo '<td><input type="checkbox" name="applicant_id_'.$serialno.'" value="'.customEncrypt($result['applicant_id']).'"> </td>';
// }
echo '<td>' . $serialno . '</td>
<td>' . $record["student_id"] . '</td>
<td>' . $record["ResponseCode"] . '</td>
<td>' . $record["ResponseDescription"] . '</td>
<td>' . $record["Amount"] . '</td>
<td>' . $record["PaymentReference"] . '</td>
<td>' . $record["Interswitch_date"] . '</td>
<td><a href="view_log.php?q=' . customEncrypt($record["student_id"]) . '" class="btn">View</a></td>
</tr>';
if ($serialno % $max == 0) {
echo '</tbody>';
echo '</table>';
echo '</div>';
$pagecounter++;
} elseif ($serialno == $number_of_records) {
echo '</tbody>';
echo '</table>';
echo '</div>';
}
$serialno++;
}
echo '</div>';
echo '</div>';
示例10: sendRefereeMail
public function sendRefereeMail($applicant_name)
{
//$pop = new POP3();
//$pop->Authorise('mail.unijos.edu.ng', 25, false, 'applicationform@unijos.edu.ng', 'application1234form', 1);
$mail = new PHPMailer();
$mail->IsSMTP();
//$mail->SMTPDebug = 1;
$mail->SMTPAuth = true;
// enable SMTP authentication
$mail->SMTPSecure = "tls";
// sets the prefix to the servier
$mail->Host = "mail.unijos.edu.ng";
// sets GMAIL as the SMTP server
$mail->Port = 25;
$mail->Username = 'applicationform@unijos.edu.ng';
$mail->Password = 'application1234form';
$mail->SetFrom('applicationform@unijos.edu.ng', 'University Of Jos');
$mail->AddReplyTo('applicationform@unijos.edu.ng', 'University of Jos');
$mail->Subject = 'Referee Notification';
$verification_link = 'http://' . $_SERVER['HTTP_HOST'] . '/app_form_template/referee.php?' . md5('id') . '=' . customEncrypt($this->referees_id);
$MSG = '
<style type="text/css">
.codrops-top{
line-height: 55px;
font-size: 30px;
/*background: rgba(255, 255, 255, 0.4);*/
background:#069;
/*text-transform: uppercase;*/
z-index: 9999;
position: relative;
box-shadow: 1px 0px 2px rgba(0,0,0,0.2);
}
.codrops-top span.left{
float: left;
margin-top:10px;
margin-left: 20px;
}
.codrops-top span.nxt{
float: center;
margin-top:10px;
/*margin-left: 20px;*/
}
.codrops-top span.right{
float: center;
}
.message
{
width:600px;
min-height:500px;
padding:10px;
margin-top:10px;
margin:auto;
text-align:justify;
font-size:16px;
}
.verify_link{
margin:auto;
text-align:center;
}
.verify_link a
{
margin:auto;
text-decoration:none;
color:blue;
font-weight:bold;
font-size:24px;
}
.verify_link a:hover
{
color:#f00;
border-bottom:1px solid #f00;
}
</style>
<div class="codrops-top">
<span class="left"><img src="http://mis.unijos.edu.ng/images/logo.png" width="80" height="90" alt="University of Jos Logo"></span>
<span class="right"><center><font color="#FFFFFF">UNIVERSITY OF JOS - NIGERIA</font></center></span>
<div class="nxt"><center><font color="#FFFFFF">Corporate Information System (CIS)</font></center></div>
<div class="clr"></div>
</div>
<div class="message">
Hi ' . $this->referee_name . ',<br/>
<p>You have been selected as a referee by ' . $applicant_name . '. Please follow the link below to fill in the referee form.</p>
<p>Note: The information will be verified and any false input will jeopardize the candidate\'s chances of getting admission</p>
<p>Use the link below to referee the application</p>
<div class="verify_link"><a href="' . $verification_link . '" >Referee Form</a></div>
</div>';
$mail->MsgHTML($MSG);
$mail->AddAddress($this->referee_email, $this->referee_name);
if (!$mail->Send()) {
return false;
} else {
return true;
}
}
示例11: ucwords
<th>Amount</th>
<th>Status</th>
<th></th>
</tr>
</thead>';
echo '<tbody>';
}
echo '
<tr>';
echo '<td>' . $serialno . '</td>
<td>' . $record["jamb_rem_no"] . '</td>
<td>' . ucwords($record["surname"]) . ' ' . ucwords($record["first_name"]) . ' ' . ucwords($record["middle_name"]) . '</td>
<td>' . $record["department_name"] . '</td>
<td>' . $record["amount"] . '</td>
<td>' . $record["student_status"] . '</td>
<td><a href="view_payment.php?q=' . customEncrypt($record["jamb_rem_no"]) . '" class="btn">View</a></td>
</tr>';
if ($serialno % $max == 0) {
echo '</tbody>';
echo '</table>';
echo '</div>';
$pagecounter++;
} elseif ($serialno == $number_of_records) {
echo '</tbody>';
echo '</table>';
echo '</div>';
}
$serialno++;
}
echo '</div>';
echo '</div>';
示例12: customEncrypt
<textarea class="textarea" id="aboutyou" placeholder="...Detail information about you." name="aboutyou" style="width: 610px; height: 200px" disabled><?php
if (isset($credit->aboutyou)) {
echo $credit->aboutyou;
}
?>
</textarea>
</div>
</div>
</div>
<!--Save Button-->
<div id="accept_terms">
<div class="control-group">
<div class="controls">
<a href="credit.php?id=<?php
echo customEncrypt($credit->credit_id);
?>
" class="btn btn-default" name="back" id="back">Back</a>
</div>
</div>
</div>
<!-- End of Save Button-->
</form>
</div>
<!--The Main Content Here Please-->
<?php
include_layout_template("footer.php");
?>
</body>
</html>
示例13: customEncrypt
<tr class="rowlink">
<td>Amount</td>
<td><?php
echo "₦" . $amount;
?>
</td>
</tr>
</tbody>
</table>
<center>
<a href='<?php
echo "apply.php?app_no=" . customEncrypt($application_no);
?>
' class='btn btn-success'>CONTINUE WITH APPLICATION</a>
<a href='<?php
echo "invoice.php?tranx_no=" . customEncrypt($orderId);
?>
' class='btn btn-primary'>CLICK HERE TO PRINT YOUR INVOICE</a>
</center>
<img src='images/logo.png' class='imgg'>
<?php
} else {
?>
<h4><p class="label label-info">Payment Failed</p></h4>
<table class="table table-hover table-striped table-bordered">
<tbody data-provides="rowlink">
<tr class="rowlink">
<td>The Payment with Transaction ID: </td>
<td><?php
$msg = $transctiondetails['orderId'];
echo output_message($msg);
示例14: customEncrypt
</div>
</div>
</div>
<div class="control-group">
<textarea class="textarea" name="content" id="content" style="width: 610px; height: 120px"><?php
if (isset($requirement->content)) {
echo $requirement->content;
}
?>
</textarea>
</div>
<div class="control-group">
<input type="hidden" name="rid" value="<?php
echo customEncrypt($requirement->id);
?>
">
<button type="submit" class="btn btn-primary" name="update_requirements" id="update_requirements">Update Admission Requirements</button>
</div>
</form>
</div>
</div>
<!-- //Content -->
<?php
include_layout_template("footer.php");
?>
</body>
示例15: date
<td>' . $result["department_name"] . '</td>
<td>' . date('Y-m-d', $result["time_completed_application"]) . '</td>
<td>' . admission_status($result["status"]) . '</td>
<td>
<a href="applicant_details.php?' . md5('applicant_id') . '=' . customEncrypt($result['applicant_id']) . '" class="btn btn-primary">View</a>
</td>
</tr>';
if ($serialno % 10 == 0) {
echo '</tbody>';
echo '</table>';
echo '</div>';
$pagecounter++;
} elseif ($serialno == $number_of_applicants) {
echo '</tbody>';
echo '</table>';
echo '</div>';
}
$serialno++;
}
echo '</div>';
echo '</div>';
echo 'pagenumber=' . $number_of_pages;
echo 'export=' . customEncrypt($sql);
/*<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">›</a>
</div>';*/
} else {
echo '<h4 align="center">No Applicant Found</h4>';
echo 'pagenumber=0';
}