Pages: [1] 2 3 4 5 6 7 8 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 1 post(s) |

MJ Maverick
IronPig Sev3rance
1
|
Posted - 2011.09.09 22:38:00 -
[1] - Quote
Version: 1.5
Intro: So there I was, using a Teamspeak registration system that once worked well but is now outdated and falling to pieces :( (GÖÑ u really Agent Unknown :) ). I saw that people had made their own but wanted outrageous amounts of ISK in order to share it. So, meh. I'll make my own simple, fast, easy to mod and adaptable system. Only one problem, I know jack about PHP. I only knew what little I learnt from building my alliance a nice new website.
So I learnt PHP :) Then built my baby piece by piece. Now you can have it. Call it my little gesture to share a little love in Eve. I plan to add more features such as red alt scanning etc. while keeping it fast in the future along with keeping up to date with the ever changing Teamspeak development. Also as I am/was/ish a sort of PHP noob, you should find my heavily commented code easy to understand.
Preview: Sev3rance Alliance
Requirements: PHP 5.2 or later MySQL 5 or later (untested on earlier versions) Dedicated web host
Features: v1.0 Very fast cron job for quickly scanning if characters registered have left their corp/alliance and removes them. Alliance whitelist. Corporation whitelist. Assign your own boys/girls into a separate group than your blues. Supports character names containing an '. If a blue joins your alliance, it realises and asks them to re-register so they can be moved into the correct group. Error messages will even inform the user of who to contact (presumably, you). Limited API entry form is limited to 64 characters (the length of an API Key) to help prevent pasting a space after the key. Does not require | between tickers (no more horrible phonetic announcements). Shoo's away doorstep salesmen. API interface powered by Pheal. Teamspeak interface powered by TS3 PHP Framework. v1.1 Detects if a spy is using some ones API when they register. If someone has lost their Teamspeak ID it will ask then to make a new API to verify them, then delete their old registrations. Instructions page added for people trying to register on 2 computers. Prevents any duplications on TS and in the database. v1.15 Enhanced script security. v1.17 For this update you will need to overwrite config.php and fill it in again. Sorry, it's for the best. :) cron.php will now know if it's being run via CPanel and format e-mails correctly. Made readme.html into your EVEOTS bible for when I'm not around. v1.2 Security bot now optional to make sure people have the correct name. General code tweaks made. Readme updated. v1.3 General code clean up. Handles even more errors properly. Added staged registration as requested (Yay). Added compatibility for option ticker separators as requested. v1.31 Character names over 30 characters this will no longer cause Teamspeak problems. v1.5 Admin panel, yay :D Big update, see "version history.txt"
Down to business: By downloading you agree to leave the credit at the bottom of the page. Let's play fair, credit where credits due... That is the only condition, so here it is: Download - Sev3rance Alliance (MJ Maverick)
Baring in mind how much ISK people want for a system like this, if you are using it, it would be awesome to let me know and maybe even donate :) (all this work leaves little time for ISKies *sadface*). If you run into any problems then either use this thread or mail me in game and I'll be happy to help.
Any kind donations can be sent to "MJ Maverick".
Special Thanks To: Peter Powers from Pheal Wollari from DOTLAN ScP from Teamspeak The Sev3rance Alliance for being my guinea pigs |

MJ Maverick
IronPig Sev3rance
1
|
Posted - 2011.09.09 22:38:00 -
[2] - Quote
Reserved |

Balani
ELVE Industries Shadow of xXDEATHXx
1
|
Posted - 2011.09.09 23:06:00 -
[3] - Quote
i get some error if I call the bot.php
cron.php works fine
Processing: Balani
Notice: Use of undefined constant client_nickname - assumed 'client_nickname' in /httpdocs/eveots/bot.php on line 50 Processing: Balani
Notice: Use of undefined constant client_nickname - assumed 'client_nickname' in /httpdocs/eveots/bot.php on line 50
Notice: Use of undefined constant client_nickname - assumed 'client_nickname' in /httpdocs/eveots/bot.php on line 53
Notice: Use of undefined constant client_nickname - assumed 'client_nickname' in /httpdocs/eveots/bot.php on line 53 Kicked user Balani, their name was Balani from *.*.46.14:37931
Maverick can you take a look |

