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

NickyYo
StarHug
120
|
Posted - 2012.05.22 02:23:00 -
[1] - Quote
Want to make a lottery website? Want users to have an online balance? Want the site to update all balances every 15-30 minutes? Want total control over the design and feel?
Look no further than here, i present the EVE lottery framework.
Features
- Automated IGB trust functionality
- Ingame registration
- Once registered ingame you can login out of game
- Users will recieve online balances
- Ingame deposits are tracked and updated out of game on the site via the EVE API KEY
- Database & api Class coded up, easy to setup and modify
- Semantic XHTML coded, minimal styling so you can do the fun part :)
- More to come! it's in early stages..
The code
- PHP (OOP)
- Database class with instructions
- API class and more
- MySQL
- JavaScript
- Eve API key & XML
- CronJob
- Semantic XHTML Strict! coded
So what is all this? This was orginally coded for personel use, but will now be shared. This is the basic code needed to have a functional lottery website. Your users will register ingame and all their isk deposits to your corp wallet will be updated to their balances on the website. With a simple setup proccess and a diagram on how it all works you can be confident to get rolling in no time and to make any changes you feel necessary.
You can download the zip file here: www.nickmitchell.me.uk/EVE-Lottery-framework.zip
You have the basis, now just expand. If you need any help with, just ask. (SERVICE) Need a project coding? (PHP & Javascript) https://forums.eveonline.com/default.aspx?g=posts&t=101893&find=unread |

NickyYo
StarHug
132
|
Posted - 2012.05.26 01:11:00 -
[2] - Quote
Anyone got any feedback on this please? I have released a basic EVE Lottery Framework for you all you use to make lottery sites :) Check it out here -> https://forums.eveonline.com/default.aspx?g=posts&m=1333688&#post1333688 |

Dragonaire
Corax. The Big Dirty
41
|
Posted - 2012.05.26 17:36:00 -
[3] - Quote
I haven't tried it out but I've looked at the code a little and it looks clean and seems to be a good base that could be built on anyway. I'll try it out when I find some time  Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. Check out the Yapeal PHP API library thread for more information. |

MJ Maverick
IronPig Sev3rance
88
|
Posted - 2012.05.26 23:59:00 -
[4] - Quote
This sounds really promising! Perhaps pop up some example screen shots of the admin side and the UI? [EVEOTS] Eve Online Teamspeak 3 API Registration |

alittlebirdy
All Hail The Liopleurodon
31
|
Posted - 2012.05.27 06:12:00 -
[5] - Quote
This guy says he is quitting eve I would not depend on anything this poster has. |

NickyYo
StarHug
133
|
Posted - 2012.05.27 12:22:00 -
[6] - Quote
alittlebirdy wrote:This guy says he is quitting eve I would not depend on anything this poster has.
Thanks for the post, i made this for personal use. What is wrong with giving it away? It's not a CMS but is a very basic frame to have an api powered lottery website.
It could also be used for a corp bank application or something. I have released a basic EVE Lottery Framework for you all you use to make lottery sites :) Check it out here -> https://forums.eveonline.com/default.aspx?g=posts&m=1333688&#post1333688 |

Line Ghost
Avalon Project Shadow Rock Alliance
0
|
Posted - 2012.05.27 15:41:00 -
[7] - Quote
I read this code. It certainly helped me get a good grasp on how one might approach such an application, and owing to it's simplicity, it served as a good learning tool that way.
However, personally, I wouldn't use it in a production environment. There isn't any abstraction between presentation code and server logic, so it's not terribly maintainable/customisable, and, for example, multiple redundant calls are made to mysql_connect etc when reinstantiating the database object, which sometimes happens several times per request. |

NickyYo
StarHug
133
|
Posted - 2012.05.27 16:29:00 -
[8] - Quote
Line Ghost wrote:I read this code. It certainly helped me get a good grasp on how one might approach such an application, and owing to it's simplicity, it served as a good learning tool that way.
However, personally, I wouldn't use it in a production environment. There isn't any abstraction between presentation code and server logic, so it's not terribly maintainable/customisable, and, for example, multiple redundant calls are made to mysql_connect etc when reinstantiating the database object, which sometimes happens several times per request.
Thanks for the reply and reading throught the code, and awesome debugging there, learn something new everyday :) i will check the classes for redundant calls and will try to correct it.
This code was just lying around so i thought i would get some experience from sharing it. I'm tempted to expand it so users can register out of game with api keys and add some sort of social commenting functions to it and also possible something similiar to mining buddy; what advice would you give to that idea? I have released a basic EVE Lottery Framework for you all you use to make lottery sites :) Check it out here -> https://forums.eveonline.com/default.aspx?g=posts&m=1333688&#post1333688 |

