Roxen.git/
server/
base_server/
prototypes.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-01-19
2001-01-19 18:58:21 by Per Hedbor <ph@opera.com>
1d5c898392acc6b5ab64b4e078a4490dc7a68eb8 (
24
lines) (+
14
/-
10
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed set_* prototypes in the User class
Rev: server/base_server/prototypes.pike:1.8
1:
#include <stat.h> #include <config.h> #include <module_constants.h>
-
constant cvs_version="$Id: prototypes.pike,v 1.
7
2001/01/19 18:
34
:
44
per Exp $";
+
constant cvs_version="$Id: prototypes.pike,v 1.
8
2001/01/19 18:
58
:
21
per Exp $";
class Variable {
720:
//! Used by compat_userinfo(). The default implementation returns "x"
-
int set_name() {}
-
int set_real_name() {}
-
int set_uid() {}
-
int set_gid() {}
-
int set_shell() {}
-
int set_gecos() {}
-
int set_homedir() {}
-
int set_crypted_password() {}
+
int set_name(
string name
)
{}
+
int set_real_name(
string rname
) {}
+
int set_uid(
int uid
)
{}
+
int set_gid(
int gid
)
{}
+
int set_shell(
string shell
) {}
+
int set_gecos(
string gecos
) {}
+
int set_homedir(
string hodir
) {}
+
int set_crypted_password(
string passwd
)
{}
+
int set_password(string passwd)
{}
+
//! Returns 1 if it was possible to set the variable.
array compat_userinfo( ) //! Return a unix passwd compatible array with user information. The
744:
}
-
void
set_var( RoxenModule module, string index, mixed value )
+
mixed
set_var( RoxenModule module, string index, mixed value )
//! Set a specified variable in the user. If @[value] is a string, //! it's stored as is in the database, otherwise it's encoded using //! encode_value before it's stored.
776:
"INSERT INTO user_data VALUES ("+mm+", %s, %s, %s, %d)", index, name(), value, encoded );
+
return value;
} mixed get_var( RoxenModule module, string index )