Hello everyone
We are trying to capture the logged in User id, when they click on the Link,
We are using the out.php, and need some help in understanding how we can do the following
The shared link is for example : http://www.thiswebsite.php/getdetails.php&subid=0&u1={$user-id}
We will manually place the required {user-id} portion in the Link, but this test must be replaced with the actual logged in users id, or user name when the link in clicked
We have tried it with and with the out.php on and as well as multiple expressions of {$user} {$user_logged_in}...etc.
what would be the best case senario is using the out.php to pull and place the user id in the outgoing link.
We tried to modify the out.php but we are way past our limits, here is a portion of the out.php, the red portions are our attempts to have the out.php pull the user id and place it in the link
Code:include('config.php'); include(mnminclude.'html1.php'); include(mnminclude.'link.php'); $requestID = sanitize($_REQUEST['id'], 3); $requestUser = sanitize($_REQUEST['user_id'], 3); $requestTitle = sanitize($_REQUEST['title'], 3); $requestURL = sanitize($_REQUEST['url'], 3); $requestTitle = sanitize($requestTitle,4); $requestURL = sanitize($requestURL,4); $requestURL = preg_replace('/(https?:\/)([^\/])/','$1/$2',$requestURL); if($requestTitle != ''){ $requestID = $db->get_var("SELECT link_id FROM " . table_links . " WHERE `link_title_url` = '" . $db->escape($requestTitle) . "';"); } if($requestURL != ''){ $requestID = $db->get_var("SELECT link_id FROM " . table_links . " WHERE `link_url` = '" . $db->escape($requestURL) . "';"); } if($requestUser != ''){ $requestuser = $db->get_var("SELECT link_id FROM " . table_users . " WHERE `user_id` = '" . $db->escape($requestuser) . "';"); } if(is_numeric($requestID)) { $id = $requestID; $link = new Link; $link->id=$requestID; $link->read(); $user_id = $requestUser;
Please point us in the Right Direction



Reply With Quote





