OUGC Network

How can I set my settings directly in the plugin files?

For security reasons, you might decide to keep specific settings outside the front-end to avoid undesired manipulation or simply to keep them outside the DB.

For this reason, it is possible to set specific settings directly by editing the plugin files. To do so follow the next steps.

  1. Open file /inc/plugins/ougc_withdraw_points.php
  2. Find the following piece of code:
    // You can uncomment the lines below to avoid storing some settings in the DB
    //define('OUGC_WITHDRAW_POINTS_PUBLICKEY', '');
    //define('OUGC_WITHDRAW_POINTS_PRIVATEKEY', '');
    //define('OUGC_WITHDRAW_POINTS_IPNSECRET', '');
    //define('OUGC_WITHDRAW_POINTS_MERCHANTID', '');
    //define('OUGC_WITHDRAW_POINTS_ADDTXFEE', 0);
    //define('OUGC_WITHDRAW_POINTS_AUTOCONFIRM', 0);
    //define('OUGC_WITHDRAW_POINTS_PMLOGS', 0);
    
  3. Uncomment all or individual lines to hard-code specific settings. An all-uncommented example is below.
    // You can uncomment the lines below to avoid storing some settings in the DB
    define('OUGC_WITHDRAW_POINTS_PUBLICKEY', 'ekDQw2xob5Akaf6PuqxV');
    define('OUGC_WITHDRAW_POINTS_PRIVATEKEY', 'UPhMBslDWfP7bl5B8Jae');
    define('OUGC_WITHDRAW_POINTS_IPNSECRET', 'cN6smHwggqRnQCAceikh');
    define('OUGC_WITHDRAW_POINTS_MERCHANTID', 'ucybkW52FoD1hp6J3j50');
    define('OUGC_WITHDRAW_POINTS_ADDTXFEE', 0);
    define('OUGC_WITHDRAW_POINTS_AUTOCONFIRM', 0);
    //define('OUGC_WITHDRAW_POINTS_PMLOGS', 0);
    
  4. Save the file and close.
  5. Done.

You can then clean any front-end setting value for all the settings you hard-code or define within the plugin file.
There are currently no posts to display. Be the first one to leave a reply.

Current time: 21 Oct, 2020, 5:24 pm

This forum uses Lukasz Tkacz MyBB addons.