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


PHP decryptIt函数代码示例

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


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

示例1: process

function process($activation_code)
{
    $activation_code = str_replace(' ', '+', $activation_code);
    $t = $activation_code;
    $decryptcodevalue = decryptIt($t);
    check_itvalid($decryptcodevalue);
}
开发者ID:sekar1992,项目名称:clgproject,代码行数:7,代码来源:SendUandPwtouser.php

示例2: eliminar

 public function eliminar()
 {
     $id = $_POST['idEliminar'];
     if (!$this->Formapago_model->eliminar(decryptIt($id))) {
         //Error en la transacción
         echo 0;
     } else {
         //correcto
         echo 1;
     }
 }
开发者ID:brayanNunez,项目名称:touch,代码行数:11,代码来源:FormasPago.php

示例3: error_reporting

<?php

include "connect_bd.php";
include "md5.php";
error_reporting(E_ALL ^ E_NOTICE);
$token = $_POST['token'];
$decrypted = decryptIt($token);
$arr = array();
$i = 0;
$sql_com = "SELECT * from comercial WHERE email='" . $decrypted . "'";
$result_com = $conn->query($sql_com);
if ($result_com->num_rows > 0) {
    while ($row = $result_com->fetch_assoc()) {
        $arr[$i] = $row;
        $i++;
    }
} else {
    echo FALSE;
}
echo '' . json_encode($arr) . '';
$conn->close();
开发者ID:santiagomoreta,项目名称:LandingPage,代码行数:21,代码来源:get_token.php

示例4: decryptIt

                                    </div>
                                </div>
                                <div class='form-group'>
                                    <label class='col-sm-12 col-md-3 control-label'> Username*</label>
                                    <div class='col-sm-12 col-md-9'>
                                        <input type='text' class='form-control' placeholder='Enter Username' name='username' value='<?php 
echo !empty($asset) ? $asset['username'] : "";
?>
' required>
                                    </div>
                                </div>
                                <div class='form-group'>
                                    <label class='col-sm-12 col-md-3 control-label'> Password*</label>
                                    <div class='col-sm-12 col-md-9'>
                                        <input type='password' class='form-control' placeholder='Enter Password' name='password' value='<?php 
echo !empty($asset) ? decryptIt($asset['password']) : "";
?>
' required>
                                    </div>
                                </div>
                                <div class='form-group'>
                                    <label class='col-sm-12 col-md-3 control-label'> Email Address*</label>
                                    <div class='col-sm-12 col-md-9'>

                                        <input type='email' class='form-control' placeholder='Enter Email Address' name='email' value='<?php 
echo !empty($asset) ? $asset['email'] : "";
?>
' required>
                                    </div>
                                </div>
                                <div class='form-group'>
开发者ID:jpbalderas17,项目名称:ams,代码行数:31,代码来源:frm_users.php

示例5: decryptIt

?>
' class="form-control input-md">
				  </div>
				  
				  <label class="col-md-2 control-label" for="lname">Last Name</label>  
				  <div class="col-md-4">
					<input id="lname" name="lname" type="text" value='<?php 
echo $rowU['lname'];
?>
' class="form-control input-md">
				  </div>
				</div>
				<?php 
$decpwd = decryptIt($rowU['password']);
$decpcno = decryptIt($rowU['pcardno']);
$decscno = decryptIt($rowU['scardno']);
function encryptIt($q)
{
    $cryptKey = 'nanee01358386';
    $qEncoded = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($cryptKey), $q, MCRYPT_MODE_CBC, md5(md5($cryptKey))));
    return $qEncoded;
}
function decryptIt($q)
{
    $cryptKey = 'nanee01358386';
    $qDecoded = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($cryptKey), base64_decode($q), MCRYPT_MODE_CBC, md5(md5($cryptKey))), "");
    return $qDecoded;
}
?>
				<div class="form-group">
				  <label class="col-md-2 control-label" for="pwd">Password</label>  
开发者ID:achinni,项目名称:631_Ecomm_Project,代码行数:31,代码来源:headerCustom.php

示例6: mysqli_query

