X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-wernis.php;h=bde8ccb19decc70fdee49b7470e3989a3facaacc;hp=e33f6ecc3febf87c7c9cf52d9c6f6f283f359aed;hb=ed8c755a84537d8558eb73b83046765a2dea3d12;hpb=302284be34ec6342a279566e1167837033c6fd62 diff --git a/inc/extensions/ext-wernis.php b/inc/extensions/ext-wernis.php index e33f6ecc3f..bde8ccb19d 100644 --- a/inc/extensions/ext-wernis.php +++ b/inc/extensions/ext-wernis.php @@ -62,7 +62,8 @@ 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/'"; @@ -103,11 +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_api_url'] = $DUMMY['wernis_api_url']; - $_CONFIG['wernis_refid'] = $DUMMY['wernis_refid']; + $_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; }