open All Channels
seplocked EVE Technology Lab
blankseplocked Out of Eve 1.6-AP - Character and Corporation info web app
 
This thread is older than 90 days and has been locked due to inactivity.


 
Pages: 1 [2] 3 4 5 6 7 8 9

Author Topic

Walkin' Dude
Rionnag Alba
Against ALL Authorities
Posted - 2008.12.05 10:24:00 - [31]
 

PHP Notice: Undefined property: Site::$character in xx/outofeve/plugins/character/plugin.php on line 12, referer xxx
PHP Notice: Undefined index: mode in xx/outofeve/plugins/users/plugin.php on line 125, referer xxx.

I get these in apache log when I click "Log in". I have checked the database, and it add the user on registration, but when I click Log In, nothing happens. Seems like user/password doesn't get passed to the script correctly. I got this error after I moved to 64bit version of linux, it worked on my 32bit install (doubt this has anything to do with it).

Any ideas ?

Kappas.
Galaxy Punks
Posted - 2008.12.05 12:37:00 - [32]
 

Edited by: Kappas. on 05/12/2008 17:29:08
Having a problem creating users, I've followed your install guide but when I go to create an account it appears to be successful, logging in takes me back to the home page though, tried a few things but none of them have worked.

Edit: It's definitely written to the database, I've dumped it and can see the account there

Also is there any way to replace the RSS feeds on the home page with like a welcome message or something?

MyDow
Gallente
Haluter-Gilde
Posted - 2008.12.09 16:14:00 - [33]
 

Edited by: MyDow on 10/12/2008 13:51:14
hi, great Tool you`ve created.

i've installed at a webspaceprovider (PHP Version 5.2.6,Suhosin Patch 0.9.6.2,libcurl/7.15.3 OpenSSL/0.9.8a zlib/1.2.3 libidn/0.6.0 ) and test it, i've followed your install guide but when i got to preferences i see in top of the sites this message:
Warning: curl_setopt() function.curl-setopt: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /www/htdocs/***edit***/outofeve/includes/libs/curl.class.php on line 361

phpinfo() tells me curl is enabled and openbasedir is set.

can you help here please?

Ben Thomas
Caldari
Legion of Ascension
SCORN.
Posted - 2008.12.10 23:13:00 - [34]
 

Edited by: Ben Thomas on 10/12/2008 23:13:32
Originally by: MyDow
Warning: curl_setopt() function.curl-setopt: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /www/htdocs/***edit***/outofeve/includes/libs/curl.class.php on line 361

phpinfo() tells me curl is enabled and openbasedir is set.

can you help here please?


I'm guessing PHP safe_mode is probably on. You'll need it off to fix this - and will likely have to ask your webhost to do this for you.

Pronas
Scoopex
Majesta Empire
Posted - 2008.12.11 05:43:00 - [35]
 

same as some preview post.
Registration work (user in db) but can't login, just display index page without warning or invalid login
any idea ?

Tinka Blackmore
Posted - 2008.12.11 10:00:00 - [36]
 

I has the same problem.

FIX: change function QueryA in includes/database.php

function QueryA($sql)
{
$rs = $this->Query($sql);
if ($rs)
{
//if ($rs->rowCount() > 0)
return $this->rsToArray($rs);
//else
//return false;
}
else
print_r(array('errorInfo' => $this->conn->errorInfo(), 'sql' => $sql));
}

Than you can login...

MyDow
Gallente
Haluter-Gilde
Posted - 2008.12.12 13:52:00 - [37]
 

Originally by: Ben Thomas
Edited by: Ben Thomas on 10/12/2008 23:13:32
Originally by: MyDow
Warning: curl_setopt() function.curl-setopt: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /www/htdocs/***edit***/outofeve/includes/libs/curl.class.php on line 361

phpinfo() tells me curl is enabled and openbasedir is set.

can you help here please?


I'm guessing PHP safe_mode is probably on. You'll need it off to fix this - and will likely have to ask your webhost to do this for you.


sql.safe_mode Off
safe_mode Off
safe_mode_gid On

open_basedir /www/htdocs/(edited***)/:/tmp:/usr/bin:/www/htdocs/(edited):/bin:/usr/local/bin:/usr/share/php

seems to be the open_basedir, can it be?
isnt realizable to change the need of an free open_basedir?
some other lovely tools like Postrackercan do at the same webspace Neutral


Azazel Mordred
Minmatar
Cloak of Shadows
Posted - 2008.12.12 16:37:00 - [38]
 

Regarding the inability to log in, I wonder if I could ask a favour.

If possible, could you please try installing the "Web developer toolbar" addon for Firefox, then attempt to log in on your OOE website. Then, from the web dev toolbar, choose the Cookies -> View Cookie Information option, and ensure the user[password] and user[username] cookies both exist.

If you could also let me know what web server software and version you're using, that may help also.


Regarding the CURLOPT_FOLLOWLOCATION/open_basedir error above, you might try editing the "/outofeve/includes/libs/curl.class.php" file, line 196 - change the option value from a 1 (one) to 0 (zero). Should be fine, as I don't believe the API actually does any redirection anyway.

Walkin' Dude
Rionnag Alba
Against ALL Authorities
Posted - 2008.12.12 18:26:00 - [39]
 

Originally by: Azazel Mordred
Regarding the inability to log in, I wonder if I could ask a favour.

...
If you could also let me know what web server software and version you're using, that may help also.



I was using php 5.1.6 first, couldn't log in. When I followed Tinka's instruction, I got another error about TimeDate stuff, which I found out only existed in php 5.2+, so I upgraded to php 5.2.6, and now everything is working without any modifications.

So it needs 5.2+ ?

regards

S'if
Minmatar
Clan Destyne
Posted - 2008.12.13 22:26:00 - [40]
 

just installed this locally on my PC and I'm getting the following error message repeating multiple times:


Warning: Division by zero in C:\xampp\htdocs\outofeve\includes\functions.php on line 141

Any ideas?

Azazel Mordred
Minmatar
Cloak of Shadows
Posted - 2008.12.14 09:01:00 - [41]
 

Originally by: S'if
just installed this locally on my PC and I'm getting the following error message repeating multiple times:


Warning: Division by zero in C:\xampp\htdocs\outofeve\includes\functions.php on line 141

Any ideas?


Looks like your "keypass" file is either empty or doesn't exist. You'll need to create a new file with a single "secret" word in it, and check that config.php's option "$config['site']['keypass']" points to it.

Rilwar
BlackStar Industrial
Posted - 2008.12.14 09:03:00 - [42]
 

Edited by: Rilwar on 14/12/2008 09:04:01
Finnally.... an app with working industry output for my needs!

Have my babies.


On a sidenote; using Apache 2.2.9 and PHP 5.2.6 allowed for a perfect unrar/edit config/everything works scenario under Win32



Also, a suggestion if I may. Make a dropdown for any of the plugins that have a corp and char output, I.E. the Industry pages. Simply editing char to corp in the plugin gave me a perfect result, so I'm thinking it would be simple.

S'if
Minmatar
Clan Destyne
Posted - 2008.12.14 11:09:00 - [43]
 

Originally by: Azazel Mordred
Originally by: S'if
just installed this locally on my PC and I'm getting the following error message repeating multiple times:


Warning: Division by zero in C:\xampp\htdocs\outofeve\includes\functions.php on line 141

Any ideas?


Looks like your "keypass" file is either empty or doesn't exist. You'll need to create a new file with a single "secret" word in it, and check that config.php's option "$config['site']['keypass']" points to it.



Does that file need to have a specific name or can I crete any randomnly named txt file? My path is currently set as '/outofeve/ooekeypath' - and I created a folder in the install directory called ooekeypath and put the txt file called ooekeypass.txt in there - is that right?

Ben Thomas
Caldari
Legion of Ascension
SCORN.
Posted - 2008.12.14 13:12:00 - [44]
 

Originally by: S'if
Does that file need to have a specific name or can I crete any randomnly named txt file? My path is currently set as '/outofeve/ooekeypath' - and I created a folder in the install directory called ooekeypath and put the txt file called ooekeypass.txt in there - is that right?


No. In that case the path should be (assuming ooekeypath is inside your outofeve directory)

$config['site']['keypass'] = 'C:\xampp\htdocs\outofeve\ooekeypath\ooekeypass.txt';

What was originally referred to in the config file was a Linux file path. As you are using Windows, you need to use the exact path to the file, as I have provided above for you.

Hope this helps!

S'if
Minmatar
Clan Destyne
Posted - 2008.12.14 13:35:00 - [45]
 

Originally by: Ben Thomas
Originally by: S'if
Does that file need to have a specific name or can I crete any randomnly named txt file? My path is currently set as '/outofeve/ooekeypath' - and I created a folder in the install directory called ooekeypath and put the txt file called ooekeypass.txt in there - is that right?


No. In that case the path should be (assuming ooekeypath is inside your outofeve directory)

$config['site']['keypass'] = 'C:\xampp\htdocs\outofeve\ooekeypath\ooekeypass.txt';

What was originally referred to in the config file was a Linux file path. As you are using Windows, you need to use the exact path to the file, as I have provided above for you.

Hope this helps!


Yep - I thought I'd tried using an exact path but I just tried again and its all working now :) Must have mistyped something first time round. Thanks!

Azazel Mordred
Minmatar
Cloak of Shadows
Posted - 2008.12.15 05:29:00 - [46]
 

Originally by: Rilwar
Also, a suggestion if I may. Make a dropdown for any of the plugins that have a corp and char output, I.E. the Industry pages. Simply editing char to corp in the plugin gave me a perfect result, so I'm thinking it would be simple.


Hah, it hadn't occurred to me that it might be as easy as pointing (some of) the same scripts to the corp data rather than character stuff.

It should be relatively easy then for me to add a section to the menu for corporation stuff which works.

Thanks for the inspiration Very Happy

M4g3ll4n
Sacred Templars
RED.OverLord
Posted - 2008.12.15 11:35:00 - [47]
 

Awesome job, Azazel Mordred!

Just downloaded the tool and played a little with the source. Works pretty well. I implemented some corporation tools (starbase manager, corp ranking system, tax income overview, corp blueprint management etc) for my corp website based on kw4h's PHP Api classes and xajax. Now with your tool you provide a perfect framework them and I have to make plugins for OOE out of that, which means a lot of reimplementation. Thanks for the ideas and the work you created (ironie). I hope to have some first results soon.

Have you ever considered using ajax in your project? As I am no PHP professional I had several difficulties to make a plugin that uses xajax, without changing your base code.

Do you know someone else who is implementing corp plugins atm? Just would like to know whatkind of tools I can expect and for what plugins community has a need for.

Regards Mag

Solo Drakban
GoonWaffe
Goonswarm Federation
Posted - 2008.12.15 16:59:00 - [48]
 

This looks like an excellent application, good work! I am currently looking at adapting the authentication system to be compatible with the SSO system used by GoonSwarm so look forward to having a few thousand users suddenly submitting feature requests and bug reports. ;)

A few suggestions from the overly paranoid:

  • Your are only doing a single MD5 hash of the password variable when setting the cookie. You might want to consider adding a random salt value to this md5 sum either on a per-user basis (stored in the DB in the user table) or globally (defined value in the config.php). Rainbow tables make unsalted MD5 hashes trivia to reverse. While this won't prevent access to OOE if somebody manages to get the cookie values it will protect the users from themselves if they've used their OOE password someplace else (like their EVE login) something that happens all to often unfortunately.

  • You might want to consider using a database abstraction layer like ADODB or MDB2 or moving to the MySQLi PHP interface and run all of your DB queries through a prepare/bind/execute cycle to further protect against SQL injections. I notice that you are escaping user input which is good but this would just add an extra layer of protection.



As I said, comments from the overly paranoid but I've had to become so running things for GoonFleet. Feel free to ignore me.. ;)

Keep up the excellent work!

Azazel Mordred
Minmatar
Cloak of Shadows
Posted - 2008.12.17 06:46:00 - [49]
 

Quote:
Have you ever considered using ajax in your project? As I am no PHP professional I had several difficulties to make a plugin that uses xajax, without changing your base code.


I originally considered some AJAX stuff, however I feel AJAX is grossly overrated in general, often being used where it's not required or of very little benefit. For the "base" OOE implementation, I don't believe there's much benefit to be had.

Although since you (and perhaps others?) may be interested in adding plugins with AJAX support, it's pretty trivial to add some built-in AJAX support, which other developers can make use of.

Quote:
Do you know someone else who is implementing corp plugins atm? Just would like to know whatkind of tools I can expect and for what plugins community has a need for.


Right now, I'm building in Corporation support - corp sheet and member listing/activity, transactions, journal, market orders, assets, kills, POSs etc. Should all be in action before Christmas Smile.


Quote:
You might want to consider using a database abstraction layer like ADODB or MDB2 or moving to the MySQLi PHP interface and run all of your DB queries through a prepare/bind/execute cycle to further protect against SQL injections. I notice that you are escaping user input which is good but this would just add an extra layer of protection.


A very reasonable suggestion. Since I'm using PDO (supports parametised queries), updating everything is quite straight-forward. It's already done in my development code, and will be deployed with the next release.

The password salt idea is also something I'll look into adding to the next version.

M4g3ll4n
Sacred Templars
RED.OverLord
Posted - 2008.12.17 14:25:00 - [50]
 

Quote:
Although since you (and perhaps others?) may be interested in adding plugins with AJAX support, it's pretty trivial to add some built-in AJAX support, which other developers can make use of.


Honestly, that would be amazing. I do not even think about touching your code :)

Regards Mag

Adira Deimos
Posted - 2008.12.17 23:20:00 - [51]
 

Edited by: Adira Deimos on 18/12/2008 00:36:35
Amazing app! Appreciate you sharing your hard work Azazel :)

I got this running on my test box (WinXP, Php 5.2.6 and MySQL) just fine, the first time.

Having some production issues, but that's because my host didn't load the mysql driver for PDO! Rolling Eyes

Solo Drakban
GoonWaffe
Goonswarm Federation
Posted - 2008.12.18 00:41:00 - [52]
 

Edited by: Solo Drakban on 18/12/2008 00:41:29
Quote:
PDO
PDO support enabled
PDO drivers sqlite, sqlite2

Edit - I think my problem is that while PDO is installed, it's only setup for sqlite and sqlite2, not mysql. I'm just guessing at this point... I'll contact my hosting provider to see if they can enable it though.


This is correct. PDO support for MySQL needs to be enabled at compile time adding the --with-pdo-mysql flag to the ./configure stanza when starting a source compile of PHP or compiled into the PDO module if the PHP installation is modular.

Rilwar
BlackStar Industrial
Posted - 2008.12.18 03:47:00 - [53]
 

Originally by: Azazel Mordred

Right now, I'm building in Corporation support - corp sheet and member listing/activity, transactions, journal, market orders, assets, kills, POSs etc. Should all be in action before Christmas Smile.




/sitting here pressing F5 in anticipation

Adira Deimos
Posted - 2008.12.19 16:01:00 - [54]
 

Azazel,

Any chance of this awesome tool being done without requiring the PDO mySql driver? (My hosting company won't install the required driver. It seems their on Debian, and claim the PDO mySql driver isn't compatible with their shared hosting architecture.)


Solo Drakban
GoonWaffe
Goonswarm Federation
Posted - 2008.12.19 17:58:00 - [55]
 

Originally by: Adira Deimos
Azazel,

Any chance of this awesome tool being done without requiring the PDO mySql driver? (My hosting company won't install the required driver. It seems their on Debian, and claim the PDO mySql driver isn't compatible with their shared hosting architecture.)




That's a complete load of bunk. Unless they somehow don't support MySQL at all via PHP in which case you really really need to look for another host. In fact, given their response above you should look for another host anyways.

keepiru
Omega Fleet Enterprises
Executive Outcomes
Posted - 2008.12.20 06:29:00 - [56]
 

Nice software. I'm not gonna take a look at the code - allergic to PHP - but I'd like to make a small request ... how's about being able to collapse cans in assets? Very Happy

Mikal Drey
Atlas Alliance
Posted - 2008.12.20 11:33:00 - [57]
 

hey hey

this is very nice. nice and smooth loading times and a very clear page layout.

The Production Profit Calculator
Lists ALL BPC/BPO's :''( (yes i know CCP dont difrenciate)
could this data be collapsable or sortable into type ?
does the calculator use the prints actual ME level or is it all ME set by the drop down menu ?

Kills
My kills arent listed and the page is blank


ITS FREE ! ! ! !
looks like woodel has competition :)

Overall
so far its very good and i'll look at it more over a few days. i didnt like when it asked for the account name so i didnt put it in and my character still downloaded. I see now (whilst typing) that this is only for ooe to have a placeholder for multiple accounts. maybe you should state clearly that this isnt your eve account name but is for the website UI only. gonna play with it some more to see how much id use it as a compliment to gameplay. keep up the gooooooood work :)


Rilwar
BlackStar Industrial
Posted - 2008.12.21 02:33:00 - [58]
 

Edited by: Rilwar on 21/12/2008 02:34:28
Not sure if it's just me or not, but I've got a whole bunch of icon errors while looking at the manufacture page.

Drones - Icons missing
Rigs - All icons are using Reinforced Bulkhead's icon
Small Tractor Beam - Using Small Railgun icon
Condor - Icon is missing, based on the fact all the drones are missing as well as all the rig icons being the *same* incorrect, I'm guessing either all the Caldari frig, or all frigs in general are missing icons as well, possibly an error in whatever you're using to export the DB imagery? Crying or Very sad Hopefully this would be a good starting point.

I do know however, that Small, Medium and Large Hybrid ammo icons are correct, as well as cap boosters and cruise missiles.


-EDIT-

It wouldn't surprise me in the least if this was a result of me doing such a crude hack as using notepad's replace funct for corp/char Industry output, I realized after posting.

Azazel Mordred
Minmatar
Cloak of Shadows
Posted - 2008.12.21 05:10:00 - [59]
 

Quote:
Lists ALL BPC/BPO's :''( (yes i know CCP dont difrenciate)
could this data be collapsable or sortable into type ?


A great idea.

Quote:
does the calculator use the prints actual ME level or is it all ME set by the drop down menu ?


BP ME level information is unfortunately not available via the API, so you have to select the desired ME in the drop-list, and it does affect all BPs listed.


Quote:
Not sure if it's just me or not, but I've got a whole bunch of icon errors while looking at the manufacture page.


Could you perhaps try applying the images provided by Ben Thomas in this post? I neglected to include BP image support since prior to the latest image dump, these weren't available. Will be corrected for the next release.

Rilwar
BlackStar Industrial
Posted - 2008.12.21 15:56:00 - [60]
 

Edited by: Rilwar on 21/12/2008 17:21:39
Edited by: Rilwar on 21/12/2008 16:49:04
Originally by: Azazel Mordred

Quote:
Not sure if it's just me or not, but I've got a whole bunch of icon errors while looking at the manufacture page.


Could you perhaps try applying the images provided by Ben Thomas in this post? I neglected to include BP image support since prior to the latest image dump, these weren't available. Will be corrected for the next release.



Very Happy

BP Icon's are now working properly.

Not sure if this will help you at all, but I did find the correct rig icons in the folder, all the rigs are currently pointing at icon02_10, whereas the rigs icons are 09_08 thru 09_16

I'm going to do some poking around to see if I can find out where the bad pointer is.


-EDIT-

After plugging around for a bit, I realized something; all the ammo and whatnot, the icons are being referred to the icons folder, for non-BPO icons, whereas the drones/ships are being pointed at the types folder for the proper BPO icon.

I'm not exactly leet skilled with PHP, but I do know the basics and can easily mod code and whatnot. That being said, am I missing something as to where the TypeID's are being converted into icon file names? The *only* instance I can find is Line 409 in apidb.php pointing at the types/ folder... But that totally contradicts what I found earlier with the icons folder..

I am now throughly confused. Sad


Pages: 1 [2] 3 4 5 6 7 8 9

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