Hello,
I have a small problem with the current configuration of Xfilesharing Pro.
I wish I could get the uid of the user from their username in order to then insert it into a script for a survey, but I can not do it properly, or even not at all.
I managed to create a page that retrieves by adding the name of the user in the ajoutenant in the url and using the header in php, but I wish I could do otherwise.
I have thought about changing the file index.cgi but I do not know Perl and do not venture to touch it.
Could someone give me a working solution please?
Sincerely
XFileSharing Pro - [RESOLVED] Get the uid to insert it into a script
[RESOLVED] Get the uid to insert it into a script
Last edited by applewar on Jun 27, 2011 3:59 pm, edited 1 time in total.
Thanks nyan, I've define it manually, it's works with:
'usr_id' => $ses->getUser->{usr_id},
but I've got an error when a non-registered member try to download, because he hasn't got usr_id.
Error is:
Can't use an undefined value as a HASH reference at index_dl.pm on line 376
Any solution for that ? (Yes, I'm a newbies in Perl)
'usr_id' => $ses->getUser->{usr_id},
but I've got an error when a non-registered member try to download, because he hasn't got usr_id.
Error is:
Can't use an undefined value as a HASH reference at index_dl.pm on line 376
Any solution for that ? (Yes, I'm a newbies in Perl)