$query = "SELECT\n\t\t\t\tadminId,\n\t\t\t\tadminEmail,\n\t\t\t\tpassword,\n\t\t\t\tadminFirstName,\n\t\t\t\tadminLastName,\n\t\t\t\tCONCAT(adminFirstName,' ',adminLastName) AS theAdmin,\n\t\t\t\tadminBio,\n\t\t\t\tadminAddress,\n\t\t\t\tadminPhone,\n\t\t\t\tadminCell,\n\t\t\t\tadminAvatar,\n\t\t\t\tadminNotes,\n\t\t\t\tDATE_FORMAT(lastVisited,'%M %e, %Y at %l:%i %p') AS lastVisited,\n\t\t\t\tDATE_FORMAT(createDate,'%M %d, %Y') AS createDate,\n\t\t\t\tisAdmin,\n\t\t\t\tadminRole,\n\t\t\t\tisActive,\n\t\t\t\tisArchived,\n\t\t\t\tDATE_FORMAT(archiveDate,'%M %d, %Y') AS archiveDate\n\t\t\tFROM\n\t\t\t\tadmins\n\t\t\tWHERE adminId = " . $aId;
$res = mysqli_query($mysqli, $query) or die('-1' . mysqli_error());
$row = mysqli_fetch_assoc($res);
// Decrypt data
if ($row['adminAddress'] != '') {
    $adminAddress = decryptIt($row['adminAddress']);
} else {
    $adminAddress = '';
}
if ($row['adminPhone'] != '') {
    $adminPhone = decryptIt($row['adminPhone']);
} else {
    $adminPhone = '';
}
if ($row['adminCell'] != '') {
    $adminCell = decryptIt($row['adminCell']);
} else {
    $adminCell = '';
}
// Set some variables
if ($row['isActive'] == '1') {
    $isActive = $activeText;
    $highlight = 'text-success';
    $selActive = '';
} else {
    $isActive = $inactiveText;
    $highlight = 'text-danger';
    $selActive = 'selected';
}
if ($row['isArchived'] == '1') {
    $isArchived = $archivedText;
开发者ID:shameemreza,项目名称:clientmanagement,代码行数:31,代码来源:viewManager.php

示例7: encryptIt

<?php

//End Connection Settings
//exit;
function encryptIt($q)
{
    $cryptKey = 'ReK4TaM4n5UB1xG03efyCp';
    $qEncoded = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($cryptKey), $q, MCRYPT_MODE_CBC, md5(md5($cryptKey))));
    return urlencode($qEncoded);
}
function decryptIt($q)
{
    $cryptKey = 'ReK4TaM4n5UB1xG03efyCp';
    $qDecoded = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($cryptKey), base64_decode($q), MCRYPT_MODE_CBC, md5(md5($cryptKey))), "");
    return $qDecoded;
}
print_r(decryptIt(urldecode('ZIYIMwS%2Fp41BJ3NpA0f%2BHhvMLx%2BWg3QdopPq5J9StADWez2lFOnBQSlSxxML1AIYq3PHyWEAqL0fa%2FjFG8rAcpqAmI2J7k53qXnVhOgndGme%2Byn48PYAR63Ofvc19vZl')));
开发者ID:rayminami,项目名称:chumanis,代码行数:17,代码来源:decode_url.php

示例8: mysqli_query

<?php

