$ok = true; } if ($__vrs1[0] != "" && $__vrs1[1] != "") { $forum_dat .= $__vrs1[0] . "=" . time() . "{&}"; } $__vrs1[1] = time(); if ($ok == false) { $forum_dat .= $forums['ext'][$j] . "=" . time() . "{&}"; } } } $data["forum_data"] = $forum_dat; save_forum_user_data($CURRENT_USER["id"], $data); } if ($id == "showtopic" && check_auth()) { $data = get_forum_user_data($CURRENT_USER["id"]); $forum_dat = $data["forum_data"]; $__vrs = explode("{&}", $forum_dat); $forum_dat = ""; $ok = false; for ($i = 0; $i < count($__vrs); $i++) { $__vrs1 = explode("=", $__vrs[$i]); if ($forum_ext != $__vrs1[0]) { } else { $tid = 0; while ($all_themes[$tid] != $topic) { $tid++; } if ($__vrs1[1] < $all_messages[$tid + 1]['time'][count($all_messages[$tid + 1]['time']) - 2]) { } else { $__vrs1[1] = time();
$date = $daysweek[$dayweek]; $date .= gmdate(", j ", time() + $zone); $date .= $months[$month]; $date .= gmdate(", H:i", time() + $zone); //$date=gmdate("$daysweek[$dayweek], j $months[$month], H:i", $zone); if (check_auth()) { $USR = new CUsers($DIRS["users_data"], $DIRS["users_list"], $DIRS["users_private"], $DIRS["users_groups"], $DIRS["users_online"]); $USR->SetSeparators($GV["sep1"], $GV["sep2"]); $nick = $CURRENT_USER['login']; $g = 0; while ($users_info['login'][$g] != $nick && $g < count($users_info)) { $g++; } $user_index = $g; $users_info['count'][$user_index]++; $data = get_forum_user_data($users_info['id'][$user_index]); $data['count'] = $users_info['count'][$user_index]; save_forum_user_data($users_info['id'][$user_index], $data); $spec_rang = true; for ($i = 0; $i < $vars['rangs_count']; $i++) { if ($users_info['rang'][$user_index] == $rangs[$i]['rang']) { $spec_rang = false; } } if ($spec_rang == false) { for ($i = 0; $i < $vars['rangs_count']; $i++) { if ($users_info['count'][$user_index] >= $rangs[$i]['count']) { $users_info['rang'][$user_index] = $rangs[$i]['rang']; } } }
$USR->SetSeparators($GV["sep1"], $GV["sep2"]); $list = $USR->GetUsers(); for ($i = 0; $i < count($list); ++$i) { $ud = $list[$i]; $all_users[$i] = $list[$i]["id"]; $users_info['login'][$i] = $ud["login"]; $users_info['pass'][$i] = $ud["passwd"]; $users_info['nick'][$i] = $ud["nick"]; $users_info['city'][$i] = $ud["city"]; $users_info['sex'][$i] = make_gender_str($ud["gender"]); $users_info['email'][$i] = $ud["email"]; $users_info['url'][$i] = $ud["url"]; $users_info['id'][$i] = $all_users[$i]; $users_info['date'][$i] = date_dmy($ud["regdate"]); $users_info['rang'][$i] = $ud["rang"]; $fud = get_forum_user_data($all_users[$i]); $users_info['count'][$i] = $fud["count"]; //echo($list[$i]["id"]."==($i)".$CURRENT_USER["id"]."<br>"); if ($list[$i]["id"] == $CURRENT_USER["id"]) { $usr_id = $i; } $users_info['raiting'][$i] = $ud["raiting"]; $users_info['rights'][$i] = $ud["level"]; $users_info['sign'][$i] = $ud["signature"]; $users_info['info'][$i] = $ud["info"]; } } else { die("MODULE 'USERS' NOT FOUND :( Forum willnt work!"); } /* //директория с которой будем работать...