Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- function affiliate_promocoupons_config()
- {
- $configarray = [
- 'name' => 'Affiliate Promocoupons',
- 'description' => 'Give your affiliats the option to earn money with coupon codes',
- 'version' => '1.4.1',
- 'author' => '<a href="https://www.plambee.de.de/" target="_blank">Plambee.de Webhosting</a>',
- 'language' => 'english',
- 'fields' => [
- 'Lizenzkey' => ['FriendlyName' => 'Licensekey', 'Type' => 'text', 'Size' => '35', 'Description' => 'Your Licenskey', 'Default' => 'APC-']
- ]
- ];
- return $configarray;
- }
- function affiliate_promocoupons_activate()
- {
- if (Illuminate\Database\Capsule\Manager::schema()->hasTable('mod_affiliate_promocoupons_deals')) {
- }
- else {
- try {
- Illuminate\Database\Capsule\Manager::schema()->create('mod_affiliate_promocoupons_deals', function($table) {
- $table->bigIncrements('ID');
- $table->string('label');
- $table->string('type');
- $table->decimal('value', 10, 2);
- $table->integer('recurring');
- $table->integer('recurring_times');
- $table->string('cycles');
- $table->string('appliesto');
- $table->date('expirationdate');
- $table->integer('maxuses');
- $table->integer('onceperclient');
- $table->integer('onceperorder');
- $table->integer('lifetimepromo');
- $table->integer('new_clients');
- $table->integer('exist_clients');
- });
- }
- catch (Exception $e) {
- echo 'Unable to create mod_affiliate_promocoupons_deals: ' . $e->getMessage();
- }
- }
- if (Illuminate\Database\Capsule\Manager::schema()->hasTable('mod_affiliate_promocoupons_settings')) {
- }
- else {
- try {
- Illuminate\Database\Capsule\Manager::schema()->create('mod_affiliate_promocoupons_settings', function($table) {
- $table->bigIncrements('ID');
- $table->string('client_yes');
- $table->string('client_no');
- $table->integer('maximum');
- $table->integer('disallowed_all');
- $table->integer('cron_delete');
- $table->integer('cron_delete_days');
- $table->integer('selfinterest');
- });
- }
- catch (Exception $e) {
- echo 'Unable to create mod_affiliate_promocoupons_settings: ' . $e->getMessage();
- }
- }
- if (Illuminate\Database\Capsule\Manager::schema()->hasTable('mod_affiliate_promocoupons_coupons')) {
- }
- else {
- try {
- Illuminate\Database\Capsule\Manager::schema()->create('mod_affiliate_promocoupons_coupons', function($table) {
- $table->bigIncrements('ID');
- $table->string('code');
- $table->decimal('value', 10, 2);
- $table->string('type');
- $table->integer('affid');
- $table->integer('dealid');
- $table->integer('KID');
- $table->integer('code_id');
- });
- }
- catch (Exception $e) {
- echo 'Unable to create mod_affiliate_promocoupons_coupons: ' . $e->getMessage();
- }
- }
- try {
- $insertaddon = Illuminate\Database\Capsule\Manager::table('tbladdonmodules')->insert(['module' => 'affiliate_promocoupons', 'setting' => 'localkey', 'value' => '12345']);
- }
- catch (Exception $e) {
- echo 'Can\'t insert Addonsettings ' . $e->getMessage();
- ................................................................................
- .............................................
- .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement