Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.8.9
- * @ Author : DeZender
- * @ Release on : 10.05.2019
- * @ Official site : http://DeZender.Net
- *
- */
- if (!defined('WHMCS')) {
- exit('This file cannot be accessed directly');
- }
- $output = "\r\n" . '<div class="appprovision-pkg-container" style="font-weight:bold;font-size:14px;">New WordPress Package Settings</div><br>' . "\r\n" . '<script type="text/javascript">' . "\r\n" . 'function submitproductform() {' . "\r\n" . ' var message = "";' . "\r\n" . ' if (document.getElementById("product_id").value == 0) {' . "\r\n" . ' message = message + "You must select a product.\\n";' . "\r\n" . ' }' . "\r\n\t" . 'if (document.getElementById("createsubdomain").checked == true) {' . "\r\n\t\t" . 'if (document.getElementById("installfolder").value == "") {' . "\r\n\t\t" . ' message = message + "You must enter an installation folder value in order to create a sub-domain.\\n";' . "\r\n\t\t" . '}' . "\r\n\t" . '}' . "\r\n" . ' if (document.getElementById("defaultblogname").value == "") {' . "\r\n" . ' message = message + "You must enter a default blog title.\\n";' . "\r\n" . ' }' . "\r\n" . ' if (document.getElementById("defaultblogdesc").value == "") {' . "\r\n" . ' message = message + "You must enter a default blog description.\\n";' . "\r\n" . ' }' . "\r\n" . ' if (document.getElementById("ftpport").value == "" || isNaN(document.getElementById("ftpport").value)) {' . "\r\n" . ' message = message + "You must enter a valid FTP port number.\\n";' . "\r\n" . ' }' . "\r\n" . ' if (document.getElementById("welcomeemail").checked == true) {' . "\r\n" . ' if (document.getElementById("emailtemplate").value == "") {' . "\r\n" . ' message = message + "You must specify an e-mail template to send welcome e-mails.\\n";' . "\r\n" . ' }' . "\r\n" . ' }' . "\r\n" . ' if (document.getElementById("customfile1").value != "") {' . "\r\n" . ' if (document.getElementById("customfile1path").value == "") {' . "\r\n" . ' message = message + "You must specify a file name for Custom File #1.\\n";' . "\r\n" . ' }' . "\r\n" . ' }' . "\r\n" . ' if (document.getElementById("customfile2").value != "") {' . "\r\n" . ' if (document.getElementById("customfile2path").value == "") {' . "\r\n" . ' message = message + "You must specify a file name for Custom File #2.\\n";' . "\r\n" . ' }' . "\r\n" . ' }' . "\r\n" . ' if (document.getElementById("customfile3").value != "") {' . "\r\n" . ' if (document.getElementById("customfile3path").value == "") {' . "\r\n" . ' message = message + "You must specify a file name for Custom File #3.\\n";' . "\r\n" . ' }' . "\r\n" . ' }' . "\r\n" . ' if (message != "") {' . "\r\n" . ' alert(message);' . "\r\n" . ' return false;' . "\r\n" . ' }' . "\r\n\r\n" . ' //Mod Security Base_64 Conversions' . "\r\n" . ' var encodeString = "";' . "\r\n" . ' encodeString = btoa(encodeURIComponent(document.getElementById("htaccess").value));' . "\r\n" . ' document.getElementById("htaccess").value = encodeString;' . "\r\n" . ' encodeString = btoa(encodeURIComponent(document.getElementById("regexval").value));' . "\r\n" . ' document.getElementById("regexval").value = encodeString;' . "\r\n" . ' encodeString = btoa(encodeURIComponent(document.getElementById("wpconfig").value));' . "\r\n" . ' document.getElementById("wpconfig").value = encodeString;' . "\r\n" . ' encodeString = btoa(encodeURIComponent(document.getElementById("customfile1").value));' . "\r\n" . ' document.getElementById("customfile1").value = encodeString;' . "\r\n" . ' encodeString = btoa(encodeURIComponent(document.getElementById("customfile2").value));' . "\r\n" . ' document.getElementById("customfile2").value = encodeString;' . "\r\n" . ' encodeString = btoa(encodeURIComponent(document.getElementById("customfile3").value));' . "\r\n" . ' document.getElementById("customfile3").value = encodeString;' . "\r\n" . '}' . "\r\n" . 'function backToList() {' . "\r\n" . ' location.href = "addonmodules.php?module=ibg_app_installer_wp";' . "\r\n" . '}' . "\r\n" . 'function disableFields(addon = false) {' . "\r\n" . ' document.getElementById("htaccess").style.display="none";' . "\r\n" . ' document.getElementById("regexval").style.display="none";' . "\r\n" . ' document.getElementById("wpconfig").style.display="none";' . "\r\n" . ' document.getElementById("customfile1").style.display="none";' . "\r\n" . ' document.getElementById("customfile2").style.display="none";' . "\r\n" . ' document.getElementById("customfile3").style.display="none";' . "\r\n\t" . 'if (document.getElementById("welcomeemail").checked == true) {' . "\r\n\t" . ' document.getElementById("emailtemplate").disabled = false;' . "\r\n\t" . '} else {' . "\r\n" . ' document.getElementById("emailtemplate").disabled = true;' . "\r\n" . ' document.getElementById("emailtemplate").value = "";' . "\r\n\t" . '}' . "\r\n" . '}' . "\r\n" . 'function openTab(evt, tabName) {' . "\r\n" . ' var i, x, tablinks;' . "\r\n" . ' x = document.getElementsByClassName("pkgtab");' . "\r\n" . ' for (i = 0; i < x.length; i++) {' . "\r\n" . ' x[i].style.display = "none";' . "\r\n" . ' }' . "\r\n" . ' tablinks = document.getElementsByClassName("tablink");' . "\r\n" . ' for (i = 0; i < x.length; i++) {' . "\r\n" . ' tablinks[i].className = tablinks[i].className.replace(" appprovision-navbar-gray", "");' . "\r\n" . ' }' . "\r\n" . ' document.getElementById(tabName).style.display = "block";' . "\r\n" . ' evt.currentTarget.className += " appprovision-navbar-gray";' . "\r\n" . '}';
- $wpconfigpart1 = '<?php<br>';
- $wpconfigpart1 .= '/**<br>';
- $wpconfigpart1 .= ' * The base configurations of the WordPress.<br>';
- $wpconfigpart1 .= ' *<br>';
- $wpconfigpart1 .= ' * This file has the following configurations: MySQL settings, Table Prefix,<br>';
- $wpconfigpart1 .= ' * Secret Keys, WordPress Language, and ABSPATH. You can find more information<br>';
- $wpconfigpart1 .= ' * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing<br>';
- $wpconfigpart1 .= ' * wp-config.php} Codex page. You can get the MySQL settings from your web host.<br>';
- $wpconfigpart1 .= ' *<br>';
- $wpconfigpart1 .= ' * @package WordPress<br>';
- $wpconfigpart1 .= ' */<br>';
- $wpconfigpart1 .= '<br>';
- $wpconfigpart1 .= '// ** MySQL settings - You can get this info from your web host ** //<br>';
- $wpconfigpart1 .= '/** The name of the database for WordPress */<br>';
- $wpconfigpart1 .= 'define(\'DB_NAME\', \'[database_name]\');<br>';
- $wpconfigpart1 .= '<br>';
- $wpconfigpart1 .= '/** MySQL database username */<br>';
- $wpconfigpart1 .= 'define(\'DB_USER\', \'[database_user]\');<br>';
- $wpconfigpart1 .= '<br>';
- $wpconfigpart1 .= '/** MySQL database password */<br>';
- $wpconfigpart1 .= 'define(\'DB_PASSWORD\', \'[database_password]\');<br>';
- $wpconfigpart1 .= '<br>';
- $wpconfigpart1 .= '/** MySQL hostname */<br>';
- $wpconfigpart1 .= 'define(\'DB_HOST\', \'localhost\');<br>';
- $wpconfigpart1 .= '<br>';
- $wpconfigpart1 .= '/**#@+<br>';
- $wpconfigpart1 .= ' * Authentication Unique Keys and Salts.<br>';
- $wpconfigpart1 .= ' *<br>';
- $wpconfigpart1 .= ' * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}<br>';
- $wpconfigpart1 .= ' * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.<br>';
- $wpconfigpart1 .= ' *<br>';
- $wpconfigpart1 .= ' * @since 2.6.0<br>';
- $wpconfigpart1 .= ' */<br>';
- $wpconfigpart1 .= '<br>';
- $wpconfigpart1 .= 'define(\'SECURE_AUTH_KEY\', \'%F|_6-]=Y4TJ05`7&}X<<-4>^Z:`tCW04T$:,R|4x.r$]+(8fQSJsrILQW?!B-4E\');<br>';
- $wpconfigpart1 .= 'define(\'LOGGED_IN_KEY\', \'2xupe!X>4vXa ^*.B)@_W`q(cj#Hdma+A]%M|4[lQ^a_i/h%x|$]@Xx/vZ+oSw-,\');<br>';
- $wpconfigpart1 .= 'define(\'NONCE_KEY\', \'g!ZB;Ys]+Vq e Y;jM[q*Z6u}>V[ fVNHzP0e=a>}WU[Kk<:cd4T-Po@;K~||CH&\');<br>';
- $wpconfigpart1 .= 'define(\'AUTH_SALT\', \'^IlPxg@muTHal2??VoJGf-H3|60Ix}[C>B_}+nH-7[Ei|=-`|vy8gQlYuqw6Y;38\');<br>';
- $wpconfigpart1 .= 'define(\'SECURE_AUTH_SALT\', \';|KYWV~#|pCz6^!q+Lf{3Q:|b-7!MS-U`cr$m:2Ir49Z%B4U,GqrD7,-cx(-[Az+\');<br>';
- $wpconfigpart1 .= 'define(\'LOGGED_IN_SALT\', \'U[:OSi=4F r#3;NKa|k<`xJY?IBN;YZ~~AUmkqlZ=:ZN;;ea W5|QhUX8KU^`N)-\');<br>';
- $wpconfigpart1 .= 'define(\'NONCE_SALT\', \'W>5P?FXR)5b-rw$n7*&,B6B[00]KL-N=>y)^gR?, =ws_ xEc0[%xT[-yRq8I4eS\');<br>';
- $wpconfigpart1 .= '<br>';
- $wpconfigpart1 .= '/**#@-*/<br>';
- $wpconfigpart1 .= '<br>';
- $wpconfigpart1 .= '/**<br>';
- $wpconfigpart1 .= ' * WordPress Database Table prefix.<br>';
- $wpconfigpart1 .= ' *<br>';
- $wpconfigpart1 .= ' */<br>';
- $wpconfigpart1 .= '\\$table_prefix = \'xwp_\';<br>';
- $wpconfigpart1 .= '<br>';
- $wpconfigpart1 .= '/* User defined variables. */<br>';
- $wpconfigpart1 .= '<br>';
- $wpconfigpart2 = '<br><br>';
- $wpconfigpart2 .= ' /* For developers: WordPress debugging mode.<br>';
- $wpconfigpart2 .= ' *<br>';
- $wpconfigpart2 .= ' * Change this to true to enable the display of notices during development.<br>';
- $wpconfigpart2 .= ' * It is strongly recommended that plugin and theme developers use WP_DEBUG<br>';
- $wpconfigpart2 .= ' * in their development environments.<br>';
- $wpconfigpart2 .= ' */<br>';
- $wpconfigpart2 .= 'define(\'WP_DEBUG\', false);<br>';
- $wpconfigpart2 .= '<br>';
- $wpconfigpart2 .= '/* That\'s all, stop editing! Happy blogging. */<br>';
- $wpconfigpart2 .= '<br>';
- $wpconfigpart2 .= '/** Absolute path to the WordPress directory. */<br>';
- $wpconfigpart2 .= 'if ( !defined(\'ABSPATH\') )<br>';
- $wpconfigpart2 .= "\t" . 'define(\'ABSPATH\', dirname(__FILE__) . \'/\');<br>';
- $wpconfigpart2 .= '<br>';
- $wpconfigpart2 .= '/** Sets up WordPress vars and included files. */<br>';
- $wpconfigpart2 .= 'require_once(ABSPATH . \'wp-settings.php\');';
- $output .= "\r\n" . 'function updateWpconfigSample() {' . "\r\n" . ' var wpconfigpart1 = "' . $wpconfigpart1 . '";' . "\r\n" . ' var wpconfigpart2 = "' . $wpconfigpart2 . '";' . "\r\n" . ' var wpconfigcustom = document.getElementById("wpconfig").value;' . "\r\n" . ' document.getElementById("wpconfig-sample").innerHTML = wpconfigpart1 + "<span style=\'font-weight:bold;color:yellow;\'>" + wpconfigcustom.replace(/(?:\\r\\n|\\r|\\n)/g, "<br>") + "</span>" + wpconfigpart2;' . "\r\n" . '}' . "\r\n" . '</script>' . "\r\n\r\n" . '<form name="productform" id="productform" method="post" action="addonmodules.php?module=ibg_app_installer_wp&action=new&' . rand() . '" onsubmit="return submitproductform();">' . "\r\n" . ' <div class="appprovision-pkg-container">Select an Associated WHMCS Product or Product Addon: ';
- $listcnt = 0;
- $list = '';
- if ($result = $appprovisioning->getWHMCSDBLink()->query('SELECT * FROM (SELECT tblproducts.id AS product_id, 1 AS product_type, tblproducts.name AS name,tblproductgroups.name AS groupname FROM tblproducts INNER JOIN tblproductgroups ON tblproductgroups.id=tblproducts.gid UNION SELECT tbladdons.id AS product_id, 2 AS product_type, tbladdons.name AS name, \'Product Addon\' AS groupname FROM tbladdons) AS U WHERE CONCAT(U.product_id, \'-\', U.product_type) NOT IN (SELECT product_id FROM mod_ibg_app_installer_wp) ORDER BY U.product_type, U.name')) {
- while ($obj = $result->fetch_object()) {
- $list .= '<option value="' . $obj->product_id . '-' . $obj->product_type . '">' . $obj->groupname . ' - ' . $obj->name . '</option>';
- $listcnt++;
- }
- $result->close();
- }
- if (0 < $listcnt) {
- $output .= '<select name="product_id" id="product_id"><option value=""></option>' . $list . '</select>';
- }
- else {
- $output .= ' <strong>There are no associated products to display.</strong>';
- }
- $output .= "\r\n\t" . '</div><br>';
- if (0 < $listcnt) {
- $output .= "\r\n\t\t" . '<script type="text/javascript">' . "\r\n\t\t" . '$(function () {' . "\r\n\t\t" . ' var $product = $(\'select[name=product_id]\');' . "\r\n\t\t" . ' var $fields = $(\'select[name=customfolder]\');' . "\r\n\t\t" . ' var $fieldList = $fields.find(\'option\').clone();' . "\r\n\t\t" . ' var productfieldlist = {' . "\r\n\t\t" . ' ';
- $listcnt1 = 0;
- $list1 = '';
- $listcnt2 = 0;
- $list2 = '';
- if ($result1 = $appprovisioning->getWHMCSDBLink()->query('SELECT tblcustomfields.fieldname FROM tblcustomfields WHERE tblcustomfields.type = \'product\' AND (tblcustomfields.fieldtype = \'text\' OR tblcustomfields.fieldtype = \'dropdown\') GROUP BY tblcustomfields.fieldname ORDER BY tblcustomfields.fieldname')) {
- while ($obj1 = $result1->fetch_object()) {
- $list2 .= '"' . $obj1->fieldname . '",';
- ..............................................................................
- ...............................................
- ......................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement