- Joined
- Oct 2, 2014
- Messages
- 1,115
- Reaction score
- 833
@d3nniL I imagine it was mostly just the fact it's using mysql rather than mysqli or PDO functions, mysql functions were deprecated after PHP 5.5/5.6. Part of the reason I haven't tested. I might have my own spin off in future that's updated in terms of PHP and will run in newer versions. But that'll be a long way off as there's a lot of code to make.
I stopped with PHP when those mysql functions has been changed.... long time ago now.
Anyway even if it seems to look like it would work, I still couldn`t login yet because I can`t get this captcha working.... I pasted the api-key but the captcha is still not showing. Anyone mind to explain how to fix the captcha?
Meanwhile I translated some of the files...
[COLOR=#CC7832][B]if [/B][/COLOR][COLOR=#A9B7C6](intval([/COLOR][COLOR=#9876AA]$responseKeys[/COLOR][COLOR=#A9B7C6][[/COLOR][COLOR=#6A8759]"success"[/COLOR][COLOR=#A9B7C6]]) !== [/COLOR][COLOR=#6897BB]1[/COLOR][COLOR=#A9B7C6]) {[/COLOR]
[COLOR=#CC7832][B]if [/B][/COLOR][COLOR=#A9B7C6](intval([/COLOR][COLOR=#9876AA]$responseKeys[/COLOR][COLOR=#A9B7C6][[/COLOR][COLOR=#6A8759]"success"[/COLOR][COLOR=#A9B7C6]]) !== [/COLOR][COLOR=#6897BB]1 [/COLOR][COLOR=#A9B7C6]&& [/COLOR][COLOR=#6897BB]1[/COLOR][COLOR=#A9B7C6]==[/COLOR][COLOR=#6897BB]2[/COLOR][COLOR=#A9B7C6]) {[/COLOR]
On localhost google recaptcha isn't working, the best you can do is open up register.php and replace the following line:
Code:[COLOR=#CC7832][B]if [/B][/COLOR][COLOR=#A9B7C6](intval([/COLOR][COLOR=#9876AA]$responseKeys[/COLOR][COLOR=#A9B7C6][[/COLOR][COLOR=#6A8759]"success"[/COLOR][COLOR=#A9B7C6]]) !== [/COLOR][COLOR=#6897BB]1[/COLOR][COLOR=#A9B7C6]) {[/COLOR]
to this:
Code:[COLOR=#CC7832][B]if [/B][/COLOR][COLOR=#A9B7C6](intval([/COLOR][COLOR=#9876AA]$responseKeys[/COLOR][COLOR=#A9B7C6][[/COLOR][COLOR=#6A8759]"success"[/COLOR][COLOR=#A9B7C6]]) !== [/COLOR][COLOR=#6897BB]1 [/COLOR][COLOR=#A9B7C6]&& [/COLOR][COLOR=#6897BB]1[/COLOR][COLOR=#A9B7C6]==[/COLOR][COLOR=#6897BB]2[/COLOR][COLOR=#A9B7C6]) {[/COLOR]
I've also added a major update today, be sure to remove your global definitions file and update the database before opening your website.
Ohhh okay... Updated the files and db.... removed the global definitions file and removed it from index file.
But if I change the lines like you said and I try to register an account he only goes back to the index if you press on "Register".
Yes, it should log you in once you create an account.
Then you might have an error(the one i can think of is mysql mode strict), try dumping the result of the query.No, the username is not even registred after I register one.
Did you restart the server after you enabled short open tags?
Thanks for sharing the files darkshifty, also nice work in supporting the community Mugaru. If I had the time I'd have changed all the functions and such but as I'm sure you're finding, there's a lot to change to PDO .
Thanks for sharing the files darkshifty, also nice work in supporting the community Mugaru. If I had the time I'd have changed all the functions and such but as I'm sure you're finding, there's a lot to change to PDO .