41 include_once XOOPS_ROOT_PATH.
"/class/xoopslists.php";
42 include_once XOOPS_ROOT_PATH.
"/class/xoopsformloader.php";
52 include_once XOOPS_ROOT_PATH.
'/language/' . $xoopsConfig[
'language'] .
'/notification.php';
53 include_once XOOPS_ROOT_PATH .
'/include/notification_constants.php';
55 if ( $add_or_edit ==
true )
62 $email_cbox_value = 0;
64 $timezone_value = $xoopsConfig[
'default_TZ'];
74 $umode_value = $xoopsConfig[
'com_mode'];
75 $uorder_value = $xoopsConfig[
'com_order'];
84 $groups = array(XOOPS_GROUP_USERS);
90 if (is_object(
$user)) {
92 $uname_value =
$user->getVar(
"uname",
"E");
93 $name_value =
$user->getVar(
"name",
"E");
94 $email_value =
$user->getVar(
"email",
"E");
95 $email_cbox_value =
$user->getVar(
"user_viewemail") ? 1 : 0;
96 $url_value =
$user->getVar(
"url",
"E");
97 $temp =
$user->getVar(
"theme");
98 $timezone_value =
$user->getVar(
"timezone_offset");
99 $icq_value =
$user->getVar(
"user_icq",
"E");
100 $aim_value =
$user->getVar(
"user_aim",
"E");
101 $yim_value =
$user->getVar(
"user_yim",
"E");
102 $msnm_value =
$user->getVar(
"user_msnm",
"E");
103 $location_value =
$user->getVar(
"user_from",
"E");
104 $occ_value =
$user->getVar(
"user_occ",
"E");
105 $interest_value =
$user->getVar(
"user_intrest",
"E");
106 $sig_value =
$user->getVar(
"user_sig",
"E");
107 $sig_cbox_value = (
$user->getVar(
"attachsig") == 1) ? 1 : 0;
108 $umode_value =
$user->getVar(
"umode");
109 $uorder_value =
$user->getVar(
"uorder");
111 $notify_method_value =
$user->getVar(
"notify_method");
112 $notify_mode_value =
$user->getVar(
"notify_mode");
113 $bio_value =
$user->getVar(
"bio",
"E");
114 $rank_value =
$user->rank(
false);
115 $mailok_value =
$user->getVar(
'user_mailok',
'E');
145 $sig_tray->addElement($sig_tarea);
148 $sig_tray->addElement($sig_cbox);
149 $form->addElement($sig_tray);
152 $form->addElement($umode_select);
155 $form->addElement($uorder_select);
159 $form->addElement($notify_method_select);
162 $form->addElement($notify_mode_select);
165 $ranklist = XoopsLists::getUserRankList();
166 if ( count($ranklist) > 0 ) {
167 $rank_select->addOption(0,
"--------------");
168 $rank_select->addOptionArray($ranklist);
170 $rank_select->addOption(0, _AM_NSRID);
172 $form->addElement($rank_select);
192 foreach (
$groups as $key => $group) {
196 foreach ($group_select as $group) {
197 $form->addElement($group);
205 if ( !empty($uid_value) ) {
215 include_once XOOPS_ROOT_PATH .
'/include/comment_constants.php';
216 include_once(XOOPS_ROOT_PATH.
"/kernel/module.php");
222 if (XoopsModule::getByDirname(
"fmcontent")) {
223 $tables[] = array (
'table_name' =>
'fmcontent_content',
'uid_column' =>
'content_uid');
226 if (XoopsModule::getByDirname(
"newbb")) {
227 $tables[] = array (
'table_name' =>
'bb_posts',
'uid_column' =>
'uid');
236 if (!empty($table[
'criteria'])) {
239 $sql =
"SELECT COUNT(*) AS total FROM ".$xoopsDB->prefix($table[
'table_name']) .
' ' .
$criteria->renderWhere();
241 if ($row = $xoopsDB->fetchArray(
$result)) {
242 $total_posts = $total_posts + $row[
'total'];
246 $sql =
"UPDATE ".$xoopsDB->prefix(
"users").
" SET posts = '".$total_posts.
"' WHERE uid = '".
$uid.
"'";
253 $sql =
"SELECT uid FROM ".$xoopsDB->prefix(
"users").
"";
258 while ($data = $xoopsDB->fetchArray(
$result)) {