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
Private Site
#3
Thanks for the reply.

I don't appear to have an Ajax or Javascript in the login.php page, just some CSS to change the format/layout

Have confirmed that commenting out `$token = Input::get('csrf');
if(!Token::check($token)){
die('Token doesn\'t match!');
}`

That the page loads correctly.

Just so I'm clear, I've added my new login.php and homepage.php into usersc/ from index.php I've changed the first piece of code
index.php
<pre>
Code:
require_once 'users/init.php';
if(file_exists("usersc/homepage.php")){
    //perform redirect if homepage files exist
    //this if{} block may be deleted once installed
    header("Location: usersc/homepage.php");
</pre>


The top of homepage.php has this code
homepage.php
<pre>
Code:
require_once '../users/init.php';
if (!securePage($_SERVER['PHP_SELF'])){die();}
</pre>


It all appears to redirect correctly, just that login.php ends up with a token error.
link to login.php -
Code:
http://pastebin.com/r19BvB3k

Again thanks for you help with this.

Wayne
  Reply


Messages In This Thread
Private Site - by waynez - 01-19-2017, 11:24 PM
Private Site - by mudmin - 01-20-2017, 04:35 PM
Private Site - by waynez - 01-21-2017, 08:47 PM
Private Site - by mudmin - 02-13-2017, 07:16 PM
Private Site - by gray444 - 02-14-2017, 05:58 PM
Private Site - by dan - 02-14-2017, 06:08 PM
Private Site - by jmac - 05-09-2017, 12:20 PM
Private Site - by mudmin - 05-09-2017, 10:03 PM
Private Site - by jmac - 05-11-2017, 10:23 AM
Private Site - by firestorm - 05-11-2017, 11:51 AM
Private Site - by mudmin - 05-11-2017, 12:10 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)