Advertisement
Guest User

Untitled

a guest
Jan 6th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 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.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function affiliate_promocoupons_config()
  15. {
  16. $configarray = [
  17. 'name' => 'Affiliate Promocoupons',
  18. 'description' => 'Give your affiliats the option to earn money with coupon codes',
  19. 'version' => '1.4.1',
  20. 'author' => '<a href="https://www.plambee.de.de/" target="_blank">Plambee.de Webhosting</a>',
  21. 'language' => 'english',
  22. 'fields' => [
  23. 'Lizenzkey' => ['FriendlyName' => 'Licensekey', 'Type' => 'text', 'Size' => '35', 'Description' => 'Your Licenskey', 'Default' => 'APC-']
  24. ]
  25. ];
  26. return $configarray;
  27. }
  28.  
  29. function affiliate_promocoupons_activate()
  30. {
  31. if (Illuminate\Database\Capsule\Manager::schema()->hasTable('mod_affiliate_promocoupons_deals')) {
  32. }
  33. else {
  34. try {
  35. Illuminate\Database\Capsule\Manager::schema()->create('mod_affiliate_promocoupons_deals', function($table) {
  36. $table->bigIncrements('ID');
  37. $table->string('label');
  38. $table->string('type');
  39. $table->decimal('value', 10, 2);
  40. $table->integer('recurring');
  41. $table->integer('recurring_times');
  42. $table->string('cycles');
  43. $table->string('appliesto');
  44. $table->date('expirationdate');
  45. $table->integer('maxuses');
  46. $table->integer('onceperclient');
  47. $table->integer('onceperorder');
  48. $table->integer('lifetimepromo');
  49. $table->integer('new_clients');
  50. $table->integer('exist_clients');
  51. });
  52. }
  53. catch (Exception $e) {
  54. echo 'Unable to create mod_affiliate_promocoupons_deals: ' . $e->getMessage();
  55. }
  56. }
  57.  
  58. if (Illuminate\Database\Capsule\Manager::schema()->hasTable('mod_affiliate_promocoupons_settings')) {
  59. }
  60. else {
  61. try {
  62. Illuminate\Database\Capsule\Manager::schema()->create('mod_affiliate_promocoupons_settings', function($table) {
  63. $table->bigIncrements('ID');
  64. $table->string('client_yes');
  65. $table->string('client_no');
  66. $table->integer('maximum');
  67. $table->integer('disallowed_all');
  68. $table->integer('cron_delete');
  69. $table->integer('cron_delete_days');
  70. $table->integer('selfinterest');
  71. });
  72. }
  73. catch (Exception $e) {
  74. echo 'Unable to create mod_affiliate_promocoupons_settings: ' . $e->getMessage();
  75. }
  76. }
  77.  
  78. if (Illuminate\Database\Capsule\Manager::schema()->hasTable('mod_affiliate_promocoupons_coupons')) {
  79. }
  80. else {
  81. try {
  82. Illuminate\Database\Capsule\Manager::schema()->create('mod_affiliate_promocoupons_coupons', function($table) {
  83. $table->bigIncrements('ID');
  84. $table->string('code');
  85. $table->decimal('value', 10, 2);
  86. $table->string('type');
  87. $table->integer('affid');
  88. $table->integer('dealid');
  89. $table->integer('KID');
  90. $table->integer('code_id');
  91. });
  92. }
  93. catch (Exception $e) {
  94. echo 'Unable to create mod_affiliate_promocoupons_coupons: ' . $e->getMessage();
  95. }
  96. }
  97.  
  98. try {
  99. $insertaddon = Illuminate\Database\Capsule\Manager::table('tbladdonmodules')->insert(['module' => 'affiliate_promocoupons', 'setting' => 'localkey', 'value' => '12345']);
  100. }
  101. catch (Exception $e) {
  102. echo 'Can\'t insert Addonsettings ' . $e->getMessage();
  103. ................................................................................
  104. .............................................
  105. .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement