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


PHP customDecrypt函数代码示例

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


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

示例1: include_layout_template

?>
		<!-- //header -->
		<br>
		<br>

		<!-- Content -->
		<div class="row-fluid">

			<?php 
include_layout_template('admin_menu.php');
?>

			<div class="span9">
				<?php 
if (isset($_POST["uid"])) {
    $user_id = customDecrypt($_POST["uid"]);
    $user = AdminLog::find_by_id($user_id);
    if (isset($user->surname) && isset($user->othernames)) {
        echo '<h5 align="center">Edit ' . $user->surname . ' ' . $user->othernames . '\'s Profile</h5>';
    }
}
?>
				<hr>
				<form action="" method="POST" class="admin_edit_form form-horizontal" >
				  <div class="control-group">
				    <label class="control-label" for="inputSurname">Surname</label>
				    <div class="controls">
				    	<div class="input-prepend">
				      		<span class="add-on"><i class="icon-user"></i></span>
				            <input type="text" id="surname" name="surname" placeholder="Enter surname" value="<?php 
if (isset($user->surname)) {
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:edit_admin_user.php

示例2: print_r

                 echo '<hr>';
             } else {
                 echo '<h4 class="alert alert-error">Error</h4>';
                 echo '<hr>';
                 echo "Failed to insert into registras table.";
                 echo '<hr>';
             }
         } else {
             echo "file not attached";
             print_r($_FILES);
         }
     }
     break;
 case 'del_registra':
     $registra = new Registra();
     $id = customDecrypt($_POST['rid']);
     $registra_details = $registra->find_by_id($id);
     $registra->id = $registra_details->id;
     if (!empty($registra_details) && !empty($_FILES['signature']['name'])) {
         $registra->id = $registra_details->id;
         unlink(SITE_ROOT . DS . 'registra_signatures' . DS . $registra_details->signature_image);
     }
     if ($registra->delete()) {
         echo '<h4 class="alert alert-success">Success</h4>';
         echo '<hr>';
         echo "<p>You have successfully deleted a registra record from registras table</p>";
         echo '<hr>';
     } else {
         echo '<h4 class="alert alert-error">Error</h4>';
         echo '<hr>';
         echo "Failed to deleted a registra record from registras table.";
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:ajax_registra.php

示例3: md5

<?php

require_once "inc/initialize.php";
$md5mail = md5('email');
if (!isset($_GET[$md5mail])) {
    pageredirect('index.php');
} else {
    $encryptedmail = $_GET[$md5mail];
    $decryptedmail = customDecrypt($encryptedmail);
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>University of Jos, Nigeria</title>
<?php 
require_once LIB_PATH . DS . 'css.php';
?>
</head>
<body>
<?php 
include_layout_template("header.php");
?>

<!--The Main Content Here Please-->
<div class="container">
    <div class="span8 offset2 border-radius">     
          <h5 align="center">Reset Password</h5>
    <hr>
    <form class="contact-us resetpassword" action="#" >
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:passwordreset.php

示例4: customDecrypt

<?php

require_once "inc/initialize.php";
if (isset($_GET["tranx_no"]) && !empty($_GET["tranx_no"])) {
    $orderId = customDecrypt($_GET["tranx_no"]);
} else {
    redirect_to('home.php');
}
# Instance of MySQL Database
$database = new MySQLDatabase();
# Instance of Session
$session = new Session();
# User details
$user = User::find_by_id($session->id);
# Set QR Code to writable location, a place for temp generated PNG files
$PNG_TEMP_DIR = 'inc/qrcode/temp/';
# HTML PNG location prefix
$PNG_WEB_DIR = 'inc/qrcode/temp/';
# QR Code Library
include "inc/qrcode/qrlib.php";
# ofcourse we need rights to create temp dir
if (!file_exists($PNG_TEMP_DIR)) {
    mkdir($PNG_TEMP_DIR);
}
# QR Code properties
$errorCorrectionLevel = 'H';
$matrixPointSize = 4;
# Get payment record for an application form
// $sql = "SELECT * FROM `adm_access_code` WHERE `jamb_rem_no`='".$orderId."' AND `reg_num`='".$orderId."'";
$sql = "SELECT * FROM `adm_access_code` WHERE `jamb_rem_no`='" . $orderId . "'";
$payment = AdmAccess::find_by_sql($sql);
开发者ID:Ghaji,项目名称:transcripts,代码行数:31,代码来源:invoice.php

示例5: Requirements

     if ($requirements->save()) {
         echo '<h4 class="alert alert-success">Success</h4>';
         echo '<hr>';
         echo "<p>You have successfully added a new record into requirements table</p>";
         echo '<hr>';
     } else {
         echo '<h4 class="alert alert-error">Error</h4>';
         echo '<hr>';
         echo "Failed to insert into requirements table.";
         echo '<hr>';
     }
     break;
 case 'update_requirements':
     $requirements = new Requirements();
     $requirements->db_fields = array('p_id', 'name', 'content', 'visible');
     $requirements->id = customDecrypt($_POST['rid']);
     $requirements->name = $_POST['title'];
     $requirements->content = $_POST['content'];
     $requirements->p_id = $_POST['p_id'];
     $requirements->visible = $_POST['status'];
     if ($requirements->save()) {
         echo '<h4 class="alert alert-success">Success</h4>';
         echo '<hr>';
         echo "<p>You have successfully updated admission requirements table</p>";
         echo '<hr>';
     } else {
         echo '<h4 class="alert alert-error">Error</h4>';
         echo '<hr>';
         echo "Failed to update admission requirements table.";
         echo '<hr>';
     }
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:ajax_admission_requirements.php

示例6: redirect_to

<?php

require_once "../inc/initialize.php";
//checks if admin user is logged in
if (!$session->is_admin_logged_in()) {
    redirect_to('index.php');
}
if (isset($_POST['rid']) && !empty($_POST['rid'])) {
    $registra = Registra::find_by_id(customDecrypt($_POST['rid']));
    // print_r($registra->full_name);
    // die();
}
?>
<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>University of Jos, Nigeria</title>
		<?php 
require_once LIB_PATH . DS . 'css.php';
?>
	</head>

	<body>

		<!-- beginnning of main content-->
		<!-- header -->
		<?php 
include_layout_template('admin_header.php');
?>
		<!-- //header -->
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:edit_registra.php

示例7: redirect_to

<?php

require_once "inc/initialize.php";
require_once "inc/vendor/autoload.php";
use Carbon\Carbon;
$dt = Carbon::now();
if (!$session->is_logged_in()) {
    redirect_to("index.php");
}
# Instance of Carbon Class with the current time
$date_now = new Carbon('now');
$label = customDecrypt($_GET['feed']);
if ($label) {
    $feed_details = Feedback::find_by_id($label);
}
?>
<!DOCTYPE HTML>
<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>University of Jos, Nigeria - Transcript System</title>
    <?php 
require_once LIB_PATH . DS . 'javascript.php';
require_once LIB_PATH . DS . 'css.php';
?>
    <style type="text/css">
        body {
            padding-top: 60px;
            padding-bottom: 40px;
        }
        .sidebar-nav {
开发者ID:Ghaji,项目名称:transcripts,代码行数:31,代码来源:my_feedbacks_details.php

示例8: customDecrypt

<?php

require_once "../../inc/initialize.php";
$reply_title = 'Re: ' . $_POST['title'];
$reply_message = 'In reply to the message you sent <br>&quot;' . $_POST['message'] . '&quot;<br><br>' . $_POST['replymessage'];
$recipient_id = customDecrypt($_POST['recipient_id']);
$sender_id = 1;
$database = new MYSQLDatabase();
$sendsql = "INSERT INTO applicant_notifications (sender_id, title, content, recipient_id, notification_date, notification_time, status) VALUES(" . $sender_id . ", '" . $reply_title . "', '" . $reply_message . "', " . $recipient_id . ", '" . date('Y-m-d') . "', '" . date('H:i') . "', 1)";
$result = $database->query($sendsql);
if ($result) {
    echo '<h4 class="alert alert-success">Success</h4>';
    echo '<hr>';
    echo "Your reply has been sent.";
    echo '<hr>';
} else {
    echo '<h4 class="alert alert-danger">Error</h4>';
    echo '<hr>';
    echo "Your reply was not sent.";
    echo '<hr>';
}
开发者ID:Ghaji,项目名称:form_application,代码行数:21,代码来源:ajax_reply_applicant_notification.php

示例9: customDecrypt

<?php

require_once "inc/initialize.php";
if (isset($_GET['ajiya'])) {
    $form_id = customDecrypt($_GET['ajiya']);
    $sql = "SELECT * FROM `adm_access_code` WHERE `jamb_rem_no`='" . $form_id . "' AND `reg_num`='" . $form_id . "'";
    $payment_record = $database->fetch_array($database->query($sql));
    if (empty($payment_record)) {
        redirect_to('select_form.php');
    }
    $user = new User();
    $user_sql = "SELECT * FROM `personal_details` WHERE `form_id` = '" . $form_id . "'";
    $user = $user->find_by_sql($user_sql);
    $user = array_shift($user);
    $student_status = $user->get_student_status();
    $database = new MYSQLDatabase();
    $sqlprogrammedetails = "SELECT * FROM personal_details p, department d, faculty f, photographs photo WHERE p.applicant_id=" . $user->applicant_id . " AND p.programme_applied_id=d.department_id AND d.faculty_id=f.faculty_id AND p.applicant_id = photo.applicant_id";
    $programmedetails = $database->fetch_array($database->query($sqlprogrammedetails));
    $sessiondetails = $database->fetch_array($database->query("SELECT session FROM application_status WHERE id=1"));
    $paymentdetails = $database->fetch_array($database->query("SELECT * FROM adm_access_code WHERE jamb_rem_no='" . $programmedetails['form_id'] . "'"));
    $invoice = new Invoice();
    $invoice->db_fields = array('applicant_id', 'date', 'amount');
    $invoice->applicant_id = $user->applicant_id;
    $invoice->date = date('Y-m-d H:i:s', time());
    $invoice->amount = $paymentdetails['amount'];
    $invoice->save();
    $invoicedetails = $database->fetch_array($database->query("SELECT * FROM invoice WHERE applicant_id='" . $user->applicant_id . "'"));
    ?>

    <!DOCTYPE HTML>
    <html>
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:ajiya.php

示例10: customDecrypt

<?php

require_once "inc/initialize.php";
$md5mail = customDecrypt($_GET['email']);
//checks if the link is actually from the mail sent
if (!isset($md5mail)) {
    redirect_to('index.php');
} else {
    $decryptedmail = $md5mail;
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>University of Jos, Nigeria</title>
<?php 
require_once LIB_PATH . DS . 'css.php';
?>
</head>
<body>
<?php 
include_layout_template("header.php");
?>

<!--The Main Content Here Please-->
<div class="container">
<div class="row-fluid">
    <div class="span7 create">
    <h5 align="center">Mail Account Verification</h5>
    <hr>
开发者ID:Ghaji,项目名称:transcripts,代码行数:31,代码来源:verify.php

示例11: redirect_to

<?php

require_once "../inc/initialize.php";
//checks if admin user is logged in
if (!$session->is_admin_logged_in()) {
    redirect_to('index.php');
}
if (isset($_POST['nid']) && !empty($_POST['nid'])) {
    $news = News_Events::find_by_id(customDecrypt($_POST['nid']));
    // print_r($news->title);
    // die();
}
?>
<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>University of Jos, Nigeria</title>
		<?php 
require_once LIB_PATH . DS . 'css.php';
?>
	</head>

	<body>

		<!-- beginnning of main content-->
		<!-- header -->
		<?php 
include_layout_template('admin_header.php');
?>
		<!-- //header -->
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:edit_news.php

示例12: include_layout_template

include_layout_template('admin_header.php');
?>
	<!-- //header -->
		
	<div class="row-fluid">
		
		<?php 
include_layout_template('admin_menu.php');
?>
			
		<div class="span9 create" >
        
			<?php 
if (isset($_POST["refid"])) {
    $referee_id = customDecrypt($_POST["refid"]);
    $applicant_id = customDecrypt($_POST["aid"]);
    $database = new MySQLDatabase();
    $referee_details = $database->query("SELECT * FROM `referees`, `title` WHERE `referees`.`referees_id`='" . $referee_id . "' AND `referees`.`referee_title_id`=`title`.`title_id`");
    $referee_info = $database->fetch_array($referee_details);
    $applicant_details = User::find_by_id($referee_info['applicant_id']);
    $applicant_form_id = $applicant_details->form_id;
    $applicant_name = User::applicant_fullname($referee_info['applicant_id']);
    $questionnaire = unserialize($referee_info['questionnaire']);
    function check_IC($i)
    {
        global $questionnaire;
        if ($i == $questionnaire["intellectual_capactiy"]) {
            echo "checked";
        }
    }
    function check_CFP($i)
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:referee_response.php

示例13: redirect_to

<?php

require_once "../inc/initialize.php";
//checks if admin user is logged in
if (!$session->is_admin_logged_in()) {
    redirect_to('index.php');
}
if (isset($_POST['rid']) && !empty($_POST['rid'])) {
    $requirement = Requirements::find_by_id(customDecrypt($_POST['rid']));
    // print_r($requirement->name);
    // die();
}
?>
<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>University of Jos, Nigeria</title>
		<?php 
require_once LIB_PATH . DS . 'css.php';
?>
	</head>

	<body>

		<!-- beginnning of main content-->
		<!-- header -->
		<?php 
include_layout_template('admin_header.php');
?>
		<!-- //header -->
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:edit_requirements.php

示例14: include_layout_template

    <!-- //header -->
    <br>
    <br>

    <!-- Content -->
    <div class="row-fluid">

      <?php 
include_layout_template('admin_menu.php');
?>

      <div class="span9">
        <h2>Add Themes</h2>
        <hr>
        <?php 
$theme = Theme::find_by_id(customDecrypt($_POST['cid']));
?>
        <form class="form-horizontal add_theme" role="form" id="add_theme">
          <!-- Institution name -->
          <div class="control-group">
            <label class="control-label" for="institution_name">Institution Name: </label>
            <div class="controls">
              <div class="input-prepend">
                <span class="add-on"><i class="icon-pencil"></i></span>
                <input type="text" class="input-xlarge" name="institution_name" id="institution_name" placeholder="Enter Institution Name" value="<?php 
if (isset($theme->institution_name)) {
    echo $theme->institution_name;
}
?>
" />
              </div>
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:edit_theme.php

示例15: redirect_to

<?php

require_once "inc/initialize.php";
require_once "inc/vendor/autoload.php";
use Carbon\Carbon;
if (!$session->is_logged_in()) {
    redirect_to("index.php");
}
# Instance of Carbon Class with the current time
$date_now = new Carbon('now');
$label = customDecrypt($_GET['app']);
?>
<!DOCTYPE HTML>
<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>University of Jos, Nigeria - Transcript System</title>
    <?php 
require_once LIB_PATH . DS . 'javascript.php';
require_once LIB_PATH . DS . 'css.php';
?>
    <style type="text/css">
        body {
            padding-top: 60px;
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }
    </style>
    </head>
开发者ID:Ghaji,项目名称:transcripts,代码行数:31,代码来源:check_application_status.php


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