From: Jon P. <jo...@re...> - 2007-05-17 17:31:52
|
On Thu, 2007-05-17 at 16:18 +0800, Snic Huang wrote: > Everybody, this is my first time to commit code in cchost. :) > > This is an honor for me. :) > > Snic Cool! Go for it! Jon > 2007/5/16, Jon Phillips <jo...@re... >: > On Wed, 2007-05-16 at 21:56 +0800, Snic Huang wrote: > > I'm so glad about got your message. Victor, > > I've fixed cc-uploadapi.php and cc-quota.inc. > > Please offer me some advice. Thanks! > > > > Very cool! :-) > > > > Snic > > As Victor pointed out, you have commit access...commit to svn > and then > we can all test... > > Jon > > > 2007/5/15, Victor Stone <fou...@gm...>: > > Snic passed me an updated version of the quota code > based on > > some of > > my feedback. I've checked in what's there with some > further > > mods that > > need to be fully tested (We don't need to use the > user_quota > > field if > > it's never been overwritten so there's no > cc-login.php patch.) > > > > HOWEVER: there is a still one hole left in the code: > This > > quota code > > only works when the ccHost site has never had a > contest. The > > fact is > > when you have a contest the entries are NOT put into > > the /people > > directory, they are put into the /contest/* > directories. So > > the > > current check of reading the directory isn't > sufficient. What > > probably > > should happen is a look up of the all the user's > files in the > > database. > > > > Not sure about this but something like: > > > > $uploads = new CCUploads(); > > $where['upload_user'] = CCUser::CurrentUser(); > > $keys = $uploads->QueryKeys($where); > > $files = new CCFiles(); > > $usertotal = > $files->QueryItem( 'SUM(file_filesize)', > > 'file_upload in > > (' . join(',',$keys) . ')' ); > > > > VS > > > -- > Jon Phillips > > San Francisco, CA > USA PH 510.499.0894 > jo...@re... > http://www.rejon.org > > MSN, AIM, Yahoo Chat: kidproto > Jabber Chat: re...@gr... > IRC: re...@ir... > > -- Jon Phillips San Francisco, CA USA PH 510.499.0894 jo...@re... http://www.rejon.org MSN, AIM, Yahoo Chat: kidproto Jabber Chat: re...@gr... IRC: re...@ir... |