Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,956
Naujausias narys: saulyzas

Naujausi straipsniai

Paskutiniai nariai

saulyzas 1 diena
MaFetas 3 dienos
TOMIJUS 1 savaitė
ozzWANTED 1 savaitė
Reikalas10 savaitės
Jaunelis16 savaitės
lanis16 savaitės
And2s17 savaitės
Memento Mori22 savaitės
Quwqkibor24 savaitės
asirija28 savaitės
tomeem30 savaitės
weberiz34 savaitės
mRokass36 savaitės
kartoonas37 savaitės
grunskiz40 savaitės
Bruksnys40 savaitės
illusion40 savaitės
ordo41 savaitės
Jurgaila42 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 18.226.165.125
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
User info panel
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Autorius: Justas T Peržiūrų: 2226      Spausdinti temą
2008 Sau. 20 21:01:35          1 žinutė iš 11
Spausdinti pranešimą
Tai va, bandziau sujungt online user panel su user_info_panel ir dbr meta tokia klaida : Parse error: syntax error, unexpected $end in /home/.a/frag/cstrike.xz.lt/infusions/user_info_panel/user_info_panel.php on line 101.
Va failas:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }

if (iMEMBER) {
   openside($userdata['user_name']);
   $sk = 0;
   $result = dbquery("SELECT * FROM ".$db_prefix."user_ratings WHERE rate_subject = '".$userdata['user_id']."'");
   if (dbrows($result)) {
      while ($data = dbarray($result)) $sk = $sk+$data['rate_opt'];
   }
   $vert = (dbrows($result) > 0 ? round($sk/dbrows($result),2) : "Nėra");
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo ($userdata['user_avatar'] ? "<center><img src='".IMAGES."avatars/".$userdata['user_avatar']."'></center><br>\n" : "<center><img src='http://cstrike.xz.lt/images/noav.gif'></center><br>\n")."<br>";
if ($settings['maintenance'] != "1") {
   $cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
   if (dbrows($result) != 0) {
      $result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
   } else {
      $name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
      $result = dbquery("INSERT INTO ".$db_prefix."online VALUES('$name', '".USER_IP."', '".time()."')");
   }
   $result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
   openside($locale['010']);
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
   echo $locale['011'].dbrows($result)."<br>\n";
   $result = dbquery(
      "SELECT ton.*, user_id,user_name FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
      WHERE online_user!='0'"
   );
$result_members = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user<>'0'");
$members = dbrows($result_members);
if ($members != 0)
{
$i = 1;
echo $locale['012'];
while($om = dbarray($result_members))
{
$result_member = dbquery("SELECT * FROM ".$db_prefix."users WHERE `user_id`='".$om[online_user]."'");
$data = dbarray($result_member);

if($data[user_level]==103){
echo "<a style='color:#F75013;' href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><B>@".$data['user_name']."</B></a>";
}
else if($data[user_level]==102){
echo "<a style='color:#B5DE21;' href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><B>^".$data['user_name']."</B></a>";
}else{

echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><B>~".$data['user_name']."</B></a>";
}
if ($i != $members) echo ", ";
$i++;
}
      echo "<br>\n";
   } else {
      echo $locale['013']."<br>\n";
   }
   echo "<br>".$locale['014'].dbcount("(user_id)", "users", "user_status<='1'")."<br>\n";
   if ($settings['admin_activation'] == "1") echo $locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
   $data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
   echo $locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a>\n";
echo "<img src='".THEME."images/bullet.gif' alt=''> Vidutinis įvertinimas: $vert<br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
   if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
   openside($locale['060']);
   echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
   if ($settings['enable_registration']) {
      echo "".$locale['065']."<br><br>\n";
   }
   echo $locale['066']."
</div>\n";
}
closeside();
?>




2008 Sau. 20 22:01:49          2 žinutė iš 11
Spausdinti pranešimą
tu geriau įdėk abi panelės mes sujungsim nes dabar užsiknisim ieškodami kur nepadėjei kokio " ar ;
2008 Sau. 20 22:01:34          3 žinutė iš 11
Spausdinti pranešimą
Ne problema..
online_user_panel po avataru ;]
prisegu.

https://webdnd.com/forum/attachm...blabla.rar


Justas T prisegtu failu:
blabla.rar

Redagavo ozzWANTED 2008 Sau. 20 22:01:13
2008 Sau. 20 22:01:24          4 žinutė iš 11
Spausdinti pranešimą
Sugadintas archyvas 5mesk kodus.
2008 Sau. 20 22:01:01          5 žinutė iš 11
Spausdinti pranešimą
online_user_panel :
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }

if ($settings['maintenance'] != "1") {
   $cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
   if (dbrows($result) != 0) {
      $result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
   } else {
      $name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
      $result = dbquery("INSERT INTO ".$db_prefix."online VALUES('$name', '".USER_IP."', '".time()."')");
   }
   $result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
   openside($locale['010']);
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
   echo $locale['011'].dbrows($result)."<br>\n";
   $result = dbquery(
      "SELECT ton.*, user_id,user_name FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
      WHERE online_user!='0'"
   );
$result_members = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user<>'0'");
$members = dbrows($result_members);
if ($members != 0)
{
$i = 1;
echo $locale['012'];
while($om = dbarray($result_members))
{
$result_member = dbquery("SELECT * FROM ".$db_prefix."users WHERE `user_id`='".$om[online_user]."'");
$data = dbarray($result_member);

if($data[user_level]==103){
echo "<a style='color:#F75013;' href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><B>@".$data['user_name']."</B></a>";
}
else if($data[user_level]==102){
echo "<a style='color:#B5DE21;' href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><B>^".$data['user_name']."</B></a>";
}else{

echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><B>~".$data['user_name']."</B></a>";
}
if ($i != $members) echo ", ";
$i++;
}
      echo "<br>\n";
   } else {
      echo $locale['013']."<br>\n";
   }
   echo "<br>".$locale['014'].dbcount("(user_id)", "users", "user_status<='1'")."<br>\n";
   if ($settings['admin_activation'] == "1") echo $locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
   $data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
   echo $locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a>\n";
   closeside();
}
?>



