Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 7th February 2013, 00:34
Tones Tones is offline
Banned
 
Join Date: Sep 2011
Cuba
Posts: 154
Default Black Torrents - signup problems
takesignup.php

signup.php

These two files are in BT...... my problem is similar to this BORKED http://www.bvlist.com/tbdev/1040-problem-source.html
Reply With Quote
  #2  
Old 7th February 2013, 00:42
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
replace
PHP Code:
$ret mysql_query("INSERT INTO users (username, passhash, secret, editsecret, country, email, status, ". (!$arr[0]?"class, ":"") ."added) VALUES (" .
                
implode(","array_map("sqlesc", array($wantusername$wantpasshash$secret$editsecret$country$email, (!$arr[0]?'confirmed':'pending')))).
                
", ". (!$arr[0]?UC_SYSOP.", ":""). "'"get_date_time() ."')"); 
with

PHP Code:
mysql_query("INSERT INTO users (username, passhash, secret, editsecret, country, email, status, ". (!$arr[0]?"class, ":"") ."added) VALUES (" .
                
implode(","array_map("sqlesc", array($wantusername$wantpasshash$secret$editsecret$country$email, (!$arr[0]?'confirmed':'pending')))).
                
", ". (!$arr[0]?UC_SYSOP.", ":""). "'"get_date_time() ."')")or die(mysql_error());
                die(
'test Now tell joe what it said'); 
and let me know what it said
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 7th February 2013, 00:47
Tones Tones is offline
Banned
 
Join Date: Sep 2011
Cuba
Posts: 154
Default
Field 'title' doesn't have a default value
Reply With Quote
  #4  
Old 7th February 2013, 00:55
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
Now try this
PHP Code:
                    mysql_query("INSERT INTO users (username, passhash, secret, editsecret, country, email, status, ". (!$arr[0]?"class, ":"") ."added, title) VALUES (" .
                
implode(","array_map("sqlesc", array($wantusername$wantpasshash$secret$editsecret$country$email, (!$arr[0]?'confirmed':'pending')))).
                
", ". (!$arr[0]?UC_SYSOP.", ":""). "'"get_date_time() ."', 'title')")or die(mysql_error());
                die(
'test Now tell joe what it said'); 
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #5  
Old 7th February 2013, 00:57
Tones Tones is offline
Banned
 
Join Date: Sep 2011
Cuba
Posts: 154
Default
I get this error.... Field 'modcomment' doesn't have a default value
Reply With Quote
  #6  
Old 7th February 2013, 01:00
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
wow pick data base try this one
PHP Code:
                    mysql_query("INSERT INTO users (username, passhash, secret, editsecret, country, email, status, ". (!$arr[0]?"class, ":"") ."added, title, modcomment) VALUES (" .
                
implode(","array_map("sqlesc", array($wantusername$wantpasshash$secret$editsecret$country$email, (!$arr[0]?'confirmed':'pending')))).
                
", ". (!$arr[0]?UC_SYSOP.", ":""). "'"get_date_time() ."', 'title', 'signed up')")or die(mysql_error());
                die(
'test Now tell joe what it said'); 
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #7  
Old 7th February 2013, 01:03
Tones Tones is offline
Banned
 
Join Date: Sep 2011
Cuba
Posts: 154
Default
Field 'disable_reason' doesn't have a default value

Bump: These errors stop somewhere in country field ....
Reply With Quote
  #8  
Old 7th February 2013, 01:05
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
try this one now
PHP Code:
                    mysql_query("INSERT INTO users (username, passhash, secret, editsecret, country, email, status, ". (!$arr[0]?"class, ":"") ."added, title, modcomment, disable_reason) VALUES (" .
                
implode(","array_map("sqlesc", array($wantusername$wantpasshash$secret$editsecret$country$email, (!$arr[0]?'confirmed':'pending')))).
                
", ". (!$arr[0]?UC_SYSOP.", ":""). "'"get_date_time() ."', 'title', 'signed up', 'none')")or die(mysql_error());
                die(
'test Now tell joe what it said'); 
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #9  
Old 7th February 2013, 01:07
Tones Tones is offline
Banned
 
Join Date: Sep 2011
Cuba
Posts: 154
Default
Field 'supportfor' doesn't have a default value
Reply With Quote
  #10  
Old 7th February 2013, 01:09
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
try this
PHP Code:
                    mysql_query("INSERT INTO users (username, passhash, secret, editsecret, country, email, status, ". (!$arr[0]?"class, ":"") ."added, title, modcomment, disable_reason, supportfor) VALUES (" .
                
implode(","array_map("sqlesc", array($wantusername$wantpasshash$secret$editsecret$country$email, (!$arr[0]?'confirmed':'pending')))).
                
", ". (!$arr[0]?UC_SYSOP.", ":""). "'"get_date_time() ."', 'title', 'signed up', 'none', 'nothen')")or die(mysql_error());
                die(
'test Now tell joe what it said'); 
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
Reply

Tags
black , problems , signup , torrents

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 21:45. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.