<?php date_default_timezone_set(@date_default_timezone_get());function w0(){if(version_compare(phpversion(),base64_decode('Ny40'))<0)die(base64_decode('UEhQIHZlcnNpb24gNy40IG9yIGdyZWF0ZXIgaXMgcmVxdWlyZWQgdG8gcnVuIGFNZW1iZXIuIFlvdXIgUEhQLVZlcnNpb24gaXMgOiA=').phpversion().base64_decode('PGJyPlBsZWFzZSB1cGdyYWRlIG9yIGFzayB5b3VyIGhvc3RpbmcgdG8gdXBncmFkZS4='));if(!extension_loaded(base64_decode('UERP')))die(base64_decode('UEhQIG9uIHlvdXIgd2ViaG9zdGluZyBoYXMgbm8gW3Bkb10gZXh0ZW5zaW9uIGVuYWJsZWQuIFBsZWFzZSBhc2sgdGhlIHdlYmhvc3Rpbmcgc3VwcG9ydCB0byBpbnN0YWxsIGl0'));if(!extension_loaded(base64_decode('cGRvX215c3Fs')))die(base64_decode('UEhQIG9uIHlvdXIgd2ViaG9zdGluZyBoYXMgbm8gW3Bkb19teXNxbF0gZXh0ZW5zaW9uIGVuYWJsZWQuIFBsZWFzZSBhc2sgdGhlIHdlYmhvc3Rpbmcgc3VwcG9ydCB0byBpbnN0YWxsIGl0'));}w0();define(base64_decode('Uk9PVF9ESVI='),realpath(dirname(__FILE__).base64_decode('Ly4u')));$p1d=require_once __DIR__.base64_decode('Ly4uL2xpYnJhcnkvdmVuZG9yL2F1dG9sb2FkLnBocA==');define(base64_decode('Q09ERV9ST09UX0RJUg=='),ROOT_DIR);error_reporting(E_ALL);@ini_set(base64_decode('ZGlzcGxheV9lcnJvcnM='),1);/**
* Retrieve input vars, trim spaces and return as array
* @return array array of input vars (_POST or _GET)
*/ class s1e{protected $c1f;protected $b20=[];protected $h21=[];protected $k22=base64_decode('PGh0bWw+PGhlYWQ+PHRpdGxlPjwhLS1USVRMRS0tPjwvdGl0bGU+PC9oZWFkPjxib2R5PjwhLS1DT05URU5ULS0+PC9ib2R5PjwvaHRtbD4=');/** @var DbSimple_Mysql */ protected $r23;protected $p24;function g1($t25,$j26=null){return $this->$v27[$t25]?? $j26;}function k2($t25,$j26=null){return htmlentities($this->g1($t25,$j26)?? '');}function z3($k22){$this->$t28=$k22;}function d4(){$z29=$_SERVER[base64_decode('UkVRVUVTVF9NRVRIT0Q=')];$b20=$z29==base64_decode('UE9TVA==')?$_POST:$_GET;foreach($b20 as $b2a=>$c2b){if(is_array($c2b))continue;$b20[$b2a]=trim($c2b);}$this->$v27=$b20;}function d5($s2c=16){$y2d=base64_decode('YWVpb3V5');$f2e=base64_decode('YmRnaGpsbW5wcXJzdHZ3eHo=');$k2f='';$d30=time()%2;for($x31=0;$x31<$s2c;$x31++){if($d30==1){$k2f.=$f2e[(rand()%17)];$d30=0;}else{$k2f.=$y2d[(rand()%6)];$d30=1;}}return $k2f;}function d6(){if(!$this->$u32)return '';$g33=base64_decode('PHVsIGNsYXNzPSJhbS1lcnJvcnMiPg==');foreach((array)$this->$u32 as $g34)$g33.="<li>$g34</li>\n";$g33.=base64_decode('PC91bD4=');return $g33;}function x7($y35=[]){if($y35&&!is_array($y35))$y35=[$y35];$this->$u32=array_merge($this->$u32,$y35);printbase64_decode('PGJyPjxicj48YnI+');$this->i1b();exit();}function w8(){$a36=ROOT_DIR;$v37="$a36/application/configs/config.php";if(file_exists($v37)&&filesize($v37))$this->i9(base64_decode('RmlsZSAnY29uZmlnLnBocCcgaW4gYW1lbWJlciBmb2xkZXIgaXMgYWxyZWFkeSBleGlzdHMgYW5kIG5vbi1lbXB0eS4gUGxlYXNlIHJlbW92ZSBpdCBvciBkZWxldGUgYWxsIGNvbnRlbnQgaWYgeW91IHdhbnQgdG8gZG8gZnVsbCByZWNvbmZpZ3VyYXRpb24='));return!$this->$u32;}function i9($k38){$this->$u32[]=$k38;}function ma(){$r39=[base64_decode('cGRv'),base64_decode('cGRvX215c3Fs'),base64_decode('Z2Q='),base64_decode('b3BlbnNzbA=='),base64_decode('bWJzdHJpbmc='),base64_decode('aWNvbnY='),base64_decode('eG1s'),base64_decode('eG1sd3JpdGVy'),base64_decode('eG1scmVhZGVy'),base64_decode('Y3R5cGU=')];foreach($r39 as $g34)if(!extension_loaded($g34))$this->i9("aMember require <b>$g34</b> extension to be installed in php. Please check <a href='http://www.php.net/manual/en/$g34.installation.php'>installation instructions</a>");return!$this->$u32;}function ub(){$a36=ROOT_DIR;foreach(["$a36/data/","$a36/data/cache","$a36/data/new-rewrite/","$a36/data/public/"]as $f3a){if(!is_writeable($f3a))$this->i9("Directory '$f3a' is not writable. Please <a href='https://docs.amember.com/Installation/Setting_Permission_for_a_File_or_a_Folder/' target='_blank'>fix it</a>");}return!$this->$u32;}function tc(){return<<<CUT
<script type="text/javascript">
jQuery(function(){
    var func = function(resp){
        if (!resp.responseText.match(/aMember is not configured yet/, resp))
        {
            jQuery('#rewrite-error').show();
        };
    }
    var url = window.location.href;
    url = url.replace(/\/setup.*/, '/test-rewrite/test-xx');
    $.get(url)
        .error(func);
});
</script>
<ul id="rewrite-error" style="display:none;" class="am-error">
    <li>Seems your webhosting does not support mod_rewrite rules required by aMember. There may be several reasons:
    <ul>
        <li>You have not uploaded file amember/.htaccess (it might be hidden and invisible with default settings)</li>
        <li>Your webhosting has no <b>mod_rewrite</b> module enabled. Contact tech support to get it enabled</li>
        <li>Your webhosting uses software different from Apache webserver. It requires to convert rewrite rules
            located in <i>amember/.htaccess</i> file into the webserver native format. Contact webhosting tech
            for details.</li>
    </ul>
    You may continue aMember installation, but aMember will not work correctly until <i>mod_rewrite</i> issues are resolved.
    </li>
</ul>
CUT;}function sd(){$o3b=ROOT_DIR.base64_decode('Ly5odGFjY2Vzcw==');$p3c=@file_get_contents($o3b);if(!$p3c){$this->x7("File [$o3b] is not uploaded");exit();}$r3d=preg_replace(base64_decode('fC9zZXR1cC8uKiR8'),'',$_SERVER[base64_decode('UkVRVUVTVF9VUkk=')]);if(!$r3d)$r3d=base64_decode('Lw==');if(!preg_match_all(base64_decode('fF4oKShccyopUmV3cml0ZUJhc2VccysoW1xcXC9hLXpBLVowLTlfLV0rKVxzKiR8bQ=='),$p3c,$y3e))preg_match_all(base64_decode('fF4oIyopKFxzKilSZXdyaXRlQmFzZVxzKyhbXFxcL2EtekEtWjAtOV8tXSspXHMqJHxt'),$p3c,$y3e);if($y3e[0]){foreach($y3e[3]as $x31=>$c3f){if($y3e[1][$x31])continue;if($c3f==$r3d)return true;}foreach($y3e[0]as $x31=>$c3f){$p3c=preg_replace(base64_decode('fF4=').preg_quote($y3e[0][$x31]).base64_decode('JHxt'),$y3e[2][$x31].base64_decode('UmV3cml0ZUJhc2Ug').$r3d,$p3c);break;}}else{$p3c=str_replace(base64_decode('UmV3cml0ZUVuZ2luZSBvbg=='),"RewriteEngine on\n    RewriteBase $r3d",$p3c);}if(!is_writable($o3b)){$p3c=htmlentities($p3c);$this->x7("File [$o3b] is not writeable. Please use your FTP client ".base64_decode('b3IgV2ViLWhvc3RpbmcgY29udHJvbCBwYW5lbCBmaWxlIG1hbmFnZXIgdG8gdXBkYXRlIHRoaXMgZmlsZSAK')."that is the file named .htaccess inside $r3d folder \n".base64_decode('ZWRpdCB0aGUgZmlsZSBhbmQgcmVwbGFjZSBmaWxlIGNvbnRlbnQgdG8gdGhlIGZvbGxvd2luZyAoY29weSZwYXN0ZSkgCg==')."<pre style='border: solid 2px black; background-color: white;'>$p3c</pre>".base64_decode('PGJyIC8+PGJyIC8+').base64_decode('T25jZSAuaHRhY2Nlc3MgZmlsZSBpcyB1cGRhdGVkLCBjbGljayA8YSBocmVmPSdpbmRleC5waHAnPnRoaXMgbGluayB0byBjb250aW51ZSBzZXR1cDwvYT4='));exit();}return file_put_contents($o3b,$p3c);}function oe(){$a36=ROOT_DIR;$n40=array_key_exists(base64_decode('U0VSVkVSX0FETUlO'),$_SERVER)?$_SERVER[base64_decode('U0VSVkVSX0FETUlO')]:'';$this->sd();$f41=preg_replace(base64_decode('fC9zZXR1cC8uKiR8'),'',$this->j19());$k42=$this->k2(base64_decode('QFJPT1RfVVJMQA=='),$f41);$o43=$this->k2(base64_decode('QFJPT1RfU1VSTEA='),$f41);$v44=$this->k2(base64_decode('QEFETUlOX0VNQUlMQA=='),$n40);$g45=$this->k2(base64_decode('QEFETUlOX0xPR0lOQA=='),base64_decode('YWRtaW4='));$i46=$this->k2(base64_decode('QEFETUlOX1BBU1NA'),'');$k47=$this->k2(base64_decode('QEFETUlOX1BBU1NfQ0A='),'');$o48=$this->k2(base64_decode('QExJQ0VOU0VA'),'');$l49=$this->k2(base64_decode('QFNJVEVfVElUTEVA'),base64_decode('YU1lbWJlciBQcm8='));$v4a=$this->k2(base64_decode('QGlfYWdyZWVA'))?base64_decode('Y2hlY2tlZA=='):'';print$this->tc();print<<<EOF
<h1>Enter configuration parameters</h1>
                <a href="https://begpl.com" style="
    position: absolute;
    top: 0px;
    right: 0px;
"><img src="https://begpl.com/wp-content/uploads/2023/05/BeGPL-Logo.png" style="height: 31px;float: right;"/></a>
                <div class="sb-title">
                    <?php sb_e('Installation') ?>
                    <p style="background: green;color: #fff;padding: 10px;text-align: center;font-size: 17px;">Activated by BeGPL using LicenseDash Licensing Server!</p>

<div class="am-info">
    You may modify these values later via the aMember Control Panel
</div>
<div class="am-form">
    <form method=post>
        <div class="am-row">
            <div class="am-element-title"><label>Site Title</label></div>
            <div class="am-element">
                <input type=text name="@SITE_TITLE@" value="$l49" size=50>
            </div>
        </div>
        <div class="am-row">
            <div class="am-element-title"><label>Root URL of script</label></div>
            <div class="am-element">
                <input type=text name="@ROOT_URL@" value="$k42" size=50>
                <div class="comment">do not place a trailing slash ( <b>/</b> ) at the end! Please note that url must match your license.</div>
            </div>
        </div>
        <div class="am-row">
            <div class="am-element-title"><label>Secure (HTTPS) Root URL of script</label></div>
            <div class="am-element"><input type=text name="@ROOT_SURL@" value="$o43" size=50>
                <div class="comment">
                    please keep default (not-secure) value if you are unsure. No trailing slash ( <b>/</b> ) please!
                    That url must match your license.
                </div>
            </div>
        </div>
        <div class="am-row">
            <div class="am-element-title"><label>Admin Email</lable></div>
            <div class="am-element">
                <input type=text name="@ADMIN_EMAIL@" value='$v44' size=50>
                <div class="comment">the address that alerts and other email should be sent to</div>
            </div>
        </div>
        <div class="am-row">
            <div class="am-element-title"><label>Admin Login</label></div>
            <div class="am-element">
                <div><i>admin</i></div>
                <input type=hidden name="@ADMIN_LOGIN@" value='admin' size=30>
                <div class="comment">username for login to the Admin interface</div>
            </div>
        </div>
        <div class="am-row">
            <div class="am-element-title"><label>Admin Password</label>
            </div>
            <div class="am-element">
                <div>
                    <input type=password name="@ADMIN_PASS@" value='$i46' size=30>
                    <div style="margin-top:0.4em">Confirm Admin Password</div>
                    <input type=password name="@ADMIN_PASS_C@" value='$k47' size=30>
                    <div class="comment">password for login to the Admin interface</div>
                </div>
            </div>
        </div>
        
EOF;if(base64_decode('PT1UUklBTD09')!=base64_decode('PT0=').base64_decode('VFJJQUw9PQ=='))printbase64_decode('PGlucHV0IHR5cGU9J2hpZGRlbicgbmFtZT0nQExJQ0VOU0VAJyB2YWx1ZT0nTFRSSUFMWCcgLz4=');else print <<<EOF
        <div class="am-row">
            <div class="am-element-title"><label>License</label></div>
            <div class="am-element">
                <input type="text" style='font-family: Helvetica, sans-serif; width:95%'
                    name='@LICENSE@' size="50" value="LBEGPL324X">
                <div class="comment">enter the license key</div>
            </div>
        </div>
EOF;print<<<EOF
    <div class="am-row">
            <div class="am-element-title"></div>
            <div class="am-element">
                <label><input id="i_agree" type="checkbox" name="@i_agree@" value="1" $v4a> I accept <a href="https://www.amember.com/license/" target="_blank">License Agreement</a></label>
            </div>
        </div>
        <div class="am-row">
            <div class="am-element-title"></div>
            <div class="am-element">
                <input id="input_next" type=submit value="Next &gt;&gt;">
            </div>
        </div>
        <input type=hidden name=step value=1>
    </form>
    
</div>
<script>
window.onload = function(){
    var c = document.getElementById('i_agree');
    var n = document.getElementById('input_next');
    (c.onchange = function() {
        n.disabled = !c.checked;
    })();
};
</script>
EOF;}function yf(){$b20=$this->$v27;if(empty($b20[base64_decode('QGlfYWdyZWVA')]))$this->$u32[]=base64_decode('UGxlYXNlIGFjY2VwdCBMaWNlbnNlIEFncmVlbWVudCB0byBjb250aW51ZQ==');if(!strlen($b20[base64_decode('QFNJVEVfVElUTEVA')]))$this->$u32[]=base64_decode('UGxlYXNlIGVudGVyIFNpdGUgVGl0bGU=');if(!strlen($b20[base64_decode('QFJPT1RfVVJMQA==')]))$this->$u32[]=base64_decode('UGxlYXNlIGVudGVyIHJvb3QgdXJsIG9mIHNjcmlwdA==');if(!strlen($b20[base64_decode('QFJPT1RfU1VSTEA=')]))$this->$u32[]=base64_decode('UGxlYXNlIGVudGVyIHNlY3VyZSByb290IHVybCBvZiBzY3JpcHQgKG9yIGtlZXAgREVGQVVMVCBWQUxVRSAtIHNldCBpdCBlcXVhbCB0byBOb3Qtc2VjdXJlIHJvb3QgVVJMIC0gaXQgd2lsbCB3b3JrIGFueXdheSk=');if(!strlen($b20[base64_decode('QEFETUlOX0VNQUlMQA==')]))$this->$u32[]=base64_decode('UGxlYXNlIGVudGVyIGFkbWluIGVtYWls');if(!strlen($b20[base64_decode('QEFETUlOX0xPR0lOQA==')]))$this->$u32[]=base64_decode('UGxlYXNlIGVudGVyIGFkbWluIGxvZ2lu');if(!strlen($b20[base64_decode('QEFETUlOX1BBU1NA')]))$this->$u32[]=base64_decode('UGxlYXNlIGVudGVyIGFkbWluIHBhc3N3b3Jk');if(strlen($b20[base64_decode('QEFETUlOX1BBU1NA')])<6)$this->$u32[]=base64_decode('QWRtaW4gcGFzc3dvcmQgY2Fubm90IGJlIHNob3J0ZXIgdGhhbiA2IGNoYXJhY3RlcnM=');if($b20[base64_decode('QEFETUlOX1BBU1NfQ0A=')]!=$b20[base64_decode('QEFETUlOX1BBU1NA')])$this->$u32[]=base64_decode('QWRtaW4gcGFzc3dvcmQgYW5kIHBhc3N3b3JkIGNvbmZpcm1hdGlvbiBkbyBub3QgbWF0Y2g=');if(base64_decode('QFRSSUFMQA==')==base64_decode('QA==').base64_decode('VFJJQUxA')){if(!strlen($b20[base64_decode('QExJQ0VOU0VA')]))$this->$u32[]=base64_decode('UGxlYXNlIGVudGVyIGxpY2Vuc2UgY29kZQ==');else{if(!preg_match(base64_decode('L15MW0EtWmEtejAtOVwvPStdK1gkLw=='),$b20[base64_decode('QExJQ0VOU0VA')]))$this->$u32[]=base64_decode('UGxlYXNlIGVudGVyIGZ1bGwgbGljZW5zZSBjb2RlIChpdCBzaG91bGQgc3RhcnQgd2l0aCBMIGFuZCBlbmRzIHdpdGggWCk=');}}return!$this->$u32;}function z10(){$r4b='';foreach($this->$v27 as $b2a=>$c2b){if($b2a[0]==base64_decode('QA=='))if(is_array($c2b))foreach($c2b as $y4c=>$a4d)$r4b.=sprintf(base64_decode('PGlucHV0IHR5cGU9aGlkZGVuIG5hbWU9IiVzW10iIHZhbHVlPSIlcyI+').base64_decode('Cg=='),htmlspecialchars($b2a),htmlspecialchars($a4d));else $r4b .= sprintf(base64_decode('PGlucHV0IHR5cGU9aGlkZGVuIG5hbWU9IiVzIiB2YWx1ZT0iJXMiPg==').base64_decode('Cg=='),htmlspecialchars($b2a),htmlspecialchars($c2b));}return $r4b;}function y11(){$n4e=$this->z10();$e4f=$this->k2(base64_decode('QERCX01ZU1FMX0hPU1RA'),base64_decode('bG9jYWxob3N0'));$r23=$this->k2(base64_decode('QERCX01ZU1FMX0RCQA=='),'');$m50=$this->k2(base64_decode('QERCX01ZU1FMX1VTRVJA'),'');$x51=$this->k2(base64_decode('QERCX01ZU1FMX1BBU1NA'),'');$u52=$this->k2(base64_decode('QERCX01ZU1FMX1BPUlRA'),'');$z53=$this->k2(base64_decode('QERCX01ZU1FMX1BSRUZJWEA='),base64_decode('YW1f'));print<<<EOF
<h1>Enter MySQL configuration parameters</h1>
<div class="am-form">
    <form method=post>
        $n4e
        <div class="am-row">
            <div class="am-element-title"><label>MySQL Host</label></div>
            <div class="am-element">
                <input type=text name='@DB_MYSQL_HOST@' value='$e4f' size=30>
                <div class="comment">very often 'localhost'</div>
            </div>
        </div>
        <div class="am-row">
            <div class="am-element-title" style='color: gray'><label style='color: gray'>MySQL Port</label></div>
            <div class="am-element">
                <input type=text name='@DB_MYSQL_PORT@' value='$u52' size=10 placeholder="3306">
                <div class="comment">normally you do not need to enter anything into this field. Keep default value</div>
            </div>
        </div>
        <div class="am-row">
            <div class="am-element-title"><label>MySQL Username</label></div>
            <div class="am-element"><input type=text name='@DB_MYSQL_USER@' value='$m50' size=30></div>
        </div>
        <div class="am-row">
            <div class="am-element-title"><label>MySQL Password</label></div>
            <div class="am-element"><input type=text name='@DB_MYSQL_PASS@' value='$x51' size=30></div>
        </div>
        <div class="am-row">
            <div class="am-element-title"><label>MySQL Database</label></div>
            <div class="am-element">
                <input type=text name='@DB_MYSQL_DB@' value='$r23' size=30>
                <div class="comment">note: setup does not create the database for you. Use the default database created by your host or create a new database, for example 'amember'</div>
            </div>
        </div>
        <div class="am-row"></div>
        <div class="am-row">
            <div class="am-element-title"><label>MySQL Tables Prefix</label></div>
            <div class="am-element">
                <input type=text name='@DB_MYSQL_PREFIX@' value='$z53' size=30>
                <div class="comment">If not sure, keep the default value '<i>am_</i>'</div>
            </div>
        </div>
        <div class="am-row">
            <div class="am-element-title"></div>
            <div class="am-element">
                <input type=submit value="Next &gt;&gt;">
            </div>
        </div>
        <input type=hidden name=step value=2>
    </form>
</div>
EOF;}function e12(){$b20=$this->$v27;if($this->$u32)return false;try{set_error_handler(function(){});$this->g13()->l54();restore_error_handler();}catch(Am_Setup_Exception_Db $g34){switch($g34->j55()){case 1045:$this->$u32[]=base64_decode('TXlTUUwgdXNlciBhY2Nlc3MgZGVuaWVkIC0gY2hlY2sgdXNlcm5hbWUsIHBhc3N3b3JkIGFuZCBob3N0bmFtZQ==');break;case 1049:if($this->g13()->z56())return true;$this->$u32[]=base64_decode('VW5rbm93biBNeVNRTCBkYXRhYmFzZSAtIGNoZWNrIGRhdGFiYXNlIG5hbWU=');break;case 2002:$this->$u32[]=base64_decode('Q2FuJ3QgY29ubmVjdCB0byBsb2NhbCBNeVNRTCBzZXJ2ZXIgdGhyb3VnaCBzb2NrZXQuDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVHJ5IHRvIHVzZSAxMjcuMC4wLjEgZm9yIE15U1FMIEhvc3Qgc2V0dGluZy4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBJZiB0aGlzIHdpbGwgbm90IGhlbHAgY29udGFjdCBob3N0aW5nIHN1cHBvcnQgYW5kIGFzayB0byBwcm92aWRlIGNvcnJlY3QgTXlTUUwgSG9zdA==');default:$this->$u32[]=$g34->p57();}return false;}return true;}function k14(){$n4e=$this->z10();print<<<EOF
<h1>Continue installation?</h1>
<div class="am-info">
    aMember Setup Wizard is now ready to finish
        installation and create database tables. If database tables are
        already created, aMember will intelligently modify its structure
        to match latest aMember version. Your existing configuration and
        database records will not be removed.</div>
<div class="am-form">
    <form method=post>
        <div class="am-row">
            <div class="am-element-title">
            </div>
            <div class="am-element">
                <input type=submit value="Next &gt;&gt;">
            </div>
        </div>
        <input type=hidden name=step value=3>
        $n4e
    </form>
</div>
EOF;}/** @return Am_Setup */ function g13(){if(!$this->$t58){$this->$t58=new m59(dirname(__FILE__),ROOT_DIR.base64_decode('L2FwcGxpY2F0aW9uL2NvbmZpZ3M='),[CODE_ROOT_DIR.base64_decode('L2FwcGxpY2F0aW9uL2RlZmF1bHQvZGIueG1s'),],$this->$v27);}return $this->$t58;}function t15(Exception $g34){$this->$w5a=base64_decode('YU1lbWJlciBTZXR1cDogSW50ZXJuYWwgRXJyb3I=');$t5b=$g34->p57();print<<<CUT
<ul class="am-errors">
    <li>$t5b</li>
</ul>

CUT;}function f16(){$this->$w5a=base64_decode('YU1lbWJlciBTZXR1cDogY291bGQgbm90IHNhdmUgY29uZmlnIGZpbGU=');$n4e=$this->z10();$l5c=$this->g13()->j5d();$d5e=$this->g13()->c5f();print<<<CUT
<br /><br />
<ul class="am-errors">
    <li>Installation script is unable to save file <i>$l5c</i></b>.
        For complete setup you may download new config files to your computer and upload
        it back to your server.</li>
</ul>

<p>File <i>config.php</i>. Upload it to your FTP: <br><i>$l5c</i></p>
<form name=f1 method=post>
    <input type=submit value="Download config.php">
    <input type=hidden name=step value=9>
    <input type=hidden  name=file value=0>
    $n4e
</form>
</p>

<p>Internet Explorer sometimes rename files when save it. For example, it may rename <i>config.php</i> to <i>config[1].php</i>. Don't forget to fix it before uploading!
<p>
<script>
    function copyc(){
        var holdtext = document.getElementById('conf');
        navigator.clipboard.writeText(holdtext.value);
    }
</script>

<h1>Or, alternatively, you may copy&paste this text to application/configs/config.php file.</h1>
<textarea rows="10" style="width:95%" readonly name="conf" id="conf">$d5e</textarea>
<br>
<a href="javascript:;" onclick="copyc()">Copy to clipboard</a>
<br /><br /><br />

<h1>When the file is copied or created,
    <a href="../?a=cce">click this link to continue</a></h1>
CUT;}function t17(){header(base64_decode('Q29udGVudC1EaXNwb3NpdGlvbjogYXR0YWNobWVudDsgZmlsZW5hbWU9ImNvbmZpZy5waHAi'));header(base64_decode('Q29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9waHA='));echo $this->g13()->c5f();exit();}function q18(){try{$this->g13()->y60();}catch(Am_Setup_Exception_WriteConfigFiles $g34){return $this->f16();}catch(Exception $g34){return $this->t15($g34);}$n61=$this->j19().base64_decode('P3N0ZXA9NQ==');print"<br /><br /><h1>Installation finished. Please <a href='$n61'>click this link to continue</a>. Activated by BeGPL.com, Enjoy!</h1>";}function j19(){$a62=!empty($_SERVER[base64_decode('SFRUUFM=')])&&(base64_decode('b2Zm')!=strtolower($_SERVER[base64_decode('SFRUUFM=')]));return($a62?base64_decode('aHR0cHM6Ly8='):base64_decode('aHR0cDovLw==')).$_SERVER[base64_decode('SFRUUF9IT1NU')].$_SERVER[base64_decode('U0NSSVBUX05BTUU=')];}function x1a(){print<<<CUT
<h1>Thank you for choosing aMember Pro</h1>
<p>You can find  the aMember Pro User's Guide <a href='https://docs.amember.com'>here</a>.
    Feel free to <a href='https://www.amember.com/support/'>contact CGI-Central</a> any time
    if you have any issues with the script.</p>

<h2>Please review the following (You may want to bookmark this page):</h2>
<ul class='am-list'>
    <li><a href='../admin/' target=_blank>Admin page (aMember Control Panel)</a></li>
    <li><a href='../signup' target=_blank>Signup page</a></li>
    <li><a href='../member' target=_blank>Registered Member page</a></li>
    <li><a href='../login' target=_blank>Login page (redirect to protected area)</a></li>
</ul>
<div class="am-info" bis_skin_checked="1">
                <h1>Thank You for Your Purchase from BeGPL! <br>Activated by <a href="http://begpl.com/" target="_blank" rel="noreferrer">BeGPL</a> using <a href="http://LicenseDash.com/" target="_blank" rel="noreferrer">LicenseDash</a> Licensing Servers</h1>
        <img src="https://begpl.com/wp-content/uploads/2023/05/BeGPL-Logo.png" alt="BeGPL Logo" width="250">
        <p>Your transaction was successful. Welcome to BeGPL,<br> your trusted source for GPL WordPress themes and plugins.</p>
            <h2>Why Choose BeGPL?</h2>
            <ul>
                <li>✅ Lifetime Free Updates</li>
                <li>✅ Unlimited Downloads Membership</li>
                <li>✅ Access to 45,000+ Premium Themes &amp; Plugins</li>
                <li>✅ Instant Downloads After Purchase</li>
                <li>✅ Secure Checkout and Payment</li>
                <li>✅ 100% Original &amp; Unmodified Files</li>
                <li>✅ Money-Back Guarantee</li>
                <li>✅ Priority Support</li>
            </ul>
            <p>Explore 45,000+ GPL WordPress Plugins and Themes</p>
            <p>If you don't find what you need, we can help you get it!</p>
            <p>Save money on renewals! We offer pre-activated<br> themes, plugins, or scripts at a one-time cost.</p>
            <p>Need Help? Contact Us:</p>
            <p>WhatsApp: <a href="https://wa.me/447445505361">+44 7 4455 0 5361</a></p>
</div>

<h2>Before aMember is ready to use you will also need to do the following:</h2>
<p>Go to the <a href='../admin-setup' target=_blank>Admin Setup/Configuration page</a>
    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.
<p>Go to the <a href='../admin-products' target=_blank>Admin Products page</a> and
    add your products or subscription types.</p>
<p>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.</p>
<p>Remember, a 'Product' or 'Subscription Type' is just a different way to refer to the same thing,
    which is an aMember database record.</p>
<p>You may specify the Subscription Type (free or paid signup, etc.) as you enter each product.</p>

<h2>It is important to set up at least one product!</h2>
<p>Determine whether your payment system(s) require any special configuration. If
    so then you can refer to the
    <a href='https://www.amember.com/docs/Installation' target=_blank>Installation Manual</a>
    for more information, or contact CGI-Central for script customization services.</p>
<p>Visit <a href='../admin-content'></a> Setup your protection for protected areas or upload files for customers.</p>
<p>Check your installation by testing your
    <a href='../signup' target=_blank>Signup Page</a>.</p>

<p><strong>Feel free to contact <a href='https://www.amember.com/support/' target=_blank>CGI-Central Support</a> if you need any customization of the script.</strong></p>

<p>You can also find a lot of useful info in the <a href='https://www.amember.com/forum/?from=setup' target=_blank>aMember Forum</a>.</p>
CUT;}function i1b(){$g33=$this->d6().base64_decode('Cgo=').ob_get_clean();$m63=$this->$t28;$m63=str_replace(base64_decode('PCEtLVRJVExFLS0+'),$this->$w5a,$m63);$m63=str_replace(base64_decode('PCEtLUNPTlRFTlQtLT4='),$g33,$m63);echo $m63;}function x1c(){$this->d4();ob_start();$e64=intval(@$_REQUEST[base64_decode('c3RlcA==')]);if($e64!=5&&!$this->w8()){$this->$w5a=base64_decode('QW1lbWJlciBTZXR1cCA6IGlzIGFscmVhZHkgaW5zdGFsbGVk');return $this->i1b();}if(!$this->ub()){$this->$w5a=base64_decode('QW1lbWJlciBTZXR1cCA6IGZvbGRlcnMgcGVybWlzc2lvbnMgbXVzdCBiZSBmaXhlZA==');return $this->i1b();}if(!$this->ma()){$this->$w5a=base64_decode('QW1lbWJlciBTZXR1cCA6IEV4dGVuc2lvbnMgcmVxdWlyZWQ=');return $this->i1b();}$this->$w5a=base64_decode('YU1lbWJlciBTZXR1cDogU3RlcCA=').($e64+1).base64_decode('IG9mIDQ=');switch($e64){case 0:case base64_decode('MA=='):$this->oe();break;case 1:case base64_decode('MQ=='):if(!$this->yf())$this->oe();else $this->y11();break;case 2:case base64_decode('Mg=='):if(!$this->e12())$this->y11();else $this->k14();break;case 3:case base64_decode('Mw=='):if(!$this->yf())$this->oe();elseif(!$this->e12())$this->y11();else $this->q18();break;case 5:case base64_decode('NQ=='):$this->$w5a=base64_decode('YU1lbWJlciBTZXR1cDogU3RlcCA=').($e64-1).base64_decode('IG9mIDQ=');$this->x1a();break;case 9:case base64_decode('OQ=='):return $this->t17();break;default:die(base64_decode('VW5rbm93biBzdGVwOiA=').$e64);}return $this->i1b();}}$c65=new s1e;$a66=date(base64_decode('WQ=='));$c65->z3(<<<EOF
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><!--TITLE--></title>
        <link href="../application/default/views/public/css/reset.css" rel="stylesheet" type="text/css" />
        <link href="../application/default/views/public/css/amember.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" ></script>
        <style>
            div.am-row-wide div.am-element-title{
                float: none;
                width: 100%;
                text-align: center;
                padding: 1em 0 0 1em;
            }

            div.am-row-wide div.am-element {
                margin:0;
                padding:1em;
            }
            div.am-row-wide textarea {
                margin:0;
                width: 95%;
            }
            div.am-row div.comment {
                font-style: italic;
                margin-top: 0.2em;
                color:#aaa;
            }
        </style>
    </head>
    <body>
        <div class="am-layout am-common">
            <a id="top"></a>
            <div class="am-header">
                <div class="am-header-content-wrapper am-main">
                    <div class="am-header-content">
                        <img src="../application/default/views/public/img/header-logo.png" alt="aMember Pro" />
                    </div>
                </div>
            </div>
            <div class="am-header-line">

            </div>
            <div class="am-body">
                <div class="am-body-content-wrapper am-main">
                    <div class="am-body-content" style=" position: relative; ">
                        <!-- content starts here -->
                        <!--CONTENT-->
                    </div>
                </div>
            </div>
        </div>
        <div class="am-footer">
            <div class="am-footer-content-wrapper am-main">
                <div class="am-footer-content">
                    aMember Pro&trade; 6.3.31 by <a href="https://www.amember.com">aMember.com</a>  &copy; 2002&ndash;$a66 BeGPL.com | LicenseDash
                </div>
            </div>
        </div>
    </body>
</html>
EOF);$c65->x1c();