Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pagalbos su user_info

Parašė Haked· 2008 Rugp. 29 02:08:50
#1

Krč narys mato:
Redaguoti aprašymą
Narių sąrašas
Atsijungti
Atsijungti

O noriu:
Redaguoti aprašymą
Narių sąrašas
Mano profilis
Atsijungti

Admin mato:
Redaguoti aprašymą
Narių sąrašas
Atsijungti
Mano profilis
Administracijos panelė
Atsijungti

Noriu:
Redaguoti aprašymą
Narių sąrašasi
Mano profilis
Administracijos panelė
Atsijungti

Kas padės +10 ;)

if (iMEMBER) {
   openside("<img src='/atributai/diskusijos.png'>Informacija");
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<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."members.php' class='side'>".$locale['082']."</a><br>\n";
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'> Mano profilis</a></br><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 {
 
}
closeside();
?>



Parašė Giedrunskis· 2008 Rugp. 29 02:08:29
#2

Esme ta, kad ne kode problema :) cia pacioje SQL uzklausoje kuistis reiktu manau ;)

Parašė Haked· 2008 Rugp. 29 02:08:04
#3

Nea buvo viskas normaliai tik galėjo matyti admin, o aš pridirbau tai kažko db neeina šiaip va lyg ir padariau, bet klaidą meta:

if (iMEMBER) {
   openside("<img src='/atributai/diskusijos.png'>Informacija");
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'> Mano profilis</a></br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
   
   }
   
   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 {
 
}
closeside();
?>




    
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/*******/*******/administration/panel_editor.php(111) : eval()'d code on line 5



Redagavo Haked· 2008 Rugp. 29 02:08:03

Parašė Giedrunskis· 2008 Rugp. 29 02:08:59
#4

if (iMEMBER) {
   openside("<img src='/atributai/diskusijos.png'>Informacija");
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>";
echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'> Mano profilis</a><br>";
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
   
   }
   
   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 {
 
}
closeside();
?>



Parašė Haked· 2008 Rugp. 29 02:08:44
#5

Liudas parašė:
if (iMEMBER) {
   openside("<img src='/atributai/diskusijos.png'>Informacija");
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>";
echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'> Mano profilis</a><br>";
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
   
   }
   
   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 {
 
}
closeside();
?>



Bet dabar nėra admin panelės :(

Redagavo Haked· 2008 Rugp. 29 03:08:32

Parašė bad_user· 2008 Rugp. 29 04:08:08
#6

   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
   tavo linkas į admin :|
   }