hi, i was triying make a mod in a single.php file, that working if i pass de user_id for the URL, but i need extract the user_id reading a cookie... some body can help??
Sorry por mi ingles, me esforce un poco, saludos de chile
![Wink ;)](https://www.4homepages.de/forum/Smileys/default/icon_wink.gif)
In phpnuke y get the
user making something like this:
<?
cookiedecode($user);
$username = $cookie[1];
echo "$username";
?>
*******************************
i answer my miself:
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
echo "$user_info[user_id]";
very easy..
![Razz :P](https://www.4homepages.de/forum/Smileys/default/icon_razz.gif)