[C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

Page 2 of 2 FirstFirst 12
Results 26 to 32 of 32
  1. #26
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,483Posts

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Quote Originally Posted by AWA View Post
    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 View Post
    Thanks alex.
    Not a problem :)

    Quote Originally Posted by Nillus View Post
    Not really. 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 View Post
    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™ View Post
    its a fucking framework calm down.
    ;D

    ---------- Post added at 07:38 AM ---------- Previous post was at 07:29 AM ----------

    Quote Originally Posted by wichard View Post
    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

  2. #27
    Account Upgraded | Title Enabled! AWA is offline
    MemberRank
    Feb 2008 Join Date
    1,320Posts

    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

  3. #28
    Thanks for the memories! Mithex is offline
    MemberRank
    May 2010 Join Date
    HeavenLocation
    2,014Posts

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    What a gay hotel view

  4. #29
    Enthusiast HabboCOIN is offline
    MemberRank
    Apr 2011 Join Date
    /dev/nullLocation
    25Posts

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Quote Originally Posted by Mithex View Post
    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!

  5. #30
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,483Posts

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Quote Originally Posted by AWA View Post
    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 :)

  6. #31
    Developer Eronisch is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    1,328Posts

    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..

  7. #32
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,483Posts

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Hey has anyone actually done anything from this? (:



Page 2 of 2 FirstFirst 12

Advertisement