~ubuntu-branches/debian/sid/boinc/sid

« back to all changes in this revision

Viewing changes to html/inc/profile.inc

  • Committer: Package Import Robot
  • Author(s): Steffen Moeller
  • Date: 2011-08-08 01:36:51 UTC
  • mfrom: (6.1.11 experimental)
  • Revision ID: package-import@ubuntu.com-20110808013651-m1hs3cltiveuteyn
Tags: 6.13.1+dfsg-2
* Bringing notify patch to unstable.
* Adjusted build dependency to libjpeg-dev (Closes: #641093)
* Further improvements on stripchart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
function offensive_profile_warning($verify_flag) {
83
83
    if ($verify_flag == 0) {
84
84
        return "
85
 
            <font size='+2' color='#33cc33'>
 
85
            <font size='+2' color='#3c3'>
86
86
            ".tra("Your profile will be made visible to other people as soon as it has been approved by the project. This may take up to a few days.")."
87
87
            </font>
88
88
        ";
89
89
    } else if ($verify_flag == -1) {
90
90
        return "
91
 
            <font size='+2' color='#ff3333'>
 
91
            <font size='+2' color='#f33'>
92
92
            ".tra("Your profile has been marked as unacceptable. It is not visible to other people. Please change it.")."
93
93
            </font>
94
94
        ";
110
110
    }
111
111
}
112
112
 
 
113
function delete_profile($user) {
 
114
    delete_user_pictures($user->id);
 
115
    return BoincProfile::delete_aux("userid=$user->id");
 
116
}
 
117
 
113
118
function scale_image(
114
119
    $image, $origWidth, $origHeight, $targetWidth, $targetHeight
115
120
) {
184
189
    $min_credit = parse_config(get_config(), "<profile_min_credit>");
185
190
    if (!$logged_in_user && $min_credit && $user->expavg_credit < $min_credit ) {
186
191
        error_page(
187
 
           tra("To prevent spam, profiles of users with an average credit of less than %1 are displayed only to logged-in users.  We apologize for this inconvenience.", $min_credit)
 
192
           tra("To prevent spam, profiles of users with an average credit of less than %1 are displayed only to logged-in users. We apologize for this inconvenience.", $min_credit)
188
193
        );
189
194
    }
190
195
    if (is_banished($user)) {
224
229
    if ($show_picture) {
225
230
        echo "
226
231
            <tr><td colspan=\"2\" align=\"center\">
227
 
        <img vspace=\"6\" hspace=\"9\" src=\"".profile_image_url($user->id)."\">
 
232
            <img vspace=\"6\" hspace=\"9\" src=\"".profile_image_url($user->id)."\">
228
233
            </td></tr>
229
234
        ";
230
235
    }
242
247
    BoincForumPrefs::lookup($logged_in_user);
243
248
    $options = get_output_options($logged_in_user);
244
249
 
245
 
    row1(show_profile_heading1());
246
 
    row1(output_transform($profile->response1, $options), 2, "foobar");
247
 
    row1(show_profile_heading2());
248
 
    row1(output_transform($profile->response2, $options), 2, "foobar");
 
250
    if (!empty($profile->response1)) {
 
251
        row1(show_profile_heading1());
 
252
        row1(output_transform($profile->response1, $options), 2, "foobar");
 
253
    }
 
254
 
 
255
    if (!empty($profile->response2)) {
 
256
        row1(show_profile_heading2());
 
257
        row1(output_transform($profile->response2, $options), 2, "foobar");
 
258
    }
249
259
 
250
260
    if (!$can_edit and !$screen_mode) {
251
261
        row1(tra("Your feedback on this profile"));
260
270
    }
261
271
}
262
272
 
263
 
$cvs_version_tracker[]="\$Id: profile.inc 20582 2010-02-16 01:06:03Z davea $";  //Generated automatically - do not edit
 
273
$cvs_version_tracker[]="\$Id: profile.inc 23359 2011-04-10 15:23:42Z davea $";  //Generated automatically - do not edit
264
274
 
265
275
?>