Admin/moder Room's

Started on the old forum in September 2007 · view the original in the archive · old links redirect here

5 replies · 705 views · started 19 years ago · 1 min read

Regz #2

Add this codin to ua online.php nd enter.php :-

$q = @mysql_query("select `var`,`val1` from `".$px.$stable."` where `mod`='room' order by val3;");
    while($droom = @mysql_fetch_array($q)) {
        $q_online = @mysql_query("SELECT * FROM `".$px.$utable."` WHERE ltime>'".intval(time()-$offline)."' AND room='".$droom['var']."' order by ltime desc;");
        $q_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE `ltime`>'".intval(time()-$offline)."' AND `room`='".$droom['var']."';");
                $sex=mysql_fetch_array(mysql_query("SELECT sex, byear FROM chat_users WHERE id=$id"));
                $age=0;
                $age=2006-$sex[1];
        if ($age>60) $age=0;
                $dcount = @mysql_fetch_array($q_count);
        if($droom['var']<>"room#" && $droom['var']<>"room#" && $droom['var']<>"room#") print '[url="room.php?id='.$id.'&pass='.$pass.'&room='.$droom['var'].'"]'.$droom['val1'].'('.$dcount['count(*)'].')[/url]
';
        else if((!$login['moder'] or $droom['var']<>"room#") && ((!$login['moder'] or $droom['var']<>"room#") && ($droom['var']<>"room#" or $sex[0]<>"zh")) && ($age<18 or $droom['var']<>"room#")) print $droom['val1'].'('.$dcount['count(*)'].')
'; 
                if($login['moder'] && $droom['var']=="room#") print '[url="room.php?id='.$id.'&pass='.$pass.'&room='.$droom['var'].'"]'.$droom['val1'].'('.$dcount['count(*)'].')[/url]
';
                if(($login['moder']&& $droom['var']=="room#") or ($droom['var']=="room#" && $sex[0]=="zh")) print '[url="room.php?id='.$id.'&pass='.$pass.'&room='.$droom['var'].'"]'.$droom['val1'].'('.$dcount['count(*)'].')[/url]
';
                if($age>18 && $droom['var']=="room#") print '[url="room.php?id='.$id.'&pass='.$pass.'&room='.$droom['var'].'"]'.$droom['val1'].'('.$dcount['count(*)'].')[/url]
';
                if ($donline['sex']=='m')  $s="";
                else                        $s="";
Regz #5

Akon same code works on ma site mate jst edit room names to there room var values wht u want nd put his code replacing the same old code in online.php nd enter.php ..

Anshul Senior · 296 posts #6

i need code to add rooms just for admins/moders, for this chat http://ultimate.madpage.com here is the script

Replace this enter.php annd online.php wit ur existing files then go to ur database select chat_settings browse it and make room4 ur Staff Room / room2 it is ur Ladies rum and / and Room3 is ur adult Room

Attachments: New_Folder.zip

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close