Advertisement
designbymerovingi

temp lottery multiply for all

May 18th, 2015
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 13.55 KB | None | 0 0
  1. /* start : mycred extra lev based on user role 041320151959 */
  2. /* ***************************************************** */
  3. /* easy money lottery 1 bronze multiply*/
  4. add_filter( 'mycred_run_this', 'mycred_pro_adjust_lottery_payouts', 10, 2 );
  5. function mycred_pro_adjust_lottery_payouts( $request, $mycred ) {
  6.  
  7.     // Only applicable for lottery payouts
  8.     if ( $request['ref'] != 'lottery_win' ) return $request;
  9.  
  10.     // Get the user ID
  11.     $user_id = absint( $request['user_id'] );
  12.  
  13.     // Get the lottery ID
  14.     $post_id = absint( $request['ref_id'] );
  15.  
  16.     // Act based on the lottery ID
  17.     if ( $post_id == 26822 ) {
  18.  
  19.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  20.             $request['amount'] = $request['amount'] * 2;
  21.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 1. Бронзово Членство. (You Won In The Easy Money Lottery No. 1. Bronze Membership.)';
  22.         }
  23.  
  24.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  25.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 1. Не платено Членство. (You won in the Easy Money Lottery No. 1. No Paid Membership.)';
  26.         }
  27.  
  28.     }
  29.  
  30.     elseif ( $post_id == 26823 ) {
  31.  
  32.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  33.             $request['amount'] = $request['amount'] * 2;
  34.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 2. Бронзово Членство. (You Won In The Easy Money Lottery No. 2. Bronze Membership.)';
  35.         }
  36.  
  37.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  38.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 2. Не платено Членство. (You won in the Easy Money Lottery No. 2. No Paid Membership.)';
  39.         }
  40.  
  41.     }
  42.  
  43.     elseif ( $post_id == 26824 ) {
  44.  
  45.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  46.             $request['amount'] = $request['amount'] * 2;
  47.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 3. Бронзово Членство. (You Won In The Easy Money Lottery No. 3. Bronze Membership.)';
  48.         }
  49.  
  50.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  51.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 3. Не платено Членство. (You won in the Easy Money Lottery No. 3. No Paid Membership.)';
  52.         }
  53.  
  54.     }
  55.  
  56.     elseif ( $post_id == 26825 ) {
  57.  
  58.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  59.             $request['amount'] = $request['amount'] * 2;
  60.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 4. Бронзово Членство. (You Won In The Easy Money Lottery No. 4. Bronze Membership.)';
  61.         }
  62.  
  63.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  64.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 4. Не платено Членство. (You won in the Easy Money Lottery No. 4. No Paid Membership.)';
  65.         }
  66.  
  67.     }
  68.  
  69.     elseif ( $post_id == 26826 ) {
  70.  
  71.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  72.             $request['amount'] = $request['amount'] * 2;
  73.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 5. Бронзово Членство. (You Won In The Easy Money Lottery No. 5. Bronze Membership.)';
  74.         }
  75.  
  76.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  77.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 5. Не платено Членство. (You won in the Easy Money Lottery No. 5. No Paid Membership.)';
  78.         }
  79.  
  80.     }
  81.  
  82.     elseif ( $post_id == 26827 ) {
  83.  
  84.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  85.             $request['amount'] = $request['amount'] * 2;
  86.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 6. Бронзово Членство. (You Won In The Easy Money Lottery No. 6. Bronze Membership.)';
  87.         }
  88.  
  89.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  90.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 6. Не платено Членство. (You won in the Easy Money Lottery No. 6. No Paid Membership.)';
  91.         }
  92.  
  93.     }
  94.  
  95.     elseif ( $post_id == 26828 ) {
  96.  
  97.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  98.             $request['amount'] = $request['amount'] * 2;
  99.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 7. Бронзово Членство. (You Won In The Easy Money Lottery No. 7. Bronze Membership.)';
  100.         }
  101.  
  102.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  103.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 7. Не платено Членство. (You won in the Easy Money Lottery No. 7. No Paid Membership.)';
  104.         }
  105.  
  106.     }
  107.  
  108.     elseif ( $post_id == 26829 ) {
  109.  
  110.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  111.             $request['amount'] = $request['amount'] * 2;
  112.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 8. Бронзово Членство. (You Won In The Easy Money Lottery No. 8. Bronze Membership.)';
  113.         }
  114.  
  115.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  116.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 8. Не платено Членство. (You won in the Easy Money Lottery No. 8. No Paid Membership.)';
  117.         }
  118.  
  119.     }
  120.  
  121.     elseif ( $post_id == 26830 ) {
  122.  
  123.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  124.             $request['amount'] = $request['amount'] * 2;
  125.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 9. Бронзово Членство. (You Won In The Easy Money Lottery No. 9. Bronze Membership.)';
  126.         }
  127.  
  128.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  129.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 9. Не платено Членство. (You won in the Easy Money Lottery No. 9. No Paid Membership.)';
  130.         }
  131.  
  132.     }
  133.  
  134.     elseif ( $post_id == 26831 ) {
  135.  
  136.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  137.             $request['amount'] = $request['amount'] * 2;
  138.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 10. Бронзово Членство. (You Won In The Easy Money Lottery No. 10. Bronze Membership.)';
  139.         }
  140.  
  141.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  142.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 10. Не платено Членство. (You won in the Easy Money Lottery No. 10. No Paid Membership.)';
  143.         }
  144.  
  145.     }
  146.  
  147.     elseif ( $post_id == 26832 ) {
  148.  
  149.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  150.             $request['amount'] = $request['amount'] * 2;
  151.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 11. Бронзово Членство. (You Won In The Easy Money Lottery No. 11. Bronze Membership.)';
  152.         }
  153.  
  154.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  155.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 11. Не платено Членство. (You won in the Easy Money Lottery No. 11. No Paid Membership.';
  156.         }
  157.  
  158.     }
  159.  
  160.     elseif ( $post_id == 26833 ) {
  161.  
  162.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  163.             $request['amount'] = $request['amount'] * 2;
  164.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 12. Бронзово Членство. (You Won In The Easy Money Lottery No. 12. Bronze Membership.)';
  165.         }
  166.  
  167.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  168.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 12. Не платено Членство. (You won in the Easy Money Lottery No. 12. No Paid Membership.)';
  169.         }
  170.  
  171.     }
  172.  
  173.     elseif ( $post_id == 26834 ) {
  174.  
  175.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ){
  176.             $request['amount'] = $request['amount'] * 2;
  177.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 13. Бронзово Членство. (You Won In The Easy Money Lottery No. 13. Bronze Membership.)';
  178.         }
  179.  
  180.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  181.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 13. Не платено Членство. (You won in the Easy Money Lottery No. 13. No Paid Membership.)';
  182.         }
  183.  
  184.     }
  185.  
  186.     elseif ( $post_id == 26835 ) {
  187.  
  188.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  189.             $request['amount'] = $request['amount'] * 2;
  190.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 14. Бронзово Членство. (You Won In The Easy Money Lottery No. 14. Bronze Membership.)';
  191.         }
  192.  
  193.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  194.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 14. Не платено Членство. (You won in the Easy Money Lottery No. 14. No Paid Membership.)';
  195.         }
  196.  
  197.     }
  198.  
  199.     elseif ( $post_id == 26836 ) {
  200.  
  201.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  202.             $request['amount'] = $request['amount'] * 2;
  203.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 15. Бронзово Членство. (You Won In The Easy Money Lottery No. 15. Bronze Membership.)';
  204.         }
  205.  
  206.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  207.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 15. Не платено Членство. (You won in the Easy Money Lottery No. 15. No Paid Membership.)';
  208.         }
  209.  
  210.     }
  211.  
  212.     elseif ( $post_id == 26837 ) {
  213.  
  214.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  215.             $request['amount'] = $request['amount'] * 2;
  216.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 16. Бронзово Членство. (You Won In The Easy Money Lottery No. 16. Bronze Membership.)';
  217.         }
  218.  
  219.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  220.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 16. Не платено Членство. (You won in the Easy Money Lottery No. 16. No Paid Membership.)';
  221.         }
  222.  
  223.     }
  224.  
  225.     elseif ( $post_id == 26838 ) {
  226.  
  227.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  228.             $request['amount'] = $request['amount'] * 2;
  229.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 17. Бронзово Членство. (You Won In The Easy Money Lottery No. 17. Bronze Membership.)';
  230.         }
  231.  
  232.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  233.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 17. Не платено Членство. (You won in the Easy Money Lottery No. 17. No Paid Membership.)';
  234.         }
  235.  
  236.     }
  237.  
  238.     elseif ( $post_id == 26839 ) {
  239.  
  240.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  241.             $request['amount'] = $request['amount'] * 2;
  242.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 18. Бронзово Членство. (You Won In The Easy Money Lottery No. 18. Bronze Membership.)';
  243.         }
  244.  
  245.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  246.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 18. Не платено Членство. (You won in the Easy Money Lottery No. 18. No Paid Membership.)';
  247.         }
  248.  
  249.     }
  250.  
  251.     elseif ( $post_id == 26840 ) {
  252.  
  253.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  254.             $request['amount'] = $request['amount'] * 2;
  255.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 19. Бронзово Членство. (You Won In The Easy Money Lottery No. 19. Bronze Membership.)';
  256.         }
  257.  
  258.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  259.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 19. Не платено Членство. (You won in the Easy Money Lottery No. 19. No Paid Membership.)';
  260.         }
  261.  
  262.     }
  263.  
  264.     elseif ( $post_id == 26841 ) {
  265.  
  266.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  267.             $request['amount'] = $request['amount'] * 2;
  268.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 20. Бронзово Членство. (You Won In The Easy Money Lottery No. 20. Bronze Membership.)';
  269.         }
  270.  
  271.         elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  272.             $request['entry']  = 'Вие Спечелихте в Лотария Лесни Пари № 20. Не платено Членство. (You won in the Easy Money Lottery No. 20. No Paid Membership.)';
  273.         }
  274.  
  275.     }
  276.  
  277.     elseif ( $post_id == 27414 ) {
  278.  
  279.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  280.             $request['entry']  = 'Вие Спечелихте в Неделен Бустер. (You Won The Sunday Booster.)';
  281.         }
  282.  
  283.     }
  284.  
  285.     elseif ( $post_id == 27216 ) {
  286.  
  287.         if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
  288.             $request['entry']  = 'Вие Спечелихте в Супер Числова Лотария. (You Won In The Super Numbers Lottery.)';
  289.         }
  290.  
  291.     }
  292.  
  293.     elseif ( $post_id == 27893 ) {
  294.  
  295.         if ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
  296.             $request['entry']  = 'Вие Спечелихте 1 Месец Бонус Членство. (You Won 1 Month Bonus Membership.)';
  297.         }
  298.  
  299.     }
  300.  
  301.     return $request;
  302.  
  303. }
  304. /* end : mycred extra lev based on user role 041320151959 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement