Advertisement
Guest User

Untitled

a guest
Jul 9th, 2024
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function paraBirimleri($return = false, $options = ['icon' => true])
  15. {
  16. global $ayarPara;
  17. global $parBirimleri;
  18.  
  19. if ($return) {
  20. return json_decode($ayarPara['extraparabirimi'], true) ?? [];
  21. }
  22.  
  23. foreach (json_decode($ayarPara['extraparabirimi'], true) ?? [] as $k => $extraPara) {
  24. if ($icon = $parBirimleri[$k]) {
  25. if ($options['icon']) {
  26. $icon = explode(')', explode('(', $icon)[1])[0];
  27. }
  28. else {
  29. $icon = '';
  30. }
  31.  
  32. echo '<a href="' . $_SERVER['REQUEST_URI'] . (strstr($_SERVER['REQUEST_URI'], '?') ? '&para=' : '?para=') . $k . '" ' . ($_SESSION['k_para'] == $k ? 'class="activelangcur"' : '') . ' rel="nofollow"><strong>' . $icon . '</strong> ' . mb_strtoupper($k, 'UTF-8') . '</a>';
  33. }
  34. }
  35. }
  36.  
  37. function doviz($data, $sembol = false, $ayarpara = false, $select = ['fiyat', 'ifiyat', 'tutar', 'toplam_tutar', 'indirim'])
  38. {
  39. global $ayarPara;
  40.  
  41. if (is_array($data)) {
  42. foreach ($select as $se) {
  43. if ($ayarpara && $ayarPara['ilan_para_birimi']) {
  44. if ($sembol) {
  45. $data[$se . '_full'] = para_format($data[$se]) . ' ' . $data['pbirim'];
  46. }
  47. }
  48. else {
  49. $data[$se] = dovizCevir($data[$se]);
  50.  
  51. if ($sembol) {
  52. $data[$se . '_full'] = dovizCevirSembol(para_format($data[$se]));
  53. }
  54. }
  55. }
  56. }
  57. else if ($ayarpara && $ayarPara['para_birimi']) {
  58. if ($sembol) {
  59. $data = para_format($data) . ' ' . $ayarPara['pbirim'];
  60. }
  61. }
  62. else if ($sembol) {
  63. $data = dovizCevirSembol(para_format($data));
  64. }
  65. else {
  66. $data = dovizCevir(para_format($data));
  67. .........................................................
  68. ....................................
  69. .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement