The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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
Digging the new Input Class
#1
I'm really digging the input class. I need to roll a change out to version 3.x, but basically instead of doing something like

Code:
$permission = ($_POST['name']);

you can do

Code:
$permission = Input::get('name');

And it grabs the get OR post input and completely sanitizes it with this...
Code:
return trim(htmlentities($string, ENT_QUOTES, 'UTF-8'));

That's a ton of functionality with one slight change to grabbing your inputs. And it's available to everyone using UserSpice 3.1.1 or later.
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)