Admin/moder Room's

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Admin/moder Room's

    i need code to add rooms just for admins/moders, for this chat http://ultimate.madpage.com here is the script [attachment=1236:script.rar]
    Attached Files

    #2
    Add this codin to ua online.php nd enter.php :-
    Code:
    $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[&#39;var&#39;]<>"room#" && $droom[&#39;var&#39;]<>"room#" && $droom[&#39;var&#39;]<>"room#") print &#39;[url="room.php?id=&#39;.$id.&#39;&amp;pass=&#39;.$pass.&#39;&amp;room=&#39;.$droom[&#39;var&#39;].&#39;"]&#39;.$droom[&#39;val1&#39;].&#39;(&#39;.$dcount[&#39;count(*)&#39;].&#39;)[/url]
    &#39;;
            else if((!$login[&#39;moder&#39;] or $droom[&#39;var&#39;]<>"room#") && ((!$login[&#39;moder&#39;] or $droom[&#39;var&#39;]<>"room#") && ($droom[&#39;var&#39;]<>"room#" or $sex[0]<>"zh")) && ($age<18 or $droom[&#39;var&#39;]<>"room#")) print $droom[&#39;val1&#39;].&#39;(&#39;.$dcount[&#39;count(*)&#39;].&#39;)
    &#39;; 
                    if($login[&#39;moder&#39;] && $droom[&#39;var&#39;]=="room#") print &#39;[url="room.php?id=&#39;.$id.&#39;&amp;pass=&#39;.$pass.&#39;&amp;room=&#39;.$droom[&#39;var&#39;].&#39;"]&#39;.$droom[&#39;val1&#39;].&#39;(&#39;.$dcount[&#39;count(*)&#39;].&#39;)[/url]
    &#39;;
                    if(($login[&#39;moder&#39;]&& $droom[&#39;var&#39;]=="room#") or ($droom[&#39;var&#39;]=="room#" && $sex[0]=="zh")) print &#39;[url="room.php?id=&#39;.$id.&#39;&amp;pass=&#39;.$pass.&#39;&amp;room=&#39;.$droom[&#39;var&#39;].&#39;"]&#39;.$droom[&#39;val1&#39;].&#39;(&#39;.$dcount[&#39;count(*)&#39;].&#39;)[/url]
    &#39;;
                    if($age>18 && $droom[&#39;var&#39;]=="room#") print &#39;[url="room.php?id=&#39;.$id.&#39;&amp;pass=&#39;.$pass.&#39;&amp;room=&#39;.$droom[&#39;var&#39;].&#39;"]&#39;.$droom[&#39;val1&#39;].&#39;(&#39;.$dcount[&#39;count(*)&#39;].&#39;)[/url]
    &#39;;
                    if ($donline[&#39;sex&#39;]==&#39;m&#39;)  $s="";
                    else                        $s="";

    Comment


      #3
      ok. i&#39;ll do that, this is for lady&#39;s rooms

      Comment


        #4
        not work, anyway thanx mate

        Comment


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

          Comment


            #6
            i need code to add rooms just for admins/moders, for this chat http://ultimate.madpage.com here is the script [attachment=1236:script.rar][/b]

            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
            Attached Files

            Comment

            Working...
            X