MJ Maverick
IronPig Sev3rance
1
|
Posted - 2011.09.09 23:19:00 -
[4] - Quote
Odd, what version of PHP are you running and is it running in strict?
Go to line 50 and try changing $client[client_nickname] from
Quote:$client[client_nickname] to
Quote:"$client[client_nickname]" Failing that try
Quote:$client['client_nickname']
Let me know which one works. It should be the latter. They will still work but if you have PHP running in schizophrenia mode (strict) it will think that they could be constants. I'll change them for the next release as they are just an oversight. |

Balani
ELVE Industries Shadow of xXDEATHXx
1
|
Posted - 2011.09.10 02:31:00 -
[5] - Quote
Ok they runs all without error msg now BUT
TS MSG "Balani from *.*.46.14:57924" hat Sie vom Server gekickt (SecurityBot: Your nickname should be exactly Balani)
debug from script
server is empty NO CONNECTIONS
Processing: Balani Debug: User Balani could not be kicked. Probably wasn't connected in the first place. (Error: invalid client type) 1 users checked, 0 users kicked.
I+ím on Server (MAYBE) SA ^^
Processing: Balani Processing: Balani Kicked user Balani, their name was Balani from *.*.46.14:57974 2 users checked, 1 users kicked.
first user checked double?
|

MJ Maverick
IronPig Sev3rance
1
|
Posted - 2011.09.10 18:54:00 -
[6] - Quote
Balani = You Balani from *.*.*.* = The ServerQuery user that you made, hence your name. The IP is the web servers that is using your ServerQuery login.
Are you registered in the database? The root admin should not be registered. If something went horrifically wrong and all the registrations got removed you will lose admin on your own server if you are registered. This is highly unadvised.
Another reason not to be registered is that depending on how Teamspeak works this, it could count you AND your ServerQuery as you, obviously the ServerQuery will always have the wrong name because of the IP. So will try to kick itself, but it can't because it isn't a connected client, but it may kick you.
I haven't gone into in-depth testing with this as I always advise root admins not to go through the registration system. They can always assign any pretty colours or groups to themselves manually. It's just too risky to register yourself as I said, especially if you are modding my code. One wrong bit of code could result in disaster. |

Balani
ELVE Industries Shadow of xXDEATHXx
1
|
Posted - 2011.09.10 20:43:00 -
[7] - Quote
Ok thx
the problem was that i register myself via the api ^^ removed now and runs fine
the second thing is that i run the ts and eveots on the same server but why it checks my name twice
the serverquerry name is NOT Balani ^^
Skipping user, not registered (Balani) Skipping user, not registered (Balani from *.*.46.14:49415) why it checks my name double? |

MJ Maverick
IronPig Sev3rance
1
|
Posted - 2011.09.11 02:21:00 -
[8] - Quote
Like I said, it doesn't matter what the ServerQuery username is. YOU made it, so it counts as YOU controlling the Teamspeak from a remote IP.
So basically:
Balani's ServerQuery account being used from IP 123.123.123.12 kicks you from the server.
The reason it is seen in bot.php is because the ServerQuery is making a connection and the bot.php checks all client connections, even remote ones. |

Morgenholt Blue
RED.Legion
0
|
Posted - 2011.09.11 16:30:00 -
[9] - Quote
To stop remote ones being checked in bot.php you can make a small addition.
Below: foreach ($clientList as $client) {
Add the following: if($client["client_type"]) continue;
and the script won't check serverquery clients anymore. |

MJ Maverick
IronPig Sev3rance
1
|
Posted - 2011.09.11 18:29:00 -
[10] - Quote
Well spotted. I never picked that up when reading the outputs :) |
|

