PHP & Sending MUS

Results 1 to 3 of 3
  1. #1

    PHP & Sending MUS

    What does MUS do and how do I send a MUS through PHP? I'm using RevCMS. Thank you!


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

    Re: PHP & Sending MUS

    MUS is just a open port that your emulator can receive commands from.

    It can be like :shutdown so you can shutdown your hotel via your housekeeping or give someone credits :coins $username $value

    I never coded a mus port and dont know if RevCMS has one. You can check the php files in your housekeeping to see if there is one.

  3. #3
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: PHP & Sending MUS

    PHP Code:
    public function MUS($command$data '')
        {
            
    $MUSdata $command chr(1) . $data;
            
    $socket = @socket_create(AF_INETSOCK_STREAMgetprotobyname('tcp'));
            @
    socket_connect($socket$this->CmsSetting('client_ip'), $this->CmsSetting('client_mus'));
            @
    socket_send($socket$MUSdatastrlen($MUSdata), MSG_DONTROUTE);    
            @
    socket_close($socket);
        } 
    PHP Code:
    MUS("ha","this is a hotel alert); 
    I hope this helps.



Advertisement