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


PHP decryptValue函数代码示例

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


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

示例1: disposal_plan_details

 function disposal_plan_details()
 {
     //verify that plan exists
     $id = decryptValue($this->uri->segment(3));
     $plan_info = get_disposal_record_info_by_disposal_plan($id, '');
     if ($plan_info) {
         //print_array($plan_info);
         //show active plans
         $pieces = explode('/', get_disposal_record_info_by_disposal_plan($id, 'serial'));
         //print_array($pieces);
         $data['pagetitle'] = $pieces[2] . '-' . $pieces[3] . '  ' . get_disposal_record_info_by_disposal_plan($id, 'pde') . ' Disposal plan';
         $data['current_menu'] = 'disposal_plans';
         $data['view_to_load'] = 'public/disposal_plan_export_v';
         $data['plan_id'] = $id;
         $limit = NUM_OF_ROWS_PER_PAGE;
         $where = array('disposal_plan' => $id, 'isactive' => 'Y');
         $data['all_records'] = $this->disposal_record_m->get_where($where);
         $data['all_records_paginated'] = $this->disposal_record_m->get_paginated_by_criteria($num = $limit, $this->uri->segment(5), $where);
         $this->load->library('pagination');
         //pagination configs
         $config = array('base_url' => base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/' . $this->uri->segment(3) . '/' . $this->uri->segment(4) . '/', 'total_rows' => count($data['all_records']), 'per_page' => $limit, 'num_links' => $limit, 'use_page_numbers' => TRUE, 'full_tag_open' => '<div class="btn-group">', 'full_tag_close' => '</div>', 'anchor_class' => 'class="btn" ', 'cur_tag_open' => '<div class="btn">', 'cur_tag_close' => '</div>', 'uri_segment' => '5');
         //initialise pagination
         $this->pagination->initialize($config);
         //add to data array
         $data['pages'] = $this->pagination->create_links();
         //load view
         //load view
         $this->load->view('public/home_v', $data);
     } else {
         show_404();
     }
 }
开发者ID:newwavetechug,项目名称:gpp,代码行数:32,代码来源:export.php

示例2: permissions

 function permissions()
 {
     $usertype_info = $this->usertype_m->get_by_id(decryptValue($this->uri->segment(4)));
     if ($usertype_info) {
         $data['main_content'] = 'admin/usergroups/permissions_config_v';
         $data['pagetitle'] = 'Edit User group Permissions';
         //load the admin dashboard view
         $this->load->view('admin/includes/admin_template', $data);
     } else {
         show_404();
     }
 }
开发者ID:rmuyinda,项目名称:dms-1,代码行数:12,代码来源:admin_usergroups.php

示例3: delete_staff

 function delete_staff()
 {
     access_control($this);
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i', 't'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     if (!empty($data['i'])) {
         $result = deactivate_row($this, 'schoolusers', decryptValue($data['i']));
     }
     if (!empty($result) && $result) {
         $data['msg'] = "The user data has been successfully deleted.";
     } else {
         if (empty($data['msg'])) {
             $data['msg'] = "ERROR: The user could not be deleted or was not deleted correctly.";
         }
     }
     if (!empty($data['t']) && $data['t'] == 'super') {
         $tstr = "/t/super";
     } else {
         $tstr = "";
     }
 }
开发者ID:nwtug,项目名称:academia,代码行数:23,代码来源:user.php

示例4: while

        }
        ?>
"><?php 
        if (isset($cargo)) {
            echo $row['containernumber'];
        } else {
            echo $row['regnumber'];
        }
        ?>
</option>
 			<?php 
    } while ($row = mysql_fetch_assoc($query));
    ?>
        </select>
        <input type="hidden" name="trackerid" value="<?php 
    echo decryptValue($_GET['token']);
    ?>
" />
         
              <input name="loginbutton" type="submit" value="Submit" class="button"/>  
        </form> 
    
    </td>
  </tr>
</table>

