open All Channels
seplocked EVE Technology Lab
blankseplocked TeamSpeak For EVE - API Registration for TS3 - Version 1.3 Released!
 
This thread is older than 90 days and has been locked due to inactivity.


 
Pages: 1 2 3 [4] 5

Author Topic

0rlin
Posted - 2010.03.17 23:36:00 - [91]
 

I am having an issue running the cron, I am getting this error.

TS interface error: invalid serverID

Now everything is working but the cron

Agent Unknown
Caldari
Posted - 2010.03.18 03:57:00 - [92]
 

Originally by: 0rlin
I am having an issue running the cron, I am getting this error.

TS interface error: invalid serverID

Now everything is working but the cron


What is your tscport set to in config.php?

0rlin
Posted - 2010.03.18 13:35:00 - [93]
 

the port is not the default, its changed. Is it hard coded in the cron or is it using the config?

Agent Unknown
Caldari
Posted - 2010.03.18 15:29:00 - [94]
 

Originally by: 0rlin
the port is not the default, its changed. Is it hard coded in the cron or is it using the config?


It uses the config. I'm not 100% sure why it would return an invalid ID. You can try opening the cron script and:

FIND:

$virt = $ts->serverGetByPort($c->tscport);


REPLACE WITH:

$virt = $ts->serverGetByPort(0000);


where 0000 is the port number you use. Don't use quotes.

0rlin
Posted - 2010.03.18 23:24:00 - [95]
 

Edited by: 0rlin on 18/03/2010 23:37:46
Should there be any out put? I entered that edit and it runs. I can see the serveradmin log into TS with 4 logins. It then spins a few minutes and then goes to a blank page.

0rlin
Posted - 2010.03.20 19:35:00 - [96]
 

Well running this is returning to a blank page. Deleting all my registered accounts from the API table and removing them from the server group.

They should not be getting deleted and removed since they are getting setup with the same config.

Agent Unknown
Caldari
Posted - 2010.03.21 02:33:00 - [97]
 

The script doesn't output anything by default because it's designed to be run through a crontab. As for it deleting the users, there's something wrong with its verification. Set verbose to true in the config, which will allow it to give you some output.

As for updates, they may take a bit as school is being rather unforgiving (as are other things), but I hope to push out some shiny stuff next week.

0rlin
Posted - 2010.03.21 15:27:00 - [98]
 

Edited by: 0rlin on 21/03/2010 15:29:27
Debug: UID = KEY WAS HERE

Debug: Information = UserID APIKEY CharacterID were all here.

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 5: parser error : Start tag expected, '<' not found in D:\vhosts\MYDOMAIN\subdomains\tsreg\httpdocs\cron.php on line 33

Warning: simplexml_load_string() [function.simplexml-load-string]: in D:\vhosts\MYDOMAIN\subdomains\tsreg\httpdocs\cron.php on line 33

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in D:\vhosts\MYDOMAIN\subdomains\tsreg\httpdocs\cron.php on line 33

Notice: Trying to get property of non-object in D:\vhosts\MYDOMAIN\subdomains\tsreg\httpdocs\cron.php on line 34

Notice: Trying to get property of non-object in D:\vhosts\MYDOMAIN\subdomains\tsreg\httpdocs\cron.php on line 34

Notice: Trying to get property of non-object in D:\vhosts\MYDOMAIN\subdomains\tsreg\httpdocs\cron.php on line 35

Notice: Trying to get property of non-object in D:\vhosts\MYDOMAIN\subdomains\tsreg\httpdocs\cron.php on line 35

Checking: -

User not in alliance: - Alliance: - Corp: - uid: KEY - cid: 2

User removed from TeamSpeak access. New alliance is now: .

It is doing this for everyone registered. Now the verify worked to register. I also tested to make sure that it was not because tickers were changed once they were registered so thats not the problem.

Agent Unknown
Caldari
Posted - 2010.03.21 15:40:00 - [99]
 

Edited by: Agent Unknown on 21/03/2010 15:40:38
It looks like you're having issues with file_get_contents as well.

