From a5532cd0d80875b812e40fbd38ac967e0ef7daec Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Thu, 11 Oct 2007 15:28:12 +0000 Subject: [PATCH] Require non-zero credit to create profile. David will modify to be configuration option svn path=/trunk/boinc/; revision=13835 --- checkin_notes | 8 ++++++++ html/user/create_profile.php | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index ffb15081cf..888b22feb9 100644 --- a/checkin_notes +++ b/checkin_notes @@ -9443,3 +9443,11 @@ Charlie 11 Oct 2007 mac_saver_module.cpp clientgui/ MainDocument.cpp + +Eric K. 11 Oct 2007 + - Require non-zero credit to create profile. David will modify to be + configuration option + + html/ + user/ + create_profile.php diff --git a/html/user/create_profile.php b/html/user/create_profile.php index 7de0a8232c..7c9e4b804f 100644 --- a/html/user/create_profile.php +++ b/html/user/create_profile.php @@ -5,6 +5,14 @@ require_once("../inc/profile.inc"); db_init(); $user = get_logged_in_user(true); -show_profile_creation_page($user); +if ($user->total_credit > 0) { + show_profile_creation_page($user); +} else { + page_head("Not available"); + echo "You must have returned results and received credit + before you can create a profile. + "; + page_tail(); +} ?>