Navigacija

Vartotojų tinkle

Prisijungusių svečių: 284
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,955
Naujausias narys: lanis

Naujausi straipsniai

Paskutiniai nariai

MaFetas11:19:29
TOMIJUS 6 dienos
ozzWANTED 1 savaitė
Reikalas 9 savaitės
Jaunelis16 savaitės
lanis16 savaitės
And2s17 savaitės
Memento Mori22 savaitės
Quwqkibor24 savaitės
asirija28 savaitės
tomeem30 savaitės
weberiz33 savaitės
mRokass36 savaitės
kartoonas37 savaitės
grunskiz40 savaitės
Bruksnys40 savaitės
illusion40 savaitės
ordo41 savaitės
Jurgaila42 savaitės
originalcs1642 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 3.22.70.210
Naujienų: 529
Straipsnių: 235
Temų: 52,588
Postų: 522,537
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

MaFetas
2024 Lap. 13 22:11:57
hey how, geras dar veikiantis saitas?

Jaunelis
2024 Lie. 25 11:07:43
Oho vis dar veikia svetainė akinanti šypsen Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas šypsosi

And2s
2024 Lie. 17 19:07:04
2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija akinanti šypsen ačiū Ozz kad saugoji šitą kultūrinį reliktą šypsosi

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
Ieškau.
Forumas | Modai, įskiepiai, panelės (PHP-FUSION) | Mods, Panels & Infusions

Autorius: Nesąmonė. Peržiūrų: 1328      Spausdinti temą
2010 Lap. 27 18:11:58          1 žinutė iš 4
Spausdinti pranešimą
PHP Fusion v7, reikia narių komentavimo modo ar ko ten, na kaip šiame saite.
Visur ieškojau, niekur neradau, gal kas turit?
2010 Lap. 27 19:11:31          2 žinutė iš 4
Spausdinti pranešimą
Atsidarai profile.php
Prieš:

closetable();

prirašai:

include INCLUDES."comments_include.php";
showcomments("U", DB_USERS, "user_id", $_GET['lookup'], FUSION_SELF."?lookup=".$user_data['user_id']);

Išsaugai ir uždarai.

Andrejaus tinklalapis
2010 Lap. 27 20:11:10          3 žinutė iš 4
Spausdinti pranešimą
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/eswc/domains/eswc.lt/public_html/profile.php on line 228


<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: profile.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."view_profile.php";
include LOCALE.LOCALESET."user_fields.php";

if ($settings['hide_userprofiles'] && !iMEMBER) { redirect(BASEDIR."login.php"); }

