Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: user id gavimas

Parašė Erdfcvxl· 2012 Vas. 15 18:02:50
#1

Sveiki koks geriausias budas atkasti user id is prisijungusio zmogaus, tai turbut is COOKIES.
As sukuriau nauja faila ir includinau maincore.php bet jei bandau istraukti tokias reiksmes is kintamuju kaip $user_id ar $data['user_id'] ju neranda. Nors yra includintas maincoras.

Kaip reiktu surasti to prisijungusio zmogaus id arba kaip COOKIES?

Parašė avice· 2012 Vas. 15 18:02:46
#2

$userdata['user_id'];
$userdata array:

Array ( [user_id] => 1 [user_name] => Avice [user_password] => xxxxx [user_admin_password] => xxxxx [user_email] => admin@xxxx [user_hide_email] => 1 [user_offset] => 0 [user_avatar] => [user_posts] => 1 [user_threads] => [user_joined] => 1299093235 [user_lastvisit] => 1329325129 [user_ip] => 78.63.35.138 [user_rights] => A.AC.B.BB.C.CP.DB.DC.D.FQ.F.FR.IM.I.IP.M.NC.P.PH.PI.PO.S.SL.S1.S2.S3.S4.S5.S6.S7.S8.S9.S10.S11.S12.SB.SM.SU.UF.UFC.UG.U.W.WC.ADS [user_groups] => [user_level] => 103 [user_status] => 0 [user_actiontime] => 0 [user_theme] => Default [user_location] => [user_birthdate] => 0000-00-00 [user_aim] => [user_icq] => [user_msn] => [user_yahoo] => [user_web] => [user_sig] => )

Parašė Erdfcvxl· 2012 Vas. 16 13:02:22
#3

Cia jau labiai issamiai :) Uzteko vien $userdata kintamojo, labai dekui.