LoneEcho
Band of Builders Inc. Cascade Associates
0
|
Posted - 2011.09.13 17:55:00 -
[11] - Quote
Okay so I've tried everything I could to get this to work.
I get "An error occured: Connection timed out [F10]" when I click register.
TS3 and my webhost are on different servers. I have my webhost setup with mysql and my TS3 connects to that database just fine. I've added my webhost IP in the whitelist of the serverquery. I've checked the ports on my TS3 server and it's open.
Everything is able to connect but I can't get it to register.
Do any ports on my webhost need to be open other than mysql which already open?
Thanks in advance.
LoneEcho |

MJ Maverick
IronPig Sev3rance
2
|
Posted - 2011.09.13 19:35:00 -
[12] - Quote
There aren't any port requirements on the web server because it's all outgoing.
However this is the most common problem people run into and 9 times out of 10 it's that there is something wrong with your config.php details.
I know you've done some of these but I'm listing all that I can think of off the top of my head for anyone else that get's this very common problem.
There are a few things you can check:
- Make sure your web servers IP is on the TS3's whitelist.txt and reboot the TS3 server.
- Double and treble check that your details are exactly correct with no spaces either side in config.php (always copy/paste).
- If all your details are absolutely certainly correct ask your TS3 provider if they have changed the ServerQuery port from the default.
- Try recreating a new ServerQuery login and make sure the person who makes it has FULL admin in TS.
- Failing that you need to contact your web host as to why you can't make outgoing connections. Some web hosts have been the cause of this because they won't allow outgoing connections. Tell them what you are trying to do and ask them to make sure your server can do it.
|

Duc Lebowski
Outcast Heroes Destructive OuTcaSts
0
|
Posted - 2011.09.14 00:18:00 -
[13] - Quote
from shared web hosts be sure to ensure they open the server query port if your TS is not on the same as the script as i had to unblock this port to get this working then it worked like a charm
Duc |

LoneEcho
Band of Builders Inc. Cascade Associates
0
|
Posted - 2011.09.14 03:07:00 -
[14] - Quote
MJ Maverick wrote:There aren't any port requirements on the web server because it's all outgoing. However this is the most common problem people run into and 9 times out of 10 it's that there is something wrong with your config.php details. I know you've done some of these but I'm listing all that I can think of off the top of my head for anyone else that get's this very common problem.There are a few things you can check:
- Make sure your web servers IP is on the TS3's whitelist.txt and reboot the TS3 server.
- Double and treble check that your details are exactly correct with no spaces either side in config.php (always copy/paste).
- If all your details are absolutely certainly correct ask your TS3 provider if they have changed the ServerQuery port from the default.
- Try recreating a new ServerQuery login and make sure the person who makes it has FULL admin in TS.
- Failing that you need to contact your web host as to why you can't make outgoing connections. Some web hosts have been the cause of this because they won't allow outgoing connections. Tell them what you are trying to do and ask them to make sure your server can do it.
The first two I'm sure are correct. I run the TS3 on my VPS and left the ports as defaults. I also have the full admin query pw from when I first started the TS3 up. I can connect to it using third party apps on my PC and Ipad.
I wrote a message to my shared webhost if they can allow 10011 TCP. Let me see if that helps.
Duc Lebowski wrote:from shared web hosts be sure to ensure they open the server query port if your TS is not on the same as the script as i had to unblock this port to get this working then it worked like a charm
Duc
Thanks for the tip. I just sent them a message. Let's hope for the best! =P
I'm sure it's got to be my webhost as I installed mysql on my linux VPS using commands and it was running and everything was connected but my webhost would still not connect to my TS3. So something is probably blocking it from communicating outside.
But I decided mysql was taking up quite a bit of resource on my VPS so removed it xD. TS3 is now using mysql from my webhost which seems to be fine. |

MJ Maverick
IronPig Sev3rance
3
|
Posted - 2011.09.15 02:05:00 -
[15] - Quote
Remember to "Like" the OP if you are using EVEOTS :) |

Hired Assasin
Black Aces Against ALL Authorities
21
|
Posted - 2011.09.20 08:44:00 -
[16] - Quote
Hey, was just wondering if this has been updated for the new API system.
also i had to modify some code to make it accept more different corps/alliances into extra specific/separate groups
would you be able to add that feature too? im sure others might want or need it. |

