1 Attachment(s)
thats no info we need the error mass you geting or can not fix it lol
this is the last repo i did |
Word off caution.
It's great to see tbdev being modded, but there should be concerns for the new users that don't have coding experience, when using a code base thats outdated and has more security holes than a sift.
Mysql isn't supported and replaced with mysqli, which essentially the code that calls on mysql has to be updated for mysqli, coding experience is required to so. So this version is already under the curve ball for major work. There are a number off sources on here already that have replaced mysql and upgraded to mysqli, and theres a good chance its security holes that are in the old tbdev are drastically reduced. If this is your upgraded version off tbdev why are you using torrentstrike installer instead of your own. The important thing is that, when using any source, php/mysqli basic knowledge is a requirement, even more so when using outdated source code like this. |
ss207823
You words of caution , are well founded. And should be taken seriously. There are a lot security issues regarding mysql. Having said that, TBDev is a great code for beginner coders to cut their teeth so to speak. It is based upon the original TBsource. And a fantastic place for beginner coders to learn about coding. Everyone has to start somewhere, as we all did. :coffee: |
Quote:
there is alot of TBsource on here and over the net and alot of sites that is still using old mysql too and that is a very lot of big site too and im apart of them to and do alot of work for them too so no its not new code all the time is it For Example change Mysql too sql_query its not as easy as that you will need to change alot of code to match it this |
Quote:
TBsource and TBDev are not the same code. TBsource Was the first private site open source code released = TorrentBits. This was the site http://tbsource.org The link does not work !!!! TBDev is a deviation of TBsource -- an Xbit code if you like. Just like TorrentStrike is / was a deviation of TBDev. |
change Mysql too sql_query
its not as easy as that you will need to change alot of code to match it also my torrantstike is TBsource |
Quote:
I use TextPad as my php editor. If I hit the F8 key, a pop up box appears. It has 2 input boxes. 1: Find 2: Replace Box Number 1 ( Find ) I input mysql_query Box Number 2 ( Replace ) I input sql_query I then click the return button named Replace All And it replaces all the mysql_query with the new sql_query The whole page in one click. Takes about 5 seconds per page. Then all you need to do is create the function for sql_query. Most php editors will have the same type of find and replace text option. You just have to look through your php editor and find it. |
what function for sql_query ? im nealy there lol with this one step then done
|
Quote:
It's not that hard. OK a quick and basic lesson in functions. You want to replace mysql_query with sql_query. Example of a mysql_query Code:
mysql_query("SELECT username FROM users WHERE id = 1"); That is a function, same as the example below Code:
parked(); Is reconised by php as a pre set standard function. Where parked(); has to be defined as a function with-in the source code. So to replace mysql_query with sql_query. You will need to create a function for sql_query. Example ( DO NOT COPY AND PASTE ) Code:
function sql_query() After all you do write your own custom code all the time. Which I am sure includes lots of custom functions. |
i see where you are coming from mate this would not work the above mate at all and its a long way of doing it too mate sorry it would not work at all ive given up on this when bittorrent can do this for you with out adding to every page
sql_query(); to every page and it would not work at all |
That's a copy of the function sql_query ($querytme)
From FreeTSP, line for line. I think it comes from U232, not to certain though, as Krypto added that part. Full credit to the coder that created it ( don't know his / her name sorry ) It is close to the function you are after. As I said, you brag about how much custom code you do your self. And how fantastic it is. A simple replacement function should be dead easy for a coder of your skills. Should take about 2 mins, to write it. I have done most of the function for you. You just need to fill in the missing pieces. EDIT You edited your post while I was posting mine. There is a very good reason for using sql_query. When you recode your site to mysqli. You only need to update your function to accommodate it. |
Quote:
You do not add that Function to every page it is added to the one page that is used on every page AKA (global.php, functions.php) and doing it like that is FARRRRRRR easier then editing every query to use mysqli and you call your self a coder? I have used this standerd in my source sence day one when I added mysqli to my source it only took one day to create the mysqli class functions and did not need to edit any of the pages. |
or could just use mysqli converter and convert mysql_query line to mysqli standard like i use it :)
tricky part is when switching to OOP+PDO :) |
ive try all the above over this few days and still the same do not bash i wanted to get my torrant strike out on here
so ive given up on this im not geting the correct info at all from noone at all so it stays as it is so there be no torrantstrike on here from me |
Ohhh nooo , why? ... the tragedy !
You never was going to post it! "Your torrantstrike" Quote:
|
And yes i was going to do not presume i would not {solved} now working on sql_query now ill set up msqli
|
Any possibility for php7 support?
PHP Code:
|
Hello
--- solved---
|
ill repo this up in a few hours and send it back here i think it need it
|
Quote:
Notice: Undefined index: class_success in D:\Ampps\www\mybonus.php on line 50 Notice: Undefined index: smile_success in D:\Ampps\www\mybonus.php on line 56 Notice: Undefined index: warning_success in D:\Ampps\www\mybonus.php on line 62 Notice: Undefined index: invite_success in D:\Ampps\www\mybonus.php on line 68 Notice: Undefined index: title_success in D:\Ampps\www\mybonus.php on line 74 Notice: Undefined index: ratio_success in D:\Ampps\www\mybonus.php on line 80 Notice: Undefined index: gift_fail in D:\Ampps\www\mybonus.php on line 86 Notice: Undefined index: gift_fail_user in D:\Ampps\www\mybonus.php on line 92 Notice: Undefined index: gift_fail_points in D:\Ampps\www\mybonus.php on line 98 Notice: Undefined index: gift_success in D:\Ampps\www\mybonus.php on line 104 Notice: Undefined index: exchange in D:\Ampps\www\mybonus.php on line 111 Notice: Undefined variable: SITENAME in D:\Ampps\www\mybonus.php on line 246 Notice: Undefined variable: count1 in D:\Ampps\www\mybonus.php on line 249 Pls fix this |
M1601
Napon has not been seen for 6 months now. And TBH I do not expect him to return ( well not using that name anyway ) Even if he did return, I doubt that he will fix the problem. He normally brags that he has that problem sorted months ago, but never posts the code. You would be better off, ditching this code and move onto something else here that will give you better support. |
Quote:
Try using isset on every INDEX error you have and for the VARIABLES they are missing or not recognized. PHP Code:
|
Mybonus
DB Code:
$INSERT[] = "INSERT INTO bonus (id, bonusname, points, description, art, menge) VALUES |
Ok, I was wrong about that.
You'd be here all day trying to repair this code, it's probably best to use something later. |
Yep
Mybonus.php Code:
/* |
Briliant :lol: exactly what i've said :wallbash: just use isset when you got index errors. You people are unbelievable.
|
Thaxted admin for tags would not work for me
Bump: By the way chez it was more then one error line look at it can you see what else it was apart from isset |
Ive done a repo so it will be on here soon with all errors fixed so on
|
error
|
This is old download the new repo from new post
Here http://www.bvlist.com/showthread.php?t=11263 |
All times are GMT +2. The time now is 14:10. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.