Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

RevCMS Online Friends

Experienced Elementalist
Joined
Apr 25, 2012
Messages
222
Reaction score
35
Hello, community.

I'm here with another release for RevCMS Habbo Skin.
This time, i got the "online friends". What does it? It shows your friends that are currently online!

Simply add this code to your me.php
PHP:
                                    <ul id="feed-items">
									<li class="small" id="feed-lastlogin">Laatst ingelogd op: {lastSignedIn}</li>
										<li class="small" id="feed-pending-members">De volgende vrienden zijn online: <b>

                            <?PHP
            $query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '".$_SESSION['user']['id']."'");
            $i = 0;
            while($friends = mysql_fetch_array($query))
            {
                $getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' AND online = '1' LIMIT 1");
                if(mysql_num_rows($getfriend) > 0)
                {
                    $i++;

                    $friend = mysql_fetch_array($getfriend);
echo htmlspecialchars($friend['username']).', ';
                }
            }
            if($i == 0)
                    {
                   
                        echo '<li class="small" id="feed-pending-members">  Je hebt geen vrienden online.<b><span> ';
                    }
echo '</b>'?>
                            
                       
						</b><br/></li>

So, it should look like this :

Result :

If your friends are offline :

If your friends are online :

I dont know if this already was released, anyways, have fun with it.

If you want another thing, that isn't already released for revcms, ask for it, maybe i can make it for you!

Have a nice day,

Mozilla.
 
Last edited:
Newbie Spellweaver
Joined
Apr 25, 2013
Messages
33
Reaction score
9
If you wan't me to hack your hotels, use this.
 
Junior Spellweaver
Joined
May 13, 2012
Messages
130
Reaction score
81
There's no user input, how could you hack this? It's secure.
 
Experienced Elementalist
Joined
Jun 7, 2012
Messages
288
Reaction score
250
Lol theres no exploits learn read code lol. I think that they think that you can do mysql_query("select abla lbla ") but php will never run that lol you just get that as text at your browser. And its also impossible to set SELECT * ftom blavla bla in your username because the echo is not in a query.
 
LETS REACH 666 POSTS?!!!!
Joined
Apr 24, 2013
Messages
573
Reaction score
53
Well, try then..
LOL:

U gebruikt een proxy, dus donder maar mooi op.

I dont even use a proxy

________________
This is secure code.. How could this be injected lol? There's 0%, well ur user id, but u cant modify that xD
 
Experienced Elementalist
Joined
Apr 25, 2012
Messages
222
Reaction score
35
LOL:

U gebruikt een proxy, dus donder maar mooi op.

I dont even use a proxy

________________
This is secure code.. How could this be injected lol? There's 0%, well ur user id, but u cant modify that xD

Yeah, i was making something else, proxy alert is now gone tho. I can upload the CMS again if you want? ;d
 
Junior Spellweaver
Joined
Jul 7, 2013
Messages
147
Reaction score
37
It's already released but Thanks for the re-release, I guess :love:
 
Back
Top