Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Project U-232
Reply
  #11  
Old 22nd December 2020, 19:42
fr31w1ld fr31w1ld is offline
Senior Member
 
Join Date: Nov 2020
Posts: 16
Default
now i have this error
PHP Notice: Undefined variable: INSTALLER09 in /var/www/html/include/class/page_verify.php on line 39


and a white page
Reply With Quote
  #12  
Old 22nd December 2020, 20:48
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
once its on the global set you won't get undef variable
you are doing something wrong
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #13  
Old 22nd December 2020, 21:12
fr31w1ld fr31w1ld is offline
Senior Member
 
Join Date: Nov 2020
Posts: 16
Default
Now if you tell me what I'm doing wrong then I could fix it too. should I reinstall it again with the changed page verify
Reply With Quote
  #14  
Old 22nd December 2020, 21:30
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
why? just change the page verify with that we told ya..
just do the trick.. logout..clear your cookies.. maybe also empty/refresh memcache
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #15  
Old 22nd December 2020, 22:22
Asterix Asterix is offline
Senior Member
 
Join Date: Mar 2011
P2P
Posts: 20
Default
just copy this code:
Code:
// receiving script...
//
// You need to pass the value of $task from the calling script to the receiving script. While
// this may appear dangerous, it still only allows a one shot at the receiving script, which
// effectively stops flooding.
// page verify by retro
class page_verify
{
    function __construct()
    {
        if (session_id() == '') {
            session_start();
        }
    }
    function create($task_name = 'Default')
    {
        global $CURUSER, $_SESSION, $INSTALLER09;
        $session_task = isset($CURUSER['id']) ? $CURUSER['id'] : $INSTALLER09['bot_id'];
        $_SESSION['Task_Time'] = TIME_NOW;
        $_SESSION['Task'] = md5('user_id:'.$session_task.'::taskname-'.$task_name.'::'.$_SESSION['Task_Time']);
        $_SESSION['HTTP_USER_AGENT'] = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
        //$_SESSION['HTTP_USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
    }
    function check($task_name = 'Default')
    {
        global $CURUSER, $INSTALLER09, $lang, $_SESSION;
        $returl = (isset($_SERVER['HTTP_REFERER']) ? htmlsafechars($_SERVER['HTTP_REFERER']) : $INSTALLER09['baseurl']."/login.php");
        $returl = str_replace('&', '&', $returl);
        if (isset($_SESSION['HTTP_USER_AGENT']) && $_SESSION['HTTP_USER_AGENT'] != $_SERVER['HTTP_USER_AGENT']) stderr("Error", "Please resubmit the form. <a href='".$returl."'>Click HERE</a>", false);
        $session_task_id = isset($CURUSER['id']) ? $CURUSER['id'] : '';
        if (isset($session_task) && $session_task != md5('user_id:'.$session_task_id.'::taskname-'.$task_name.'::'.$_SESSION['Task_Time'])) stderr("Error", "Please resubmit the form. <a href='".$returl."'>Click HERE</a>", false);
        $this->create();
    }
}
?>
and save as page_verify.php on /include/class/.
verify on config.php if you have this line.
$INSTALLER09['bot_id'] = 2;
Reply With Quote
  #16  
Old 23rd December 2020, 20:04
fr31w1ld fr31w1ld is offline
Senior Member
 
Join Date: Nov 2020
Posts: 16
Default
I changed that as you wrote me. I still get login failed
Reply With Quote
  #17  
Old 23rd December 2020, 20:06
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
well..the login failed error is not from the page_verify thing. your problem is someplace different.
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #18  
Old 23rd December 2020, 20:25
Asterix Asterix is offline
Senior Member
 
Join Date: Mar 2011
P2P
Posts: 20
Default
Quote:
Originally Posted by fr31w1ld View Post
I changed that as you wrote me. I still get login failed
some php errors?
some sql errors? you can verify sql errors on folder sqlerr_logs.
but your error is on database.

on table `users` change length of column `passhash` from 32 to 64.

Code:
`passhash` varchar(32) CHARACTER SET utf8 DEFAULT NULL,
should be


Code:
`passhash` varchar(64) CHARACTER SET utf8 DEFAULT NULL;
first delete your account.
second from phpmyadmin enter on table users and change the length of column passhash from 32 to 64.
or use this on phpmyadmin:
Code:
ALTER TABLE `users` MODIFY `passhash` varchar(64) CHARACTER SET utf8 DEFAULT NULL;
now create a new account and try to login.

Bump: errors are from database on column passhash.
length of column passhash is 32.
function make_passhash creates a passhash of length 64. on sql insert passhash is truncated to 32.
Reply With Quote
  #19  
Old 24th December 2020, 08:36
fr31w1ld fr31w1ld is offline
Senior Member
 
Join Date: Nov 2020
Posts: 16
Default
it works, thank you very much! I still have one question, how can I turn off Donate and change the template?
Reply With Quote
  #20  
Old 24th December 2020, 18:10
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
from site settings and also there is a termplate system management..but you need to use already created designs or create your own
v5 is not a click and play code.. you need to have some knowledge when editing it
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 20:05. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.