From d85e6f791413422c74f4a1f5119a891ae19b8d17 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Thu, 13 Apr 2017 19:43:30 -0400 Subject: Forced profile completion for policy reasons --- dash/ads.php | 7 +------ dash/apply.php | 7 +------ dash/css/profile.css | 6 ++++++ dash/dash_common.php | 1 + dash/dash_functions.php | 3 +++ dash/dash_req.php | 6 ++++++ dash/profile.php | 18 +++++++++++------- inc/functions.php | 3 +-- 8 files changed, 30 insertions(+), 21 deletions(-) create mode 100644 dash/dash_req.php diff --git a/dash/ads.php b/dash/ads.php index 7c365ff..f0f6836 100644 --- a/dash/ads.php +++ b/dash/ads.php @@ -21,12 +21,7 @@ if ($b_user['type'] == 'EMPLOYER' && $b_user['id'] == $row['uid']) echo '
-'.PHP_EOL; -else - echo ' Profile Picture'.PHP_EOL; -?> + Profile Picture

Contact Information

diff --git a/dash/apply.php b/dash/apply.php index 3236d49..8a72f78 100644 --- a/dash/apply.php +++ b/dash/apply.php @@ -36,12 +36,7 @@ $result->free();
-'.PHP_EOL; -else - echo ' Profile Picture'.PHP_EOL; -?> + Profile Picture

diff --git a/dash/css/profile.css b/dash/css/profile.css index 36abcbd..ac38ca9 100644 --- a/dash/css/profile.css +++ b/dash/css/profile.css @@ -129,3 +129,9 @@ #proreviews .revstars { margin-bottom: 0.5em; } +#profile #prowarning { + text-align: center; + color: #af3500; + font-weight: bold; + margin: 1em 0; +} diff --git a/dash/dash_common.php b/dash/dash_common.php index cc1d0b1..40e8e1d 100644 --- a/dash/dash_common.php +++ b/dash/dash_common.php @@ -5,4 +5,5 @@ if ($b_user['id'] < 1) l_redirect('login.php'); define('ACC_TYPE', $b_user['type']); require('nav.php'); +require('dash_req.php'); ?> diff --git a/dash/dash_functions.php b/dash/dash_functions.php index 5497ce9..6551e15 100644 --- a/dash/dash_functions.php +++ b/dash/dash_functions.php @@ -19,6 +19,9 @@ function typestr ($type) { function rating_format ($rating = null, $typestr = 'Employer') { return ''; } +function picture_format ($picstr = null) { + return is_null($picstr) ? 'uimg/default.png' : 'uimg/'.htmlentities($picstr).'.png'; +} function draw_norate_p () { ?>
diff --git a/dash/dash_req.php b/dash/dash_req.php new file mode 100644 index 0000000..ccfe386 --- /dev/null +++ b/dash/dash_req.php @@ -0,0 +1,6 @@ + diff --git a/dash/profile.php b/dash/profile.php index 3c63ad4..d7aa997 100644 --- a/dash/profile.php +++ b/dash/profile.php @@ -21,12 +21,7 @@ if ($public) {
-'.PHP_EOL; - else - echo ' Profile Picture'.PHP_EOL; -?> + Profile Picture
@@ -115,6 +110,10 @@ $result->free();

+For safety reasons, you will have to complete your profile before you can access the rest of Bulletin.

'.PHP_EOL; +?>

Profile Picture

@@ -132,7 +131,12 @@ $result->free();

Include a Bio

-

+ +

Basic Information

diff --git a/inc/functions.php b/inc/functions.php index 92343f7..430a6d6 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -43,8 +43,7 @@ function fatal ($msg = null, $link = null, $label = null) { } function gohome () { - global $b_config; - redirect($b_config['base_url']); + l_redirect(''); } function goin () { -- cgit v1.2.3