/******************************************************* * COPYRIGHT OSI CODES - PHP Live! *******************************************************/ session_start() ; $l = ( isset( $HTTP_GET_VARS['l'] ) ) ? $HTTP_GET_VARS['l'] : "" ; $x = ( isset( $HTTP_GET_VARS['x'] ) ) ? $HTTP_GET_VARS['x'] : "" ; $action = ( isset( $HTTP_GET_VARS['action'] ) ) ? $HTTP_GET_VARS['action'] : "" ; $sessionid = ( isset( $HTTP_GET_VARS['sessionid'] ) ) ? $HTTP_GET_VARS['sessionid'] : "" ; $requestid = ( isset( $HTTP_GET_VARS['requestid'] ) ) ? $HTTP_GET_VARS['requestid'] : "" ; $userid = ( isset( $HTTP_GET_VARS['userid'] ) ) ? $HTTP_GET_VARS['userid'] : "" ; $ip = ( isset( $HTTP_GET_VARS['ip'] ) ) ? $HTTP_GET_VARS['ip'] : "" ; $messageid = ( isset( $HTTP_GET_VARS['messageid'] ) ) ? $HTTP_GET_VARS['messageid'] : "" ; $sid = ( isset( $HTTP_GET_VARS['sid'] ) ) ? $HTTP_GET_VARS['sid'] : "" ; $page = ( isset( $HTTP_GET_VARS['page'] ) ) ? $HTTP_GET_VARS['page'] : "" ; $deptid = ( isset( $HTTP_GET_VARS['deptid'] ) ) ? $HTTP_GET_VARS['deptid'] : 0 ; $surveyid = ( isset( $HTTP_GET_VARS['surveyid'] ) ) ? $HTTP_GET_VARS['surveyid'] : "" ; $display_width = ( isset( $HTTP_GET_VARS['display_width'] ) ) ? $HTTP_GET_VARS['display_width'] : "" ; $display_height = ( isset( $HTTP_GET_VARS['display_height'] ) ) ? $HTTP_GET_VARS['display_height'] : "" ; $datetime = ( isset( $HTTP_GET_VARS['datetime'] ) ) ? $HTTP_GET_VARS['datetime'] : "" ; $method = ( isset( $HTTP_GET_VARS['method'] ) ) ? $HTTP_GET_VARS['method'] : 0 ; $op2op = ( isset( $HTTP_GET_VARS['op2op'] ) ) ? $HTTP_GET_VARS['op2op'] : "" ; // avoid error caused by the "#" char in the page URL $page = urlencode( $page ) ; include_once( "./API/Util_Dir.php" ) ; if ( !Util_DIR_CheckDir( ".", $l ) ) { if ( preg_match( "/(chatsupportlive.com)|(osicode.com)|(osicodes.com)|(osicodes.net)|(phplivesupport.com)/", $HTTP_SERVER_VARS['SERVER_NAME'] ) ) HEADER( "location: http://www.osicode.com/ad.php" ) ; else print "[Configuration Error: config files not found!] Exiting... [request.php]" ; exit ; } include_once("./web/conf-init.php") ; include_once("$DOCUMENT_ROOT/web/$l/$l-conf-init.php") ; include_once("$DOCUMENT_ROOT/system.php") ; include_once("$DOCUMENT_ROOT/lang_packs/$LANG_PACK.php") ; ?> // initialize if ( !isset( $HTTP_SESSION_VARS['session_chat'] ) ) { session_register( "session_chat" ) ; $session_chat = ARRAY() ; $HTTP_SESSION_VARS['session_chat'] = ARRAY() ; } ?> // functions ?> // conditions // check to see if chat is initiated by admin... if so, then take them to the initiated // chat, not to requesting chat. $remote_addr = $HTTP_SERVER_VARS['REMOTE_ADDR'] ; if ( ( file_exists( "$DOCUMENT_ROOT/web/chatrequests/$remote_addr.scr" ) || file_exists( "$DOCUMENT_ROOT/web/chatrequests/$remote_addr.pop" ) ) && $remote_addr ) { $action = "initiate_accept" ; } ?>