addSErver('/var/run/memcached.sock', 0); $Re = new Redis(); $Re->connect('/var/run/redis/redis.sock'); ?> addServer('/var/run/memcached.sock', 0); $Redis = new Redis(); $Redis->connect('/var/run/redis/redis.sock'); class Push { private $channel; function __construct() { global $Redis; $this->channel = 'ANIZONE_GLOBAL'; $this->redis = &$Redis; } function channel($channel) { $this->channel = $channel; } function trigger($event, $data, $channel = null) { if($channel == null) $channel = $this->channel; $json['channel'] = $channel; $json['data']['event'] = $event; $json['data']['data'] = $data; $json = json_encode($json); $this->redis->publish('juggernaut', $json); } } class PushWing { function queue($phone, $subject, $contents, $url, $timestamp = null) { if($timestamp === null) $timestamp = time(); $odb = &oDB::getInstance(); $contents = str_replace( "
", '\n', $contents ); $contents = str_replace( "
", '\n', $contents ); $contents = str_replace( "
", '\n', $contents ); $contents = str_replace( "

", '\n', $contents ); $contents = strip_tags($contents); $odb->insert('anizone_push_queue', ['phone' => $phone, 'subject' => $subject, 'contents' => $contents, 'url' => $url, 'timestamp' => $timestamp]); } function getGroupFavPhones($group_srl, $except_member_srl = []) { $oCacheHandler = CacheHandler::getInstance('object'); $cache_key = 'anizone:group_fav_phones_cache:'.$group_srl; $output = $oCacheHandler->get($cache_key); if(!$output) { $output = []; $odb = &oDB::getInstance(); $list = $odb->select('xe_member_fav', ['target_srl' => $group_srl]); $oMemberModel = &getModel('member'); foreach($list as $val) { $mem = $oMemberModel->getMemberInfoByMemberSrl($val->member_srl); if(in_array('즐겨찾기한 그룹의 새로운 글 작성', $mem->push_trigger) && is_array($mem->phone)) $output[] = implode('', $mem->phone); } $oCacheHandler->put($cache_key, $output); } foreach($except_member_srl as $except) { if(($key = array_search($except, $output)) !== false) { unset($messages[$key]); } } $phone = implode(',', $output); return $phone; } function clearGroupFavPhoneCache($group_srl) { $oCacheHandler = CacheHandler::getInstance('object'); $cache_key = 'anizone:group_fav_phones_cache:'.$group_srl; $oCacheHandler->delete($cache_key); } } ?> 자유 게시판

  1. 어이 요하임 뢰프 들어라

    Date2018.06.28 ByPrimary Views183 Votes0
    Read More
  2. ????????

    Date2018.06.28 By거냥거냥 Views125 Votes0
    Read More
  3. 스웨덴과 멕시코전에서 이렇게했어야했는데...

    Date2018.06.28 By운명의DESTINY Views141 Votes0
    Read More
  4. 아 통쾌하다 ㅋㅋㅋ

    Date2018.06.28 By운명의DESTINY Views129 Votes0
    Read More
  5. 월드컵 독일전 선발 라인업

    Date2018.06.27 ByPrimary Views437 Votes0
    Read More
  6. 예전에 시험본거 결과가 나왔어여

    Date2018.06.27 ByResurrection Views188 Votes1
    Read More
  7. 노트북 셀프 봉인..

    Date2018.06.27 By너프된꼬마 Views149 Votes0
    Read More
  8. 둘기님 야구 보러 가셨다면서요

    Date2018.06.26 ByResurrection Views127 Votes0
    Read More
  9. 아시아의 떼껄룩

    Date2018.06.26 ByPrimary Views130 Votes0
    Read More
  10. 면접보고 왔습니다~ ㅎㅎ

    Date2018.06.25 By1+1=2 Views147 Votes0
    Read More
  11. 오랜만에 들렸는데

    Date2018.06.25 ByKyonpachi Views176 Votes0
    Read More
  12. KBO와 K리그에 대해 궁금한점

    Date2018.06.25 ByBC둘기 Views171 Votes0
    Read More
  13. 기성용 독일전 결장 확정 2주 진단

    Date2018.06.24 ByPrimary Views113 Votes0
    Read More
  14. 대전에서 비올때 남자둘이 할거 추천받습니다

    Date2018.06.24 ByBC둘기 Views1180 Votes0
    Read More
  15. 엌ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ독일ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ

    Date2018.06.24 ByPrimary Views138 Votes0
    Read More
  16. 이제와서 이런 푸념을 놓는건 그렇지만 var판독...

    Date2018.06.24 By운명의DESTINY Views134 Votes0
    Read More
  17. 멕시코전 후기

    Date2018.06.24 ByPrimary Views150 Votes0
    Read More
  18. 장현수는 진짜...

    Date2018.06.24 By운명의DESTINY Views183 Votes0
    Read More
  19. 월드컵 멕시코전 선발라인업

    Date2018.06.23 ByPrimary Views253 Votes0
    Read More
  20. 대전 날씨 근황

    Date2018.06.23 ByBC둘기 Views193 Votes0
    Read More
  21. 취직 면접보러가요~~ (>_<)/

    Date2018.06.23 By1+1=2 Views251 Votes0
    Read More
  22. 애니존 붐은 온다

    Date2018.06.23 By리파 Views197 Votes0
    Read More
  23. 브라질도 이변의 희생양이 될려나 싶었는데

    Date2018.06.22 ByPrimary Views119 Votes0
    Read More
  24. 메시 16강 진출 실패시 국대 은퇴

    Date2018.06.22 ByPrimary Views125 Votes0
    Read More
  25. 간호사.. 남자 화장실에서..ㅎㅎ

    Date2018.06.22 By최부장네아랫집 Views139 Votes0
    Read More
  26. 대학원 가서 좋긴 좋은데

    Date2018.06.21 ByResurrection Views222 Votes0
    Read More
  27. Anizone 안녕 password 바꿀수 없는 user 여러분

    Date2018.06.21 By거냥거냥 Views188 Votes0
    Read More
  28. 오늘자로 호날두가 깬 기록

    Date2018.06.20 ByPrimary Views150 Votes0
    Read More
  29. 자전거 전용 주차장?ㄸㄸ

    Date2018.06.20 By최부장네아랫집 Views264 Votes0
    Read More
  30. anizone 사용자 안녕

    Date2018.06.20 By쿠루루 Views255 Votes0
    Read More
목록
Board Pagination Prev 1 ... 17 18 19 20 21 22 23 24 25 26 ... 365 Next
/ 365
서버에 요청 중입니다. 잠시만 기다려 주십시오...