To fix this, do this with anything in cron.php:

FIND:


$xml = simplexml_load_string(file_get_contents($url));


REPLACE WITH:


$xml = simplexml_load_file($url);


This is already fixed internally. If you need more help, I can give you this file as well.

Edit: Make sure that you're running 1.3.1 as well.

0rlin
Posted - 2010.03.21 16:12:00 - [100]
 

That code snip is not in my cron and I am running 1.3 I do beleave its the lates but I did just try to download from the link on the first post and it seems to be broken


0rlin
Posted - 2010.03.21 16:19:00 - [101]
 

Edited by: 0rlin on 21/03/2010 16:21:49
I verified its constructing the $url correctly by adding the following
if ($c->verbose == true) echo "<p>Debug: Information = ".$url."</p>";

Here is lines 28 - 35

$xml = simplexml_load_file($url);
if (!empty($xml->error)) {
if ($c->verbose == true) echo '<p>API Error: Cannot obtain information! Assuming user is OK.</p>';
}
else {
$xml = simplexml_load_string($xml);
$corpid = (int) $xml->result->corporationID;
$username = $xml->result->name;

Agent Unknown
Caldari
Posted - 2010.03.21 20:47:00 - [102]
 

There was an issue on my server that prevented the virtual hosts from working...so everything was out of whack. Downloads should work properly now.

Try this: Linkage

Copy the entire contents over the old cron.php file.

0rlin
Posted - 2010.03.21 23:44:00 - [103]
 

Thank you that seems to be working.

How hard would it be to have it look to see if you have Director Roles and add you to another group and then take it away if your no longer a director or you leave corp/alliance

Agent Unknown
Caldari
Posted - 2010.03.22 01:24:00 - [104]
 

Originally by: 0rlin
Thank you that seems to be working.

How hard would it be to have it look to see if you have Director Roles and add you to another group and then take it away if your no longer a director or you leave corp/alliance


That's a whole other ball game there...roles lookups require the full API, which I want to avoid having to use because of the possible security risks.

0rlin
Posted - 2010.03.23 21:47:00 - [105]
 

Need to not allow them to register multi times just because they change ts3 IDs

Perhaps look for the API info and do not continue if its already used.

0rlin
Posted - 2010.03.23 22:03:00 - [106]
 

Edited by: 0rlin on 23/03/2010 23:36:37
Edited by: 0rlin on 23/03/2010 22:28:20
Notice: Trying to get property of non-object in D:\vhosts\mydomain\subdomains\tsreg\httpdocs\functions.php on line 175

Fatal error: Call to a member function attributes() on a non-object in D:\vhosts\mydomain\subdomains\tsreg\httpdocs\functions.php on line 175

The only thing different from him and many others is that he has an ' in his name.
I can see his characterID in the XML if I do.
http://api.eve-online.com/eve/CharacterID.xml.aspx?names=

Your sending it with a \ before the ' and that's buggering up things. I am not a PHP guru so I am not sure what to do to correct it.

0rlin
Posted - 2010.03.24 00:59:00 - [107]
 

I started to debug it and stripslashes but then just turned of magic_quotes on the server. However i guess it would be better if I added it to the code.

Agent Unknown
Caldari
Posted - 2010.03.24 02:59:00 - [108]
 

Edited by: Agent Unknown on 24/03/2010 03:19:47
Originally by: 0rlin
I started to debug it and stripslashes but then just turned of magic_quotes on the server. However i guess it would be better if I added it to the code.


Magic_quotes should not be used anyway. They are a security risk as improper input can cause injections and other bad things to happen.

The reason it requires registration on a new TS3 ID is for security reasons. There's no way to tell if a different ID is in fact the same person but changed their identity. The server will never know this either.

Edit: The \'s were being added by the magic_quotes being on. My script is not designed for this and will not correct it.

0rlin
Posted - 2010.03.24 12:40:00 - [109]
 

All it would need to do is look to see that the userID of the API info is already posted. At that point it could offer them to change there ts3 ID.

I had created a .NET app that controls all logins needed fro forums, ts2, ts3, openfire, mirc and more as needed. It would do all this from one ingame registration using the API info.
The reason I point this out is that my method was different than yours. Where I would verify the API ingame and then create the accounts.

TS3 account was created by having them pasting there uniqueID into a field and submitting it. This allowed me flexibility to watch for people trying to register multiple ts3 uniqueIDs and if they did they would be stopped and prompted them to edit/change the uniqueID. This added security and allowed them to fix there account if they reinstalled without exporting there identity from ts3.

Agent Unknown
Caldari
Posted - 2010.03.25 03:59:00 - [110]
 

Originally by: 0rlin
All it would need to do is look to see that the userID of the API info is already posted. At that point it could offer them to change there ts3 ID.

I had created a .NET app that controls all logins needed fro forums, ts2, ts3, openfire, mirc and more as needed. It would do all this from one ingame registration using the API info.
The reason I point this out is that my method was different than yours. Where I would verify the API ingame and then create the accounts.

TS3 account was created by having them pasting there uniqueID into a field and submitting it. This allowed me flexibility to watch for people trying to register multiple ts3 uniqueIDs and if they did they would be stopped and prompted them to edit/change the uniqueID. This added security and allowed them to fix there account if they reinstalled without exporting there identity from ts3.



To be honest, I don't see the difference. If they have to give the userid and API again in order to register, then it's pointless to change the ID because of the way TS3 works (every ID is a new "user"). If anything, the script should return an error if the API is already being used to prevent abuse of stolen API information. This and a few other things are being worked on for the next version, but school has been murder the past couple weeks.

There's also a method of using the in-game browser to verify, but the fields used can be easily spoofed, so I can't rely on that for security.

0rlin
Posted - 2010.03.25 12:26:00 - [111]
 

Originally by: Agent Unknown

To be honest, I don't see the difference. If they have to give the userid and API again in order to register, then it's pointless to change the ID because of the way TS3 works (every ID is a new "user"). If anything, the script should return an error if the API is already being used to prevent abuse of stolen API information. This and a few other things are being worked on for the next version, but school has been murder the past couple weeks.

There's also a method of using the in-game browser to verify, but the fields used can be easily spoofed, so I can't rely on that for security.


If you just return an error if they are already registered then how do you recover when someone reinstalls there client and gets a new ts3 uniqueID?
It makes no sense to me to allow them multi registered accounts. But at the same time you need to allow for them to recover from there uniqueID change.
Yes you can spoof the url of the in-game browser however it makes no difference from what your doing now. If they have the API of someone and want to use it there is nothing stopping them ATM. However that will change. Because we will soon have a way of sending in-game mails from out of game. So an eve-mail confirmation could be sent or even a hash verifier..

Agent Unknown
Caldari
Posted - 2010.03.25 12:36:00 - [112]
 

Originally by: 0rlin
Originally by: Agent Unknown

To be honest, I don't see the difference. If they have to give the userid and API again in order to register, then it's pointless to change the ID because of the way TS3 works (every ID is a new "user"). If anything, the script should return an error if the API is already being used to prevent abuse of stolen API information. This and a few other things are being worked on for the next version, but school has been murder the past couple weeks.

There's also a method of using the in-game browser to verify, but the fields used can be easily spoofed, so I can't rely on that for security.


If you just return an error if they are already registered then how do you recover when someone reinstalls there client and gets a new ts3 uniqueID?
It makes no sense to me to allow them multi registered accounts. But at the same time you need to allow for them to recover from there uniqueID change.
Yes you can spoof the url of the in-game browser however it makes no difference from what your doing now. If they have the API of someone and want to use it there is nothing stopping them ATM. However that will change. Because we will soon have a way of sending in-game mails from out of game. So an eve-mail confirmation could be sent or even a hash verifier..


Yeah, the security isn't perfect. I eagerly await the new API with EVE Gate...whenever that comes out.

Ferissa Til
Posted - 2010.04.01 18:21:00 - [113]
 

Edited by: Ferissa Til on 02/04/2010 08:31:10
Hay,

im always getting this error:

Error: Cannot assign server group. Be sure that your name on the TeamSpeak server is correct. Your TeamSpeak name should be blablabla for verification. You can change it afterward.
Technical details:
(ID 0) this particular software cannot be used with the installed version of PHP

I've got PHP 5.2 installed, so the error makes no sense ?!

Agent Unknown
Caldari
Posted - 2010.04.02 18:18:00 - [114]
 

Originally by: Ferissa Til
Edited by: Ferissa Til on 02/04/2010 08:31:10
Hay,

im always getting this error:

Error: Cannot assign server group. Be sure that your name on the TeamSpeak server is correct. Your TeamSpeak name should be blablabla for verification. You can change it afterward.
Technical details:
(ID 0) this particular software cannot be used with the installed version of PHP

I've got PHP 5.2 installed, so the error makes no sense ?!


Try updating the version. The latest is 5.2.6, and it works with that.

Agent Unknown
Caldari
Posted - 2010.04.08 20:43:00 - [115]
 

Because of the lack of time I have on this project (school, trying to find a job, etc etc etc), I have stopped all development of it until further notice. I haven't released anything in a while to begin with, but now it's official.

Those that have problems should reply on this thread. I will still be watching it, but not providing any new features/bug fixes. If someone is willing to pick up the project, please let me know. EVE mail for support queries is not advised since I tend to forget (already happened once... Embarassed).

MJ Maverick
IronPig
Sev3rance
Posted - 2010.05.03 00:08:00 - [116]
 

Edited by: MJ Maverick on 03/05/2010 01:35:26

Hey Agent, just to check (there is a reason I ask). If someone in the alliance has 2 alts that are neutral (standing requirement is 10.0) will it deny them?

Their main is in Alliance so should be able to join, but 2 alts are neutral and so below the +10...


Edit: Also when my neutral friend tries to register it allows him, even though the standing requirement is public $stamin = 10.0;.

public $usesta = true; all other modes are false.

Also does it need to be 10.0 or is just 10 ok?


Mad Sc1entist
Posted - 2010.05.03 10:57:00 - [117]
 

Edited by: Mad Sc1entist on 03/05/2010 10:57:35
Originally by: MJ Maverick
Edited by: MJ Maverick on 03/05/2010 01:35:26

Hey Agent, just to check (there is a reason I ask). If someone in the alliance has 2 alts that are neutral (standing requirement is 10.0) will it deny them?

Their main is in Alliance so should be able to join, but 2 alts are neutral and so below the +10...


Edit: Also when my neutral friend tries to register it allows him, even though the standing requirement is public $stamin = 10.0;.

public $usesta = true; all other modes are false.

Also does it need to be 10.0 or is just 10 ok?




The neutral checking was going to be a later feature, but I became overloaded with schoolwork before I could finish it. I've been slowly working on a totally new TSE that will be 100x better (and not as awful code-wise), but no promises when it will be released.

Edit: Stupid default character selection. Embarassed

MJ Maverick
IronPig
Sev3rance
Posted - 2010.05.03 14:50:00 - [118]
 

Thanks for the heads up, sounds good :)


So no idea why the standing function doesn't work?

NurseBob
Gallente
Toxic State
Posted - 2010.05.04 01:32:00 - [119]
 

would it be possible to add a dash like this "U2NG - NurseBob" ?
i spent some time going through the code to find where you check the corpticker+username against the ts3 nickname but could not find it :)

Sage Eveo
Trojan Trolls
Controlled Chaos
Posted - 2010.05.10 09:41:00 - [120]
 

Edited by: Sage Eveo on 10/05/2010 09:42:57

Hi Guys,

Any pilot with an apostrophe in their name (for example: D'Ragin) seem to crash this script... has anyone come up with a fix for this?

Quote:
Fatal error: Call to a member function attributes() on a non-object in /home/XXXXXX/public_html/ts/functions.php on line 175


Pages: 1 2 3 [4] 5

This thread is older than 90 days and has been locked due to inactivity.


 


The new forums are live

Please adjust your bookmarks to https://forums.eveonline.com

These forums are archived and read-only