NickyYo
StarHug
133
|
Posted - 2012.05.27 16:31:00 -
[9] - Quote
- I have released a basic EVE Lottery Framework for you all you use to make lottery sites :) Check it out here -> https://forums.eveonline.com/default.aspx?g=posts&m=1333688&#post1333688 |

MJ Maverick
IronPig Sev3rance
88
|
Posted - 2012.05.27 17:24:00 -
[10] - Quote
I was going to try and use this as a tax monitoring tool but I can't work it out.
There isn't an admin panel to monitor the wallet tax (or lottery) is being paid to. Also in game registration being forced is redundant as headers can easily be hoaxed and all the information you need can be dragged through a users API key (with access mask 0).
Not actually sure how this works at all lol :P Perhaps a readme/guide is in order? [EVEOTS] Eve Online Teamspeak 3 API Registration |
|

Grauth Thorner
Vicious Trading Company Assassin Confederacy
0
|
Posted - 2012.05.28 15:46:00 -
[11] - Quote
MJ Maverick wrote:Not actually sure how this works at all lol :P Perhaps a readme/guide is in order?
There is a small readme in the framework folder - no idea if this contains enough information for you though =)
Grauth Thorner |

Johnny May
University of Caille Gallente Federation
0
|
Posted - 2012.05.29 06:35:00 -
[12] - Quote
clean? roflmao.
if it was clean it would not need to turn of errors (ini_set( "display_errors", 0);) or add error suppression(@) at several spots.
Also, mixing up PHP and HTML in the same files is considered far from clean, it at least could use a template system.
includes in the constructor of a method class? seriously? ******* up opcode caches ftw.
the prepareString of the database class does not properly sanitize users input (no addslashes and htmlspecialchars won't do), so there are sql injection vectors on this.
and isn't it just lovely how the dumpUsers.php script allows everyone to copy and run with the complete user database?
@OP: don't be scared away, lookup the things i just mentioned on the net, you might learn something
@Dragonaire: clean, rofl. idiot.
|

NickyYo
StarHug
133
|
Posted - 2012.05.29 17:30:00 -
[13] - Quote
Johnny May wrote:clean? roflmao.
if it was clean it would not need to turn of errors (ini_set( "display_errors", 0);) or add error suppression(@) at several spots.
Also, mixing up PHP and HTML in the same files is considered far from clean, it at least could use a template system.
includes in the constructor of a method class? seriously? ******* up opcode caches ftw.
the prepareString of the database class does not properly sanitize users input (no addslashes and htmlspecialchars won't do), so there are sql injection vectors on this.
and isn't it just lovely how the dumpUsers.php script allows everyone to copy and run with the complete user database?
@OP: don't be scared away, lookup the things i just mentioned on the net, you might learn something
@Dragonaire: clean, rofl. idiot.
I didn't release it to be perfect, like i said it was some code lying around and i thought i would share it. I have released a basic EVE Lottery Framework for you all you use to make lottery sites :) Check it out here -> https://forums.eveonline.com/default.aspx?g=posts&m=1333688&#post1333688 |

NickyYo
StarHug
133
|
Posted - 2012.05.29 21:39:00 -
[14] - Quote
The HTML and PHP are seperate.. the only part that isn't is the pages that require the user to be logged in, and those pages simply call a php class to define a logged in instance.
dumpUsers.php is a test script to see how things are called from the database etc and to get an idea of the table layouts.. another reason is because there is no admin panel.
Yes the DB class does not have add slashes, but why don't you add that? its pretty simple to do. Or even better use REGEX aswel to validate.
Thanks for the reply, but most of what you said can simply be edited to your liking its not a complicated script setup.
Johnny May wrote:includes in the constructor of a method class? seriously? ******* up opcode caches ftw. Anyhows as for this, i guess i'll need to extend it from the db class? If not i'll check it out m8. thanks for the replies!
Thanks. I have released a basic EVE Lottery Framework for you all you use to make lottery sites :) Check it out here -> https://forums.eveonline.com/default.aspx?g=posts&m=1333688&#post1333688 |

Dragonaire
Corax. The Big Dirty
41
|
Posted - 2012.05.30 03:27:00 -
[15] - Quote
My comment on clean was two fold and I'll explain what I meant vs what Johnny May seems to think it does. 1. It's not sending a copy of your data some where else. 2. The code is nicely formated and the classes make sense.
If I'd said it was good solid code without error or bugs then you should laugh at me maybe I do think as some others have pointed out it's a good place to start but I know I would make some changes before putting it on a live server myself but I'm glad to see someone actually put something out there so it can be peer reviewed and improved instead of the usual 'Give me X whatever and I'll make something for you'. From what I've heard from a couple people that has tried that route this code would have been an improvement over what they got.
What I would like to see happen is instead of just having a download is to have it hosted somewhere by the original author put it up on SourceForge, GitHub, or another public site like that so everyone can contribute to it more directly. I also don't remember seeing any kind of licensing like GPL etc being include with the code and that really would need to be cleared up before anyone could safely use it on their site as well. Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. Check out the Yapeal PHP API library thread for more information. |

Johnny May
University of Caille Gallente Federation
1
|
Posted - 2012.05.30 11:42:00 -
[16] - Quote
NickyYo wrote:The HTML and PHP are seperate.. the only part that isn't is the pages that require the user to be logged in, and those pages simply call a php class to define a logged in instance. seriously, use a template system, and putting it in the same files is not separate at all.
NickyYo wrote:dumpUsers.php is a test script to see how things are called from the database etc and to get an idea of the table layouts.. another reason is because there is no admin panel. you should never have such testscript public available, you could have it require login or you could have denied access to it in your htaccess, or you could put it in a folder which requires http base login..
NickyYo wrote: Yes the DB class does not have add slashes, but why don't you add that? its pretty simple to do. Or even better use REGEX aswel to validate.
this is not about regex or addslashes, neither of them work really safe. learn about prepared statements, since those are your safest bet with php+mysql.
NickyYo wrote:Johnny May wrote:includes in the constructor of a method class? seriously? ******* up opcode caches ftw. Anyhows as for this, i guess i'll need to extend it from the db class? If not i'll check it out m8. thanks for the replies! Thanks. you could hand the information in it to the constructor of the class, you could have the class read a config file, you could go the ugly path by using defines in your config and including it before the class, you could inject it... there are a **** load of ways to solve this, that are better than what you are doing there. |

Johnny May
University of Caille Gallente Federation
1
|
Posted - 2012.05.30 11:51:00 -
[17] - Quote
Dragonaire wrote:My comment on clean was two fold and I'll explain what I meant vs what Johnny May seems to think it does. 1. It's not sending a copy of your data some where else.
no its offering them everyone who wants them to download.
Dragonaire wrote: 2. The code is nicely formated and the classes make sense.
simply not true, indent is ****** up on several places, it mixes html and php and its object orientation is very very rudimentary at best.
Dragonaire wrote:If I'd said it was good solid code without error or bugs then you should laugh at me maybe  I do think as some others have pointed out it's a good place to start but I know I would make some changes before putting it on a live server myself but "clean" and "good base" imply its solid code.
Dragonaire wrote: I'm glad to see someone actually put something out there so it can be peer reviewed and improved instead of the usual 'Give me X whatever and I'll make something for you'. From what I've heard from a couple people that has tried that route this code would have been an improvement over what they got.
no one argues with it being a good move to publish it, but published code should always be reviewed critical and not "yay, random code". and just because people can make stuff worse that doesn't mean this is good.
Dragonaire wrote: What I would like to see happen is instead of just having a download is to have it hosted somewhere by the original author put it up on SourceForge, GitHub, or another public site like that so everyone can contribute to it more directly. I also don't remember seeing any kind of licensing like GPL etc being include with the code and that really would need to be cleared up before anyone could safely use it on their site as well.
Putting his code to public domain without any license is a totally legit move, and personally i'd allways prefer that over the viral GPL.
The best way obviously would be a BSD style license, but you don't need to include a license of code that you hand to the public domain. Otherwise every little snipped code you'd give to anyone (hello world!) would need a license. |

Dragonaire
Corax. The Big Dirty
44
|
Posted - 2012.06.01 03:18:00 -
[18] - Quote
Quote:Putting his code to public domain without any license is a totally legit move, and personally i'd allways prefer that over the viral GPL.
The best way obviously would be a BSD style license, but you don't need to include a license of code that you hand to the public domain. Otherwise every little snipped code you'd give to anyone (hello world!) would need a license. Many countries in the world have laws that state if the owner doesn't declare something is public domain it isn't and you can't use it without permission. Creative Commons has some good information about how to do it correctly. BSD license is fine but GPL is better IMHO since it requires people to give back and not just take but that something every person has to decide for themselves when releasing code. Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. Check out the Yapeal PHP API library thread for more information. |

Johnny May
University of Caille Gallente Federation
4
|
Posted - 2012.06.01 10:05:00 -
[19] - Quote
well, you can go ahead derail the thread about licenses to show off your "knowledge" about the subject to divert from other stupid stuff you said, i'm out of here. |

Dragonaire
Corax. The Big Dirty
44
|
Posted - 2012.06.02 02:49:00 -
[20] - Quote
Only one that was being stupid around here was you thinking you know everything and putting everyone else down. Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. Check out the Yapeal PHP API library thread for more information. |
|

Apocil Munar
Whistle-Britches
1
|
Posted - 2012.07.18 05:21:00 -
[21] - Quote
anyone have a copy of this so i can look at it? |

NickyYo
StarHug Russian International Allegiance
183
|
Posted - 2012.07.31 15:49:00 -
[22] - Quote
Apocil Munar wrote:anyone have a copy of this so i can look at it?
Yep it's available m8, link is in description have been afk for 2 months. The file is now on github opensource, if there is any issues with github let me know, just learning it my self. .. |

Gossi91
outer space pirates Interstellar Confederation
0
|
Posted - 2012.08.02 12:06:00 -
[23] - Quote
I have a problem running the setup/setup.php:
Quote:Database connection success!
Database connection file created!
Failed to create user table..
Did you know something about these error? |

NickyYo
StarHug
183
|
Posted - 2012.08.02 13:42:00 -
[24] - Quote
Gossi91 wrote:I have a problem running the setup/setup.php: Quote:Database connection success!
Database connection file created!
Failed to create user table.. Did you know something about these error?
Did you create a database table and then enter the database table name in the setup window? if not thats what the error is for. If you did i will have a look at it and will update github. .. |

Gossi91
outer space pirates Interstellar Confederation
0
|
Posted - 2012.08.02 13:47:00 -
[25] - Quote
NickyYo wrote:Did you create a database table and then enter the database table name in the setup window? if not thats what the error is for. If you did i will have a look at it and will update github.
Thanks, that fixed the problem :D |

PyroTech03
Legion of Darkwind Order of the Void
3
|
Posted - 2012.08.06 08:06:00 -
[26] - Quote
So does this handle anything such as tickets or draws?? Or is this simply a wallet tracker at the moment? |

NickyYo
StarHug
195
|
Posted - 2012.08.06 10:05:00 -
[27] - Quote
PyroTech03 wrote:So does this handle anything such as tickets or draws?? Or is this simply a wallet tracker at the moment? Simply a base for wallet donation pulling and ingame-registration. The donations are then updated as an online balance to the characters online account.
If you watch the code on github it will update you when its updated, i can update it with the lottery type you speak of if you wish, so you can all have the fun of designing your front end. twitter.com/TheNickyYo |

Nutbolt
Avalon Project Shadow Rock Alliance
50
|
Posted - 2012.08.06 16:39:00 -
[28] - Quote
Feel free to include a front end as well :D Even just an extremely basic one so that people have a template to work off. I have been after a lottery ticket tracker for a while now. Although I do appreciate you are providing it for free and under no obligation to provide a front end and the ticket tracker stuff, but I promise I will pay you in forum likes :p
|

PyroTech03
Legion of Darkwind Order of the Void
3
|
Posted - 2012.08.11 05:47:00 -
[29] - Quote
I'm wondering about adapting this to a setup to run an Eve Hold'em type setup....private server for alliance and what not, let people make some ISK and make the alliance some as well.
Thanks for sharing this though :) |

AzAkiR NaLDa
Real Simple Construction Elemental Tide
1
|
Posted - 2012.08.16 18:01:00 -
[30] - Quote
i did all the setup work which went smoothly but whenever i try to either login or register it gives me 404's |
|
|
|
|
Pages: [1] 2 :: one page |
First page | Previous page | Next page | Last page |