Branch: Tag:

1999-10-09

1999-10-09 17:26:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added back last_modified_by().

Rev: server/base_server/configuration.pike:1.212

3:    * (C) 1996, 1999 Idonex AB.    */    - constant cvs_version = "$Id: configuration.pike,v 1.211 1999/10/04 19:09:07 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.212 1999/10/09 17:26:25 grubba Exp $";   #include <module.h>   #include <roxen.h>   #include <request_trace.h>
808:    describe_backtrace(backtrace())));   }    + public string last_modified_by(object file, object id) + { +  int *s; +  int uid; +  mixed *u;    -  +  if(objectp(file)) s=file->stat(); +  if(!s || sizeof(s)<5) return "A. Nonymous"; +  uid=s[5]; +  u=user_from_uid(uid, id); +  if(u) return u[0]; +  return "A. Nonymous"; + }    -  +  +  +    // Some clients does _not_ handle the magic 'internal-gopher-...'.   // So, lets do it here instead.   private mapping internal_gopher_image(string from)