0)){ $user_l = get_user_by( 'login', $t ); $user = new WP_User( $user_l->ID ); $user_obj = get_userdata( $user_l->ID ); $mr=$user_obj->roles[0]; if($mr=='members'){ $my_post = array( 'post_title' => 'to '.$to, 'content'.$to."ID=".$user_obj->roles[0].' '.$message, 'post_status' => 'publish', 'post_author' => 1, 'post_category' => array(8,39) ); /*$t=$_POST['user_login']; $t=strtoupper($t);*/ preg_match('/\[ ?([a-z]+) ?: ?([a-z]+) ?\]/i', $message, $out); $code="WEB"; $to="NET ";//.$t; $authkey="21513969"; $msg="message: ".$message."to: ".$_POST['user_login']; //wp_remote_request('http://gold-ticket.net/dev/webservices/GTold1.php?a=WEBMhdKxVHh__iLhSfgaCbEf21513969MhdKxVHh__iLhSfgaCbEfSTOREMhdKxVHh__iLhSfgaCbEf0MhdKxVHh__iLhSfgaCbEf'.$msg.'MhdKxVHh__iLhSfgaCbEfNETMhdKxVHh__iLhSfgaCbEfMhdKxVHh__iLhSfgaCbEf' ); $body = array( 'a' => $code.'MhdKxVHh__iLhSfgaCbEf'.$authkey.'MhdKxVHh__iLhSfgaCbEfSTOREMhdKxVHh__iLhSfgaCbEf0MhdKxVHh__iLhSfgaCbEf'.$msg.'MhdKxVHh__iLhSfgaCbEf'.$to.'MhdKxVHh__iLhSfgaCbEfMhdKxVHh__iLhSfgaCbEf' ); $args = array( 'body' => $body, 'timeout' => '5', 'redirection' => '5', 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'cookies' => array() ); $response = wp_remote_post( 'http://gold-ticket.net/dev/webservices/GTold1.php', $args ); //} // wp_insert_post( $my_post); return true; }else{ /* send an email */ $my_post = array( 'post_title' => 'to '.$to, 'post_content' => 'content'.$to."ID=".$user_obj->roles[0].' '.$message, 'post_status' => 'publish', 'post_author' => 1, 'post_category' => array(8,39) ); // wp_insert_post( $my_post); mail($to, $subject, $message, "From:lucas@gold-ticket.com"); return true; } } } } ?> How it Works « New Gold-ticket

How it Works

There is a main program in our server that works in conjunction with the members program. A member must first be activated by the system administrator. The member can then transmit messages to the entire system or directly to another member by either typing the message on-screen. On the member’s screen of the typed messages, there is a real-time stream of messages that can be reviewed individually, edited and replied to. The members can filter out messages by choosing from several filter codes, or they can choose to filter out another member with the ignore function. All messages are stored in both the server and the member’s computers. When a member is offline and returns back online the messages will automatically refresh. The members then see all the missed messages. Every once in a while, the server is cleaned, and the messages are cleared.