$TRACKER_ANNOUNCEURLS=array();$TRACKER_ANNOUNCEURLS[]="http://adres.twojej.strony/announce.php";if ($CURUSER["admin_access"]=="yes")
print("\n<td align=center class=lista><a href=admincp.php>".MNU_ADMINCP."</a></td>\n");
print("<td class=lista align=center><a href=usercp.php?uid=".$CURUSER["uid"].">".USER_CP."</a></td>\n");
$resmail=mysql_query("SELECT COUNT(*) FROM messages WHERE readed='no' AND receiver=$CURUSER[uid]");
if ($resmail && mysql_num_rows($resmail)>0)
{
$mail=mysql_fetch_row($resmail);
if ($mail[0]>0)
print("<td class=lista align=center><a href=usercp.php?uid=".$CURUSER["uid"]."&do=pm&action=list>".MAILBOX."</a>
(<font color=\"#FF0000\"><b>$mail[0]</b></font>)</td>\n");
else
print("<td class=lista align=center><a href=usercp.php?uid=".$CURUSER
["uid"]."&do=pm&action=list>".MAILBOX."</a></td>\n");
}
else
print("<td class=lista align=center><a href=usercp.php?uid=".$CURUSER
["uid"]."&do=pm&action=list>".MAILBOX."</a></td>\n");
print("\n<form name=jump1><td class=lista><select name=\"style\" size=\"1\"
onChange=\"location=document.jump1.style.options[document.jump1.style.selectedIndex].value\" style=\"font-size:10px\">");
foreach($style as $a)
{
print("<option ");
if ($a["id"]==$CURUSER["style"])
print("selected=selected");
print(" value=account_change.php?style=".$a["id"]."&returnto=".urlencode($_SERVER['REQUEST_URI']).">".$a
["style"]."</option>");
}
print("</select></td>");
print("\n<td class=lista><select name=\"langue\" size=\"1\" onChange=\"location=document.jump1.langue.options
[document.jump1.langue.selectedIndex].value\" style=\"font-size:10px\">>");
foreach($langue as $a)
{
print("<option ");
if ($a["id"]==$CURUSER["language"])
print("selected=selected");
print(" value=account_change.php?langue=".$a["id"]."&returnto=".urlencode($_SERVER['REQUEST_URI']).">".$a
["language"]."</option>");
}
print("</select></td></form>");function aggiungiutente() {
global $SITENAME,$SITEEMAIL,$BASEURL,$VALIDATION,$USERLANG,$USE_IMAGECODE;
$smf_passwd = sha1(strtolower($_POST['user']) . $_POST['pwd']);
$smf_salt = substr(md5(rand()), 0, 4);
@mysql_query("INSERT INTO users (username, password, random, id_level, email, style, language, flag, joined) VALUES ('$utente', '" . md5($pwd) . "', $random, $idlevel, '$email', $idstyle, $idlangue, $idflag, NOW())");
$test = mysql_query("SELECT COUNT(*) FROM smf_members WHERE memberName='$utente' OR email='$email'");
$test = mysql_fetch_row($test);
if ($test[0]==0)
{
mysql_query("INSERT INTO smf_members (memberName, dateRegistered, realName, passwd, emailAddress, ID_POST_GROUP, passwordSalt) VALUES ('$utente', UNIX_TIMESTAMP(), '$utente', '$smf_passwd', '$email', 4, '$smf_salt')");
}
Użytkownicy przeglądający to forum: Brak zalogowanych użytkowników i 0 gości