user_exists ) { $page = "error"; $smarty->assign('error_header', 639); $smarty->assign('error_message', 656); $smarty->assign('error_submit', 641); include "footer.php"; } $resume_id = rc_toolkit::get_request('resume_id'); $user_id = rc_toolkit::get_request('user_id'); $task = rc_toolkit::get_request('task','main'); $rc_validator = new rc_validator(); $se_resume = new se_resume($user->user_info[user_id], $resume_id); $where = ""; //$resume_list = $se_resume->resume_list(0,10,"resume_id DESC", $where); $privacy_max = $se_resume->resume_privacy_max($user); //$allowed_to_view = (bool) ( $privacy_max & $resume->resume_info['resume_privacy'] ); $allowed_to_view = 1; if( ! $allowed_to_view ) { $page = "error"; $smarty->assign('error_header', 639); $smarty->assign('error_message', 44300765); $smarty->assign('error_submit', 641); include "footer.php"; } if( ! $se_resume->resume_info[resume_blank] ) { rc_toolkit::redirect('resume_add.php'); } if( $allowed_to_view ) { $se_resume->resume_info['resume_views']++; $sql = "UPDATE se_resume SET resume_views=resume_views+1 WHERE resume_id='{$se_resume->resume_info['resume_id']}' LIMIT 1"; $database->database_query($sql); } // SET GLOBAL PAGE TITLE $global_page_title[0] = $se_resume->resume_info['resume_position']; $global_page_description[0] = 11290275; // SET GLOBAL PAGE TITLE $global_page_title[0] = 44300814; $global_page_title[1] = $se_resume->resume_info['resume_position']; $global_page_title[2] = SE_Language::_get(44300101)." - ".$se_resume->resume_owner->user_info['user_displayname']; $global_page_description[0] = 1158; $global_page_description[1] = $se_resume->resume_info['resume_position']; $smarty->assign('resume_photo',$se_resume->resume_photo("./images/nophoto.gif")); //rc_toolkit::debug($se_resume->resume_owner->user_info['user_displayname'],'se_resume'); //rc_toolkit::debug($se_resume->resume_info,'se_resume'); $smarty->assign('resume_owner', $se_resume->resume_owner); $smarty->assign('resume_info', $se_resume->resume_info); $smarty->assign('resume_blank', $se_resume->resume_info[resume_blank]); $smarty->assign('is_error', $rc_validator->has_errors()); $smarty->assign('error_message', join(" ",$rc_validator->get_errors())); include "footer.php"; ?>