The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
php script to add user to group
#2
I can't think of a way to do that. It seems like it would be a security vulnerability.

I think the better thing to do would be something along the lines of putting...
Code:
if($user->isLoggedIn()){
Code:
//your code here
Code:
}

somewhere on the page to make something accessible to only logged in users. Maybe I'm missing something.

Can you tell me a little bit more about what you're trying to accomplish?
  Reply


Messages In This Thread
php script to add user to group - by caleb - 06-19-2016, 05:07 PM
php script to add user to group - by mudmin - 06-19-2016, 05:13 PM
php script to add user to group - by caleb - 06-19-2016, 05:15 PM
php script to add user to group - by mudmin - 06-19-2016, 05:43 PM
php script to add user to group - by mudmin - 06-19-2016, 05:58 PM
php script to add user to group - by caleb - 06-19-2016, 06:04 PM
php script to add user to group - by caleb - 06-19-2016, 06:18 PM
php script to add user to group - by mudmin - 06-19-2016, 07:14 PM
php script to add user to group - by caleb - 08-27-2016, 05:39 PM
php script to add user to group - by mudmin - 08-28-2016, 12:19 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)