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

Kylynn Hassen
|
Posted - 2010.02.21 22:51:00 -
[31]
When you have a moment, could you throw in a workaround for servers that have have file_get_contents() options disabled.
Error:
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in functions.php on line 113
Warning: file_get_contents(http://api.eve-online.com/eve/CharacterID.xml.aspx?names=left%20out) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in functions.php on line 113
Fatal error: Call to a member function attributes() on a non-object in functions.php on line 114
Would be much appreciated. :)
|

Kylynn Hassen
|
Posted - 2010.02.22 02:30:00 -
[32]
Ok, I coded in a generic workaround using cURL to fetch and write to a local file if the user sets a var in the config. Just if/else logic pretty much.
3 new .xml files are used to store information from charID, corpsheet and charsheet for use in functions.php and verify.php, these however are not wiped empty after use, which has yet to be implemented.
I would like someone to test this solution please, since after I coded it in I found the TS3 PHP framework will not use my version of PHP (which is 5.2 just not 1+).
contact Dal' Hassen in-game if you'd like to see the changes or try them.
|

Agent Unknown
Caldari
|
Posted - 2010.02.22 06:25:00 -
[33]
Edited by: Agent Unknown on 22/02/2010 06:25:21
Originally by: Kylynn Hassen Ok, I coded in a generic workaround using cURL to fetch and write to a local file if the user sets a var in the config. Just if/else logic pretty much.
3 new .xml files are used to store information from charID, corpsheet and charsheet for use in functions.php and verify.php, these however are not wiped empty after use, which has yet to be implemented.
I would like someone to test this solution please, since after I coded it in I found the TS3 PHP framework will not use my version of PHP (which is 5.2 just not 1+).
contact Dal' Hassen in-game if you'd like to see the changes or try them.
I'll shoot you an evemail tomorrow...just logged for the night. Thanks for that contribution by the way; saves me having to fuss with it. 
Edit: You can use unlink() to delete the files after use. Also, I now have one of those annoying sigs.
Originally by: CCP Fallout
And yelling is bad. It makes the baby Jesus cry and when the baby Jesus cries I'm forced to lock threads
|

ShadowandLight
Amarr Hammer Of Light Aegis Militia
|
Posted - 2010.02.23 05:14:00 -
[34]
does the API tell if someone has an alt ( on the same account ) with red standings to the owner's API and if so im assuming it wont let them join?
|

Agent Unknown
Caldari
|
Posted - 2010.02.23 16:28:00 -
[35]
Originally by: ShadowandLight does the API tell if someone has an alt ( on the same account ) with red standings to the owner's API and if so im assuming it wont let them join?
It doesn't check for this...I suppose it should. 
This is actually my first API-driven app, so I experimented quite a bit. This is definitely something that will be added, along with the file_get_contents workaround that someone sent to me yesterday. Also, I now have one of those annoying sigs.
Originally by: CCP Fallout
And yelling is bad. It makes the baby Jesus cry and when the baby Jesus cries I'm forced to lock threads
|

ShadowandLight
Amarr Hammer Of Light Aegis Militia
|
Posted - 2010.02.23 16:38:00 -
[36]
Originally by: Agent Unknown
Originally by: ShadowandLight does the API tell if someone has an alt ( on the same account ) with red standings to the owner's API and if so im assuming it wont let them join?
It doesn't check for this...I suppose it should. 
This is actually my first API-driven app, so I experimented quite a bit. This is definitely something that will be added, along with the file_get_contents workaround that someone sent to me yesterday.
that is a huge feature, if you could add that ( soon ) id throw some isk your way and deff recommend your API prog around eve :)
|

Agent Unknown
Caldari
|
Posted - 2010.02.24 00:55:00 -
[37]
Version 1.3 has been released. Major change is ShadowandLight's suggestion. 
Changelog is below. Link will be updated shortly.
============ VERSION 1.3 - 2/23/2010 ============ * MAJOR: Added "alt checking" to standings verification. The script now checks if any alts on the same account are in a red corp/alliance and denies access if it finds one. * Standings are now cached during the check in the case of multiple characters on the same account. * Removed usage of file_get_contents in favor of SimpleXML's method. * Added cron instructions to readme. * Added a new table column (cid) to install. This fixes a bug with the script if 1.3 was installed without the workaround on the forum thread. * A bit of code cleanup. Also, I now have one of those annoying sigs.
Originally by: CCP Fallout
And yelling is bad. It makes the baby Jesus cry and when the baby Jesus cries I'm forced to lock threads
|

Dal' Hassen
Minmatar MASS
|
Posted - 2010.02.24 01:37:00 -
[38]
Awesome work Agent Unknown o7
|

