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. 그렇다 아침이다

    Date2014.09.30 By거냥거냥 Views5347 Votes1
    Read More
  2. 은동님

    Date2014.09.30 Bynaitre/네트르 Views6152 Votes0
    Read More
  3. 아픈건 최고시다..

    Date2014.09.30 By카스오 Views6034 Votes0
    Read More
  4. 헛 뭐야 수정내역이 없음?

    Date2014.09.30 By거냥거냥 Views6031 Votes1
    Read More
  5. 담배 가격오른다니

    Date2014.09.30 By리파 Views5857 Votes0
    Read More
  6. 점-심-시-간

    Date2014.09.30 By거냥거냥 Views4617 Votes1
    Read More
  7. 콘플레이크

    Date2014.09.30 By하네세 Views5506 Votes0
    Read More
  8. it덕후님들

    Date2014.09.30 Bynaitre/네트르 Views5308 Votes0
    Read More
  9. 웹키퍼 개객끼

    Date2014.09.30 Bynaitre/네트르 Views5250 Votes0
    Read More
  10. 두세달 써보니깐

    Date2014.09.30 By하네세 Views4841 Votes1
    Read More
  11. 박주영 알샤밥

    Date2014.09.30 By독일귀족찰스 Views5419 Votes0
    Read More
  12. 쿼드 모니터를 기획하고잇습니다

    Date2014.09.30 Bynaitre/네트르 Views5777 Votes0
    Read More
  13. 오늘은 엠블렘을 열어야지

    Date2014.09.30 By銀童 Views4908 Votes0
    Read More
  14. 아침드라마 개막장이네

    Date2014.09.30 By銀童 Views5465 Votes0
    Read More
  15. 화석이 나타났습니다.

    Date2014.09.30 By천랑성 Views5860 Votes0
    Read More
  16. 교수님.....

    Date2014.09.30 By사츠a Views4985 Votes0
    Read More
  17. 굿모닝!

    Date2014.09.30 By아이리 Views4510 Votes0
    Read More
  18. 아는사람 다아는 거

    Date2014.09.30 Bynaitre/네트르 Views4629 Votes0
    Read More
  19. 아이콘 보이는 박스

    Date2014.09.30 By아이리 Views4815 Votes0
    Read More
  20. 리뉴얼 고질병

    Date2014.09.30 Bynaitre/네트르 Views4931 Votes0
    Read More
  21. 몇살이 좋아?

    Date2014.09.30 Bynaitre/네트르 Views5422 Votes0
    Read More
  22. 안녕하세요 작고 어린 하루디입니다.

    Date2014.09.30 By하루디13 Views4142 Votes0
    Read More
  23. 10윌15일

    Date2014.09.30 Bynaitre/네트르 Views4826 Votes0
    Read More
  24. 아까 말한 바로 그 드라마

    Date2014.09.30 By銀童 Views3873 Votes0
    Read More
  25. 나 당분간 유럽 감...

    Date2014.09.30 By미나카미 Views4679 Votes0
    Read More
  26. 화석은 살아잇다

    Date2014.09.30 By쿠루루 Views4767 Votes0
    Read More
  27. 차단 기능 추가 예정.

    Date2014.09.30 By銀童 Views4365 Votes0
    Read More
  28. 애니존 터진줄암

    Date2014.09.30 By카가리비 Views4036 Votes0
    Read More
  29. 엠블렘이다!!!!!!!!!!

    Date2014.09.30 By아이리 Views4269 Votes0
    Read More
  30. 살려줘

    Date2014.09.30 By『ValentinE』 Views4515 Votes0
    Read More
목록
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 365 Next
/ 365
서버에 요청 중입니다. 잠시만 기다려 주십시오...