$paymentId = $_GET['paymentId'];
// Get Data
$query = "SELECT\n\t\t\t\tprojectpayments.paymentId,\n\t\t\t\tprojectpayments.clientId,\n\t\t\t\tprojectpayments.projectId,\n\t\t\t\tprojectpayments.enteredBy,\n\t\t\t\tprojectpayments.paymentFor,\n\t\t\t\tDATE_FORMAT(projectpayments.paymentDate,'%M %d, %Y') AS paymentDate,\n\t\t\t\tprojectpayments.paidBy,\n\t\t\t\tprojectpayments.paymentAmount,\n\t\t\t\tprojectpayments.additionalFee,\n\t\t\t\tprojectpayments.paymentNotes,\n\t\t\t\tclientprojects.projectName,\n\t\t\t\tCONCAT(admins.adminFirstName,' ',admins.adminLastName) AS theAdmin,\n\t\t\t\tCONCAT(clients.clientFirstName,' ',clients.clientLastName) AS theClient,\n\t\t\t\tclients.clientCompany,\n\t\t\t\tclients.clientAddress,\n\t\t\t\tclients.clientPhone\n\t\t\tFROM\n\t\t\t\tprojectpayments\n\t\t\t\tLEFT JOIN clientprojects ON projectpayments.projectId = clientprojects.projectId\n\t\t\t\tLEFT JOIN admins ON projectpayments.enteredBy = admins.adminId\n\t\t\t\tLEFT JOIN clients ON projectpayments.clientId = clients.clientId\n\t\t\tWHERE\n\t\t\t\tprojectpayments.paymentId = " . $paymentId;
$res = mysqli_query($mysqli, $query) or die('-1' . mysqli_error());
$row = mysqli_fetch_assoc($res);
// Decrypt data for display
if ($row['clientAddress'] != '') {
    $clientAddress = decryptIt($row['clientAddress']);
} else {
    $clientAddress = '';
}
if ($row['clientPhone'] != '') {
    $clientPhone = decryptIt($row['clientPhone']);
} else {
    $clientPhone = '';
}
// Format the Amounts
$paymentAmount = $curSym . format_amount($row['paymentAmount'], 2);
if ($row['additionalFee'] != '') {
    $additionalFee = $curSym . format_amount($row['additionalFee'], 2);
} else {
    $additionalFee = $noneText;
}
$total = $row['paymentAmount'] + $row['additionalFee'];
$totalPaid = $curSym . format_amount($total, 2);
// Get Site Alert Data
$alert = "SELECT\n                    isActive,\n                    invoicePrint,\n                    alertText,\n\t\t\t\t\tUNIX_TIMESTAMP(alertDate) AS orderDate,\n\t\t\t\t\talertExpires\n                FROM\n                    sitealerts\n                WHERE\n\t\t\t\t\tinvoicePrint = 1\n\t\t\t\tORDER BY\n\t\t\t\t\torderDate DESC";
$alertres = mysqli_query($mysqli, $alert) or die('-2' . mysqli_error());
include 'includes/navigation.php';
开发者ID:shameemreza,项目名称:clientmanagement,代码行数:31,代码来源:receipt.php

示例9: mysqli_query

$query = "SELECT\n\t\t\t\tclientId,\n\t\t\t\tclientEmail,\n\t\t\t\tpassword,\n\t\t\t\tclientFirstName,\n\t\t\t\tclientLastName,\n\t\t\t\tCONCAT(clientFirstName,' ',clientLastName) AS clientName,\n\t\t\t\tclientCompany,\n\t\t\t\tclientBio,\n\t\t\t\tclientAddress,\n\t\t\t\tclientPhone,\n\t\t\t\tclientCell,\n\t\t\t\tclientAvatar,\n\t\t\t\tDATE_FORMAT(lastVisited,'%M %e, %Y at %l:%i %p') AS lastVisited,\n\t\t\t\tDATE_FORMAT(createDate,'%M %d, %Y') AS createDate\n\t\t\tFROM\n\t\t\t\tclients\n\t\t\tWHERE clientId = " . $clientId;
$res = mysqli_query($mysqli, $query) or die('-2' . mysqli_error());
$row = mysqli_fetch_assoc($res);
// Decrypt data
if ($row['clientAddress'] != '') {
    $clientAddress = decryptIt($row['clientAddress']);
} else {
    $clientAddress = '';
}
if ($row['clientPhone'] != '') {
    $clientPhone = decryptIt($row['clientPhone']);
} else {
    $clientPhone = '';
}
if ($row['clientCell'] != '') {
    $clientCell = decryptIt($row['clientCell']);
} else {
    $clientCell = '';
}
// Get Project Data
$stmt = "SELECT\n\t\t\t\tclientprojects.projectId,\n\t\t\t\tclientprojects.createdBy,\n\t\t\t\tclientprojects.clientId,\n\t\t\t\tclientprojects.projectName,\n\t\t\t\tclientprojects.percentComplete,\n\t\t\t\tclientprojects.projectDeatils,\n\t\t\t\tDATE_FORMAT(clientprojects.startDate,'%M %d, %Y') AS startDate,\n\t\t\t\tDATE_FORMAT(clientprojects.dueDate,'%M %d, %Y') AS dueDate,\n\t\t\t\tassignedprojects.assignedTo,\n\t\t\t\tCONCAT(admins.adminFirstName,' ',admins.adminLastName) AS managerAssigned\n\t\t\tFROM\n\t\t\t\tclientprojects\n\t\t\t\tLEFT JOIN assignedprojects ON clientprojects.projectId = assignedprojects.projectId\n\t\t\t\tLEFT JOIN admins ON assignedprojects.assignedTo = admins.adminId\n\t\t\tWHERE\n\t\t\t\tclientprojects.clientId = " . $clientId . " AND\n\t\t\t\tclientprojects.archiveProj = 0\n\t\t\tORDER BY clientprojects.projectId";
$results = mysqli_query($mysqli, $stmt) or die('-3' . mysqli_error());
include 'includes/navigation.php';
?>
<div class="content">
	<?php 
