RevCMS Guest Login

Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    Valued Member Dlyner is offline
    MemberRank
    Oct 2012 Join Date
    119Posts

    RevCMS Guest Login

    Hello Ragezone!
    I release today the guest login system nobody release this on ragezone (i think so)
    But i do it today!

    Screens
    Guest: http://i.imgur.com/eHoKBUY
    User: http://imgur.com/4uaxX4g

    How to set up
    1. Go tho you Community / Staff / News etc header
    2. Place the script in the header screen: http://i.imgur.com/m5yNv9Y
    3. And its done!

    Script
    PHP Code:
     <?php
    // Guest Login System Made By Dlyner aka .Atakan don't remove the Credits Please :')

    if (!isset($_SESSION['user']['id']))
    echo 
    '
    <div id="subnavi-login">
            <form action="index" method="post">
               
                <ul>
                    <li>
                        <label for="login-username" class="login-text"><b>{hotelname}naam</b></label>
                        <input tabindex="1" type="text" class="login-field" name="log_username" id="login-username" />
                        <input id="login-form-submit" type="submit" value="Login" name="login"><i></i></a>
                        <input type="submit" id="login-submit-button" value="Log in" class="submit"/>
                    </li>
                    <li><br>
                        <label style="margin-top: -9px;" for="login-password" class="login-text"><b>Wachtwoord</b></label>
                        <input style="margin-top: -9px;""tabindex="2" type="password" class="login-field" name="log_password" id="login-password" />
                        <input style="margin-top: -9px;"style="margin-top: -2px;"tabindex="3" type="checkbox" name="_login_remember_me" value="true" id="login-remember-me" />
                        <label style="margin-top: -9px;"for="login-remember-me" class="left">Onthoud dit account</label>
                    </li>
                </ul>
            </form>
            <div id="subnavi-login-help" class="clearfix">
                <ul>
                    <li class="register"><a href="https://www.habbo.nl/account/password/forgot" id="forgot-password"><span>Wachtwoord vergeten?</span></a></li>
                    <li><a href="/quickregister/start"><span>Meld je gratis aan</span></a></li>
                </ul>
            </div>
    <div id="remember-me-notification" class="bottom-bubble" style="display:none;">
        <div class="bottom-bubble-t"><div></div></div>
        <div class="bottom-bubble-c">
                Door dit te selecteren blijf je ingelogd in {hotelname} Hotel totdat je op Log uit klikt.
        </div>
        <div class="bottom-bubble-b"><div></div></div>
    </div>
        </div>


    <script type="text/javascript">
        LoginFormUI.init();
        RememberMeUI.init("right");
    </script>


    '
    ;


    ?>
    Credits
    Atakan aka Dlyner (me)
    Habbo
    Last edited by Dlyner; 14-04-15 at 03:10 PM. Reason: Update


  2. #2
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,608Posts

    Re: RevCMS Guest Login

    Don't you have to put a ';' (semicolon) after echo? echo "something";

  3. #3
    Valued Member Dlyner is offline
    MemberRank
    Oct 2012 Join Date
    119Posts

    Re: RevCMS Guest Login

    Quote Originally Posted by The General View Post
    Don't you have to put a ';' (semicolon) after echo? echo "something";
    Yes but this works to ;p

  4. #4
    Account Upgraded | Title Enabled! AskethZ is offline
    MemberRank
    Jul 2012 Join Date
    232Posts

    Re: RevCMS Guest Login

    Why would you echo such a long amount of text.
    Just end the php after '{' with '?>', add your HTML login thingy, and then end it with '<?php } ?>'

    Much easier, and ofcourse, it would be nicer indeed to release something in proper PHP, therefore use a semicolon if you echo it anyways.
    EDIT: When using an 'if' statement, you should use curly braces.

    But the idea is nice! I like it, users can easily check the site out before joining. Good job!

  5. #5
    Hello there RetroPiggy is offline
    MemberRank
    Aug 2013 Join Date
    UKLocation
    288Posts

    Re: RevCMS Guest Login

    This is ok but I have seen this in CMS's I have used in the past.

  6. #6
    Valued Member Dlyner is offline
    MemberRank
    Oct 2012 Join Date
    119Posts

    Re: RevCMS Guest Login

    Quote Originally Posted by RetroPiggy View Post
    This is ok but I have seen this in CMS's I have used in the past.
    I know its not my cms but i make the system on that cms :p

  7. #7
    Alpha Member Moogly is offline
    MemberRank
    Feb 2008 Join Date
    Pool LidoLocation
    2,322Posts

    Re: RevCMS Guest Login

    Quote Originally Posted by The General View Post
    Don't you have to put a ';' (semicolon) after echo? echo "something";
    Another PHP oddity, since it's the only line of code, I guess it's considered valid PHP.

  8. #8
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,608Posts

    Re: RevCMS Guest Login

    Quote Originally Posted by Moogly View Post
    Another PHP oddity, since it's the only line of code, I guess it's considered valid PHP.
    Guess PHP is a shit language cos it isn't really strict in its syntax...

  9. #9
    Alpha Member Moogly is offline
    MemberRank
    Feb 2008 Join Date
    Pool LidoLocation
    2,322Posts

    Re: RevCMS Guest Login

    Quote Originally Posted by The General View Post
    Guess PHP is a shit language cos it isn't really strict in its syntax...
    I wasn't saying that, but I was pointing out the last possibility. This is really bad practice though if anything...

  10. #10
    Ragezone Furni Releaser maartenvn is offline
    MemberRank
    Dec 2012 Join Date
    Ragezone WorldLocation
    928Posts

    Re: RevCMS Guest Login

    This looks good.
    But you should make a system that guest could enter the hotel with a name like guest-4598.

  11. #11
    Account Upgraded | Title Enabled! Jamal7 is offline
    MemberRank
    Dec 2013 Join Date
    547Posts

    Re: RevCMS Guest Login

    Quote Originally Posted by maartenvn View Post
    This looks good.
    But you should make a system that guest could enter the hotel with a name like guest-4598.
    This means that users can advertise easily. I bet nobody want this.
    Last edited by Jamal7; 14-04-15 at 09:57 AM.

  12. #12
    Ragezone Furni Releaser maartenvn is offline
    MemberRank
    Dec 2012 Join Date
    Ragezone WorldLocation
    928Posts

    Re: RevCMS Guest Login

    Quote Originally Posted by Sir Jamal View Post
    This means that users can advertise easily. I bet nodoby want this.
    It was just an idea.
    You can still ban the IP.

  13. #13
    Account Upgraded | Title Enabled! Vimsoration is offline
    MemberRank
    Apr 2015 Join Date
    USALocation
    238Posts

    Re: RevCMS Guest Login

    With this script you can do SQL injections. Bad coding at all, not secure.

  14. #14
    Valued Member Dlyner is offline
    MemberRank
    Oct 2012 Join Date
    119Posts

    Re: RevCMS Guest Login

    Quote Originally Posted by Vimsoration View Post
    With this script you can do SQL injections. Bad coding at all, not secure.
    How you can Injection this ?
    I dont use the sql that's in the cms not in my login system its 100% safe revcms have a forgot and xss exploit :)

  15. #15
    Account Upgraded | Title Enabled! Vimsoration is offline
    MemberRank
    Apr 2015 Join Date
    USALocation
    238Posts

    Re: RevCMS Guest Login

    Quote Originally Posted by Dlyner View Post
    How you can Injection this ?
    I dont use the sql that's in the cms not in my login system its 100% safe revcms have a forgot and xss exploit :)
    This is unsecure:
    if (!isset($_SESSION['user']['id']))
    Use this (more secure):

    if ( isset($_SESSION['user']) && $_SESSION['id'] == true ) {



Page 1 of 2 12 LastLast

Advertisement