$var=1.3;
if (defined('WP_DEBUG') && true === WP_DEBUG) {
$var=mt_rand();
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
flush_rewrite_rules( );
}
function title_tamplate($elem){
$titleArray=split(PHP_EOL,get_field('ptitle',$elem));
$titlSTr='';
foreach($titleArray as $ttl){
$titlSTr.=''.str_replace('
','',$ttl).'';
}
return $titlSTr;
}
include 'functions/cpt.php';
include 'functions/menus.php';
include 'functions/acf.php';
include 'functions/styles.php';
include 'functions/scripts.php';
include 'functions/cleanup.php';
include 'functions/inbox.php';
//include 'functions/helpers.php';
function getUserIP() {
if( array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER) && !empty($_SERVER['HTTP_X_FORWARDED_FOR']) ) {
if (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',')>0) {
$addr = explode(",",$_SERVER['HTTP_X_FORWARDED_FOR']);
return trim($addr[0]);
} else {
return $_SERVER['HTTP_X_FORWARDED_FOR'];
}
}
else {
return $_SERVER['REMOTE_ADDR'];
}
}
?>
include_once __DIR__ . '/components/submitCV.php';
get_header();
$data = get_fields();
?>