if (isset($_GET['lookup']) && isnum($_GET['lookup'])) {
    $result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_id='".$_GET['lookup']."' LIMIT 1");

    if (dbrows($result)) { $user_data = dbarray($result); } else { redirect("index.php"); }

    $status = array($locale['440'], $locale['441'], $locale['442'], $locale['443'], $locale['444'], $locale['445'], $locale['446'], $locale['447']);

    $visible_arr = array(0, 3, 7);
    if (iADMIN && ($user_data['user_status'] == 1 || $user_data['user_status'] == 3)) {
        $suspend = dbarray(dbquery(
            "SELECT suspend_reason FROM ".DB_SUSPENDS." WHERE suspended_user='".$_GET['lookup']."' ORDER BY suspend_date DESC LIMIT 1"
        ));
    }
    if ((!iADMIN || !checkrights("M")) && !in_array($user_data['user_status'], $visible_arr)) { redirect("index.php"); }

    if (iADMIN && checkrights("UG") && $user_data['user_id'] != $userdata['user_id']) {
        if ((isset($_POST['add_to_group'])) && (isset($_POST['user_group']) && isnum($_POST['user_group']))) {
            if (!preg_match("(^\.{$_POST['user_group']}$|\.{$_POST['user_group']}\.|\.{$_POST['user_group']}$)", $user_data['user_groups'])) {
                $result = dbquery("UPDATE ".DB_USERS." SET user_groups='".$user_data['user_groups'].".".$_POST['user_group']."' WHERE user_id='".$user_data['user_id']."'");
            }
            redirect(FUSION_SELF."?lookup=".$user_data['user_id']);
        }
    }

    add_to_title($locale['global_200'].$locale['400'].$locale['global_201'].$user_data['user_name']);
    opentable($locale['400']);
    echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
    if ($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar'])) {
        echo "<td rowspan='6' width='1%' class='tbl profile_user_avatar'><!--profile_user_avatar--><img src='".IMAGES."avatars/".$user_data['user_avatar']."' alt='' /></td>\n";
    }
    echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u001']."</td>\n";
    echo "<td align='right' class='tbl1 profile_user_name'><!--profile_user_name-->".$user_data['user_name']."</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['424']."</td>\n";
    echo "<td align='right' class='tbl1 profile_user_level'><!--profile_user_level-->".getuserlevel($user_data['user_level'])."</td>\n";
    echo "</tr>\n";
    if (iADMIN && $user_data['user_status'] > 0) {
        echo "<tr>\n";
        echo "<td width='1%' class='tbl1' style='white-space:nowrap'></td>\n";
        echo "<td align='right' class='tbl1 profile_user_status'><!--profile_user_status-->".$status[$user_data['user_status']]."</td>\n";
        echo "</tr>\n";
        if ($user_data['user_status'] == 1 || $user_data['user_status'] == 3 && $suspend['suspend_reason'] != "") {
            echo "<tr>\n";
            echo "<td valign='top' width='1%' class='tbl1' style='white-space:nowrap'>".$locale['448']."</td>\n";
            echo "<td align='right' class='tbl1 profile_user_reason'><!--profile_user_reason-->".$suspend['suspend_reason']."</td>\n";
            echo "</tr>\n";
        }
    }
    if ($user_data['user_hide_email'] != "1" || iADMIN) {
        echo "<tr>\n";
        echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u005']."</td>\n";
        echo "<td align='right' class='tbl1'>".hide_email($user_data['user_email'])."</td>\n";
        echo "</tr>\n";
    }
    echo "<tr>\n";
    echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u040']."</td>\n";
    echo "<td align='right' class='tbl1'>".showdate("longdate", $user_data['user_joined'])."</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u041']."</td>\n";
    echo "<td align='right' class='tbl1'>".($user_data['user_lastvisit'] ? showdate("longdate", $user_data['user_lastvisit']) : $locale['u042'])."</td>\n";
    echo "</tr>\n";
    if (iMEMBER && $userdata['user_id'] != $user_data['user_id']) {
        echo "<tr><td colspan='".($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar']) ? "3" : "2")."' class='tbl2' style='text-align:center;white-space:nowrap'><a href='messages.php?msg_send=".$user_data['user_id']."' title='".$locale['u043']."'>".$locale['u043']."</a>\n";
        if (iADMIN && checkrights("M") && $user_data['user_level'] != "103" && $user_data['user_id'] != "1") {
            echo " - <a href='".ADMIN."members.php".$aidlink."&amp;step=log&amp;user_id=".$_GET['lookup']."'>".$locale['419'] ."</a>";
        }
        echo "</td>\n</tr>\n";
    }
    echo "</table>\n";

    echo "<div style='margin:5px'></div>\n";

    $profile_method = "display"; $i = 0; $user_cats = array(); $user_fields = array(); $ob_active = false;
    $result2 = dbquery(
        "SELECT * FROM ".DB_USER_FIELDS." tuf
        INNER JOIN ".DB_USER_FIELD_CATS." tufc ON tuf.field_cat = tufc.field_cat_id
        ORDER BY field_cat_order, field_order"
    );
    if (dbrows($result2)) {
        while($data2 = dbarray($result2)) {
            if ($i != $data2['field_cat']) {
                if ($ob_active) {
                    $user_fields[$i] = ob_get_contents();
                    ob_end_clean();
                    $ob_active = false;
                }
                $i = $data2['field_cat'];
                $user_cats[] = array(
                    "field_cat_name" => $data2['field_cat_name'],
                    "field_cat" => $data2['field_cat']
                );
            }
            if (!$ob_active) {
                ob_start();
                $ob_active = true;
            }
            if (file_exists(LOCALE.LOCALESET."user_fields/".$data2['field_name'].".php")) {
                include LOCALE.LOCALESET."user_fields/".$data2['field_name'].".php";
            }
            if (file_exists(INCLUDES."user_fields/".$data2['field_name']."_include.php")) {
                include INCLUDES."user_fields/".$data2['field_name']."_include.php";
            }
        }
    }

    if ($ob_active) {
        $user_fields[$i] = ob_get_contents();
        ob_end_clean();
    }
   
    $i = 1;
    foreach ($user_cats as $category) {
        if (array_key_exists($category['field_cat'], $user_fields) && $user_fields[$category['field_cat']]) {
            echo "<!--userfield_precat_".$i."-->\n";
            echo "<div style='margin:5px'></div>\n";
            echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
            echo "<td colspan='2' class='tbl2'><strong>".$category['field_cat_name']."</strong></td>\n";
            echo "</tr>\n".$user_fields[$category['field_cat']];
            echo "</table>\n";
            $i++;
        }
    }
    if (count($user_fields > 0)) {
        echo "<!--userfield_end-->\n";
    }

    if (iADMIN && checkrights("M")) {
        echo "<div style='margin:5px'></div>\n";
        echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
        echo "<td colspan='2' class='tbl2'><strong>".$locale['u048']."</strong></td>\n";
        echo "</tr>\n<tr>\n";
        echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u049']."</td>\n";
        echo "<td align='right' class='tbl1'>".$user_data['user_ip']."</td>\n";
        echo "</tr>\n</table>\n";
    }

    if ($user_data['user_groups']) {
        echo "<div style='margin:5px'></div>\n";
        echo "<table cellpadding='0' cellspacing='1' width='400' class='center tbl-border'>\n<tr>\n";
        echo "<td class='tbl2'><strong>".$locale['401']."</strong></td>\n";
        echo "</tr>\n<tr>\n";
        echo "<td class='tbl1'>\n";
        $user_groups = (strpos($user_data['user_groups'], ".") == 0 ? explode(".", substr($user_data['user_groups'], 1)) : explode(".", $user_data['user_groups']));
        for ($i = 0; $i < count($user_groups); $i++) {
            echo "<div style='float:left'><a href='".FUSION_SELF."?group_id=".$user_groups[$i]."'>".getgroupname($user_groups[$i])."</a></div><div style='float:right'>".getgroupname($user_groups[$i], true)."</div><div style='float:none;clear:both'></div>\n";
        }
        echo "</td>\n</tr>\n</table>\n";
    }
    if (iADMIN && checkrights("M") && $user_data['user_id'] != $userdata['user_id']) {
        $user_groups_opts = "";
        if ($user_data['user_level'] < 102) {
            echo "<div style='margin:5px'></div>\n";
            echo "<form name='admin_form' method='post' action='".FUSION_SELF."?lookup=".$user_data['user_id']."'>\n";
            echo "<table cellpadding='0' cellspacing='0' width='400' class='center tbl-border'>\n<tr>\n";
            echo "<td class='tbl2' colspan='2'><strong>".$locale['402']."</strong></td>\n";
            echo "</tr>\n<tr>\n";
            echo "<td class='tbl1'><!--profile_admin_options-->\n";
            echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=edit&amp;user_id=".$user_data['user_id']."'>".$locale['410']."</a> ::\n";
            echo "<a href='".ADMIN."members.php".$aidlink."&amp;action=1&amp;user_id=".$user_data['user_id']."'>".$locale['411']."</a> ::\n";
            echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=delete&amp;status=0&amp;user_id=".$user_data['user_id']."' onclick=\"return confirm('".$locale['414']."');\">".$locale['412']."</a></td>\n";
            $result = dbquery("SELECT group_id, group_name FROM ".DB_USER_GROUPS." ORDER BY group_name");
            if (dbrows($result)) {
                while ($data2 = dbarray($result)) {
                    if (!preg_match("(^{$data2['group_id']}|\.{$data2['group_id']}\.|\.{$data2['group_id']}$)", $user_data['user_groups'])) {
                        $user_groups_opts .= "<option value='".$data2['group_id']."'>".$data2['group_name']."</option>\n";
                    }
                }
                if (iADMIN && checkrights("UG") && $user_groups_opts) {
                    echo "<td align='right' class='tbl1'>".$locale['415']."\n";
                    echo "<select name='user_group' class='textbox' style='width:100px'>\n".$user_groups_opts."</select>\n";
                    echo "<input type='submit' name='add_to_group' value='".$locale['416']."' class='button'  onclick=\"return confirm('".$locale['417']."');\" /></td>\n";
                }
            }
            echo "</tr>\n</table>\n</form>\n";
        }
    }
} elseif (isset($_GET['group_id']) && isnum($_GET['group_id'])) {
    $result = dbquery("SELECT group_id, group_name FROM ".DB_USER_GROUPS." WHERE group_id='".$_GET['group_id']."'");
    if (dbrows($result)) {
        $data = dbarray($result);
        $result = dbquery("SELECT user_id, user_name, user_level, user_status FROM ".DB_USERS." WHERE user_groups REGEXP('^\\\.{$_GET['group_id']}$|\\\.{$_GET['group_id']}\\\.|\\\.{$_GET['group_id']}$') ORDER BY user_level DESC, user_name");
        opentable($locale['420']);
        echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
        echo "<td align='center' colspan='2' class='tbl1'><strong>".$data['group_name']."</strong> (".sprintf((dbrows($result) == 1 ? $locale['421'] : $locale['422']), dbrows($result)).")</td>\n";
        echo "</tr>\n<tr>\n";
        echo "<td class='tbl2'><strong>".$locale['423']."</strong></td>\n";
        echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['424']."</strong></td>\n";
        echo "</tr>\n";
        while ($data = dbarray($result)) {
            $cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;
            echo "<tr>\n<td class='$cell_color'>\n".profile_link($data['user_id'], $data['user_name'], $data['user_status'])."</td>\n";
            echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td>\n</tr>";
        }
        echo "</table>\n";
    } else {
        redirect("index.php");
    }
} else {
    redirect(BASEDIR."index.php");
}

de.php";

showcomments("U", DB_USERS, "user_id", $_GET['lookup'], FUSION_SELF."?lookup=".$user_data['user_id']);
closetable();

require_once THEMES."templates/footer.php";
?>



2010 Lap. 27 20:11:01          4 žinutė iš 4
Spausdinti pranešimą
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: profile.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."view_profile.php";
include LOCALE.LOCALESET."user_fields.php";

if ($settings['hide_userprofiles'] && !iMEMBER) { redirect(BASEDIR."login.php"); }

if (isset($_GET['lookup']) && isnum($_GET['lookup'])) {
    $result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_id='".$_GET['lookup']."' LIMIT 1");

    if (dbrows($result)) { $user_data = dbarray($result); } else { redirect("index.php"); }

    $status = array($locale['440'], $locale['441'], $locale['442'], $locale['443'], $locale['444'], $locale['445'], $locale['446'], $locale['447']);

    $visible_arr = array(0, 3, 7);
    if (iADMIN && ($user_data['user_status'] == 1 || $user_data['user_status'] == 3)) {
        $suspend = dbarray(dbquery(
            "SELECT suspend_reason FROM ".DB_SUSPENDS." WHERE suspended_user='".$_GET['lookup']."' ORDER BY suspend_date DESC LIMIT 1"
        ));
    }
    if ((!iADMIN || !checkrights("M")) && !in_array($user_data['user_status'], $visible_arr)) { redirect("index.php"); }

    if (iADMIN && checkrights("UG") && $user_data['user_id'] != $userdata['user_id']) {
        if ((isset($_POST['add_to_group'])) && (isset($_POST['user_group']) && isnum($_POST['user_group']))) {
            if (!preg_match("(^\.{$_POST['user_group']}$|\.{$_POST['user_group']}\.|\.{$_POST['user_group']}$)", $user_data['user_groups'])) {
                $result = dbquery("UPDATE ".DB_USERS." SET user_groups='".$user_data['user_groups'].".".$_POST['user_group']."' WHERE user_id='".$user_data['user_id']."'");
            }
            redirect(FUSION_SELF."?lookup=".$user_data['user_id']);
        }
    }

    add_to_title($locale['global_200'].$locale['400'].$locale['global_201'].$user_data['user_name']);
    opentable($locale['400']);
    echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
    if ($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar'])) {
        echo "<td rowspan='6' width='1%' class='tbl profile_user_avatar'><!--profile_user_avatar--><img src='".IMAGES."avatars/".$user_data['user_avatar']."' alt='' /></td>\n";
    }
    echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u001']."</td>\n";
    echo "<td align='right' class='tbl1 profile_user_name'><!--profile_user_name-->".$user_data['user_name']."</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['424']."</td>\n";
    echo "<td align='right' class='tbl1 profile_user_level'><!--profile_user_level-->".getuserlevel($user_data['user_level'])."</td>\n";
    echo "</tr>\n";
    if (iADMIN && $user_data['user_status'] > 0) {
        echo "<tr>\n";
        echo "<td width='1%' class='tbl1' style='white-space:nowrap'></td>\n";
        echo "<td align='right' class='tbl1 profile_user_status'><!--profile_user_status-->".$status[$user_data['user_status']]."</td>\n";
        echo "</tr>\n";
        if ($user_data['user_status'] == 1 || $user_data['user_status'] == 3 && $suspend['suspend_reason'] != "") {
            echo "<tr>\n";
            echo "<td valign='top' width='1%' class='tbl1' style='white-space:nowrap'>".$locale['448']."</td>\n";
            echo "<td align='right' class='tbl1 profile_user_reason'><!--profile_user_reason-->".$suspend['suspend_reason']."</td>\n";
            echo "</tr>\n";
        }
    }
    if ($user_data['user_hide_email'] != "1" || iADMIN) {
        echo "<tr>\n";
        echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u005']."</td>\n";
        echo "<td align='right' class='tbl1'>".hide_email($user_data['user_email'])."</td>\n";
        echo "</tr>\n";
    }
    echo "<tr>\n";
    echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u040']."</td>\n";
    echo "<td align='right' class='tbl1'>".showdate("longdate", $user_data['user_joined'])."</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u041']."</td>\n";
    echo "<td align='right' class='tbl1'>".($user_data['user_lastvisit'] ? showdate("longdate", $user_data['user_lastvisit']) : $locale['u042'])."</td>\n";
    echo "</tr>\n";
    if (iMEMBER && $userdata['user_id'] != $user_data['user_id']) {
        echo "<tr><td colspan='".($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar']) ? "3" : "2")."' class='tbl2' style='text-align:center;white-space:nowrap'><a href='messages.php?msg_send=".$user_data['user_id']."' title='".$locale['u043']."'>".$locale['u043']."</a>\n";
        if (iADMIN && checkrights("M") && $user_data['user_level'] != "103" && $user_data['user_id'] != "1") {
            echo " - <a href='".ADMIN."members.php".$aidlink."&amp;step=log&amp;user_id=".$_GET['lookup']."'>".$locale['419'] ."</a>";
        }
        echo "</td>\n</tr>\n";
    }
    echo "</table>\n";

    echo "<div style='margin:5px'></div>\n";

    $profile_method = "display"; $i = 0; $user_cats = array(); $user_fields = array(); $ob_active = false;
    $result2 = dbquery(
        "SELECT * FROM ".DB_USER_FIELDS." tuf
        INNER JOIN ".DB_USER_FIELD_CATS." tufc ON tuf.field_cat = tufc.field_cat_id
        ORDER BY field_cat_order, field_order"
    );
    if (dbrows($result2)) {
        while($data2 = dbarray($result2)) {
            if ($i != $data2['field_cat']) {
                if ($ob_active) {
                    $user_fields[$i] = ob_get_contents();
                    ob_end_clean();
                    $ob_active = false;
                }
                $i = $data2['field_cat'];
                $user_cats[] = array(
                    "field_cat_name" => $data2['field_cat_name'],
                    "field_cat" => $data2['field_cat']
                );
            }
            if (!$ob_active) {
                ob_start();
                $ob_active = true;
            }
            if (file_exists(LOCALE.LOCALESET."user_fields/".$data2['field_name'].".php")) {
                include LOCALE.LOCALESET."user_fields/".$data2['field_name'].".php";
            }
            if (file_exists(INCLUDES."user_fields/".$data2['field_name']."_include.php")) {
                include INCLUDES."user_fields/".$data2['field_name']."_include.php";
            }
        }
    }

    if ($ob_active) {
        $user_fields[$i] = ob_get_contents();
        ob_end_clean();
    }
   
    $i = 1;
    foreach ($user_cats as $category) {
        if (array_key_exists($category['field_cat'], $user_fields) && $user_fields[$category['field_cat']]) {
            echo "<!--userfield_precat_".$i."-->\n";
            echo "<div style='margin:5px'></div>\n";
            echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
            echo "<td colspan='2' class='tbl2'><strong>".$category['field_cat_name']."</strong></td>\n";
            echo "</tr>\n".$user_fields[$category['field_cat']];
            echo "</table>\n";
            $i++;
        }
    }
    if (count($user_fields > 0)) {
        echo "<!--userfield_end-->\n";
    }

    if (iADMIN && checkrights("M")) {
        echo "<div style='margin:5px'></div>\n";
        echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
        echo "<td colspan='2' class='tbl2'><strong>".$locale['u048']."</strong></td>\n";
        echo "</tr>\n<tr>\n";
        echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u049']."</td>\n";
        echo "<td align='right' class='tbl1'>".$user_data['user_ip']."</td>\n";
        echo "</tr>\n</table>\n";
    }

    if ($user_data['user_groups']) {
        echo "<div style='margin:5px'></div>\n";
        echo "<table cellpadding='0' cellspacing='1' width='400' class='center tbl-border'>\n<tr>\n";
        echo "<td class='tbl2'><strong>".$locale['401']."</strong></td>\n";
        echo "</tr>\n<tr>\n";
        echo "<td class='tbl1'>\n";
        $user_groups = (strpos($user_data['user_groups'], ".") == 0 ? explode(".", substr($user_data['user_groups'], 1)) : explode(".", $user_data['user_groups']));
        for ($i = 0; $i < count($user_groups); $i++) {
            echo "<div style='float:left'><a href='".FUSION_SELF."?group_id=".$user_groups[$i]."'>".getgroupname($user_groups[$i])."</a></div><div style='float:right'>".getgroupname($user_groups[$i], true)."</div><div style='float:none;clear:both'></div>\n";
        }
        echo "</td>\n</tr>\n</table>\n";
    }
    if (iADMIN && checkrights("M") && $user_data['user_id'] != $userdata['user_id']) {
        $user_groups_opts = "";
        if ($user_data['user_level'] < 102) {
            echo "<div style='margin:5px'></div>\n";
            echo "<form name='admin_form' method='post' action='".FUSION_SELF."?lookup=".$user_data['user_id']."'>\n";
            echo "<table cellpadding='0' cellspacing='0' width='400' class='center tbl-border'>\n<tr>\n";
            echo "<td class='tbl2' colspan='2'><strong>".$locale['402']."</strong></td>\n";
            echo "</tr>\n<tr>\n";
            echo "<td class='tbl1'><!--profile_admin_options-->\n";
            echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=edit&amp;user_id=".$user_data['user_id']."'>".$locale['410']."</a> ::\n";
            echo "<a href='".ADMIN."members.php".$aidlink."&amp;action=1&amp;user_id=".$user_data['user_id']."'>".$locale['411']."</a> ::\n";
            echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=delete&amp;status=0&amp;user_id=".$user_data['user_id']."' onclick=\"return confirm('".$locale['414']."');\">".$locale['412']."</a></td>\n";
            $result = dbquery("SELECT group_id, group_name FROM ".DB_USER_GROUPS." ORDER BY group_name");
            if (dbrows($result)) {
                while ($data2 = dbarray($result)) {
                    if (!preg_match("(^{$data2['group_id']}|\.{$data2['group_id']}\.|\.{$data2['group_id']}$)", $user_data['user_groups'])) {
                        $user_groups_opts .= "<option value='".$data2['group_id']."'>".$data2['group_name']."</option>\n";
                    }
                }
                if (iADMIN && checkrights("UG") && $user_groups_opts) {
                    echo "<td align='right' class='tbl1'>".$locale['415']."\n";
                    echo "<select name='user_group' class='textbox' style='width:100px'>\n".$user_groups_opts."</select>\n";
                    echo "<input type='submit' name='add_to_group' value='".$locale['416']."' class='button'  onclick=\"return confirm('".$locale['417']."');\" /></td>\n";
                }
            }
            echo "</tr>\n</table>\n</form>\n";
        }
    }
} elseif (isset($_GET['group_id']) && isnum($_GET['group_id'])) {
    $result = dbquery("SELECT group_id, group_name FROM ".DB_USER_GROUPS." WHERE group_id='".$_GET['group_id']."'");
    if (dbrows($result)) {
        $data = dbarray($result);
        $result = dbquery("SELECT user_id, user_name, user_level, user_status FROM ".DB_USERS." WHERE user_groups REGEXP('^\\\.{$_GET['group_id']}$|\\\.{$_GET['group_id']}\\\.|\\\.{$_GET['group_id']}$') ORDER BY user_level DESC, user_name");
        opentable($locale['420']);
        echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
        echo "<td align='center' colspan='2' class='tbl1'><strong>".$data['group_name']."</strong> (".sprintf((dbrows($result) == 1 ? $locale['421'] : $locale['422']), dbrows($result)).")</td>\n";
        echo "</tr>\n<tr>\n";
        echo "<td class='tbl2'><strong>".$locale['423']."</strong></td>\n";
        echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['424']."</strong></td>\n";
        echo "</tr>\n";
        while ($data = dbarray($result)) {
            $cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;
            echo "<tr>\n<td class='$cell_color'>\n".profile_link($data['user_id'], $data['user_name'], $data['user_status'])."</td>\n";
            echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td>\n</tr>";
        }
        echo "</table>\n";
    } else {
        redirect("index.php");
    }
} else {
    redirect(BASEDIR."index.php");
}

include INCLUDES."comments_include.php";

showcomments("U", DB_USERS, "user_id", $_GET['lookup'], FUSION_SELF."?lookup=".$user_data['user_id']);
closetable();

require_once THEMES."templates/footer.php";
?>





http://itouch.lt - iBendruomenė.
Peršokti į forumą: