Commit d5199fad authored by Skirmantas's avatar Skirmantas

temp

parent fd9dad89
......@@ -70,6 +70,7 @@ class Biuro_Contacts_Activator {
updated datetime DEFAULT '0000-00-00 00:00:00',
confirm tinyint DEFAULT 0,
job_id int DEFAULT null,
referer varchar(255) DEFAULT null,
PRIMARY KEY (id)
) $charset_collate;";
......
......@@ -488,6 +488,7 @@ class Biuro_Contacts_Public {
$nonce = $_POST['_wpnonce'];
$referer = $_POST['_wp_http_referer'];
if ( !isset( $nonce ) || !wp_verify_nonce($nonce, 'position_post_nonce' ) ) {
wp_redirect( $referer );
......@@ -548,6 +549,8 @@ class Biuro_Contacts_Public {
$_SESSION['position_file_error'] = $movefile['error'];
}
}
$insert_id = static::insert_row_to_db($data, array( '%s', '%s', '%s', '%s', '%s', '%s', '%d', '%s', '%d', '%d', '%s' ));
......
......@@ -459,6 +459,10 @@ function start_session() {
if(!session_id()) {
session_start();
}
if(!isset($_SESSION['referer']) && $_SERVER['HTTP_REFERER'] != null) {
$_SESSION['referer'] = $_SERVER['HTTP_REFERER'];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment