getting Joomla userid into non-Joomla php file

I had someone create a component for me on Joomla 1.0. we used Jumi to create an "html" file with this in the top:

<? php

global $my;

if ($my->id) {

echo "<script type='text/javascript'>juserid=".$my->id."</script>";

} else { }


This created a parameter that was readable by my php file: Then inside a non-Joomla php file (where we ran a query using the userid to create an XML file), we added this:

global $my;

$userid = $_POST['userid'];

In the query we used this:

where g.id=" . $userid.

This isn't working though when I tried to recreate this in J1.6. What's the new syntax for retrieving the userid and posting it so I can grab it from the other php file and use it in a query? I do not think the $POST method is secure either.

Basically what I need is a way for a php file (that is not part of the Joomla environment but on same server) to be able to retrieve the user's Joomla ID so I can use it in a query. This php file is called via a javascript file that I'm referencing inside a Jumi component.

you cannot use $POST or $GET methods - the solution must be secure!

Evner: Javascript, Joomla, PHP

Se mere: joomla user php, joomla user javascript, joomla userid javascript, joomla userid xml, getting userid non joomla php file, top query, javascript user joomla, javascript joomla userid, what is a php file, j1, php text xml, php xml file use php, create html file php script, top php script, retrieving, script php html text, php script echo, joomla php create user, userid, echo script php, script create user joomla, echo script, php script html text, echo file php, php echo file

Om arbejdsgiveren:
( 15 bedømmelser ) Glen Allen, United States

Projekt ID: #959941

Tildelt til:


Please check you PM Box for details.

$40 USD in 0 dage
(85 bedømmelser)

8 freelancere byder i gennemsnit $49 på dette job


Please check PMB

$80 USD på 1 dag
(360 bedømmelser)

Let me help you. I will help you use UserId in any page of non-Joomla page

$40 USD på 1 dag
(91 bedømmelser)

Please check PMB, thanks!

$50 USD in 0 dage
(86 bedømmelser)

i can do this :)

$50 USD på 1 dag
(51 bedømmelser)

I can get it done without using GET/POST. Let's proceed.

$50 USD på 1 dag
(12 bedømmelser)

I can fix this. Please check PM.

$30 USD på 1 dag
(6 bedømmelser)

I have done this before.

$50 USD på 1 dag
(2 bedømmelser)