Phoenix senduser MUS command

Results 1 to 7 of 7
  1. #1
    Elite Member Ðavid is offline
    Member +Rank
    Mar 2009 Join Date
    AntarcticaLocation
    233Posts

    config Phoenix senduser MUS command

    I'm having trouble configuring the senduser mus command to work.
    I'm trying to make the room links work nicely but that's what's stopping me, the mus command.

    function MUS($command, $data = '')
    {
    $MUSdata = $command . chr(1) . $data;
    $socket = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
    @socket_connect($socket, "127.0.0.1", "30001");
    @socket_send($socket, $MUSdata, strlen($MUSdata), MSG_DONTROUTE);
    @socket_close($socket);
    }

    MUS("senduser", $userAccount['id'] . " " . $row['id'] );

    The configuration works because I tested it with a hotel alert but this doesn't seem to work.. Once the room page is loaded it's supposed to redirect you within the hotel, but nothing happens. Can anyone help?



  2. #2
    Member AvioraNL is offline
    MemberRank
    Feb 2013 Join Date
    48Posts

    Re: Phoenix senduser MUS command

    Did you enable in @IIS7 PHP_sockets. If you did it test or MUS is working.. with MUS("ha", 'test');

  3. #3
    Lurking around Clawed is offline
    Grand MasterRank
    Jun 2012 Join Date
    RaGEZONELocation
    785Posts

    Re: Phoenix senduser MUS command

    You do realize the mus command is for only when user is already on the client.
    If want to send users to a room from cms while there not on the client then thats easy, all you need to do is add forward id and foraward type to client source.

    Edit;
    Add something like this in your client source:
    PHP Code:
    <?php if(isset($_GET['roomid']) and !empty($_GET['roomid'])){ ?>
    "forward.type" : "2",
    "forward.id" : "<?php echo $core->clean($_GET['roomid']); ?>",
    <?php ?>
    Just setup .htaccess or web.config url to /room/id and that extra data client.php?roomid=id

    MUS is for when your already in client.

  4. #4
    Elite Member Ðavid is offline
    Member +Rank
    Mar 2009 Join Date
    AntarcticaLocation
    233Posts

    Re: Phoenix senduser MUS command

    Quote Originally Posted by Clawed View Post
    You do realize the mus command is for only when user is already on the client.
    If want to send users to a room from cms while there not on the client then thats easy, all you need to do is add forward id and foraward type to client source.

    Edit;
    Add something like this in your client source:
    PHP Code:
    <?php if(isset($_GET['roomid']) and !empty($_GET['roomid'])){ ?>
    "forward.type" : "2",
    "forward.id" : "<?php echo $core->clean($_GET['roomid']); ?>",
    <?php ?>
    Just setup .htaccess or web.config url to /room/id and that extra data client.php?roomid=id

    MUS is for when your already in client.
    That was my intention though so the user requires the client to be open in order to be forwarded.

  5. #5
    Lurking around Clawed is offline
    Grand MasterRank
    Jun 2012 Join Date
    RaGEZONELocation
    785Posts

    Re: Phoenix senduser MUS command

    Quote Originally Posted by Ðavid View Post
    That was my intention though so the user requires the client to be open in order to be forwarded.
    Yes the user has to be online to use user mus commands.

  6. #6
    Elite Member Ðavid is offline
    Member +Rank
    Mar 2009 Join Date
    AntarcticaLocation
    233Posts

    Re: Phoenix senduser MUS command

    Quote Originally Posted by Clawed View Post
    Yes the user has to be online to use user mus commands.
    I have the client open but the MUS command doesn't work, I tried it with the MUS command HA and it worked but not with senduser though

  7. #7
    Lurking around Clawed is offline
    Grand MasterRank
    Jun 2012 Join Date
    RaGEZONELocation
    785Posts

    Re: Phoenix senduser MUS command

    Try this:
    PHP Code:
    MUS("senduser""1 1"); 
    This will send user 1 to welcome room.



Advertisement