user_info_panel :

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }

if (iMEMBER) {
   openside($userdata['user_name']);
   $sk = 0;
   $result = dbquery("SELECT * FROM ".$db_prefix."user_ratings WHERE rate_subject = '".$userdata['user_id']."'");
   if (dbrows($result)) {
      while ($data = dbarray($result)) $sk = $sk+$data['rate_opt'];
   }
   $vert = (dbrows($result) > 0 ? round($sk/dbrows($result),2) : "Nėra");
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo ($userdata['user_avatar'] ? "<center><img src='".IMAGES."avatars/".$userdata['user_avatar']."'></center><br>\n" : "<center>Nėra avataro</center><br>\n")."<br>
<img src='".THEME."images/bullet.gif' alt=''> Vidutinis įvertinimas: $vert<br>
".(iADMIN && eregi("C",$userdata['user_rights']) ? "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."viewpage.php?page_id=3' class='side'>Visi komentarai</a><br>\n" : "")."
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
   if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
   openside($locale['060']);
   echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
   if ($settings['enable_registration']) {
      echo "".$locale['065']."<br><br>\n";
   }
   echo $locale['066']."
</div>\n";
}
closeside();
?>




2008 Sau. 20 22:01:05          6 žinutė iš 11
Spausdinti pranešimą
Bandyk laimę, gal veiks:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }

if (iMEMBER) {
   openside($userdata['user_name']);
   $sk = 0;
   $result = dbquery("SELECT * FROM ".$db_prefix."user_ratings WHERE rate_subject = '".$userdata['user_id']."'");
   if (dbrows($result)) {
      while ($data = dbarray($result)) $sk = $sk+$data['rate_opt'];
   }
   $vert = (dbrows($result) > 0 ? round($sk/dbrows($result),2) : "Nėra");
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo ($userdata['user_avatar'] ? "<center><img src='".IMAGES."avatars/".$userdata['user_avatar']."'></center><br>\n" : "<center>Nėra avataro</center><br>\n")."<br>";

if ($settings['maintenance'] != "1") {
   $cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
   if (dbrows($result) != 0) {
      $result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
   } else {
      $name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
      $result = dbquery("INSERT INTO ".$db_prefix."online VALUES('$name', '".USER_IP."', '".time()."')");
   }
   $result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
   echo $locale['011'].dbrows($result)."<br>\n";
   $result = dbquery(
      "SELECT ton.*, user_id,user_name FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
      WHERE online_user!='0'"
   );
$result_members = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user<>'0'");
$members = dbrows($result_members);
if ($members != 0)
{
$i = 1;
echo $locale['012'];
while($om = dbarray($result_members))
{
$result_member = dbquery("SELECT * FROM ".$db_prefix."users WHERE `user_id`='".$om[online_user]."'");
$data = dbarray($result_member);

if($data[user_level]==103){
echo "<a style='color:#F75013;' href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><B>@".$data['user_name']."</B></a>";
}
else if($data[user_level]==102){
echo "<a style='color:#B5DE21;' href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><B>^".$data['user_name']."</B></a>";
}else{

echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><B>~".$data['user_name']."</B></a>";
}
if ($i != $members) echo ", ";
$i++;
}
      echo "<br>\n";
   } else {
      echo $locale['013']."<br>\n";
   }
   echo "<br>".$locale['014'].dbcount("(user_id)", "users", "user_status<='1'")."<br>\n";
   if ($settings['admin_activation'] == "1") echo $locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
   $data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
   echo $locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a><br>\n";
}



echo "<img src='".THEME."images/bullet.gif' alt=''> <a>Vid. įvertinimas:</a> $vert<br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
   if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
   openside($locale['060']);
   echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
   if ($settings['enable_registration']) {
      echo "".$locale['065']."<br><br>\n";
   }
   echo $locale['066']."
</div>\n";
}
closeside();
?>




2008 Sau. 20 22:01:56          7 žinutė iš 11
Spausdinti pranešimą
Dekui, veikia. Tik dar vienas klausimas. kaip padaryt tokia emm kaip cia pasakius nu perskiriama linija kaip navigacijoj akinanti šypsen
2008 Sau. 21 00:01:27          8 žinutė iš 11
Spausdinti pranešimą
administracijos paneleje pridek linka pavadinimas --- arba tuscia ir url/linkas ---
2008 Sau. 21 00:01:45          9 žinutė iš 11
Spausdinti pranešimą
<hr> tag'ą įdėk ten, kur nori, kad būtų ta linijamerkia akį

2008 Sau. 21 00:01:58          10 žinutė iš 11
Spausdinti pranešimą
tinka ir toks šypsosi
2008 Sau. 21 00:01:02          11 žinutė iš 11
Spausdinti pranešimą
Dekui kurmi ;]
Peršokti į forumą: