X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-wernis.php;h=bde8ccb19decc70fdee49b7470e3989a3facaacc;hp=d82e998115b7753bae48923bdca50eeee522e613;hb=ed8c755a84537d8558eb73b83046765a2dea3d12;hpb=75ad748a68473ace540251427a74fb781b1145e9 diff --git a/inc/extensions/ext-wernis.php b/inc/extensions/ext-wernis.php index d82e998115..bde8ccb19d 100644 --- a/inc/extensions/ext-wernis.php +++ b/inc/extensions/ext-wernis.php @@ -62,9 +62,13 @@ wernis_type ENUM('IN','OUT') NOT NULL default 'OUT', KEY(userid), PRIMARY KEY(id) ) TYPE=MyISAM"; - $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_min_amount bigint(20) not null default '40000'"; + $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_min_payout bigint(20) not null default '40000'"; + $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_min_withdraw bigint(20) not null default '5000'"; $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_api_id bigint(20) not null default '0'"; $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_api_md5 varchar(32) not null default ''"; + $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_api_url varchar(255) not null default 'http://www.wds66.com/api/'"; + $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_refid varchar(6) not null default ''"; + $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD wernis_userid varchar(6) not null default ''"; $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES('wernis', '', '{!POINTS!}-Management', 'Konfiguration zur WDS66-API einstellen, Auszahlungen auflisten usw..', 15)"; $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES('wernis', 'config_wernis', 'WDS66-API-Einstellungen', 'Konfiguration zur WDS66-API einstellen.', 1)"; $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES('wernis', 'list_wernis', '{!POINTS!}-Anfragen auflisten', 'Listet alle {!POINTS!}-Auszahlungsanfragen Ihrer Mitglieder auf.', 2)"; @@ -100,9 +104,12 @@ case "update": // Update an extension default: // Do stuff when extension is loaded $DUMMY = LOAD_CONFIG("0"); - $CONFIG['wernis_min_amount'] = $DUMMY['wernis_min_amount']; - $CONFIG['wernis_api_id'] = $DUMMY['wernis_api_id']; - $CONFIG['wernis_api_md5'] = $DUMMY['wernis_api_md5']; + $_CONFIG['wernis_min_payout'] = $DUMMY['wernis_min_payout']; + $_CONFIG['wernis_min_withdraw'] = $DUMMY['wernis_min_withdraw']; + $_CONFIG['wernis_api_id'] = $DUMMY['wernis_api_id']; + $_CONFIG['wernis_api_md5'] = $DUMMY['wernis_api_md5']; + $_CONFIG['wernis_api_url'] = $DUMMY['wernis_api_url']; + $_CONFIG['wernis_refid'] = $DUMMY['wernis_refid']; unset($DUMMY); break; } @@ -110,7 +117,11 @@ default: // Do stuff when extension is loaded $EXT_LANG_PREFIX = "wernis"; // Extension is always active? -$EXT_ALWAYS_ACTIVE = "N"; +$EXT_ALWAYS_ACTIVE = 'N'; + +// Init array +global $WERNIS; +$WERNIS = array(); // ?>