Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Invites get wrong class
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Support

2022-08-23 07:08:42
Hi guys,
I have that fenomen now after got to php7 with my script
if user got invite and after that activate that invite code/link he/she got class 8 (administrator) insteand for class 1 as it formulated in account-singup.php


// make first member admin
if ($numsitemembers == '0')
$signupclass = '11';
else
$signupclass = '1';

$ret = SQL_Query_exec("INSERT INTO users (username, password, secret, email, uploaded, downloaded, modcomment, seedbonus, status, added, age, country, gender, client, stylesheet, language, class, ip) VALUES (" .
implode(",", array_map("sqlesc", array($wantusername, $wantpassword, $secret, $email, $upload, $download, $modcomment_text, $seedbonus, $status, get_date_time(), $age, $country, $gender, $client, $site_config["default_theme"], $site_config["default_language"], $signupclass, getip()))).")");



Try to figure out but only that file have this formulation of class

All help is welcome asap

/regards


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Last edited by Botanicar on 2022-08-23 07:09:05
2022-08-23 21:44:30
try this. Not sure what the $ret is for, so
SQL_Query_exec("INSERT INTO users (username, password, secret, email, uploaded, downloaded, modcomment, seedbonus, status, added, age, country, gender, client, stylesheet, language, class, ip) VALUES (" .
implode(",", array_map("sqlesc", array($wantusername, $wantpassword, $secret, $email, $upload, $download, $modcomment_text, $seedbonus, $status, get_date_time(), $age, $country, $gender, $client, $site_config["default_theme"], $site_config["default_language"], $signupclass, getip()))).")");

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2022-08-23 22:02:04
2022-08-24 17:08:11
Thanks MM,
I have check mysql database and found default user class was 8, it must be a my stupid fingers (or stupid me) who make mistake for that

bad from me


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Last edited by Botanicar on 2022-08-24 17:34:28
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728