if ($msgBox) {
    echo $msgBox;
}
?>
开发者ID:shameemreza,项目名称:clientmanagement,代码行数:30,代码来源:myProfile.php

示例10: modificar

 public function modificar()
 {
     $sessionActual = $this->session->userdata('logged_in');
     $idEmpresa = $sessionActual['idEmpresa'];
     $data['impuesto'] = array('idImpuesto' => decryptIt($this->input->post('idImpuesto')), 'nombre' => $this->input->post('impuesto_nombre'), 'descripcion' => $this->input->post('impuesto_descripcion'), 'valor' => $this->input->post('impuesto_valor'), 'idEmpresa' => $idEmpresa, 'eliminado' => '0');
     // echo print_r($data); exit();
     if (!$this->Impuesto_model->modificar($data)) {
         //Error en la transacción
         echo 0;
     } else {
         //correcto
         echo 1;
     }
 }
开发者ID:brayanNunez,项目名称:touch,代码行数:14,代码来源:Impuesto.php

示例11: eliminarArchivo

 public function eliminarArchivo()
 {
     $data = array();
     $sessionActual = $this->session->userdata('logged_in');
     $idEmpresa = $sessionActual['idEmpresa'];
     $id = $_POST['idEliminar'];
     $persona = decryptIt($_POST['idCliente']);
     $resultado = $this->Cliente_model->eliminarArchivo(decryptIt($id));
     if (!$resultado) {
         //Error en la transacci�n
         echo 0;
     } else {
         //correcto
         $ruta = './files/empresas/' . $idEmpresa . '/clientes/' . $persona . '/' . $resultado;
         if ($resultado != 'noArchivo') {
             if (is_file($ruta)) {
                 unlink($ruta);
             }
         }
         echo 1;
     }
 }
开发者ID:brayanNunez,项目名称:touch,代码行数:22,代码来源:Clientes.php

示例12: error_reporting

error_reporting(E_ALL);
ini_set('display_errors', '1');
// Connect to the MySQL database
include "../storescripts/connect_to_mysql.php";
?>
   

<?php 
// Use me to generate ecryption
//$input = "password_to_encrypt";
//$encrypted = encryptIt( $input );
//$decrypted = decryptIt( $encrypted) ;
$sql = "SELECT * FROM admin WHERE id='1'";
$result = $con->query($sql);
while ($row = $result->fetch_array()) {
    $useremail = $row["username"];
    $encryptpassword = $row["password"];
}
$decrypted = decryptIt($encryptpassword);
function encryptIt($q)
{
    $cryptKey = 'qJB0rGtIn5UB1xG03efyCp';
    $qEncoded = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($cryptKey), $q, MCRYPT_MODE_CBC, md5(md5($cryptKey))));
    return $qEncoded;
}
function decryptIt($q)
{
    $cryptKey = 'qJB0rGtIn5UB1xG03efyCp';
    $qDecoded = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($cryptKey), base64_decode($q), MCRYPT_MODE_CBC, md5(md5($cryptKey))), "");
    return $qDecoded;
}
开发者ID:skulkarni8,项目名称:wwo,代码行数:31,代码来源:password.php

示例13: array

//Include Files @0-ED610940
include RelativePath . "/Classes.php";
include RelativePath . "/db_adapter.php";
//End Include Files
//Connection Settings @0-B5AB9151
$CCConnectionSettings = array("hrcon" => array("Type" => "PostgreSQL", "DBLib" => "PostgreSQL", "Database" => "", "Host" => "", "Port" => "", "User" => "", "Password" => "", "Persistent" => false, "DateFormat" => array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"), "BooleanFormat" => array("t", "f", ""), "Uppercase" => false));
//End Connection Settings
//++++++++++++++++++++++++++++++++++++++BEGIN ENCRIPT URL
function getParamAttriEnc()
{
    $paramAttriEnc = 't';
    return $paramAttriEnc;
}
if (isset($_GET[getParamAttriEnc()]) || isset($_POST[getParamAttriEnc()])) {
    $encParams = isset($_GET[getParamAttriEnc()]) ? $_GET[getParamAttriEnc()] : $_POST[getParamAttriEnc()];
    parse_str(decryptIt($encParams), $GetParams);
    if (isset($_GET[getParamAttriEnc()])) {
        unset($_GET[getParamAttriEnc()]);
        $_GET = array_merge($_GET, $GetParams);
    }
    if (isset($_POST[getParamAttriEnc()])) {
        unset($_POST[getParamAttriEnc()]);
        array_merge($_POST, $GetParams);
    }
}
function encryptIt($q)
{
    $cryptKey = 'ReK4TaM4n5UB1xG03efyCp';
    $qEncoded = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($cryptKey), $q, MCRYPT_MODE_CBC, md5(md5($cryptKey))));
    return urlencode($qEncoded);
}
开发者ID:rayminami,项目名称:chumanis,代码行数:31,代码来源:Common.tanpa.encrypt.url.php

示例14: CCAddParam

function CCAddParam($querystring, $ParameterName, $ParameterValue)
{
    $paramNoEnc = '';
    $forbiddenToEnc = array('FormFilter');
    $queryStr = null;
    $paramStr = null;
    if (strpos($querystring, '?') !== false) {
        list($queryStr, $paramStr) = explode('?', $querystring);
    } else {
        if (strpos($querystring, '=') !== false) {
            $paramStr = $querystring;
        } else {
            $queryStr = $querystring;
        }
    }
    if ($paramStr != "") {
        $paramStr = decryptIt(urldecode(str_replace(getParamAttriEnc() . "=", "", $paramStr)));
    }
    $paramStr = $paramStr ? '&' . $paramStr : '';
    $paramStr = preg_replace('/&' . $ParameterName . '(\\[\\])?=[^&]*/', '', $paramStr);
    if (!in_array($ParameterName, $forbiddenToEnc)) {
        if (is_array($ParameterValue)) {
            foreach ($ParameterValue as $key => $val) {
                $paramStr .= "&" . urlencode($ParameterName) . "[]=" . urlencode($val);
            }
        } else {
            $paramStr .= "&" . urlencode($ParameterName) . "=" . urlencode($ParameterValue);
        }
    } else {
        $paramNoEnc .= "&" . urlencode($ParameterName) . "=" . urlencode($ParameterValue);
    }
    $paramStr = ltrim($paramStr, '&');
    $paramStr = getParamAttriEnc() . "=" . encryptIt($paramStr);
    $return_query = $queryStr ? $queryStr . '?' . $paramStr : $paramStr;
    return $return_query . $paramNoEnc;
    //exit;
    //return getParamAttriEnc()."=".encryptIt($return_query);
    //return $return_query;
}
开发者ID:rayminami,项目名称:chumanis,代码行数:39,代码来源:Common.php

示例15: enviarCorreoParaAprobacion

 public function enviarCorreoParaAprobacion($idCotizacionEncriptado)
 {
     $sessionActual = $this->session->userdata('logged_in');
     $idEmpresa = $sessionActual['idEmpresa'];
     $idCotizacion = decryptIt($idCotizacionEncriptado);
     $listaCorreos = $this->Cotizacion_model->cargarCorreosAprobadores($idCotizacion);
     $arrayCorreos = array();
     foreach ($listaCorreos as $correo) {
         array_push($arrayCorreos, $correo['correo']);
     }
     $datosEmpresa = $this->Cotizacion_model->cargarCorreoNombreEmpresa($idEmpresa);
     $correoEmpresa = $datosEmpresa['correo'];
     $nombreEmpresa = $datosEmpresa['nombre'];
     // echo print_r($correoEmpresa); exit();
     $this->load->library('email');
     $this->email->from($correoEmpresa, $nombreEmpresa);
     // $this->email->from('brayannr@hotmail.es', 'brayan');
     // echo print_r($arrayCorreos); exit();
     $this->email->to($arrayCorreos);
     // $this->email->cc('brayan.nunez@ucrso.info');
     $this->email->subject('Aprobación touch');
     $this->email->message('Cotización pendiente de aprobar http://touchcr.com/cotizacion/aprobar/' . $idCotizacionEncriptado);
     // $this->email->attach($path);
     $this->email->send();
     echo 'enviado';
 }
开发者ID:brayanNunez,项目名称:touch,代码行数:26,代码来源:ManejadorPDF.php


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