Trampis
Orbital Systems Solutions
0
|
Posted - 2011.09.20 17:06:00 -
[17] - Quote
Hired Assasin wrote:Hey, was just wondering if this has been updated for the new API system.
also i had to modify some code to make it accept more different corps/alliances into extra specific/separate groups
would you be able to add that feature too? im sure others might want or need it.
I'll be happy to see the new API implementation as well and I would appreciate this code mod - can you please post the changes you made for me and others to use.
Much obliged
|

MJ Maverick
IronPig Sev3rance
7
|
Posted - 2011.09.21 02:27:00 -
[18] - Quote
Hey Assassin, that's on my to-do list before v2.0 but at the moment I'm still trying to wrap my head round the new API system while still keeping it as secure and stable as possible. But yes, I do intend on changing it over to the new API. :) |

Laxen
Romanian Brother.s ROMANIAN-LEGION
0
|
Posted - 2011.09.29 21:04:00 -
[19] - Quote
Hi !
1. I got the following erroare:
PHP Notice: Undefined index: HTTP_USER_AGENT in ..eveots/functions.php on line 149
What can correct not to defend?
2. How should I set here => public $ spacer = ''; So I can use the nickname in the form [ROMB] Laxen?
Sincerely, |

king curt
The Maverick Navy Against ALL Authorities
0
|
Posted - 2011.09.30 01:04:00 -
[20] - Quote
Hey MJ quick question for you.
I have a member that is trying to register and he has an ' in his name. The program doesn't seem to like it too much and when it tries to register it says:
xxxxxxxxxx\'
Any ideas on this?
Thanks,
curt |
|

MJ Maverick
IronPig Sev3rance
11
|
Posted - 2011.10.01 14:45:00 -
[21] - Quote
@Laxen that isn't natively supported. However, find all instances of
Quote:if ($c->spacer !== "") { $nickname = $corpTicker." ".$c->spacer." ".$character; } else { $nickname = $corpTicker." ".$character; } and add [ and ] around the ticker variables like this:
Quote:if ($c->spacer !== "") { $nickname = "[".$corpTicker."] ".$c->spacer." ".$character; } else { $nickname = "[".$corpTicker."] ".$character; }
@king curt it should take those names fine and does on my TS, did one yesterday. What version are you running, what is his name and what was the exact error? |

king curt
The Maverick Navy Against ALL Authorities
0
|
Posted - 2011.10.02 23:52:00 -
[22] - Quote
Running the current version.
His name is Assassins' Blades. I cannot remember the error specifically other than it would not allow him to use his name and showed as Assassins\' Blades.
I will try to get more info. |

Morgenholt Blue
RED.Legion
1
|
Posted - 2011.10.03 02:22:00 -
[23] - Quote
king curt wrote:Running the current version.
His name is Assassins' Blades. I cannot remember the error specifically other than it would not allow him to use his name and showed as Assassins\' Blades.
I will try to get more info.
I remember having this problem when I started using EVEOTS awhile ago. Looking at the latest version I think the fix would be to change $inputName = trim($_POST["inputName"]); to $inputName = trim(stripslashes($_POST["inputName"]));
But I don't remember exactly so that might of been for something else. |

MJ Maverick
IronPig Sev3rance
11
|
Posted - 2011.10.03 18:55:00 -
[24] - Quote
If you strip slashes the SQL query will break and registration will go FUBAR. If it does work then they won't be in the database and so won't be checked to see if they have left the alliance. Which is bad.
Don't strip slashes. It also opens you up to SQL injections. (hacking)
Also line 118: $inputName = trim($_POST["inputName"]); Hasn't had slashes added anyway. inputName doesn't get slashed, it is only used to get the CharacterID which is used to get the exact (case sensitive) characters name. The exact characters name is what is slashed. |

