*** empty log message ***

svn path=/trunk/boinc/; revision=4210
This commit is contained in:
David Anderson 2004-09-20 21:58:47 +00:00
parent 68ea689819
commit b40131f41e
4 changed files with 16 additions and 5 deletions

View File

@ -17474,3 +17474,11 @@ David 20 Sept 2004
html/inc/
cache.inc
prefs.inc
David 20 Sept 2004
html/
inc/
forum.inc
user/
edit_forum_preferences_action.php
show_user.php

View File

@ -233,10 +233,10 @@ function getSortStyle($user,$place){
function setSortStyle($user,$place,$new_style){
if ($user->id!=""){
list($forum,$thread,$faq,$answer)=explode("|",$user->forum_sorting);
list($forum,$thread,$faq,$answer)=explode("|",$user->sorting);
$$place=$new_style;
$user->forum_sorting=implode("|",array($forum,$thread,$faq,$answer));
$sql = "UPDATE forum_preferences SET sorting = '".$user->forum_sorting."' where userid = '".$user->id."'";
$user->sorting=implode("|",array($forum,$thread,$faq,$answer));
$sql = "UPDATE forum_preferences SET sorting = '".$user->sorting."' where userid = '".$user->id."'";
mysql_query($sql);
} else {
list($forum,$thread,$faq,$answer)=explode("|",$_COOKIE['sorting']);

View File

@ -26,9 +26,9 @@
$file=$_FILES['picture']['tmp_name'];
$size = getImageSize($file);
// print_r($size);flush();
if ($size[2]!=1 and $size[2]!=2 and $size[2]!=3){
if ($size[2]!=2 and $size[2]!=3){
//Not the right kind of file
Echo "Error: Not the right kind of file";
Echo "Error: Not the right kind of file, only PNG and JPEG are supported.";
exit();
}
$width = $size[0];

View File

@ -12,12 +12,15 @@
require_once("../inc/db.inc");
require_once("../inc/user.inc");
require_once("../inc/forum.inc");
db_init();
$result = mysql_query("select * from user where id = $id");
$user = mysql_fetch_object($result);
mysql_free_result($result);
$user = getForumPreferences($user);
if ($format == "xml") {
require_once("../inc/xml.inc");
if ($user) {