$user_code = -1;
$ret = 0;
-
do {
if (($json = json_decode($json_s)) == FALSE) {
$ret = 1;
break;
}
- if (($user_item = $bdb->usersnet_save($user->code, $json)) == FALSE) {
- $ret = 4;
+ if (($user_item = $bdb->usersnet_save($user->code, $json)) != 0) {
+ $ret = 4000 + $user_item;
break;
}
- return (TRUE);
} while(0);
- return (FALSE);
+
+ return ($ret);
}
function room_outstandup($user)
else if (strncmp($msg, "/info ", 6) == 0) {
$info_user = substr($msg, 6);
- error_log("here [" . $info_user."][".escsql(urldecode($info_user)). "]");
echo $this->info_show($user, urldecode($info_user), $dt);
}
else if (strncmp($msg, "/st ", 4) == 0) {
if (!isset($post['info'])) {
return FALSE;
}
-
- if (($ret = $brisk->info_save($user, $post['info'])) == TRUE) {
- if ($ret == TRUE) {
- echo "1";
- return TRUE;
- }
+ if (($ret = $brisk->info_save($user, $post['info'])) == 0) {
+ echo "1";
+ return TRUE;
}
+
printf($mlang_indwr['info_err'][$G_lang], $ret);
return FALSE;
}
*
*/
+var mlang_info = { 'btn_close' : { 'it' : 'Chiudi.',
+ 'en' : 'Close.' }
+ };
+
function info_fld(dobj)
{
var fields = { login: { type: 'value' },
info.visible(true);
}
else {
- alert("error: open info window failed");
+ var noti = new notify(gst, info_in.mesg, 0, mlang_info['btn_close'][g_lang], 400, 150);
}
}