Guest User

Untitled

a guest
Feb 17th, 2021
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian 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. if (get_current_user_id() != 1) {
  15. exit();
  16. }
  17.  
  18. echo '<!--<a onclick="reFillLicencesTable(';
  19. echo $_REQUEST['post'];
  20. echo ')">UpdateTable</a>-->' . "\n" . '<table id="AllLicencesTable" class="wp-list-table widefat fixed posts">' . "\n" . '<thead>' . "\n" . '<tr>' . "\n\t" . '<th style="width:65px"><input type="checkbox" name="licences_multiple_delete_checkbox_select_all" onchange="checkAllDeleteCheckBoxes(this.checked)" title="انتخاب تمام لایسنس ها برای پاک کردن گروهی">شماره</th>' . "\n\t" . '<th style="text-align:center">کد لایسنس</th>' . "\n\t" . '<th style="text-align:center">زمان اضافه شدن</th>' . "\n\t" . '<th style="text-align:center">عملیات</th>' . "\n" . '</tr>' . "\n" . '</thead>' . "\n" . '<tbody>' . "\n";
  21. $licences = NULL;
  22. include 'jdf.php';
  23.  
  24. if (count($licences)) {
  25. $i = 1;
  26.  
  27. foreach ($licences as $l) {
  28. echo '<tr>' . "\n\t" . '<td>';
  29. echo $i;
  30. echo '</td>' . "\n\t" . '<td>';
  31. echo $l->licence_code;
  32. echo '</td>' . "\n\t" . '<td>';
  33. echo jdate('Y/m/d - H:i:s', strtotime($l->creation_date), '', 'Asia/Tehran', 'en');
  34. echo '</td>' . "\n\t\n\t" . '<td><a style="cursor:hand;"onclick="DeleteLicenseCode(';
  35. echo $post->ID;
  36. echo ',';
  37. echo $l->licence_id;
  38. echo ')">';
  39. _e('حذف', 'wlmg');
  40. echo '</a></td>' . "\n" . '</tr>' . "\n";
  41. $i++;
  42. }
  43. }
  44. else {
  45. echo '<tr><td colspan="3">';
  46. _e('No licenses available for this product, please upload. (file must be in .txt format)', 'wlmg');
  47. echo '</td></tr>' . "\n";
  48. }
  49.  
  50. echo '</tbody>' . "\n" . '</table>' . "\n" . '<center><a onclick="deleteAllCheckedLicences(';
  51. echo $post->ID;
  52. echo ')" class="button-primary" style="background-color:red;color:black">پاک کردن موارد انتخاب شده</a></center>' . "\n" . '<br>' . "\n" . '<div style="border:solid">' . "\n" . ' <input type="radio" onchange="changeUploadLicencesFileType()" name="licences_file_format" value="txt" checked>کد لایسنس(.txt)<br>' . "\n" . ' <input type="radio" onchange="changeUploadLicencesFileType()" name="licences_file_format" value="zip">تصویر لایسنس در یک فایل زیپ(.zip)<br>' . "\n" . '<p>' . "\n\t" . '<label>';
  53. _e('آپلود لایسنس ها', 'wlmg');
  54. echo '</label>' . "\n\t" . '<input type="file" accept=".txt" name="licences_file" value="" />' . "\n\t" . '<button type="submit" class="button-primary">';
  55. _e('آپلود تصاویر', 'wlmg');
  56. echo '</button>' . "\n" . '</p>' . "\n" . '</div>' . "\n" . '<br />' . "\n" . '<p>' . "\n" . '<strong>';
  57. ..........................................................................................
  58. .................................................
  59. .......................
RAW Paste Data