Commit Graph

20 Commits

Author SHA1 Message Date
Christian Beer 7e3d0802af Web: fix selection of UOTD
The default for uotd_time in the profile table is NULL but new profiles created after commit 6543928 have uotd_time=0. This means they are not eligible for UOTD because the default candidate queries only check if uotd_time is null. This fixes that and considers NULL and 0 as 'profile has not been UOTD but can be a candidate'.
2015-12-14 11:29:48 +01:00
David Anderson 4b918967b8 admin web: appearance tweaks 2015-01-27 13:28:51 -08:00
David Anderson 80d792265b admin web: appearance tweaks 2015-01-27 13:03:23 -08:00
David Anderson e6ecb981b3 web: change CSS usage to partly match Twitter Bootstrap. From Christian Beer. 2014-10-02 12:15:54 -07:00
David Anderson 3abed383e5 web PHP code: use mysqli everywhere if available
Change all the PHP code to use _mysql_query() instead of mysql_query()
(and similar for other functions).
_mysql_query() uses the mysqli API if available, else the old API.

Going forward, all PHP code should the DB abstration layer if possible;
else it should use the _mysql_* functions.
2014-09-04 12:00:09 -07:00
David Anderson b2064d0cd0 - admin: add script for deleting results with no workunit.
There were ~1,400 of these on SETI@home,
    presumably because of a bug at some point in the past.

svn path=/trunk/boinc/; revision=22197
2010-08-11 18:52:11 +00:00
David Anderson 2e85107ff6 - admin web: "User privileges" didn't work if the project
had set forum_preferences.special_user to "0000000",
    as had been done in SETI@home for some reason.
    Also, show user ID as well as name; name is not unique.

svn path=/trunk/boinc/; revision=21143
2010-04-07 22:21:44 +00:00
David Anderson 9baf78fe5f - web: added copyright and license info to PHP files
svn path=/trunk/boinc/; revision=15758
2008-08-05 22:43:14 +00:00
David Anderson 0dadf8d62f - admin web: fix profile screen form formatting
- web: remove get_transform_settings_from_user().
    There's only get_output_options()

    NOTE: why is text_transform() doing stripslashes()?
    The slashes shouldn't be in the DB in the first place.
    There's some fundamental confusion here.

- web: fix uotd.php


svn path=/trunk/boinc/; revision=14866
2008-03-07 04:38:06 +00:00
David Anderson e9c716debe - web: fixed screwed-up UOTD logic.
The meaning of the <screen_profiles> config flag is:
    If set:
        profiles must be screened by admins before their photo is shown.
        When this is done, profile.verification is set to 1
        (and they become eligible to be UOTD)
    If not set:
        profile photos are always shown.
        Profiles must be screened by admins before
        they are eligible for UOTD.
        When this is done, profile.verification is set to 1
    So default_uotd_candidates_query() is the same in either case.
- web: fix profile_screen_form.php
    (admin page for screening profiles)
- web: make a copy of login_action.php in ops/

svn path=/trunk/boinc/; revision=14561
2008-01-15 22:14:07 +00:00
David Anderson b542785c1e - web: My Account page, other user account page, and profile pages
now have community info in a 2nd column on the right.
    This accomplishes two things:
    1) it puts community info in more places;
    2) it provides a reasonable way to format long lists of friends;
        they just continue down the right column.

svn path=/trunk/boinc/; revision=14452
2008-01-01 22:29:10 +00:00
David Anderson 93cd221a35 *** empty log message ***
svn path=/trunk/boinc/; revision=10914
2006-08-14 22:57:59 +00:00
David Anderson b8c02cd8af *** empty log message ***
svn path=/trunk/boinc/; revision=10913
2006-08-14 22:50:51 +00:00
David Anderson 44658e81e5 *** empty log message ***
svn path=/trunk/boinc/; revision=10912
2006-08-14 22:11:53 +00:00
Janus B. Kristensen 8e9a59767f *** empty log message ***
svn path=/trunk/boinc/; revision=8389
2005-10-01 11:29:31 +00:00
Bruce Allen 4185f363ed Web pages. To control the posting of offsensive pictures, do not
display any user profile pictures until they have been verified by
project admin.  When user enters or modifies picture, only they can
see if.  If not yet verified, they will see a message saying that
other users can't see it until it has been verified by the project.
If admins have rejected it, user will see a message saying that they
must replace their picture or no one but themselves can see it.

The only known side effect of this is that selection of UOTD is now
includes users with no credit.  I will try to fix this.

svn path=/trunk/boinc/; revision=7967
2005-09-11 07:31:42 +00:00
Bruce Allen 01f30efe26 Made default choice 'ACCEPT' for screening user profiles for UOTD.
svn path=/trunk/boinc/; revision=5882
2005-04-18 02:36:35 +00:00
Bruce Allen 849f83488b Checking in the right versions of these files....
svn path=/trunk/boinc/; revision=5353
2005-02-08 04:38:31 +00:00
David Anderson e9d26909b2 *** empty log message ***
svn path=/trunk/boinc/; revision=4948
2004-12-27 22:52:55 +00:00
David Anderson e952710159 *** empty log message ***
svn path=/trunk/boinc/; revision=4905
2004-12-20 18:29:15 +00:00