snipereagle1
Killer Koalas
0
|
Posted - 2011.10.04 03:47:00 -
[25] - Quote
A nice feature to have on the page once people are registered is a link to connect them to TS with the correct login information, that would fill the server info, correct username, etc.
I think this is mostly right, but I get errors when I use this code:
echo "a href='http://www.teamspeak.com/invite/"$c->tshost."/?port="$c->tscport."&addbookmark=NUKKA-V2&nickname=".$nickname."Connect /a"; (I had to take out the < > symbols because the forums won't let you post HTML)
I specifically get:
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in C:\xampp\htdocs\tsreg\index.php on line 256
I'm looking for a link that would look like this:
http://www.teamspeak.com/invite/*SERVERADDRESS*/?port=*SERVERPORT*&addbookmark=NUKKA-V2&nickname=*YOURNICKNAME* |

Jimmy06
Paramount Commerce Masters of Flying Objects
0
|
Posted - 2011.10.04 11:45:00 -
[26] - Quote
hey MJ and thanks for the brilliant script. Are you looknig at updating this to comply with EVE APIv2 ? if so and you want some testers give me a shout. Thanks :) |

Jimmy06
Paramount Commerce Masters of Flying Objects
0
|
Posted - 2011.10.04 12:21:00 -
[27] - Quote
snipereagle1 wrote:A nice feature to have on the page once people are registered is a link to connect them to TS with the correct login information, that would fill the server info, correct username, etc. I think this is mostly right, but I get errors when I use this code: echo "a href='http://www.teamspeak.com/invite/"$c->tshost."/?port="$c->tscport."&addbookmark=NUKKA-V2&nickname=".$nickname."Connect /a"; (I had to take out the < > symbols because the forums won't let you post HTML)I specifically get: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in C:\xampp\htdocs\tsreg\index.php on line 256 I'm looking for a link that would look like this: http://www.teamspeak.com/invite/*SERVERADDRESS*/?port=*SERVERPORT*&addbookmark=NUKKA-V2&nickname=*YOURNICKNAME*
Change line 323 of index.php to http://pastebin.com/i7MNc6sU and Enjoy :) |

snipereagle1
Killer Koalas
0
|
Posted - 2011.10.04 15:32:00 -
[28] - Quote
Jimmy06 wrote:snipereagle1 wrote:A nice feature to have on the page once people are registered is a link to connect them to TS with the correct login information, that would fill the server info, correct username, etc. I think this is mostly right, but I get errors when I use this code: echo "a href='http://www.teamspeak.com/invite/"$c->tshost."/?port="$c->tscport."&addbookmark=NUKKA-V2&nickname=".$nickname."Connect /a"; (I had to take out the < > symbols because the forums won't let you post HTML)I specifically get: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in C:\xampp\htdocs\tsreg\index.php on line 256 I'm looking for a link that would look like this: http://www.teamspeak.com/invite/*SERVERADDRESS*/?port=*SERVERPORT*&addbookmark=NUKKA-V2&nickname=*YOURNICKNAME* Change line 323 of index.php to http://pastebin.com/i7MNc6sU and Enjoy :)
Excellent! Also, I'd be happy to help test a version using the new API system (although I believe the PHEAL library needs to be updated before MJ can implement it, as that does the legwork with regards to the API)
|

MJ Maverick
IronPig Sev3rance
11
|
Posted - 2011.10.04 15:51:00 -
[29] - Quote
That quick connect link is already in the next version :) it's been tested on Sev3rance's and seems to work fine.
I suppose this API is APIv3 :P but yeah I will be reworking it all. I currently have no internet access at home which makes things pretty difficult :/
I'll be back online on the 7th October. |

Fred Eto
The Eloria Corporation
0
|
Posted - 2011.10.04 23:42:00 -
[30] - Quote
I am getting a bug, it is saying that "You are not allowed to register on this server." but I've made sure that the public $ourname = "XXX"; is correct, where XXX is my main's corporation. Am I missing something? Anything else that can be causing this bug?
/Fred |
|
|
|
|
Pages: [1] 2 3 4 5 6 7 8 :: one page |
First page | Previous page | Next page | Last page |