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
Rename users folder
#3
Thanks Brandin, in these lines I have:
<pre>
Code:
$token = Input::get('csrf');
if(Input::exists()){
    if(!Token::check($token)){
        die('Token doesn\'t match!');
    }
}
</pre>


Change them by:
<pre>
Code:
$token = Input::get('csrf');
if(Input::exists()){
    if(!Token::check($token)){
        Redirect::to($us_url_root.'users/accion-no-permitida.php'); <!-- here -->
    }
}
</pre>


It works as a redirect to a page that explains what happened, the question is: Is it the best option?
  Reply


Messages In This Thread
Rename users folder - by shoropio - 09-05-2017, 10:36 PM
Rename users folder - by Brandin - 09-05-2017, 10:47 PM
Rename users folder - by shoropio - 09-06-2017, 12:34 AM
Rename users folder - by karsen - 09-06-2017, 03:11 AM
Rename users folder - by mudmin - 09-06-2017, 02:00 PM
Rename users folder - by mudmin - 09-06-2017, 02:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)