From: Makka <ma...@cl...> - 2003-06-29 03:26:23
|
Gidday All, I'm only just getting my head into this phpWS project, & I was=20 wondering if someone can point out where it is that i am going wrong.=20 I'm trying to use phpWS to authenticate another application (MRBS)=20 using the username of the user logged in. I would like to add another=20 link to the menu of the log-in box (after they have already logged in)=20= in phpWS. I have currently added the following lines to the current=20 code (phpWS v0.9.2): to the: mod/users/templates/usermenus/Default.tpl =09 /*---------- stuff i have added------------*/ <a href=3D"test.php?{USERNAME}">MRBS - {USERNAME}</a><br /> /*---------- stuff i have added------------*/ {HOME}<br /> {MODULES}<br /> <br /> {LOGOUT}=00=00 & in the: mod/users/index.php if ($_SESSION["OBJ_user"]->user_id > 0){ $CNT_user_small["title"] =3D $_SESSION["translate"]->it("Hello = [var1]",=20 $_SESSION["OBJ_user"]->username); $CNT_user_small["content"] =3D $_SESSION["OBJ_user"]->userMenu(); /*---------- stuff i have added------------*/ $CNT_user_small["username"] =3D $_SESSION['OBJ_user']->username; /*---------- stuff i have added------------*/ }=00=00 I get no output for the {USERNAME} in phpWS like so: |