-
[C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Ion16
I noticed that there are no really good C# frameworks that support v16. ION is a great base which is very easy to change protocol. Also easy to understand.
Ion uses MySQL as a database file storing and a easy plugin system to basicly do any basic function needed.
I have also changed the protocol from R34 to v16
Features
- Register
- Login
- Confirm details
- Load swim figure :)
- Console
- Search user 100%
- Show user motto.
-
Re: [C#, ION/Deltar] Ion16 - Habbo Hotel V16
OH I like this It seems cool ;)
-
Re: [C#, ION/Deltar] Ion16 - Habbo Hotel V16
-
Re: [C#, ION/Deltar] Ion16 - Habbo Hotel V16
PHP Code:
else if (name.Contains("MOD-") || name.Contains("Mod-") || name.Contains("mod-"))
{
Response.AppendInt32(3);
}
Couldn't this be shorten to this?
PHP Code:
else if (name.toUpper().Contains('MOD-'))
{
//doshit
}
-
Re: [C#, ION/Deltar] Ion16 - Habbo Hotel V16
But where is the Database ??? ...
-
Re: [C#, ION/Deltar] Ion16 - Habbo Hotel V16
Quote:
Originally Posted by
Phosfor
But where is the Database ??? ...
Thanks for telling me ;)
Use this [SQL] -- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- H - Pastebin.com (The default ION database)
---------- Post added at 09:54 PM ---------- Previous post was at 09:54 PM ----------
Quote:
Originally Posted by
Pure
PHP Code:
else if (name.Contains("MOD-") || name.Contains("Mod-") || name.Contains("mod-"))
{
Response.AppendInt32(3);
}
Couldn't this be shorten to this?
PHP Code:
else if (name.toUpper().Contains('MOD-'))
{
//doshit
}
Thanks, I suppose that could be replaced.
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Thanks to give the Database ;)
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Stealing Ion26 name idea? :P
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Maby?! CACHE SOMETHING!? Its MySQL selecting overload.
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Quote:
Originally Posted by
wichard
Maby?! CACHE SOMETHING!? Its MySQL selecting overload.
Not really. :P: Just cache common info like item definitions, room categories, room models, navigator, etc, etc. Simple primary-key based lookups like this are fine.
However, about that snippet... please use prepared statements / parameters / whatever for your database queries to make your code immune to SQL exploits. People can now supply a name containing one or more SQL queries as the name, and the server will happily run them.
Anyway, good initiative && good luck!
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Quote:
Originally Posted by
Nillus
Not really. :P: Just cache common info like item definitions, room categories, room models, navigator, etc, etc. Simple primary-key based lookups like this are fine.
However, about that snippet... please use prepared statements / parameters / whatever for your database queries to make your code immune to SQL exploits. People can now supply a name containing one or more SQL queries as the name, and the server will happily run them.
Anyway, good initiative && good luck!
you really hate sql exploits:laugh:
nice alex
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Nillus, you dont know what i mean? I mean he dont cache anything!?
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Quote:
Originally Posted by
wichard
Nillus, you dont know what i mean? I mean he dont cache anything!?
its a fucking framework calm down.:rolleyes:
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
yea yea ok =)
People why are we busy with Oldskool?! R63 is the Version now. Dont waste your time @ oldskool, get higher to BETA! If you got a nice server: Everybody like ya! :D
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Old is Gold and Always Will Remain Gold no matter what anyone says.
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Yea that's true, but i believe none will give a shit about Oldskool later :D
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Seriously, no one seems to care that nillus is back?
This is very usefull, but awa is already working on a v14 server:P
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Hes a normal persone like you. No :D
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
@Eronisch so you say nillus will code anything again and you think he's going to code V14?
@wichard So? He's a Habbo Retro Legend like iJeax was back in those days.
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Hmmm.. I might have to develop on this, it looks pretty decent.
And. Since when was Nillus back? Nice to see some Vets are finally back.
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
lol nillus has been visiting he was never gone.
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Ahh nevermind about Legends, those boys code for Honor and then, they're gone.
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
This is a cool release, hoping to see some servers using this in a near future so I can code some more CMS', and oldschool is king, nothing will ever beat the v14, r63 can shove it.
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Quote:
Originally Posted by
AWA
Stealing Ion26 name idea? :P
Yeahh sounded sexy :)
---------- Post added at 07:29 AM ---------- Previous post was at 07:26 AM ----------
Quote:
Originally Posted by
PowahAlert
Thanks alex.
Not a problem :)
Quote:
Originally Posted by
Nillus
Not really. :P: Just cache common info like item definitions, room categories, room models, navigator, etc, etc. Simple primary-key based lookups like this are fine.
However, about that snippet... please use prepared statements / parameters / whatever for your database queries to make your code immune to SQL exploits. People can now supply a name containing one or more SQL queries as the name, and the server will happily run them.
Anyway, good initiative && good luck!
Ohh really? How would I stop that? :(
Quote:
Originally Posted by
wichard
Nillus, you dont know what i mean? I mean he dont cache anything!?
Actually the whole server has a small plugin system that Nillus already made and users are cached... :)
Quote:
Originally Posted by
Žak™
its a fucking framework calm down.:rolleyes:
;D
---------- Post added at 07:38 AM ---------- Previous post was at 07:29 AM ----------
Quote:
Originally Posted by
wichard
yea yea ok =)
People why are we busy with Oldskool?! R63 is the Version now. Dont waste your time @ oldskool, get higher to BETA! If you got a nice server: Everybody like ya! :D
You can shut-up (:
No one cares about your opinion :D
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
To fix SQL exploit, simply put: (I think, maybe wrong method name)
PHP Code:
dbClient.AddParamsWithValue("name", name);
under:
PHP Code:
using (Ion.Storage.DatabaseClient dbClient = IonEnvironment.GetDatabase().GetClient())
{
and replace:
PHP Code:
if (dbClient.ReadBoolean("SELECT * FROM users WHERE username = '" + name + "'") == true)
with:
PHP Code:
if (dbClient.ReadBoolean("SELECT * FROM users WHERE username = @name") == true)
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Quote:
Originally Posted by
Mithex
What a gay hotel view
If Alex wanted to customize it he would but as a developer you have better things to do with time instead of using MX 2004.
However, Alex; you are really loving the ION framework.
Good work!
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Quote:
Originally Posted by
AWA
To fix SQL exploit, simply put: (I think, maybe wrong method name)
PHP Code:
dbClient.AddParamsWithValue("name", name);
under:
PHP Code:
using (Ion.Storage.DatabaseClient dbClient = IonEnvironment.GetDatabase().GetClient())
{
and replace:
PHP Code:
if (dbClient.ReadBoolean("SELECT * FROM users WHERE username = '" + name + "'") == true)
with:
PHP Code:
if (dbClient.ReadBoolean("SELECT * FROM users WHERE username = @name") == true)
Ahh yes, I have used AddParamsWithValue in Aleeda :)
I never knew they blocked SQL injections
@HabboCOIN - Yes I do love the Ion framework :)
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
[QUOTE=WizardKing;6303790]@Eronisch so you say nillus will code anything again and you think he's going to code V14?
QUOTE]
So you say?
Seriously, learn to fkng read english?
That's not even close what i wrote..
-
Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]
Hey has anyone actually done anything from this? (: