ashais13 Posted February 12, 2009 Report Share Posted February 12, 2009 Beidzot sanāca savest kārtībā to login skriptu, bet gribēju uzzināt kas tur vel jāieraksta lai uzrādītu avataru..?? <?php mysql_connect("localhost", "root", "pamparam"); mysql_select_db("db"); if(isset($_COOKIE['member_id'])){ $get=mysql_query("SELECT * FROM `3453_members` WHERE id='".intval($_COOKIE['member_id'])."'") or die(mysql_error()); $udata=mysql_fetch_object($get); if($udata->member_login_key==$_COOKIE['pass_hash']) { echo " <center><h1>Sveiks ".$udata->members_display_name."</h1></center><br> <a href= 'f/index.php?act=UserCP&CODE=00'>Labot Profilu</a><br> <a href= 'f/index.php?act=Members'>Lietotāji</a><br> <a href= 'f/index.php?act=Search&f=0'>Meklēt forumā</a><br><br> <a href= '/f/index.php?act=Login&CODE=03&k=4c92e878c20400996e743ad864f16e04'>[IZIET]</a>"; }else{ echo ""; } }else{ echo " "; } ?> Link to comment Share on other sites More sharing options...
waplet Posted February 12, 2009 Report Share Posted February 12, 2009 A kā tur avatari iedalas , pēc ID. Ja jā, tad vnk ņem member id , un taisi img. bet ja ir kods, tad skaties, iekš piemēram $udata->member_avatart_url , un tad izvadi! Link to comment Share on other sites More sharing options...
Recommended Posts