PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 28623
Šiandien: 19
Prisijungę nariai
» Svečių: 16
» Narių: 0

» Viso narių: 10,232
» Naujausias: EdvinasG1337

Prisijungimų istorija:
EdvinasG1337nepamenu
tabuxnepamenu
rolandas94nepamenu
Zbigniew@nepamenu
Edis2nepamenu
klubogerbejasnepamenu
Miskinisnepamenu
mast3rnepamenu
N1nt3ndnepamenu
Matze1987nepamenu
Piter_NSnepamenu
MariukasRnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
88% [7 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
13% [1 Balsas]

Balsai: 8
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

2024-02-20 22:18
Zodziu.. Nostalgija. Sorry Tabux uz spam’a, netelpa viskas i viena shout’a. 😁

2024-02-20 22:14
Aisku dabar tokie laikai, kai turinio valdymo sistemas valdome one-click principu. Ne kaip seniau kode ieskodavom klaidu, norint moda pasileist.. :D paciam reikdavo susidiegt viska i ftp..

2024-02-20 22:03
Sveiki kolegos 👌 kazkada rasiau greit 11 metu bet ziuriu greit 14 metu. 😄 baisuu, reik ta proga kazka sugalvot su php-f kaip jaunima itraukt.

Shoutbox Archive
Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Patobulinimai
 Spausdinti temą
�sp�jimus gali duoti moderatoriai
Sarunas112
#1 Spausdinti pranešimą
parašyta 2012-05-09 20:02
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 27
Įstojo: 2008-10-12

Sveiki,
Kadangi i?nar?iau forum� ir neradau nieko ?iuo metu, tad sukursiu tem� esm� tame kad naudoju snapso �sp�jimu sistem� savo phpfusion v7.02.05 ir man reiks kad gal�tu duoti �sp�jimus moderatoriai. Kaip tai padaryti?
B�siu labai d�kingas u? informacija.
_______________
Uždarbis internete http://uzdarbiofo...
 
PM
Wyciokazz
#2 Spausdinti pranešimą
parašyta 2012-05-09 20:48
Vartotojo avataras

Administratorius



Reputacija: 1

Pranešimai: 2108
Įstojo: 2008-02-27

Turi redaguoti profile.php faila kur davimas nurodytas ten panaudoti koki checkgroup.
Kam kurti tai kas jau sukurta.

Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.

[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
 
PM
gipsy
#3 Spausdinti pranešimą
parašyta 2012-05-09 21:07
Vartotojo avataras

Moderatorius



Reputacija: 0

Pranešimai: 585
Įstojo: 2009-10-21

Gaudik

Download source  Code
  /*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| 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/licen... 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.\"view_profilee.php\";
include LOCALE.LOCALESET.\"user_fieldss.php\";
include LOCALE.LOCALESET.\"user_fields.php\";



if (file_exists(LOCALE.LOCALESET.\"warnings.php\"))
include LOCALE.LOCALESET.\"warnings.php\";
else
include LOCALE.\"English/warnings.php\";

$wgr = \"1\";

if (!isset($_GET['group_id']) || !isnum($_GET['group_id'])) {

   if (!isset($_GET['lookup']) || !isnum($_GET['lookup'])) { redirect(\"index.php\"); }

   $result = dbquery(\"SELECT * FROM \".DB_USERS.\" WHERE user_id='\".$_GET['lookup'].\"'\");

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

//   if ($user_data['user_status'] > \"0\") { redirect(\"index.php\"); } //disabled, because when he will be banned for the warnings, we wont see this user

      $warnings_count = dbcount(\"(*)\", $db_prefix.\"warnings\", \"warning_user=\".$_GET['lookup']);//counting user warnings


   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 \"\n\n\";
   if ($user_data['user_avatar'] && file_exists(IMAGES.\"avatars/\".$user_data['user_avatar'])) {
      echo \"\n\";
   }
   echo \"\n\";
   echo \"\n\";
   echo \"\n\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   if ($user_data['user_hide_email'] != \"1\" || iADMIN) {
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
   }
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   if (iMEMBER && $userdata['user_id'] != $user_data['user_id']) {
      echo \"\n\";
      echo \"\n\";
   }
   echo \"
''\".$locale['u001'].\"\".$user_data['user_name'].\"
\".getuserlevel($user_data['user_level']).\"
\".$locale['u005'].\"\".hide_email($user_data['user_email']).\"
\".$locale['u040'].\"\".showdate(\"longdate\", $user_data['user_joined']).\"
\".$locale['u041'].\"\".($user_data['user_lastvisit'] ? showdate(\"longdate\", $user_data['user_lastvisit']) : $locale['u042']).\"
\".$locale['u043'].\"
\n\";

   echo \"
\n\";

   $profile_method = \"display\"; $i = 0; $user_fields_output = array(\"\", \"\", \"\", \"\"); $ob_active = false;

   $result2 = dbquery(\"SELECT * FROM \".DB_USER_FIELDS.\" ORDER BY field_cat, field_order\");
   if (dbrows($result2)) {
      while($data2 = dbarray($result2)) {
         if ($i != $data2['field_cat']) {
            if ($ob_active) {
               $user_fields_output[$i] = ob_get_contents();
               ob_end_clean();
               $ob_active = false;
            }
            $i = $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_output[$i] = ob_get_contents();
      ob_end_clean();
   }

   if (array_key_exists(1, $user_fields_output) && $user_fields_output[1]) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\".$user_fields_output[1];
      echo \"
\".$locale['u044'].\"
\n\";
   }

   if (array_key_exists(2, $user_fields_output) && $user_fields_output[2]) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\".$user_fields_output[2];
      echo \"
\".$locale['u045'].\"
\n\";
   }

   if (array_key_exists(4, $user_fields_output) && $user_fields_output[4]) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\".$user_fields_output[4];
      echo \"
\".$locale['u047'].\"
\n\";
   }

   if (iADMIN && checkrights(\"M\")) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n
\".$locale['u048'].\"
\".$locale['u049'].\"\".$user_data['user_ip'].\"
\n\";
     
      //delete warn
      if (isset($_GET['action']) && $_GET['action'] == \"delete_warn\" && isset($_GET['warning_id']) && isnum($_GET['warning_id'])) {
      $result = dbquery(\"DELETE FROM \".$db_prefix.\"warnings WHERE warning_user=\".$_GET['lookup'].\" AND warning_id=\".$_GET['warning_id']);
     
      if ($warnings_count >= 5) $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=0 WHERE user_id=\".$_GET['lookup']);
     
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings query
      if ($user_data['user_level'] == 101 && isset($_POST['give_warning']) && !empty($_POST['warning_couse']) && (isset($_POST['warning_forever']) || isnum($_POST['warning_time']))) {
      $couse = stripinput($_POST['warning_couse']);
     
      if (!isset($_POST['warning_forever'])) {
      $end = time()+($_POST['warning_time']*86400);
      } else {
      $end = \"forever\";
      }
     
      if ($warnings_count == 4) {
      $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=1 WHERE user_id=\".$_GET['lookup']);
      }
      if ($warnings_count < 5)
      $result = dbquery(\"INSERT INTO \".$db_prefix.\"warnings (warning_user, warning_admin, warning_end, warning_couse) VALUES ('\".$_GET['lookup'].\"', '\".$userdata['user_id'].\"', '\".$end.\"', '\".$couse.\"')\");
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings form
      if ($user_data['user_level'] == 101 && isset($_GET['action']) && $_GET['action'] == \"give_warn\" && $warnings_count < 5) {
      echo \"
\n\";
      echo \"

      \n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"
     
     
     
     
     
     
     
      \";
      echo \"\n
\".$locale['war_00'].\"
\".$locale['war_01'].\"
     
     
\".$locale['war_02'].\"
      \".$locale['war_03'].\" :: \".$locale['war_04'].\"
     
\n
\";
      }
     
     
   } elseif (checkgroup($wgr)) {   
      //delete warn
      if (isset($_GET['action']) && $_GET['action'] == \"delete_warn\" && isset($_GET['warning_id']) && isnum($_GET['warning_id'])) {
      $result = dbquery(\"DELETE FROM \".$db_prefix.\"warnings WHERE warning_user=\".$_GET['lookup'].\" AND warning_id=\".$_GET['warning_id']);
     
      if ($warnings_count >= 5) $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=0 WHERE user_id=\".$_GET['lookup']);
     
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings query
      if ($user_data['user_level'] == 101 && isset($_POST['give_warning']) && !empty($_POST['warning_couse']) && (isset($_POST['warning_forever']) || isnum($_POST['warning_time']))) {
      $couse = stripinput($_POST['warning_couse']);
     
      if (!isset($_POST['warning_forever'])) {
      $end = time()+($_POST['warning_time']*86400);
      } else {
      $end = \"forever\";
      }
     
      if ($warnings_count == 4) {
      $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=1 WHERE user_id=\".$_GET['lookup']);
      }
      if ($warnings_count < 5)
      $result = dbquery(\"INSERT INTO \".$db_prefix.\"warnings (warning_user, warning_admin, warning_end, warning_couse) VALUES ('\".$_GET['lookup'].\"', '\".$userdata['user_id'].\"', '\".$end.\"', '\".$couse.\"')\");
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings form
      if ($user_data['user_level'] == 101 && isset($_GET['action']) && $_GET['action'] == \"give_warn\" && $warnings_count < 5) {
      echo \"
\n\";
      echo \"

      \n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"
     
     
     
     
     
     
     
      \";
      echo \"\n
\".$locale['war_00'].\"
\".$locale['war_01'].\"
     
     
\".$locale['war_02'].\"
      \".$locale['war_03'].\" :: \".$locale['war_04'].\"
     
\n
\";
      }
   }
   
   //display warnings
   if ($user_data['user_level'] == 101) {
   $result = dbquery(\"SELECT * FROM \".$db_prefix.\"warnings WHERE warning_user=\".$_GET['lookup'].\" ORDER BY warning_id ASC LIMIT 5\");
   
   if (dbrows($result) > 0) {
   echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      $w=1;
      while ($data = dbarray($result)) {
      $warning_end = $data['warning_end'] == \"forever\" ? \"\".$locale['war_04'].\"\" : date(\"Y-m-d\", $data['warning_end']);
      echo \"
      \n\";
      echo \"\n
      \n
      \";
      $w++;
      }
      echo \"
\".$locale['war_06'].\"\".$locale['war_01'].\"\".$locale['war_07'].\"
''\".$data['warning_couse'].\"\".(iADMIN && checkrights(\"M\") ? \"\".$warning_end.\"\" : $warning_end).\"
\n\";
      }
      }
   
   

   if ($user_data['user_groups']) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"\n\n
\".$locale['401'].\"
\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 \"
\".getgroupname($user_groups[$i], true).\"
\n\";
      }
      echo \"
\n\";
   }
   if (iADMIN && checkrights(\"M\") && $user_data['user_id'] != $userdata['user_id']) {
      $user_groups_opts = \"\";
      if ($user_data['user_level'] < 102) {
         echo \"
\n\";
         echo \"
\n\";
         echo \"\n\n\";
         echo \"\n\";
         echo \"\n\n\";
         echo \"\n\";
         $result = dbquery(\"SELECT * FROM \".DB_USER_GROUPS.\" ORDER BY group_id ASC\");
         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 .= \"\n\";
               }
            }
            if (iADMIN && checkrights(\"UG\") && $user_groups_opts) {
               echo \"\n\";
            }
         }
         echo \"\n
\".$locale['402'].\"
\n\";
         
         //admin links for warnings
         if ($warnings_count < 5) echo \"\".$locale['war_09'].\" ::\n\";
         //
         
         echo \"\".$locale['410'].\" ::\n\";
         
         if ($user_data['user_status'] == 0)
         echo \">\".$locale['411'].\" ::\n\";
         else
         echo \">\".$locale['war_11'].\" ::\n\";
         
         echo \">\".$locale['412'].\"
\".$locale['415'].\"\n\";
               echo \"\n\";
               echo \">
\n
\n\";
      }
   } else if (checkgroup($wgr)) {
         echo \"
\n\";
         echo \"
\n\";
         echo \"\n\n\";
         echo \"\n\";
         echo \"\n\n\";
         echo \"\n
\".$locale['402'].\"
\n\";
         
         //admin links for warnings
         if ($warnings_count < 5) echo \"\".$locale['war_09'].\"\n\";
         //
         echo \"
\n
\n\";
     

}
   
} else {
   $result = dbquery(\"SELECT * FROM \".DB_USER_GROUPS.\" WHERE group_id='\".$_GET['group_id'].\"'\");
   if (dbrows($result)) {
      $data = dbarray($result);
      $result = dbquery(\"SELECT * 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 \"\n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      while ($data = dbarray($result)) {
         $cell_color = ($i % 2 == 0 ? \"tbl1\" : \"tbl2\"); $i++;
         echo \"\n\n\";
         echo \"\n\";
      }
      echo \"
\".$data['group_name'].\" (\".sprintf((dbrows($result) == 1 ? $locale['421'] : $locale['422']), dbrows($result)).\")
\".$locale['423'].\"\".$locale['424'].\"
\n\".$data['user_name'].\"\".getuserlevel($data['user_level']).\"
\n\";
   } else {
      redirect(\"index.php\");
   }
}
closetable();

require_once THEMES.\"templates/footer.php\";


?>




 
PM
Sarunas112
#4 Spausdinti pranešimą
parašyta 2012-05-10 19:12
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 27
Įstojo: 2008-10-12

Na i?meginsiu ir pasakysiu kaip kas vykst� d�koju.

Ne vis d�l to neveikia.Ir sry suklydau pas mane: V7.02.04
Ir ?tai mano profile.php

Download source  Code

  /*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| 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/licen... 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.\"view_profilee.php\";
include LOCALE.LOCALESET.\"user_fieldss.php\";
include LOCALE.LOCALESET.\"user_fields.php\";



if (file_exists(LOCALE.LOCALESET.\"warnings.php\"))
include LOCALE.LOCALESET.\"warnings.php\";
else
include LOCALE.\"English/warnings.php\";

$wgr = \"1\";

if (!isset($_GET['group_id']) || !isnum($_GET['group_id'])) {

   if (!isset($_GET['lookup']) || !isnum($_GET['lookup'])) { redirect(\"index.php\"); }

   $result = dbquery(\"SELECT * FROM \".DB_USERS.\" WHERE user_id='\".$_GET['lookup'].\"'\");

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

//   if ($user_data['user_status'] > \"0\") { redirect(\"index.php\"); } //disabled, because when he will be banned for the warnings, we wont see this user

      $warnings_count = dbcount(\"(*)\", $db_prefix.\"warnings\", \"warning_user=\".$_GET['lookup']);//counting user warnings


   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 \"\n\n\";
   if ($user_data['user_avatar'] && file_exists(IMAGES.\"avatars/\".$user_data['user_avatar'])) {
      echo \"\n\";
   }
   echo \"\n\";
   echo \"\n\";
   echo \"\n\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   if ($user_data['user_hide_email'] != \"1\" || iADMIN) {
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
   }
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   if (iMEMBER && $userdata['user_id'] != $user_data['user_id']) {
      echo \"\n\";
      echo \"\n\";
   }
   echo \"
''\".$locale['u001'].\"\".$user_data['user_name'].\"
\".getuserlevel($user_data['user_level']).\"
\".$locale['u005'].\"\".hide_email($user_data['user_email']).\"
\".$locale['u040'].\"\".showdate(\"longdate\", $user_data['user_joined']).\"
\".$locale['u041'].\"\".($user_data['user_lastvisit'] ? showdate(\"longdate\", $user_data['user_lastvisit']) : $locale['u042']).\"
\".$locale['u043'].\"
\n\";

   echo \"
\n\";

   $profile_method = \"display\"; $i = 0; $user_fields_output = array(\"\", \"\", \"\", \"\"); $ob_active = false;

   $result2 = dbquery(\"SELECT * FROM \".DB_USER_FIELDS.\" ORDER BY field_cat, field_order\");
   if (dbrows($result2)) {
      while($data2 = dbarray($result2)) {
         if ($i != $data2['field_cat']) {
            if ($ob_active) {
               $user_fields_output[$i] = ob_get_contents();
               ob_end_clean();
               $ob_active = false;
            }
            $i = $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_output[$i] = ob_get_contents();
      ob_end_clean();
   }

   if (array_key_exists(1, $user_fields_output) && $user_fields_output[1]) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\".$user_fields_output[1];
      echo \"
\".$locale['u044'].\"
\n\";
   }

   if (array_key_exists(2, $user_fields_output) && $user_fields_output[2]) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\".$user_fields_output[2];
      echo \"
\".$locale['u045'].\"
\n\";
   }

   if (array_key_exists(4, $user_fields_output) && $user_fields_output[4]) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\".$user_fields_output[4];
      echo \"
\".$locale['u047'].\"
\n\";
   }

   if (iADMIN && checkrights(\"M\")) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n
\".$locale['u048'].\"
\".$locale['u049'].\"\".$user_data['user_ip'].\"
\n\";
     
      //delete warn
      if (isset($_GET['action']) && $_GET['action'] == \"delete_warn\" && isset($_GET['warning_id']) && isnum($_GET['warning_id'])) {
      $result = dbquery(\"DELETE FROM \".$db_prefix.\"warnings WHERE warning_user=\".$_GET['lookup'].\" AND warning_id=\".$_GET['warning_id']);
     
      if ($warnings_count >= 5) $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=0 WHERE user_id=\".$_GET['lookup']);
     
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings query
      if ($user_data['user_level'] == 101 && isset($_POST['give_warning']) && !empty($_POST['warning_couse']) && (isset($_POST['warning_forever']) || isnum($_POST['warning_time']))) {
      $couse = stripinput($_POST['warning_couse']);
     
      if (!isset($_POST['warning_forever'])) {
      $end = time()+($_POST['warning_time']*86400);
      } else {
      $end = \"forever\";
      }
     
      if ($warnings_count == 4) {
      $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=1 WHERE user_id=\".$_GET['lookup']);
      }
      if ($warnings_count < 5)
      $result = dbquery(\"INSERT INTO \".$db_prefix.\"warnings (warning_user, warning_admin, warning_end, warning_couse) VALUES ('\".$_GET['lookup'].\"', '\".$userdata['user_id'].\"', '\".$end.\"', '\".$couse.\"')\");
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings form
      if ($user_data['user_level'] == 101 && isset($_GET['action']) && $_GET['action'] == \"give_warn\" && $warnings_count < 5) {
      echo \"
\n\";
      echo \"

      \n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"
     
     
     
     
     
     
     
      \";
      echo \"\n
\".$locale['war_00'].\"
\".$locale['war_01'].\"
     
     
\".$locale['war_02'].\"
      \".$locale['war_03'].\" :: \".$locale['war_04'].\"
     
\n
\";
      }
     
     
   } elseif (checkgroup($wgr)) {   
      //delete warn
      if (isset($_GET['action']) && $_GET['action'] == \"delete_warn\" && isset($_GET['warning_id']) && isnum($_GET['warning_id'])) {
      $result = dbquery(\"DELETE FROM \".$db_prefix.\"warnings WHERE warning_user=\".$_GET['lookup'].\" AND warning_id=\".$_GET['warning_id']);
     
      if ($warnings_count >= 5) $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=0 WHERE user_id=\".$_GET['lookup']);
     
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings query
      if ($user_data['user_level'] == 101 && isset($_POST['give_warning']) && !empty($_POST['warning_couse']) && (isset($_POST['warning_forever']) || isnum($_POST['warning_time']))) {
      $couse = stripinput($_POST['warning_couse']);
     
      if (!isset($_POST['warning_forever'])) {
      $end = time()+($_POST['warning_time']*86400);
      } else {
      $end = \"forever\";
      }
     
      if ($warnings_count == 4) {
      $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=1 WHERE user_id=\".$_GET['lookup']);
      }
      if ($warnings_count < 5)
      $result = dbquery(\"INSERT INTO \".$db_prefix.\"warnings (warning_user, warning_admin, warning_end, warning_couse) VALUES ('\".$_GET['lookup'].\"', '\".$userdata['user_id'].\"', '\".$end.\"', '\".$couse.\"')\");
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings form
      if ($user_data['user_level'] == 101 && isset($_GET['action']) && $_GET['action'] == \"give_warn\" && $warnings_count < 5) {
      echo \"
\n\";
      echo \"

      \n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"
     
     
     
     
     
     
     
      \";
      echo \"\n
\".$locale['war_00'].\"
\".$locale['war_01'].\"
     
     
\".$locale['war_02'].\"
      \".$locale['war_03'].\" :: \".$locale['war_04'].\"
     
\n
\";
      }
   }
   
   //display warnings
   if ($user_data['user_level'] == 101) {
   $result = dbquery(\"SELECT * FROM \".$db_prefix.\"warnings WHERE warning_user=\".$_GET['lookup'].\" ORDER BY warning_id ASC LIMIT 5\");
   
   if (dbrows($result) > 0) {
   echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      $w=1;
      while ($data = dbarray($result)) {
      $warning_end = $data['warning_end'] == \"forever\" ? \"\".$locale['war_04'].\"\" : date(\"Y-m-d\", $data['warning_end']);
      echo \"
      \n\";
      echo \"\n
      \n
      \";
      $w++;
      }
      echo \"
\".$locale['war_06'].\"\".$locale['war_01'].\"\".$locale['war_07'].\"
''\".$data['warning_couse'].\"\".(iADMIN && checkrights(\"M\") ? \"\".$warning_end.\"\" : $warning_end).\"
\n\";
      }
      }
   
   

   if ($user_data['user_groups']) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"\n\n
\".$locale['401'].\"
\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 \"
\".getgroupname($user_groups[$i], true).\"
\n\";
      }
      echo \"
\n\";
   }
   if (iADMIN && checkrights(\"M\") && $user_data['user_id'] != $userdata['user_id']) {
      $user_groups_opts = \"\";
      if ($user_data['user_level'] < 102) {
         echo \"
\n\";
         echo \"
\n\";
         echo \"\n\n\";
         echo \"\n\";
         echo \"\n\n\";
         echo \"\n\";
         $result = dbquery(\"SELECT * FROM \".DB_USER_GROUPS.\" ORDER BY group_id ASC\");
         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 .= \"\n\";
               }
            }
            if (iADMIN && checkrights(\"UG\") && $user_groups_opts) {
               echo \"\n\";
            }
         }
         echo \"\n
\".$locale['402'].\"
\n\";
         
         //admin links for warnings
         if ($warnings_count < 5) echo \"\".$locale['war_09'].\" ::\n\";
         //
         
         echo \"\".$locale['410'].\" ::\n\";
         
         if ($user_data['user_status'] == 0)
         echo \">\".$locale['411'].\" ::\n\";
         else
         echo \">\".$locale['war_11'].\" ::\n\";
         
         echo \">\".$locale['412'].\"
\".$locale['415'].\"\n\";
               echo \"\n\";
               echo \">
\n
\n\";
      }
   } else if (checkgroup($wgr)) {
         echo \"
\n\";
         echo \"
\n\";
         echo \"\n\n\";
         echo \"\n\";
         echo \"\n\n\";
         echo \"\n
\".$locale['402'].\"
\n\";
         
         //admin links for warnings
         if ($warnings_count < 5) echo \"\".$locale['war_09'].\"\n\";
         //
         echo \"
\n
\n\";
     

}
   
} else {
   $result = dbquery(\"SELECT * FROM \".DB_USER_GROUPS.\" WHERE group_id='\".$_GET['group_id'].\"'\");
   if (dbrows($result)) {
      $data = dbarray($result);
      $result = dbquery(\"SELECT * 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 \"\n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      while ($data = dbarray($result)) {
         $cell_color = ($i % 2 == 0 ? \"tbl1\" : \"tbl2\"); $i++;
         echo \"\n\n\";
         echo \"\n\";
      }
      echo \"
\".$data['group_name'].\" (\".sprintf((dbrows($result) == 1 ? $locale['421'] : $locale['422']), dbrows($result)).\")
\".$locale['423'].\"\".$locale['424'].\"
\n\".$data['user_name'].\"\".getuserlevel($data['user_level']).\"
\n\";
   } else {
      redirect(\"index.php\");
   }
}
closetable();

require_once THEMES.\"templates/footer.php\";


?>





Redagavo Sarunas112 2012-05-10 19:22
_______________
Uždarbis internete http://uzdarbiofo...
 
PM
DeginuVaikus
#5 Spausdinti pranešimą
parašyta 2012-05-10 19:38
Naujokas



Reputacija: 0

Pranešimai: 10
Įstojo: 2012-01-31

Sarunas112 para?�:
Na i?meginsiu ir pasakysiu kaip kas vykst� d�koju.

Ne vis d�l to neveikia.Ir sry suklydau pas mane: V7.02.04
Ir ?tai mano profile.php

Download source  Code

  /*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| 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/licen... 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.\"view_profilee.php\";
include LOCALE.LOCALESET.\"user_fieldss.php\";
include LOCALE.LOCALESET.\"user_fields.php\";



if (file_exists(LOCALE.LOCALESET.\"warnings.php\"))
include LOCALE.LOCALESET.\"warnings.php\";
else
include LOCALE.\"English/warnings.php\";

$wgr = \"1\";

if (!isset($_GET['group_id']) || !isnum($_GET['group_id'])) {

   if (!isset($_GET['lookup']) || !isnum($_GET['lookup'])) { redirect(\"index.php\"); }

   $result = dbquery(\"SELECT * FROM \".DB_USERS.\" WHERE user_id='\".$_GET['lookup'].\"'\");

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

//   if ($user_data['user_status'] > \"0\") { redirect(\"index.php\"); } //disabled, because when he will be banned for the warnings, we wont see this user

      $warnings_count = dbcount(\"(*)\", $db_prefix.\"warnings\", \"warning_user=\".$_GET['lookup']);//counting user warnings


   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 \"\n\n\";
   if ($user_data['user_avatar'] && file_exists(IMAGES.\"avatars/\".$user_data['user_avatar'])) {
      echo \"\n\";
   }
   echo \"\n\";
   echo \"\n\";
   echo \"\n\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   if ($user_data['user_hide_email'] != \"1\" || iADMIN) {
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
   }
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   if (iMEMBER && $userdata['user_id'] != $user_data['user_id']) {
      echo \"\n\";
      echo \"\n\";
   }
   echo \"
''\".$locale['u001'].\"\".$user_data['user_name'].\"
\".getuserlevel($user_data['user_level']).\"
\".$locale['u005'].\"\".hide_email($user_data['user_email']).\"
\".$locale['u040'].\"\".showdate(\"longdate\", $user_data['user_joined']).\"
\".$locale['u041'].\"\".($user_data['user_lastvisit'] ? showdate(\"longdate\", $user_data['user_lastvisit']) : $locale['u042']).\"
\".$locale['u043'].\"
\n\";

   echo \"
\n\";

   $profile_method = \"display\"; $i = 0; $user_fields_output = array(\"\", \"\", \"\", \"\"); $ob_active = false;

   $result2 = dbquery(\"SELECT * FROM \".DB_USER_FIELDS.\" ORDER BY field_cat, field_order\");
   if (dbrows($result2)) {
      while($data2 = dbarray($result2)) {
         if ($i != $data2['field_cat']) {
            if ($ob_active) {
               $user_fields_output[$i] = ob_get_contents();
               ob_end_clean();
               $ob_active = false;
            }
            $i = $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_output[$i] = ob_get_contents();
      ob_end_clean();
   }

   if (array_key_exists(1, $user_fields_output) && $user_fields_output[1]) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\".$user_fields_output[1];
      echo \"
\".$locale['u044'].\"
\n\";
   }

   if (array_key_exists(2, $user_fields_output) && $user_fields_output[2]) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\".$user_fields_output[2];
      echo \"
\".$locale['u045'].\"
\n\";
   }

   if (array_key_exists(4, $user_fields_output) && $user_fields_output[4]) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\".$user_fields_output[4];
      echo \"
\".$locale['u047'].\"
\n\";
   }

   if (iADMIN && checkrights(\"M\")) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n
\".$locale['u048'].\"
\".$locale['u049'].\"\".$user_data['user_ip'].\"
\n\";
     
      //delete warn
      if (isset($_GET['action']) && $_GET['action'] == \"delete_warn\" && isset($_GET['warning_id']) && isnum($_GET['warning_id'])) {
      $result = dbquery(\"DELETE FROM \".$db_prefix.\"warnings WHERE warning_user=\".$_GET['lookup'].\" AND warning_id=\".$_GET['warning_id']);
     
      if ($warnings_count >= 5) $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=0 WHERE user_id=\".$_GET['lookup']);
     
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings query
      if ($user_data['user_level'] == 101 && isset($_POST['give_warning']) && !empty($_POST['warning_couse']) && (isset($_POST['warning_forever']) || isnum($_POST['warning_time']))) {
      $couse = stripinput($_POST['warning_couse']);
     
      if (!isset($_POST['warning_forever'])) {
      $end = time()+($_POST['warning_time']*86400);
      } else {
      $end = \"forever\";
      }
     
      if ($warnings_count == 4) {
      $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=1 WHERE user_id=\".$_GET['lookup']);
      }
      if ($warnings_count < 5)
      $result = dbquery(\"INSERT INTO \".$db_prefix.\"warnings (warning_user, warning_admin, warning_end, warning_couse) VALUES ('\".$_GET['lookup'].\"', '\".$userdata['user_id'].\"', '\".$end.\"', '\".$couse.\"')\");
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings form
      if ($user_data['user_level'] == 101 && isset($_GET['action']) && $_GET['action'] == \"give_warn\" && $warnings_count < 5) {
      echo \"
\n\";
      echo \"

      \n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"
     
     
     
     
     
     
     
      \";
      echo \"\n
\".$locale['war_00'].\"
\".$locale['war_01'].\"
     
     
\".$locale['war_02'].\"
      \".$locale['war_03'].\" :: \".$locale['war_04'].\"
     
\n
\";
      }
     
     
   } elseif (checkgroup($wgr)) {   
      //delete warn
      if (isset($_GET['action']) && $_GET['action'] == \"delete_warn\" && isset($_GET['warning_id']) && isnum($_GET['warning_id'])) {
      $result = dbquery(\"DELETE FROM \".$db_prefix.\"warnings WHERE warning_user=\".$_GET['lookup'].\" AND warning_id=\".$_GET['warning_id']);
     
      if ($warnings_count >= 5) $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=0 WHERE user_id=\".$_GET['lookup']);
     
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings query
      if ($user_data['user_level'] == 101 && isset($_POST['give_warning']) && !empty($_POST['warning_couse']) && (isset($_POST['warning_forever']) || isnum($_POST['warning_time']))) {
      $couse = stripinput($_POST['warning_couse']);
     
      if (!isset($_POST['warning_forever'])) {
      $end = time()+($_POST['warning_time']*86400);
      } else {
      $end = \"forever\";
      }
     
      if ($warnings_count == 4) {
      $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_status=1 WHERE user_id=\".$_GET['lookup']);
      }
      if ($warnings_count < 5)
      $result = dbquery(\"INSERT INTO \".$db_prefix.\"warnings (warning_user, warning_admin, warning_end, warning_couse) VALUES ('\".$_GET['lookup'].\"', '\".$userdata['user_id'].\"', '\".$end.\"', '\".$couse.\"')\");
      redirect(FUSION_SELF.\"?lookup=\".$_GET['lookup']);
      }
     
      //warnings form
      if ($user_data['user_level'] == 101 && isset($_GET['action']) && $_GET['action'] == \"give_warn\" && $warnings_count < 5) {
      echo \"
\n\";
      echo \"

      \n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"
     
     
     
     
     
     
     
      \";
      echo \"\n
\".$locale['war_00'].\"
\".$locale['war_01'].\"
     
     
\".$locale['war_02'].\"
      \".$locale['war_03'].\" :: \".$locale['war_04'].\"
     
\n
\";
      }
   }
   
   //display warnings
   if ($user_data['user_level'] == 101) {
   $result = dbquery(\"SELECT * FROM \".$db_prefix.\"warnings WHERE warning_user=\".$_GET['lookup'].\" ORDER BY warning_id ASC LIMIT 5\");
   
   if (dbrows($result) > 0) {
   echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      $w=1;
      while ($data = dbarray($result)) {
      $warning_end = $data['warning_end'] == \"forever\" ? \"\".$locale['war_04'].\"\" : date(\"Y-m-d\", $data['warning_end']);
      echo \"
      \n\";
      echo \"\n
      \n
      \";
      $w++;
      }
      echo \"
\".$locale['war_06'].\"\".$locale['war_01'].\"\".$locale['war_07'].\"
''\".$data['warning_couse'].\"\".(iADMIN && checkrights(\"M\") ? \"\".$warning_end.\"\" : $warning_end).\"
\n\";
      }
      }
   
   

   if ($user_data['user_groups']) {
      echo \"
\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"\n\n
\".$locale['401'].\"
\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 \"
\".getgroupname($user_groups[$i], true).\"
\n\";
      }
      echo \"
\n\";
   }
   if (iADMIN && checkrights(\"M\") && $user_data['user_id'] != $userdata['user_id']) {
      $user_groups_opts = \"\";
      if ($user_data['user_level'] < 102) {
         echo \"
\n\";
         echo \"
\n\";
         echo \"\n\n\";
         echo \"\n\";
         echo \"\n\n\";
         echo \"\n\";
         $result = dbquery(\"SELECT * FROM \".DB_USER_GROUPS.\" ORDER BY group_id ASC\");
         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 .= \"\n\";
               }
            }
            if (iADMIN && checkrights(\"UG\") && $user_groups_opts) {
               echo \"\n\";
            }
         }
         echo \"\n
\".$locale['402'].\"
\n\";
         
         //admin links for warnings
         if ($warnings_count < 5) echo \"\".$locale['war_09'].\" ::\n\";
         //
         
         echo \"\".$locale['410'].\" ::\n\";
         
         if ($user_data['user_status'] == 0)
         echo \">\".$locale['411'].\" ::\n\";
         else
         echo \">\".$locale['war_11'].\" ::\n\";
         
         echo \">\".$locale['412'].\"
\".$locale['415'].\"\n\";
               echo \"\n\";
               echo \">
\n
\n\";
      }
   } else if (checkgroup($wgr)) {
         echo \"
\n\";
         echo \"
\n\";
         echo \"\n\n\";
         echo \"\n\";
         echo \"\n\n\";
         echo \"\n
\".$locale['402'].\"
\n\";
         
         //admin links for warnings
         if ($warnings_count < 5) echo \"\".$locale['war_09'].\"\n\";
         //
         echo \"
\n
\n\";
     

}
   
} else {
   $result = dbquery(\"SELECT * FROM \".DB_USER_GROUPS.\" WHERE group_id='\".$_GET['group_id'].\"'\");
   if (dbrows($result)) {
      $data = dbarray($result);
      $result = dbquery(\"SELECT * 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 \"\n\n\";
      echo \"\n\";
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      while ($data = dbarray($result)) {
         $cell_color = ($i % 2 == 0 ? \"tbl1\" : \"tbl2\"); $i++;
         echo \"\n\n\";
         echo \"\n\";
      }
      echo \"
\".$data['group_name'].\" (\".sprintf((dbrows($result) == 1 ? $locale['421'] : $locale['422']), dbrows($result)).\")
\".$locale['423'].\"\".$locale['424'].\"
\n\".$data['user_name'].\"\".getuserlevel($data['user_level']).\"
\n\";
   } else {
      redirect(\"index.php\");
   }
}
closetable();

require_once THEMES.\"templates/footer.php\";


?>






Pasikeitei � savo grup�s ID?($wgr)
 
PM
Sarunas112
#6 Spausdinti pranešimą
parašyta 2012-05-10 19:49
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 27
Įstojo: 2008-10-12

ne, bet man anas profile.php nelabai gr�?iai dirbo, ant ?ito profile.php gal galima?
_______________
Uždarbis internete http://uzdarbiofo...
 
PM
Wyciokazz
#7 Spausdinti pranešimą
parašyta 2012-05-10 19:51
Vartotojo avataras

Administratorius



Reputacija: 1

Pranešimai: 2108
Įstojo: 2008-02-27

Tai kad tavo duotame profilyje viskas nustatyta yra ko reikia.
Kam kurti tai kas jau sukurta.

Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.

[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
 
PM
Sarunas112
#8 Spausdinti pranešimą
parašyta 2012-05-10 20:07
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 27
Įstojo: 2008-10-12

Na bet forumo moderatoriai negali duoti �sp�jim� nariams, per phpmyadmin ?i�r�jau ".2"
_______________
Uždarbis internete http://uzdarbiofo...
 
PM
Wyciokazz
#9 Spausdinti pranešimą
parašyta 2012-05-10 20:07
Vartotojo avataras

Administratorius



Reputacija: 1

Pranešimai: 2108
Įstojo: 2008-02-27

$wgr nurodyk.
Kam kurti tai kas jau sukurta.

Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.

[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
 
PM
gipsy
#10 Spausdinti pranešimą
parašyta 2012-05-10 20:39
Vartotojo avataras

Moderatorius



Reputacija: 0

Pranešimai: 585
Įstojo: 2009-10-21

Nu nezinau arba rankos auga ne is ten kur reikia ar kas kas kito ira.
cia Wyciokazz tvarkitas profile.php ir jis veikia kuo geriausia jau pratestuota.*wink*
 
PM
Sarunas112
#11 Spausdinti pranešimą
parašyta 2012-05-10 21:19
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 27
Įstojo: 2008-10-12

Wyciokazz para?�:
$wgr nurodyk.


d4kui pabandysiu
Redagavo Sarunas112 2012-05-10 21:27
_______________
Uždarbis internete http://uzdarbiofo...
 
PM
Peršokti į forumą: