Пример #1
0
function verify_form2mail_nonce()
{
    global $IN;
    return $IN->post('__nonce') == md5(wpci_get_encryption_key() . $IN->post('__fields'));
}
Пример #2
0
|
| Leave this BLANK unless you would like to set something other than the default
| system/cache/ folder.  Use a full server path with trailing slash.
|
*/
$config['cache_path'] = '';
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class or the Sessions class with encryption
| enabled you MUST set an encryption key.  See the user guide for info.
|
*/
$config['encryption_key'] = wpci_get_encryption_key();
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'session_cookie_name' = the name you want for the cookie
| 'encrypt_sess_cookie' = TRUE/FALSE (boolean).  Whether to encrypt the cookie
| 'session_expiration'  = the number of SECONDS you want the session to last.
|  by default sessions last 7200 seconds (two hours).  Set to zero for no expiration.
| 'time_to_update'		= how many seconds between CI refreshing Session Information
|
*/
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_encrypt_cookie'] = FALSE;
Пример #3
0
		<?php 
echo form_hidden('nonce', get_nonce());
?>
		
		<div class="ui-tabs">
			<ul class="ui-tabs-nav">
				<li><a href="#general">General</a></li>
				<li><a href="#debugging">Debugging</a></li>
			</ul>
			<div id="general">
				<table class="form-table">
					<tr>
						<th class="row">Encryption Key</th>
						<td>
							<?php 
echo form_input(array('name' => 'encryption_key', 'value' => wpci_get_encryption_key(), 'class' => 'regular-text'));
?>
						</td>
					</tr>
					<tr>
						<th class="row">Gateway Slug</th>
						<td>
							<?php 
echo form_input(array('name' => 'slug', 'value' => wpci_get_slug(), 'class' => 'regular-text'));
?>
						</td>
					</tr>
					<tr>
						<th class="row">SSL Support</th>
						<td>
							<?php