Pages: 1 2 3 4 [5] 6 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.10 21:40:00 -
[121] - Quote
Rache: I'll try to help you with that tonight (in a few hours, after work).
You might check your Teamspeak logs though, to verify that it indeed has never connected to the server. |
Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.10 21:45:00 -
[122] - Quote
Found my problem! others may want to take not if it hasn't been said before. In the config
$config['TS Server']['Script Nickname'] = 'EVE Registration bot';
I had
$config['TS Server']['Script Nickname'] = 'EVE Registration Assistant';
I guess there is a limit on the length of the script nickname that can be used. Assistant will not work and give an error as if it cannot connect each time. But bot works just perfectly!
Just an FYI for anyone in the future to take note of! |
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.10 21:47:00 -
[123] - Quote
Cool, Rache. I'll have to look into that limit and put it in the config. documentation. |
Drake Draconis
Shadow Cadre Shadow Confederation
16
|
Posted - 2011.10.10 22:25:00 -
[124] - Quote
MisterMagotchi wrote: Drake: Either you haven't had anybody lose their registration and haven't otherwise had errors, or there's a problem. Try editing your entry directly in the EVE Registration table in the database so that your Verification Code is invalid, and set your Cached Until timestamp to something way in the past, and see if it then revokes your privileges and puts an error in the log.
The day the API server took a nose dive prior to your patching it revoked the rights of every member on the list...but only reported my name as such in the error log. |
Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.10 23:06:00 -
[125] - Quote
Here is another issue I found and have corrected. I have only found this issue to cause any problems but you may want to update the script.
in index.php Line 209
$corp = get_eve_corp ($_POST['Key_ID'], $_POST['Key_Ver_Code'], $_POST['Character_Name']) or die('Error getting corporation information with submitted API information.'); if ($corp == -1) { //connection error die('Error connecting to EVE API server to verify corporation membership. Please try again later.'); }
Should be
$corp = get_eve_corp ($_POST['Key_ID'], $_POST['Key_Ver_Code'], stripslashes($_POST['Character_Name'])) or die('Error getting corporation information with submitted API information.'); if ($corp == -1) { //connection error die('Error connecting to EVE API server to verify corporation membership. Please try again later.'); }
The reason for this change is for people that have names like mine with a ' in the name. This caused problems and could not verify the corp with the character because it had a slash in it. IE Rache Le\'Bonbon. The fix will remove the slash and allow the script to run properly.
I have not found any other places in the script where this may exist. I will keep my eye out. |
TA5E
Nagrom Security Syndicate Flatline.
0
|
Posted - 2011.10.10 23:52:00 -
[126] - Quote
Replacing in the exec the command from php to /usr/bin/php5 doesn't affect the result here on 1and1
Still warns about => exec() [function.exec]: Unable to fork [/usr/bin/php5 -v] |
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.11 00:26:00 -
[127] - Quote
TA5E: I don't know. It works for Drake, and he's on 1&1.
Rache: Although from looking it, you should be right, I do have a character in my corp. with a single-quote in his name, and he registered just fine after my 1.55 update. I'll probably correct that anyway, though, after doing some testing to see why it worked for me in the first place. It might be that you have Magic Quotes on in PHP, which would then be double-escaping things unnecessarily.
EDIT: I also verified that it didn't put a backslash on his name in the database.
Drake: I don't know why. Mine was filled with log lines of people being deleted, but I didn't lose everybody (since I caught it in time). The moral of the story is that backups are key, always. Sorry for the loss, though. |
Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.11 02:06:00 -
[128] - Quote
Thanks, Yea I will have to modify the script to turn off magic quotes for this site. Would be easier than updating the whole thing, but it would be a good thing to note in doc's. BTW thank you for taking an active roll in your script, so many make it and you never hear from them again!
This added to the top of index.php took care of all slashes if you magic quotes are turned on. May be a good thing to add just so its a non issue.
if (get_magic_quotes_gpc()) { $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST); while (list($key, $val) = each($process)) { foreach ($val as $k => $v) { unset($process[$key][$k]); if (is_array($v)) { $process[$key][stripslashes($k)] = $v; $process[] = &$process[$key][stripslashes($k)]; } else { $process[$key][stripslashes($k)] = stripslashes($v); } } } unset($process); } |
Curson
The Technomages Crimson Alliance
0
|
Posted - 2011.10.11 04:29:00 -
[129] - Quote
Ok first off, excellent work being the first to actually attempt this with the new keys. From the posts here seems fairly solid.
However in my case we are hitting a wall with no real explanation. After Key entry when the user goes to click the character selection drop down the setup holds for second (It doesn't lock up) It seems to be attempting to contact the API server then returns with a message...
"Error Contacting API server"
Now I'm pretty sure of the culprit but before I proceed, is this the error that was displayed due to the 'EOL' vs. EOL and SQL version that was listed earlier in this thread? No real description of the that error was ever given only that the mod "Didn't work".
We aren't running 5.3 and I'm sure we need to upgrade, but before I go chasing that I wanted a little feedback here.
Thanks for the hard work BTW. |
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.11 04:51:00 -
[130] - Quote
Rache:
That edit you made, while it may work, isn't the best workaround in my opinion.
In many configurations, PHP settings can be changed in a local php.ini file.
In that case, you could put a file called php.ini in the directory with the scripts and put the following in it:
Quote:magic_quotes_gpc = Off For those that need to enable allow_url_fopen, they can also usually add the following line and have it work:
Quote:allow_url_fopen = On As Magic Quotes is already deprecated, I'm not going to sully my code with stuff to work around its presence. It's long been a hated setting by developers, and in the past, many big projects have made attempts to work with it, on or off, but these days I believe it's a minority of hosts that have it on by default, any good host should have it off, and it's not hard to fix your environment, either via the php.ini method or the .htaccess methods (when not using a suPHP environment) to change PHP settings.
Regarding allow_url_fopen, I plan to make the code check for the presence of CURL and use it if it's available, as it works a little faster than the default URL wrapper (url_fopen), and if it's not available, I'll have it use the default URL wrapper. This should be in my next release, which I'm working on now.
Also, a much easier way to undo the effects of magic_quotes_gpc in code (if you must do it in code):
Quote:if (get_magic_quotes_gpc()) { $_POST = array_map('stripslashes', $_POST); $_GET = array_map('stripslashes', $_GET); $_COOKIE = array_map('stripslashes', $_COOKIE); } It could be simplified even further, but it would be harder to explain.
Curson:
Thanks for the compliments.
The EOL thing is no longer an issue, because as of 1.54, I made everything use heredoc syntax (EOL) instead of nowdoc syntax ('EOL').
Verify that allow_url_cexec is on and verify that there isn't a firewall issue somehow.
If you still can't get it to connect, if you want to message me, we can probably work through whatever the problem is. |
|
Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.11 05:05:00 -
[131] - Quote
Yea, php.ini is the best way, but its not always a perfect world. I guess when I make scripts I try to think of it this way. Most people are dumb, and probably don't know how to modify there php.ini! Or their hosting service wont let them, or even they do use it for other scripts thus can not turn it off.
So as making a script I always put stuff in to take care of any problems that might rise to any situation, so I don't have to worry about it later. Making assumptions that people are smart will always get ya into trouble. LOL no matter what its about Life, scripts, Eve lol
I do understand from your prospective that Magic Quotes is deprecated and I believe in 6.0 is gone all together if I remember reading. So really no big deal! I guess I am the only one that ran into it seems anyhow. LoL. At minimum its in these forums, for anyone that might run into it, they can then search and find answers!
I am a novice to advanced in what I know about PHP, basically know enough to get into trouble lol.
However I did run into one more problem! I can not get it to interface with TS3.. It says everything is ok, but it is not adjusting groups like it should! Haven't started to dig yet into it. you have my TS info jump on if ya like, or just write back.
Also I would like to get your opinion on why I can not use the HTTPS as it tells me that the cert is bad. |
Drake Draconis
Shadow Cadre Shadow Confederation
16
|
Posted - 2011.10.11 05:35:00 -
[132] - Quote
MisterMagotchi wrote:
Drake: I don't know why. Mine was filled with log lines of people being deleted, but I didn't lose everybody (since I caught it in time). The moral of the story is that backups are key, always. Sorry for the loss, though. Is it logging other things correctly?
didn't lose anything...
It just didn't report everyone getting removed even though it did as expected.
I'm only griping about the lack of logging...not so much function.
Which does so quite beautifully mind you.
PS: I won't be able to get around to the 1and1 fixes due to real life but I'll try my best to look you up TA5E if you need help... but it may be the weekend.
|
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.11 05:48:00 -
[133] - Quote
Also, guys, although I mentioned some fixes in index.php, I apparently forgot to include the updated index.php in my most recent release, so they actually weren't added, and I'll instead stick it in my next release.
Sorry about that. |
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.11 08:49:00 -
[134] - Quote
New version released.
From my changelog:
Quote:2011-10-11 - 1.57 - Now uses cURL if available or url_fopen wrapper if not. PHP command (path to PHP binary), as used in registration script, is now configurable. Fixed users with single-quotes in names not being able to log in to forums after doing API registration. Fixed name of last poster in a forum not updating when a username is changed due to API registration. In the previous release, the updated index.php (registration script) was accidentally omitted, so the changes mentioned for 1.56 involving it are now in effect. Minor documentation changes. Changed files (replace): check-users.php, eve-api-get-names.json.php, index.php, setup.inc.php, readme.html
Changed files (hand edit): config.inc.php (added 'PHP Command' option and documentation at bottom) |
Quantum Doom
POWER of EQUALITY Monolith Alliance
17
|
Posted - 2011.10.11 12:49:00 -
[135] - Quote
Hello, i have a problem in TS3, im install you script, user EVE Registration Bot found in Admin server query group, but no one new user not enter any group. Forum registration work fine and no errors in txt file. Help me pls. |
Drake Draconis
Shadow Cadre Shadow Confederation
16
|
Posted - 2011.10.11 18:40:00 -
[136] - Quote
MisterMagotchi wrote:Although I mentioned some fixes in index.php, I apparently forgot to include the updated index.php in my most recent release, so they actually weren't added, and I'll instead stick it in my next release. The good news is that they weren't critical changes.
Sorry about that.
Drake: It should have logged, and it logged it all for me. That's what I'm trying to troubleshoot. Does it log errors normally otherwise?
Yes its logging....if you want to call it that...just only my account shows up when something happens.
All other accounts aren't being logged but its obviously doing something in the background. |
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.11 19:03:00 -
[137] - Quote
Quantum: It could be a lot of things. Verify your group configuration and TS ignore list are set up correctly. Beyond that, it's hard to give you specific information when I have limited information. If Teamspeak is connecting at some point (probably when the registration form is submitted, but possibly not when check-users.php runs, that rules out a lot of things. If you need help, mail or email me with your comms. information, and I may be able to help figure out why it isn't connecting.
Drake: I have no idea why it would log problems with only one user, it doesn't make sense that that one user would just be you (instead of some other random person), it's not happening for me, and I haven't seen it happen with anyone else.
Something you might try to test: On line 3 of check-users.php, paste the following:
Quote:log_message('Check script ran.', FALSE); With that, you should get an entry in errors.txt every time check-users.php runs via the cron job or via the registration form. My only guess I can think of is that it might be only logging when it runs via the registration form and not via the cron, but if you said it did show that your registration got deleted during the EVE API downtime, then that may not be it. Either way, that's a good troubleshooting step to make sure it at least can log at the appropriate times. |
Drake Draconis
Shadow Cadre Shadow Confederation
16
|
Posted - 2011.10.11 23:08:00 -
[138] - Quote
MisterMagotchi wrote:Drake: I have no idea why it would log problems with only one user, it doesn't make sense that that one user would just be you (instead of some other random person), it's not happening for me, and I haven't seen it happen with anyone else. Something you might try to test: On line 3 of check-users.php, paste the following: Quote:log_message('Check script ran.', FALSE); With that, you should get an entry in errors.txt every time check-users.php runs via the cron job or via the registration form. My only guess I can think of is that it might be only logging when it runs via the registration form and not via the cron, but if you said it did show that your registration got deleted during the EVE API downtime, then that may not be it. Either way, that's a good troubleshooting step to make sure it at least can log at the appropriate times.
Very nice...I'll insert that when i get access to the server tonight. |
Drake Draconis
Shadow Cadre Shadow Confederation
17
|
Posted - 2011.10.12 20:53:00 -
[139] - Quote
Running into RL stuff...gonna be a bit delayed on feedback results for the test. |
Rache Le'Bonbon
Dissension X Inc.
1
|
Posted - 2011.10.13 22:59:00 -
[140] - Quote
Just to let ya know MisterMagotchi I am still having the problem with I register with the ' in my name. It register's fine but when I got to log in I can't, Log in with admin account remove ' and add ' and it works just fine after that. All I can think is that it has something to do with the database not wanting to see the ' as a '. Just letting ya know, not a big problem due to not many have ' in names.
Also I am working on a mod for this script. I will post what I have in here or to you, however ya like. |
|
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.14 02:58:00 -
[141] - Quote
Are you using the current version of the script (1.57)?
I made a character with a single-quote in the name, tested it as you said, it didn't work as you said, and I fixed it and did testing on it. It should be working with 1.57. It wasn't working because phpBB3's clean function converts single-quotes into "modifier letter prime" characters (a character that must be encoded in UTF-8 as 2 bytes). |
TA5E
Nagrom Security Syndicate Flatline.
0
|
Posted - 2011.10.14 17:58:00 -
[142] - Quote
Hey Magotchi, I've noticed that after my users become part of the API group, they dont get assigned that group as a default group. |
Rache Le'Bonbon
Dissension X Inc.
1
|
Posted - 2011.10.14 18:22:00 -
[143] - Quote
yea I noticed you did an update, so I updated and tested. let me do some more testing, however I did notice this time it made my clean name as! rache le+č-¦bonbon not rache le'bonbon somehow it got the +č in it! lol |
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.14 21:23:00 -
[144] - Quote
TA5E: I don't know what's happening for you, but all of my members have their default group (in phpBB) set as the group it assigned them to. As has been said before, default group colors are currently not working with this, so don't base it on that.
Rache: The way that shows up for you is actually sort of correct, in that that's how the symbol shows up when you aren't viewing it as Unicode, but since you said it looked like a single-quote last time we talked, it seems that on your host, it must be that it's inserting the symbol wrong, not that you're viewing it wrong. I may have to look into inserting the name value as hexadecimal instead of as a string to ensure it gets properly inserted on all platforms. It's supposed to show as a modifier letter prime symbol. |
Rache Le'Bonbon
Dissension X Inc.
1
|
Posted - 2011.10.15 03:51:00 -
[145] - Quote
Here is a mod I have made for this script by MisterMagotchi. This will allow you to set the EVE Avatar as you forum characters Avatar.
I recommend you make any backups before continuing, i am not responsible for you messing your scripts up.
Instructions on how to setup avatar in script.
MisterMagotchi may or may not include this in his script as a release. He is welcome to include it if he see's fit, as he is the author of the main script . I am just trying to add some more function to it that others may enjoy. |
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.15 20:42:00 -
[146] - Quote
It looks like a good idea, and your code seems fine. I'll see what I can do in the next release or so. |
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.21 01:12:00 -
[147] - Quote
New version released.
From my changelog:
Quote:2011-10-20 - 1.58 - Removed dependency on PHP mbstring module inadvertently caused by last update's single-quote fix. Made registration script force usage of UTF-8 character set when updating a user's username_clean (related to single-quote issue). Added ability to set EVE character avatars as forums avatars (code idea by Rache Le'Bonbon). Minor documentation changes.
Changed files (replace): check-users.php, index.php, setup.inc.php, readme.html
Changed files (hand-edit): config.inc.php (added EVE Avatars section toward the bottom, other very minor formatting and textual changes) |
Ulthary Chinmay
Imperial Academy Amarr Empire
0
|
Posted - 2011.10.21 18:19:00 -
[148] - Quote
Could it be requested that the scritp checks for director role and if the person got it then its add's them into an "director" group also |
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.22 03:05:00 -
[149] - Quote
I've looked into it, and I don't plan to add that feature, Uithary.
Some possible ways I've thought of as reasonable for doing it:
- Every X hours, grab corp/MemberTracking.xml.aspx for each corp., and cache a list of the character IDs of the all the directors (based on the "roles" bitmask) and what corp. ID they're in (either in a file or in the database). Use this data to determine if a user is a director of their corp. as they are checked. This is bad simply because I find it needlessly complex for a limited benefit.
- Allow Corporation keys, which are equivalent to Character keys (as opposed to Account/all-character keys), marking anyone as a director of their corp. if their provided key is a Corporation key. This is bad because directors would then not be required to give an Account key (with info. about all characters in their account), as is the default setting, and as I presume a lot of admins. would want.
Additionally, the config. would of course require a couple more settings (2 phpBB groups and 2 TS3 groups per corp. instead of 1 for each), with a mechanism for disabling the feature per-corp. (probably just using FALSE or 0 for the 2nd group).
There's a basic program plan, and I may soften on the idea eventually, but I don't feel like implementing the feature, given the things I said above and that I don't like the added complexity. |
MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.22 05:30:00 -
[150] - Quote
I accidentally used nowdoc syntax again on line 221 of index.php ('EOL') instead of heredoc syntax (EOL), so those using PHP less than 5.3 would have had issues with yesterday's release.
I've updated the package, but I didn't change the version number or date. |
|
|
|
|
Pages: 1 2 3 4 [5] 6 :: one page |
First page | Previous page | Next page | Last page |