X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-wernis.php;h=13961cc2ed16af1e8f5b05cbd3237fcb1dcb1b4c;hb=e87430f959a8b240d516ef830e6494165bc933b2;hp=bde8ccb19decc70fdee49b7470e3989a3facaacc;hpb=ed8c755a84537d8558eb73b83046765a2dea3d12;p=mailer.git diff --git a/inc/extensions/ext-wernis.php b/inc/extensions/ext-wernis.php index bde8ccb19d..13961cc2ed 100644 --- a/inc/extensions/ext-wernis.php +++ b/inc/extensions/ext-wernis.php @@ -58,7 +58,9 @@ userid bigint(20) NOT NULL default '0', wernis_account varchar(255) NOT NULL default '', wernis_amount double(22,5) NOT NULL default '0.00000', wernis_timestamp varchar(10) NOT NULL default '0', -wernis_type ENUM('IN','OUT') NOT NULL default 'OUT', +wernis_type ENUM('IN','OUT', 'FAILED') NOT NULL default 'FAILED', +wernis_api_message TINYTEXT, +wernis_api_status varchar(255) NULL default NULL, KEY(userid), PRIMARY KEY(id) ) TYPE=MyISAM"; @@ -103,14 +105,14 @@ case "update": // Update an extension break; default: // Do stuff when extension is loaded - $DUMMY = LOAD_CONFIG("0"); - $_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); + $dummy = LOAD_CONFIG(); + $_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; } // Language file prefix