Advertisement
plas71k

@nug => phplockit file 1 => decoded

May 13th, 2013
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 15.34 KB | None | 0 0
  1. <?php
  2. /*
  3. * @ Pirate-Sky Crew :: PHP Decoder v2
  4. * @ Author: pLa$71k
  5. * @ Web: http://pirate-sky.com
  6. * @ Pirate-Sky Crew (c) 2008 - 2013
  7. */
  8.  
  9. function bersih_harga($harga)
  10. {
  11.     $harga = preg_replace('/\D/', '', $harga);
  12.     return $harga;
  13. }
  14. function invoice_id()
  15. {
  16.     $blogtime = current_time('mysql');
  17.     list($today_year, $today_month, $today_day, $hour, $minute, $second) = split('([^0-9])', $blogtime);
  18.     echo $today_month;
  19.     echo $today_day;
  20.     echo '/';
  21.     echo of_get_option('nama_toko');
  22.     echo '/';
  23.     echo $hour;
  24.     echo $minute;
  25.     echo $second;
  26. }
  27. function shorttitle_fastestwp()
  28. {
  29.     global $post;
  30.     $the_title = $post->post_title;
  31.     $getlength = strlen($the_title);
  32.     $thelength = 35;
  33.     echo substr($the_title, 0, $thelength);
  34.     if ($getlength > $thelength);
  35. }
  36. function shorttitle2_fastestwp()
  37. {
  38.     global $post;
  39.     $the_title = $post->post_title;
  40.     $getlength = strlen($the_title);
  41.     $thelength = 60;
  42.     echo substr($the_title, 0, $thelength);
  43.     if ($getlength > $thelength);
  44. }
  45. function harga_coret_fastestwp()
  46. {
  47.     global $post;
  48.     if (get_post_meta($post->ID, "harga_diskon", true)) {
  49.         $harga = get_post_meta($post->ID, "harga", true);
  50.         echo $harga;
  51.     }
  52. }
  53. echo '';
  54. function pilihan_fastestwp()
  55. {
  56.     global $post;
  57.     if (get_post_meta($post->ID, "pilihan", true)) {
  58.         echo '';
  59.         if (get_post_meta($post->ID, "pilihan1", true)) {
  60.             echo '<tr><td >';
  61.             echo get_post_meta($post->ID, "pilihan1", true);
  62.             echo '</td><td>Rp ';
  63.             echo get_post_meta($post->ID, "harga_pilihan1", true);
  64.             echo '</td></tr>
  65. ';
  66.         }
  67.         echo '
  68. ';
  69.         if (get_post_meta($post->ID, "pilihan2", true)) {
  70.             echo '<tr><td >';
  71.             echo get_post_meta($post->ID, "pilihan2", true);
  72.             echo '</td><td>Rp ';
  73.             echo get_post_meta($post->ID, "harga_pilihan2", true);
  74.             echo '</td></tr>
  75. ';
  76.         }
  77.         echo '
  78. ';
  79.         if (get_post_meta($post->ID, "pilihan3", true)) {
  80.             echo '<tr><td >';
  81.             echo get_post_meta($post->ID, "pilihan3", true);
  82.             echo '</td><td>Rp ';
  83.             echo get_post_meta($post->ID, "harga_pilihan3", true);
  84.             echo '</td></tr>
  85. ';
  86.         }
  87.         echo '
  88. ';
  89.         if (get_post_meta($post->ID, "pilihan4", true)) {
  90.             echo '<tr><td >';
  91.             echo get_post_meta($post->ID, "pilihan4", true);
  92.             echo '</td><td>Rp ';
  93.             echo get_post_meta($post->ID, "harga_pilihan4", true);
  94.             echo '</td></tr>
  95. ';
  96.         }
  97.         echo '
  98. ';
  99.         if (get_post_meta($post->ID, "pilihan5", true)) {
  100.             echo '<tr><td >';
  101.             echo get_post_meta($post->ID, "pilihan5", true);
  102.             echo '</td><td>Rp ';
  103.             echo get_post_meta($post->ID, "harga_pilihan5", true);
  104.             echo '</td></tr>
  105. ';
  106.         }
  107.         echo '
  108. ';
  109.         if (get_post_meta($post->ID, "pilihan6", true)) {
  110.             echo '<tr><td >';
  111.             echo get_post_meta($post->ID, "pilihan6", true);
  112.             echo '</td><td>Rp ';
  113.             echo get_post_meta($post->ID, "harga_pilihan6", true);
  114.             echo '</td></tr>
  115. ';
  116.         }
  117.         echo '
  118. ';
  119.     } else {
  120.         ;
  121.         echo '<tr><td >Harga </td><td>Rp ';
  122.         harga_fastestwp();
  123.         echo ' <span class="coret">';
  124.         harga_coret_fastestwp();
  125.         echo '</span></td></tr>
  126. ';
  127.     }
  128. }
  129. echo '';
  130. function get_harga_fastestwp($post)
  131. {
  132.     $harga = '(hubungi cs)';
  133.     if (get_post_meta($post->ID, "harga_diskon", true)) {
  134.         $harga = get_post_meta($post->ID, "harga_diskon", true);
  135.     } elseif (get_post_meta($post->ID, "harga", true)) {
  136.         $harga = get_post_meta($post->ID, "harga", true);
  137.     }
  138.     return $harga;
  139. }
  140. function harga_fastestwp()
  141. {
  142.     global $post;
  143.     $harga = get_harga_fastestwp($post);
  144.     echo $harga;
  145. }
  146. function harga_input_fastestwp()
  147. {
  148.     global $post;
  149.     $harga = get_harga_fastestwp($post);
  150.     $harga = str_replace(',', '', $harga);
  151.     $harga = str_replace('.', '', $harga);
  152.     echo $harga;
  153. }
  154. echo '';
  155. function small_thumb_fastestwp()
  156. {
  157.     if (has_post_thumbnail()) {
  158.         $image_id  = get_post_thumbnail_id();
  159.         $image_url = wp_get_attachment_image_src($image_id, 'medium', true);
  160.         $first_img = $image_url[0];
  161.         $img_url   = $first_img;
  162.         $image     = aq_resize($img_url, 75, 75, false);
  163.         echo '<img src="';
  164.         echo $image[0];
  165.         echo '" alt="';
  166.         the_title();
  167.         echo '" width="';
  168.         echo $image[1];
  169.         echo '" height="';
  170.         echo $image[2];
  171.         echo '" />
  172. ';
  173.     } else {
  174.         echo '';
  175.         global $post, $posts;
  176.         $first_img = '';
  177.         ob_start();
  178.         ob_end_clean();
  179.         $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
  180.         if (isset($matches[1][0])) {
  181.             $first_img = $matches[1][0];
  182.             $img_url   = $first_img;
  183.             $image     = aq_resize($img_url, 75, 75, false);
  184.             echo '<img src="';
  185.             echo $image[0];
  186.             echo '" alt="';
  187.             the_title();
  188.             echo '" width="';
  189.             echo $image[1];
  190.             echo '" height="';
  191.             echo $image[2];
  192.             echo '" />
  193. ';
  194.         } else {
  195.             echo '<img src="';
  196.             echo get_template_directory_uri();
  197.             echo '/images/thumb75.png" alt="';
  198.             the_title();
  199.             echo '" width="75" height="75" title="triumph" />
  200. ';
  201.         }
  202.     }
  203. }
  204. echo '';
  205. function thumb_fastestwp()
  206. {
  207.     if (has_post_thumbnail()) {
  208.         $image_id  = get_post_thumbnail_id();
  209.         $image_url = wp_get_attachment_image_src($image_id, 'medium', true);
  210.         $first_img = $image_url[0];
  211.         $img_url   = $first_img;
  212.         $image     = aq_resize($img_url, 150, 150, false);
  213.         echo '<img src="';
  214.         echo $image[0];
  215.         echo '" alt="';
  216.         the_title();
  217.         echo '" width="';
  218.         echo $image[1];
  219.         echo '" height="';
  220.         echo $image[2];
  221.         echo '" />
  222. ';
  223.     } else {
  224.         echo '';
  225.         global $post, $posts;
  226.         $first_img = '';
  227.         ob_start();
  228.         ob_end_clean();
  229.         $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
  230.         if (isset($matches[1][0])) {
  231.             $first_img = $matches[1][0];
  232.             $img_url   = $first_img;
  233.             $image     = aq_resize($img_url, 150, 150, false);
  234.             echo '<img src="';
  235.             echo $image[0];
  236.             echo '" alt="';
  237.             the_title();
  238.             echo '" width="';
  239.             echo $image[1];
  240.             echo '" height="';
  241.             echo $image[2];
  242.             echo '" />
  243. ';
  244.         } else {
  245.             echo '<img src="';
  246.             echo get_template_directory_uri();
  247.             echo '/images/thumb150.png" alt="';
  248.             the_title();
  249.             echo '" width="150" height="150" title="triumph" />
  250. ';
  251.         }
  252.     }
  253. }
  254. echo '';
  255. function big_thumb_fastestwp()
  256. {
  257.     if (has_post_thumbnail()) {
  258.         $image_id  = get_post_thumbnail_id();
  259.         $image_url = wp_get_attachment_image_src($image_id, 'medium', true);
  260.         $first_img = $image_url[0];
  261.         $img_url   = $first_img;
  262.         $image     = aq_resize($img_url, 300, 300, false);
  263.         echo '<img src="';
  264.         echo $image[0];
  265.         echo '" alt="';
  266.         the_title();
  267.         echo '" width="';
  268.         echo $image[1];
  269.         echo '" height="';
  270.         echo $image[2];
  271.         echo '" />
  272. ';
  273.     } else {
  274.         echo '';
  275.         global $post, $posts;
  276.         $first_img = '';
  277.         ob_start();
  278.         ob_end_clean();
  279.         $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
  280.         if (isset($matches[1][0])) {
  281.             $first_img = $matches[1][0];
  282.             $img_url   = $first_img;
  283.             $image     = aq_resize($img_url, 300, 300, false);
  284.             echo '<img src="';
  285.             echo $image[0];
  286.             echo '" alt="';
  287.             the_title();
  288.             echo '" width="';
  289.             echo $image[1];
  290.             echo '" height="';
  291.             echo $image[2];
  292.             echo '" />
  293. ';
  294.         } else {
  295.             echo '<img src="';
  296.             echo get_template_directory_uri();
  297.             echo '/images/thumb300.png" alt="';
  298.             the_title();
  299.             echo '" width="300" height="300" title="triumph" />
  300. ';
  301.         }
  302.     }
  303. }
  304. echo '';
  305. function label_fastestwp()
  306. {
  307.     global $post;
  308.     if (get_post_meta($post->ID, "habis", true)) {
  309.         echo '<div class="minimarket-lable"><img src="';
  310.         echo get_template_directory_uri();
  311.         echo '/images/habis.png" alt="habis"  width="75" height="75" /></div>
  312. ';
  313.     } else if (get_post_meta($post->ID, "label", true) == 'sale') {
  314.         echo ' <div class="minimarket-lable"><img src="';
  315.         echo get_template_directory_uri();
  316.         echo '/images/sale.png" alt="sale"  width="75" height="75" /></div>
  317. ';
  318.     } else if (get_post_meta($post->ID, "label", true) == 'best') {
  319.         echo ' <div class="minimarket-lable"><img src="';
  320.         echo get_template_directory_uri();
  321.         echo '/images/best.png" alt="best"  width="75" height="75" /></div>
  322. ';
  323.     } else if (get_post_meta($post->ID, "label", true) == 'new') {
  324.         echo ' <div class="minimarket-lable"><img src="';
  325.         echo get_template_directory_uri();
  326.         echo '/images/new.png" alt="limited"  width="75" height="75" /></div>
  327. ';
  328.     } else if (get_post_meta($post->ID, "label", true) == 'limited') {
  329.         echo ' <div class="minimarket-lable"><img src="';
  330.         echo get_template_directory_uri();
  331.         echo '/images/limited.png" alt="limited"  width="75" height="75" /></div>
  332. ';
  333.     } else if (get_post_meta($post->ID, "label", true) == 'preorder') {
  334.         echo ' <div class="minimarket-lable"><img src="';
  335.         echo get_template_directory_uri();
  336.         echo '/images/preorder.png" alt="limited"  width="75" height="75" /></div>
  337. ';
  338.     }
  339. }
  340. echo '';
  341. function buynow_fastestwp()
  342. {
  343.     global $post;
  344.     if (get_post_meta($post->ID, "habis", $single = true)) {
  345.         echo '<div class="habis">habis</div>
  346.  
  347. ';
  348.     } else if (get_post_meta($post->ID, "pilihan", $single = true)) {
  349.         echo '<a href="';
  350.         the_permalink();
  351.         echo '"><span class="tombolkeranjang"></span></a>
  352. <button data-rel="#form-order-';
  353.         the_ID();
  354.         echo '" class="small beli blue" >Beli</button>
  355.  
  356. ';
  357.     } else if (of_get_option('button_order_act') == '1') {
  358.         echo '<a href="';
  359.         the_permalink();
  360.         echo '"><span class="tombolkeranjang"></span></a>
  361. <button data-rel="#form-order-';
  362.         the_ID();
  363.         echo '" class="small beli blue" >Beli</button>
  364.  
  365. ';
  366.     } else if (of_get_option('button_order_act') == '0') {
  367.         echo '<span class="tombol-left"><form method="post" action="';
  368.         the_permalink();
  369.         echo '" class="jcart">
  370. <input type="hidden" name="jcartToken" value="';
  371.         echo $_SESSION['jcartToken'];
  372.         echo '" />
  373. <input type="hidden" name="my-item-id" value="';
  374.         the_ID();
  375.         echo ' " />
  376. <input type="hidden" name="my-item-name" value="';
  377.         the_title();
  378.         echo '" />
  379. <input type="hidden" name="my-item-price" value="';
  380.         harga_input_fastestwp();
  381.         echo '" />
  382. <input type="hidden" name="my-item-berat" value="';
  383.         echo get_post_meta($post->ID, "berat", $single = true);
  384.         echo '" />
  385. <input type="hidden" name="my-item-url" value="';
  386.         the_permalink();
  387.         echo '" />
  388. <input type="hidden" name="my-item-qty" value="1" />
  389. <button type="submit" name="my-add-button" class="small beli blue"> + </button>
  390. </form></span>
  391. <button data-rel="#form-order-';
  392.         the_ID();
  393.         echo '" class="small beli blue" >Beli</button>
  394. ';
  395.     }
  396. }
  397. echo '';
  398. function buynow_single_fastestwp()
  399. {
  400.     global $post;
  401.     if (get_post_meta($post->ID, "habis", true)) {
  402.         echo '<div class="habis-single">Stok habis</div>
  403. ';
  404.     } else if (of_get_option('button_order_act') == '1') {
  405.         echo '<a class="large beli blue" href="';
  406.         echo of_get_option('order_page');
  407.         echo '" title="';
  408.         the_title();
  409.         echo '" target="_blank">Beli Sekarang</a>
  410. ';
  411.     } else if (get_post_meta($post->ID, "dropship", true)) {
  412.         echo '<a class="large beli blue" href="';
  413.         echo of_get_option('order_page');
  414.         echo '" title="';
  415.         the_title();
  416.         echo '" target="_blank">Beli Sekarang</a>
  417. ';
  418.     } else if (of_get_option('button_order_act') == '0') {
  419.         echo '<input type="submit" name="my-add-button" value="Tambah Ke Keranjang" class="large beli blue" />
  420.  
  421. ';
  422.     }
  423. }
  424. echo '';
  425. function pilihan_single_fastestwp()
  426. {
  427.     global $post;
  428.     if (get_post_meta($post->ID, "habis", $single = true)) {
  429.         echo '';
  430.     } else {
  431.         ;
  432.         echo '
  433. ';
  434.         if (get_post_meta($post->ID, "pilihan", true)) {
  435.             echo '<select id="my_select" name="my_select_box">
  436. <option value="">- Pilihan -</option>
  437. ';
  438.             if (get_post_meta($post->ID, "pilihan1", true)) {
  439.                 echo '<option value="';
  440.                 echo bersih_harga(get_post_meta($post->ID, "harga_pilihan1", true));
  441.                 echo '">
  442. ';
  443.                 echo get_post_meta($post->ID, "pilihan1", true);
  444.                 echo '</option>';
  445.             }
  446.             echo '
  447. ';
  448.             if (get_post_meta($post->ID, "pilihan2", true)) {
  449.                 echo '<option value="';
  450.                 echo bersih_harga(get_post_meta($post->ID, "harga_pilihan2", true));
  451.                 echo '">
  452. ';
  453.                 echo get_post_meta($post->ID, "pilihan2", true);
  454.                 echo '</option>';
  455.             }
  456.             echo '
  457. ';
  458.             if (get_post_meta($post->ID, "pilihan3", true)) {
  459.                 echo '<option value="';
  460.                 echo bersih_harga(get_post_meta($post->ID, "harga_pilihan3", true));
  461.                 echo '">
  462. ';
  463.                 echo get_post_meta($post->ID, "pilihan3", true);
  464.                 echo '</option>';
  465.             }
  466.             echo '
  467. ';
  468.             if (get_post_meta($post->ID, "pilihan4", true)) {
  469.                 echo '<option value="';
  470.                 echo bersih_harga(get_post_meta($post->ID, "harga_pilihan4", true));
  471.                 echo '">
  472. ';
  473.                 echo get_post_meta($post->ID, "pilihan4", true);
  474.                 echo '</option>';
  475.             }
  476.             echo '
  477. ';
  478.             if (get_post_meta($post->ID, "pilihan5", true)) {
  479.                 echo '<option value="';
  480.                 echo bersih_harga(get_post_meta($post->ID, "harga_pilihan5", true));
  481.                 echo '">
  482. ';
  483.                 echo get_post_meta($post->ID, "pilihan5", true);
  484.                 echo '</option>';
  485.             }
  486.             echo '
  487. ';
  488.             if (get_post_meta($post->ID, "pilihan6", true)) {
  489.                 echo '<option value="';
  490.                 echo bersih_harga(get_post_meta($post->ID, "harga_pilihan6", true));
  491.                 echo '">
  492. ';
  493.                 echo get_post_meta($post->ID, "pilihan6", true);
  494.                 echo '</option>';
  495.             }
  496.             echo '
  497. </select>
  498. ';
  499.         }
  500.         echo '
  501. ';
  502.     }
  503. }
  504. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement