Please upgrade or ask your hosting to upgrade."); if (!extension_loaded('PDO')) die("PHP on your webhosting has no [pdo] extension enabled. Please ask the webhosting support to install it"); if (!extension_loaded('pdo_mysql')) die("PHP on your webhosting has no [pdo_mysql] extension enabled. Please ask the webhosting support to install it"); } check_versions(); define('ROOT_DIR', realpath(dirname(__FILE__) . '/..')); $_amAutoloader = require_once __DIR__.'/../library/vendor/autoload.php'; define('CODE_ROOT_DIR', ROOT_DIR); error_reporting(E_ALL); @ini_set('display_errors', 1); /*************************************************************************** * Author: Alex Scott * Email: alex@cgi-central.net * Web: http://www.cgi-central.net * Details: The installation file * FileName $RCSfile$ * Release: 6.3.31 ($Revision$) * * Please direct bug reports,suggestions or feedback to the cgi-central forums. * http://www.cgi-central.net/forum/ * * aMember PRO is a commercial software. Any distribution is strictly prohibited. * Web-based setup. Steps: 0 - check for installed config.php, check if it writeable - main config.php data form 1 - check config.php data - display mysql connection form 2 - check mysql connection - check for tables installed - if installed, skip to step 4 - if not installed ask to install it 3 - install mysql db 4 - plugins configuration (except MySQL) 5 - save all config files */ /** * Retrieve input vars, trim spaces and return as array * @return array array of input vars (_POST or _GET) */ class SetupController { protected $title; protected $vars = []; protected $errors = []; protected $pageTemplate = "
$cnt". "
Your transaction was successful. Welcome to BeGPL,
your trusted source for GPL WordPress themes and plugins.
Explore 45,000+ GPL WordPress Plugins and Themes
If you don't find what you need, we can help you get it!
Save money on renewals! We offer pre-activated
themes, plugins, or scripts at a one-time cost.
Need Help? Contact Us:
WhatsApp: +44 7 4455 0 5361
File config.php. Upload it to your FTP:
$configFn
Internet Explorer sometimes rename files when save it. For example, it may rename config.php to config[1].php. Don't forget to fix it before uploading!
You can find the aMember Pro User's Guide here. Feel free to contact CGI-Central any time if you have any issues with the script.
Go to the Admin Setup/Configuration page Enable any additional payment plugins you need and 'Save'. Then configuration pages for plugins will appear in the top of page. Visit them and configure enabled plugins.
Go to the Admin Products page and add your products or subscription types.
You may prefer to refer to them as 'Products' or 'Subscription Types' depending upon the type of business you are in. For example, you might choose to refer to a newsletter as a 'Subscription', while you might call computer software or hardware a 'Product'. It's up to you what you choose to call these aMember database records.
Remember, a 'Product' or 'Subscription Type' is just a different way to refer to the same thing, which is an aMember database record.
You may specify the Subscription Type (free or paid signup, etc.) as you enter each product.
Determine whether your payment system(s) require any special configuration. If so then you can refer to the Installation Manual for more information, or contact CGI-Central for script customization services.
Visit Setup your protection for protected areas or upload files for customers.
Check your installation by testing your Signup Page.
Feel free to contact CGI-Central Support if you need any customization of the script.
You can also find a lot of useful info in the aMember Forum.
CUT; } function display() { $out = $this->render_errors() . "\n\n" . ob_get_clean(); $tpl = $this->pageTemplate; $tpl = str_replace('', $this->title, $tpl); $tpl = str_replace('', $out, $tpl); echo $tpl; } function run() { $this->_set_input_vars(); ob_start(); $step = intval(@$_REQUEST['step']); if ($step != 5 && !$this->check_for_existance()) { $this->title = "Amember Setup : is already installed"; return $this->display(); } if (!$this->check_for_writeable()) { $this->title = "Amember Setup : folders permissions must be fixed"; return $this->display(); } if (!$this->check_for_extensions()) { $this->title = "Amember Setup : Extensions required"; return $this->display(); } $this->title = "aMember Setup: Step ".($step+1)." of 4"; switch ($step){ case 0: case '0': $this->step1(); break; case 1: case '1': if (!$this->check_step1()) $this->step1(); else $this->step2(); break; case 2: case '2': if (!$this->check_step2()) $this->step2(); else $this->step3(); break; case 3: case '3': if (!$this->check_step1()) $this->step1(); elseif (!$this->check_step2()) $this->step2(); else $this->step4(); break; case 5: case '5': $this->title = "aMember Setup: Step ".($step-1)." of 4"; $this->step5(); break; case 9: case '9': // no header return $this->send_config_file(); break; default: die('Unknown step: ' . $step); } return $this->display(); } } $controller = new SetupController; $year = date('Y'); $controller->setPageTemplate(<<