<?php 
} else {
    if (isset($cargo)) {
        echo "<fieldset><h4>There are currently no containers without trackers in the system for assignment!</h4></fieldset>";
    } else {
开发者ID:Bakyenga,项目名称:kyengs,代码行数:31,代码来源:assign-ttracker.php

示例5: fetch_exams_ajax

 function fetch_exams_ajax()
 {
     $school_id = $this->schoolinfo['id'];
     #GET SEGMENT
     $examid = $this->uri->segment(3);
     $examid = decryptValue($examid);
     #LOAD MODEL
     $this->load->model('marks_view');
     $exam_array = $this->marks_view->fetchexams($examid, $school_id);
     $ary = "";
     foreach ($exam_array as $exam) {
         $ary .= $exam['exam'] . "@@" . encryptValue($exam['id']) . "##";
     }
     echo $ary;
 }
开发者ID:nwtug,项目名称:academia,代码行数:15,代码来源:students_bak.php

示例6: remove_help_item

 function remove_help_item()
 {
     access_control($this);
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('s', 'i'));
     # Pick all assigned data
     $data = restore_bad_chars_in_array(assign_to_data($urldata));
     if (!empty($data['i'])) {
         $del_result = $this->db->query($this->Query_reader->get_query_by_code('remove_help_item', array('id' => decryptValue($data['i']))));
     }
     $t_string = !empty($data['t']) ? "/i/" . $data['t'] : "";
     $msg = !empty($del_result) && $del_result ? "The help item has been removed." : "ERROR: The help item was not removed.";
     $this->session->set_userdata('sres', $msg);
     redirect(base_url() . "help/add_help_topic" . $t_string . "/m/sres");
 }
开发者ID:nwtug,项目名称:academia,代码行数:15,代码来源:help.php

示例7: decryptValue

<?php

require_once "../Connections/connect.php";
require_once "../pagecheck.php";
require_once "../functions.php";
if (isset($_GET['4ct10n']) && $_GET['4ct10n'] == "mohetide") {
    $recid = decryptValue($_GET['token']);
    $userdata = mysql_fetch_assoc(mysql_query("SELECT * FROM companyusers WHERE ID = '{$recid}'"));
}
?>
<link rel="stylesheet" media="screen" href="../simple-calendar/tcal.css" />
<script type="text/javascript" src="../simple-calendar/tcal.js"></script>
<?php 
if (isset($recid)) {
    echo NULL;
} else {
    ?>
	<form id="manageusers" name="manageusers" method="post" class="viaAjaxx" action="backend.php?adduser=true" >
<?php 
}
?>
      
        <table width="100%" border="0" cellspacing="0" cellpadding="10">
	  <?php 
if (isset($recid)) {
    echo "<tr><td><b>Edit User Details : <em>Click on the value you would like to edit.</em></b></td></tr>";
} else {
    ?>
          <tr>
  			<td colspan="2"><div id="Ajaxresults" style="color:#000; display:none; border:1px solid #F90; background-color: #F0FFE1; padding:10px 20px; font-weight:bold; text-align:center; margin:0 20px 20px 20px;"></div></td>
  		 </tr>
开发者ID:Bakyenga,项目名称:kyengs,代码行数:31,代码来源:useradd.php

示例8: update_photo_status

 function update_photo_status()
 {
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('i'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     if (!empty($data['i'])) {
         #Delete an image
         if (!empty($data['a']) && decryptValue($data['a']) == 'delete') {
             $result = $this->db->query($this->Query_reader->get_query_by_code('delete_image', array('id' => decryptValue($data['i']))));
         }
         #Activate an image
         if (!empty($data['a']) && decryptValue($data['a']) == 'activate') {
             $result = $this->db->query($this->Query_reader->get_query_by_code('activate_image', array('status' => 'Y', 'id' => decryptValue($data['i']))));
         }
         #Deactivate an image
         if (!empty($data['a']) && decryptValue($data['a']) == 'deactivate') {
             $result = $this->db->query($this->Query_reader->get_query_by_code('deactivate_image', array('status' => 'N', 'id' => decryptValue($data['i']))));
         }
     }
     #Prepare appropriate message
     if (!empty($result) && $result) {
         $msg = "The photo has been " . decryptValue($data['a']) . "d.";
     } else {
         $msg = "ERROR: The photo could not be " . decryptValue($data['a']) . "d. Please contact your admin.";
     }
     $this->session->set_userdata('lmsg', $msg);
     redirect(base_url() . "photo/album/m/lmsg/i/" . $data['i']);
 }
开发者ID:nwtug,项目名称:academia,代码行数:29,代码来源:photo.php

示例9: confirm_company_user

 function confirm_company_user()
 {
     if ($this->uri->segment(3) && trim($this->uri->segment(3)) != '') {
         $userid = substr(decryptValue(str_replace('_', '=', $this->uri->segment(3))), 2);
         $user_details = $this->Query_reader->get_row_as_array('pick_employee_by_id', array('id' => $userid));
         if (count($user_details) > 0) {
             $result = $this->db->query($this->Query_reader->get_query_by_code('activate_user', array('id' => $userid)));
             if ($result) {
                 $data['msg'] = 'Please login using the username and password in your email message.';
                 $data['isnew'] = $userid;
             } else {
                 $data['error_msg'] = 'ERROR: Your account could not be activated. Please <a href=\\"#\\">click here</a> to contact your administrator.';
             }
         } else {
             $data['error_msg'] = 'The userid is not recognized. Please check if you have copied the full URL.';
         }
     } else {
         $data['error_msg'] = 'The userid is not recognized. Please check if you have copied the full URL.';
     }
     $this->load->view('login', $data);
 }
开发者ID:Bakyenga,项目名称:kyengs,代码行数:21,代码来源:admin.php

示例10: setInterval

 * Created by PhpStorm.
 * User: cengkuru
 * Date: 4/10/2015
 * Time: 8:36 PM
 */
?>
<div id="recent_msg"></div>


<?= $this->load->view('admin/messages/forms/send_msg_f') ?>
<script type="text/javascript">
    $(document).ready(function () {
        //alert('foo');
        var auto_refresh = setInterval(
            function () {
                var reciepient = '<?=decryptValue($this->uri->segment(4))?>';
                var form_data =
                {

                    reciepient: reciepient,
                    ajax: 'get_nw_msg'
                };

                $.ajax({
                    url: "<?php echo site_url($this->uri->segment(1).'/'.$this->uri->segment(2).'/ajax_calls') ?>",
                    type: 'POST',
                    data: form_data,
                    success: function (msg) {

                        $('#recent_msg').html(msg);
开发者ID:rmuyinda,项目名称:dms-1,代码行数:30,代码来源:send_message_v.php

示例11: decryptValue

                  <td> 	<?php 
echo $shipmentdata['UnitWidth'] . " metres";
?>
     </td>
                </tr>
               
              </table>
        </td>
        </tr>
  <tr>
    <td>
    <b>Load Scheduling</b>
    <div style="border: 5px solid #CCCCCC;padding:0px;height:100%;" >
    
    <?php 
$query = "SELECT * FROM containers where ShipmentID = '" . decryptValue($_GET['token']) . "' LIMIT 5000";
$query = mysql_query($query) or die(mysql_error());
$rows = mysql_num_rows($query);
$row = mysql_fetch_assoc($query);
if ($rows > 0) {
    ?>
 
    <table width="100%" border="0" cellpadding="10" class="datatable full" style="border:#CCCCCC 1px solid;">        
 		<thead> 
            <tr align="center">
                <th><b>#</b></th>
                <th><b>Container #</b></th>
                <th><b>Truck</b> </th>
                <th><b>Driver</b> </th>
                <th><b>Loading Place</b> </th>
                <th><b>Date</b> </th>
开发者ID:Bakyenga,项目名称:kyengs,代码行数:31,代码来源:all_ship_details.php

示例12: confirm_user

 function confirm_user()
 {
     if ($this->uri->segment(3) && trim($this->uri->segment(3)) != '') {
         $userid = substr(decryptValue(str_replace('_', '=', $this->uri->segment(3))), 2);
         $temp_user = $this->Query_reader->get_row_as_array('get_temp_user_by_id', array('userid' => $userid));
         if (count($temp_user) > 0) {
             $actual_user = $this->Query_reader->get_row_as_array('pick_employee_by_email', array('emailaddress' => $temp_user['emailaddress']));
             if (count($actual_user) == 0) {
                 $temp_user['password'] = sha1($temp_user['password']);
                 #Save the new user data in permanent company and user database table
                 $result1 = $this->db->query($this->Query_reader->get_query_by_code('insert_permanent_company_data', $temp_user));
                 $temp_user['companyid'] = $this->db->call_function('insert_id');
                 $result2 = $this->db->query($this->Query_reader->get_query_by_code('insert_permanent_user_data', $temp_user));
                 $result3 = $this->db->query($this->Query_reader->get_query_by_code('set_who_updated_user_record', array('userid' => $this->db->call_function('insert_id'), 'who' => $this->db->call_function('insert_id'))));
             }
             if ($result1 && $result2 && $result3 && count($actual_user) == 0) {
                 $data['msg'] = 'Congratulations! You are now a confirmed user of ACRAV. Please login below using the user details that were sent to your email.';
                 $data['isnew'] = $userid;
             } else {
                 if (count($actual_user) > 0) {
                     $data['msg'] = 'Please login using the username and password in your email message.';
                     $data['isnew'] = $userid;
                 } else {
                     $data['error_msg'] = 'The userid is not recognized. Please check if you have copied the full URL.';
                 }
             }
         } else {
             $data['error_msg'] = 'The userid is not recognized. Please check if you have copied the full URL.';
         }
     } else {
         $data['error_msg'] = 'The userid is not recognized. Please check if you have copied the full URL.';
     }
     $this->load->view('login', $data);
 }
开发者ID:Bakyenga,项目名称:kyengs,代码行数:34,代码来源:admin.php

示例13:

  </tr>
  <tr>
    <td align="center" valign="top" style="padding-left:5%">

    <form id="frmreg" name="frmreg" method="post" class="viaAjax" action="processor.php?register=true">
    
    <!-- REGISTRATION REASONS !-->
    	<div align="left" style="padding:15px; width:265px; border-bottom:#F0F0F0 1px solid; border-left:#F0F0F0 1px solid; border-top:#F0F0F0 1px solid; margin-top:100px; float:left; background-color:#FFFFFF;">
    	  <div style="font-size:12px">
    	    <ul class="regOptions">
             	<li><span style="font-size: 18px; color: #990000">CONTACT ADMINISTRATOR</span></li>
             </ul>
           </div>
        </div>
       <?php 
if (isset($_GET['action']) && decryptValue($_GET['action']) == 'login') {
    echo "</form>";
}
?>
        <!-- end registration reasons !-->
        
        <!-- start register box !-->
        <div align="left" style="padding:30px 20px; width:265px; border-bottom:#F0F0F0 1px solid; border-left:#F0F0F0 1px solid; border-top:#F0F0F0 1px solid; margin-top:50px; background:#F8F8F8; float:left; height:380px">
          <div style="font-size:12px">
            <ul class="regOptions">
              <li><span style="font-size: 18px; color: #990000">PASSWORD RECOVERY </span></li>
            </ul>
            <div style="font-size:12px">
              <ul class="regOptions">
                <li><li><form action="recoverpass.php">
                	<input name="email" type="text" class="textfield" id="email" placeholder="Email address  " required="required"/>                    
开发者ID:Bakyenga,项目名称:kyengs,代码行数:31,代码来源:recoverpass.php

示例14: strtoupper

              <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="10">
                <tr>
                  
                  <td class="heads" bgcolor="#FFFFFF" style="padding:10px 5px 10px 10px;">
<b>TRACKING ARCHIVE FOR - <span style="color:#820000; font-weight:bold;"><?php 
echo strtoupper(decryptValue($_GET['wibt']));
?>
</span></b>
</td>
                </tr>
                <tr>
                  <td valign="top" nowrap="nowrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" id="gpsabramap">
	<?php 
$rows = mysql_fetch_assoc(mysql_query("select * from msg_archive where phone ='+" . decryptValue($_GET['gp']) . "' order by date_added DESC LIMIT 5000"));
?>
    <iframe id="map" name="map" frameborder="0" allowtransparency="true"  width="98%" height="500" scrolling="no" src="companyTrackCargo/tracker.php?gps=<?php 
echo $rows['message'];
?>
" >                    </iframe></td></tr></table></td>
                  </tr>
              </table></td>
              <td width="1%"><img src='../images/spacer.gif' alt='' border='0' width="4"/></td>
            </tr>
          </table></td>
        </tr>
      </table>
  </td></tr></table></td>
      </tr>
    </table></td>
开发者ID:Bakyenga,项目名称:kyengs,代码行数:31,代码来源:trackarchive.php

示例15: load_user_form

 function load_user_form()
 {
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i', 'a'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     #check user access
     if (!empty($data['i'])) {
         check_user_access($this, 'edit_user_details', 'redirect');
     } else {
         check_user_access($this, 'add_users', 'redirect');
     }
     #Get access groups
     $data['usergroups'] = $this->db->query($this->Query_reader->get_query_by_code('get_user_group_list', array('searchstring' => 'UG.isactive="Y" ' . ($this->session->userdata('isadmin') == 'N' ? ' AND UG.id != 14  AND UG.groupname not like "%PPDA Administrator%"' : ''), 'orderby' => 'ORDER BY UG.groupname', 'limittext' => '')))->result_array();
     #Get pdes
     $this->db->order_by("pdename", "asc");
     $data['pdes'] = $this->db->get_where('pdes', array('isactive' => 'Y', 'status' => 'in'))->result_array();
     #user is editing
     if (!empty($data['i'])) {
         $userid = decryptValue($data['i']);
         $data['formdata'] = $this->Query_reader->get_row_as_array('get_user_by_id', array('id' => $userid));
         #get the user's roles
         $user_roles = $this->db->query($this->Query_reader->get_query_by_code('get_roles_by_user', array('userid' => $userid)))->result_array();
         #format role IDs into simple array
         $data['formdata']['roles'] = array();
         foreach ($user_roles as $user_role) {
             array_push($data['formdata']['roles'], $user_role['groupid']);
         }
         #If the user is to be reactivated
         if (!empty($data['a']) && decryptValue($data['a']) == 'reactivate' && $this->session->userdata('isadmin') == 'Y') {
             $result = $this->db->query($this->Query_reader->get_query_by_code('reactivate_user', array('id' => $userid)));
             if ($result) {
                 $send_result = $this->sysemail->email_form_data(array('fromemail' => NOREPLY_EMAIL), get_confirmation_messages($this, $data['userdetails'], 'account_reactivated_notice'));
             } else {
                 $data['msg'] = "ERROR: There was an error activating the user.";
             }
         }
         #Check if the user is simply viewing
         if (!empty($data['a']) && decryptValue($data['a']) == 'view') {
             $data['isview'] = "Y";
             #get the access group name
             $data['access_group_info'] = $this->Query_reader->get_row_as_array('get_group_by_id', array('groupid' => $data['userdetails']['accessgroup']));
         }
     }
     $data['page_title'] = !empty($data['i']) ? 'Edit user details' : 'Add user';
     $data['current_menu'] = 'add_users';
     $data['view_to_load'] = 'users/user_form_v';
     $data['view_data']['form_title'] = $data['page_title'];
     $this->load->view('dashboard_v', $data);
 }
开发者ID:newwavetechug,项目名称:gpp,代码行数:50,代码来源:user.php


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