ShadowandLight
Amarr Hammer Of Light Aegis Militia
|
Posted - 2010.02.24 01:54:00 -
[39]
isk sent :)
also.... could we add a feature to require the TS3 unique ID to this as well?
Paxton Fed has required it on their TS for some time, seems to be a good idea?
|

Agent Unknown
Caldari
|
Posted - 2010.02.24 03:08:00 -
[40]
Edited by: Agent Unknown on 24/02/2010 03:09:58 Edited by: Agent Unknown on 24/02/2010 03:09:29
Originally by: ShadowandLight isk sent :)
also.... could we add a feature to require the TS3 unique ID to this as well?
Paxton Fed has required it on their TS for some time, seems to be a good idea?
Thank you very much for the ISK (to both of you). It'll be put to good use. 
The script uses the Unique ID in order to identify who the people are on the server, and it extracts their ID from their name using the framework. Of course, you could mean that they instead specify their UID instead of having to use a specific name... Also, I now have one of those annoying sigs.
Originally by: CCP Fallout
And yelling is bad. It makes the baby Jesus cry and when the baby Jesus cries I'm forced to lock threads
[url="http://w |
|

Tobias Sjodin
Ore Mongers
|
Posted - 2010.02.24 10:22:00 -
[41]
Is it possible to have it approve both alliances and certain corporations?
eg. if I say "true" to both alliance and corp, will it allow both alliances from the alliance-array as well as the corporations from the corporations array? Or can only one be true?
|

Agent Unknown
Caldari
|
Posted - 2010.02.24 14:06:00 -
[42]
Originally by: Tobias Sjodin Is it possible to have it approve both alliances and certain corporations?
eg. if I say "true" to both alliance and corp, will it allow both alliances from the alliance-array as well as the corporations from the corporations array? Or can only one be true?
If both are set to true, because of the way the program flows it will only check the alliance list. I was actually thinking about modifying it a bit to allow both instead of separate ones... By the way, this is my signature.
TeamSpeak For EVE - API-controlled TeamSpeak 3 Access!
|

ShadowandLight
Amarr Hammer Of Light Aegis Militia
|
Posted - 2010.02.24 16:44:00 -
[43]
DL Link doesnt work atm
|

Shau Chen
|
Posted - 2010.02.24 16:45:00 -
[44]
The URL you specify in the top post is incorrect.
You have:
http://masterxc.net/releases/tse-1.3.zip
However the actual URL appears to be:
http://masterxc.net/release/tse-1.3.zip
|

Shau Chen
|
Posted - 2010.02.24 18:43:00 -
[45]
Fatal error: Cannot redeclare checkstandings() (previously declared in /var/www/site/ts3-auth/functions.php:78) in /var/www/site/ts3-auth/functions.php on line 133
|

Agent Unknown
Caldari
|
Posted - 2010.02.24 21:47:00 -
[46]
Edited by: Agent Unknown on 24/02/2010 21:50:22
Originally by: Shau Chen
Fatal error: Cannot redeclare checkstandings() (previously declared in /var/www/site/ts3-auth/functions.php:78) in /var/www/site/ts3-auth/functions.php on line 133
Now that's a weird error....
Fixed the download link as well. I'll double-check that error, but it shouldn't happen.
Edit: Completely my fault. I forgot to change the name of one of the functions.  By the way, this is my signature.
TeamSpeak For EVE - API-controlled TeamSpeak 3 Access!
|

ShadowandLight
Amarr Hammer Of Light Aegis Militia
|
Posted - 2010.02.25 04:44:00 -
[47]
fixed now? should i dl the new copy?
|

Agent Unknown
Caldari
|
Posted - 2010.02.25 12:51:00 -
[48]
Originally by: ShadowandLight fixed now? should i dl the new copy?
Yeah, it's fixed. By the way, this is my signature.
TeamSpeak For EVE - API-controlled TeamSpeak 3 Access!
|

graves biatch
|
Posted - 2010.02.25 15:57:00 -
[49]
got ts3 installed have it run the mysql you script installed aswell but one minor problem
at first page it will check for the api after that on verify.php it will go blank any ideas?
|

ShadowandLight
Amarr Hammer Of Light Aegis Militia
|
Posted - 2010.02.25 16:08:00 -
[50]
check evemail agent
|
|

Agent Unknown
Caldari
|
Posted - 2010.02.25 17:19:00 -
[51]
Edited by: Agent Unknown on 25/02/2010 17:19:12 Version 1.3.1 has been released. This released fixes my obvious failure to test the script before releasing it; the release beforehand did not work at all. 
============ VERSION 1.3.1 - 2/25/2010 ============ * MAJOR: Fixed bug that prevented script from working at all. Lack of testing is the cause... * Fixed script not assigning two different groups based on standings verification. * Fixed bug that may have prevented standings verification from working. * Added php verbose checking when verbose is set to true.
Originally by: graves biatch got ts3 installed have it run the mysql you script installed aswell but one minor problem
at first page it will check for the api after that on verify.php it will go blank any ideas?
Check out the new one. It was completely my fault. By the way, this is my signature.
TeamSpeak For EVE - API-controlled TeamSpeak 3 Access!
|

ShadowandLight
Amarr Hammer Of Light Aegis Militia
|
Posted - 2010.02.25 20:25:00 -
[52]
just tried 1.3.1
im getting the same blank page from verify.php as before
|

Agent Unknown
Caldari
|
Posted - 2010.02.25 21:38:00 -
[53]
Originally by: ShadowandLight just tried 1.3.1
im getting the same blank page from verify.php as before
Okay. Enable verbose mode and paste the outpost (masking anything that shouldn't be shown). By the way, this is my signature.
TeamSpeak For EVE - API-controlled TeamSpeak 3 Access!
|

ShadowandLight
Amarr Hammer Of Light Aegis Militia
|
Posted - 2010.02.25 22:42:00 -
[54]
//output for debugging if ($c->verbose == true) { echo "<p>Corporation ID: ".$corpid."<br />Corporation Name: ".$corp."<br />Alliance Name: ".$alliance."<br />Ticker: ".$ticker."</p>"; }
already on?
|

Agent Unknown
Caldari
|
Posted - 2010.02.25 23:43:00 -
[55]
Originally by: ShadowandLight //output for debugging if ($c->verbose == true) { echo "<p>Corporation ID: ".$corpid."<br />Corporation Name: ".$corp."<br />Alliance Name: ".$alliance."<br />Ticker: ".$ticker."</p>"; }
already on?
Should be in the config file:
public $verbose = false;
Set it to true. By the way, this is my signature.
TeamSpeak For EVE - API-controlled TeamSpeak 3 Access!
|

ShadowandLight
Amarr Hammer Of Light Aegis Militia
|
Posted - 2010.02.26 01:26:00 -
[56]
ok heres the error
Notice: Trying to get property of non-object in teamspeak/functions.php on line 175
Fatal error: Call to a member function attributes() on a non-object in teamspeak/functions.php on line 175
|

Agent Unknown
Caldari
|
Posted - 2010.02.26 03:21:00 -
[57]
Edited by: Agent Unknown on 26/02/2010 03:21:07
Originally by: ShadowandLight ok heres the error
Notice: Trying to get property of non-object in teamspeak/functions.php on line 175
Fatal error: Call to a member function attributes() on a non-object in teamspeak/functions.php on line 175
Okay, then there's something definitely up with the API...
Try this:
In functions.php FIND:
function getID($u) { $url = "http://api.eve-online.com/eve/CharacterID.xml.aspx?names=" . $u; $url = str_replace(' ','%20',$url); $xml = simplexml_load_file($url); $id = (int) $xml->result->rowset->row[0]->attributes()->characterID; return ($id) ? $id : false; }
REPLACE WITH:
function getID($u) { $url = "http://api.eve-online.com/eve/CharacterID.xml.aspx?names=" . $u; $url = str_replace(' ','%20',$url); $xml = simplexml_load_file($url); if (isset($xml->error)) die("API Error while fetching character ID: ".$xml->error); $id = (int) $xml->result->rowset->row[0]->attributes()->characterID; return ($id) ? $id : false; }
By the way, this is my signature.
TeamSpeak For EVE - API-controlled TeamSpeak 3 Access!
|

ShadowandLight
Amarr Hammer Of Light Aegis Militia
|
Posted - 2010.02.26 04:00:00 -
[58]
ok
now
API Error while fetching character ID: Invalid or missing list of names.
|

Agent Unknown
Caldari
|
Posted - 2010.02.26 14:54:00 -
[59]
Originally by: ShadowandLight ok
now
API Error while fetching character ID: Invalid or missing list of names.
Okay...I'm very confused why it would do that. Make sure that:
1) That $char = 'Your CEO character name'; in the config file 2) When registering with the API, make sure that there's a name in the first box.
These are the only two situations where it uses the character name and needs the ID. I'll be on in the afternoon to troubleshoot personally as well. By the way, this is my signature.
TeamSpeak For EVE - API-controlled TeamSpeak 3 Access!
|

ShadowandLight
Amarr Hammer Of Light Aegis Militia
|
Posted - 2010.02.27 03:29:00 -
[60]
PHP 5.1.6 is what i have installed on this server, is that supported?
|
|
|
|
|
Pages: 1 [2] 3 4 5 6 :: one page |
First page | Previous page | Next page | Last page |