0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
marketting
/
install
/
[
Home
]
File: index.php
<?php ##################################################################################### ## JROX.COM eCommerce Manager Installer ## Version 1.0.2 ## ## Author: Ryan Roxas(ryan@jrox.com) ## Homepage: http://jam.jrox.com ## Bug Reports: http://dev.jrox.com ## Release Notes: docs/READ_ME.txt ####################################################################################### ####################################################################################### ## COPYRIGHT NOTICE ## Copyright 2009 JROX Technologies, Inc. All Rights Reserved. ## ## This script may be only used and modified in accordance to the license ## agreement attached (license.txt) except where expressly noted within ## commented areas of the code body. This copyright notice and the ## comments above and below must remain intact at all times. By using this ## code you agree to indemnify JROX Technologies, Inc, its corporate agents ## and affiliates from any liability that might arise from its use. ## ## Selling the code for this program without prior written consent is ## expressly forbidden and in violation of Domestic and International ## copyright laws. ####################################################################################### ####################################################################################### ## JEM Installer ####################################################################################### define('JROX_INSTALLER', 1); define('DEFAULT_THEME', 'default'); require_once ('../JEM.php'); if (empty($_GET['step'])) { //check if ioncube version is loaded header('Location:check_ioncube.php'); /* if (is_dir('../ioncube')) { //header('Location:check_ioncube.php'); } else { //check for zend version if (!function_exists('zend_optimizer_version')) { echo '<html> <head> <style> @charset "utf-8"; body { background:#666; font: 12px Verdana, Arial, Helvetica, sans-serif; color:#666666; } .notes { border: 1px dotted #666; margin: 1em; padding: 1em 1em 1em 3px; background: #fff; } .jroxContainer { margin: 1em auto; width: 600px; border: 4px outset #EBEBEB; background: #fff; } .jroxContainer h1 { font-size:16px; padding: 6px 1em; margin: 0; background:#efefef; } .jroxContent { padding: 2em; line-height: 1.6em; } .idiv { padding: 1em; border-bottom: 1px dotted #CCCCCC; } .idiv li { list-style:square; margin-top: 8px; list-style-position:outside; margin-left: 0; padding-left: 0; } .strong { font-weight:bold; font-size: 14px; } .style1 { font-weight: bold; font-style: italic; } .topmargin { margin-top: 1em; } .input label { font-size: 13px; text-transform: capitalize; display:block; margin-bottom: 8px; } .error { border: 1px solid #CC0000; padding: 1em; color: #CC3300; background:#FFD7D7; margin: 1em auto; text-transform: capitalize; } .input label span { font-weight:bold; } .textarea { width: 500px; height: 500px; overflow-y: scroll; overflow-x: hidden; border: 1px dotted #ccc; font-size: 11px; font-family: Arial, Helvetica, sans-serif; padding: 5px; background: #fff; color: #666; text-align:left; } .input input { font-size: 13px; border: 1px dotted #CCCCCC; padding: 3px; width: 300px; background: #D9FFD9; color: #666666; } .continue { display: block; border: 1px solid #efefef; padding: 5px; margin: 1em; font-size: 13px; color: #333; font-weight:bold; background:#ccc; width: 200px; text-decoration: none; }</style> <title>Checking Zend Optimizer</title></head> <body> <div class="jroxContainer" align="center"> <h1>Application Installer - Checking Zend Optimizer...</h1><div class="jroxContent"> Checking to see if your server has Zend Optmizer Installed...<br><br><b><font color=red>Zend Optimizer is not Installed...</font></b><br>Please ask your web host to install Zend Optimizer.<br /><br /> </div></div> </body></html> '; } else { header('Location:index.php?step=1'); } } */ } else { $body = ' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Installer</title> </head> <link rel="stylesheet" href="style.css" type="text/css" media="screen, projection" /> <style> @charset "utf-8"; /* CSS Document */ body { background:#666; font: 12px Verdana, Arial, Helvetica, sans-serif; color:#666666; } .notes { border: 1px dotted #666; margin: 1em; padding: 1em 1em 1em 3px; background: #fff; } .postnotes { border: 1px dotted #ff3300; margin: 1em; padding: 1em 1em 1em 3px; background: #f4f4f4; } .jroxContainer { margin: 1em auto; width: 600px; border: 4px outset #EBEBEB; background: #fff; } .jroxContainer h1 { font-size:16px; padding: 6px 1em; margin: 0; background:#efefef; } .jroxContent { padding: 2em; line-height: 1.6em; } .idiv { padding: 1em; border-bottom: 1px dotted #CCCCCC; } .idiv li { list-style:square; margin-top: 8px; list-style-position:outside; margin-left: 0; padding-left: 0; } .strong { font-weight:bold; font-size: 14px; } .style1 { font-weight: bold; font-style: italic; } .topmargin { margin-top: 1em; } .input label { font-size: 13px; text-transform: capitalize; display:block; margin-bottom: 8px; } .error { border: 1px solid #CC0000; padding: 1em; color: #CC3300; background:#FFD7D7; margin: 1em auto; text-transform: capitalize; } .input label span { font-weight:bold; } .textarea { width: 500px; height: 500px; overflow-y: scroll; overflow-x: hidden; border: 1px dotted #ccc; font-size: 11px; font-family: Arial, Helvetica, sans-serif; padding: 5px; background: #fff; color: #666; text-align:left; } .input input { font-size: 13px; border: 1px dotted #CCCCCC; padding: 3px; width: 300px; background: #D9FFD9; color: #666666; } .continue { display: block; border: 1px solid #efefef; padding: 5px; margin: 1em; font-size: 13px; color: #333; font-weight:bold; background:#ccc; width: 200px; text-decoration: none; } </style> <body> <div class="jroxContainer"> <h1>Application Installer</h1> <div class="jroxContent">'; switch ($_GET['step']) { case "1": $body .= "<form action='index.php' method='get' name='form'><div class='idiv strong'>Step 1 of 2: End-User License Agreement...</div>"; $body .= '<div class="idiv" align="center"><div class="textarea">' . nl2br(read_file('JEM_license.txt')) . '</div></div>'; $body .= '<div class="idiv input padding" align="center"> <label><span><input name="accept" type="checkbox" id="accept" value="1" style="width: 20px;"/> check the box only if you agree to the licensing agreement </span></label> </div>'; $body .= "<div align='center' style='margin-bottom:2em'><input type=hidden name='step' value='2' id='step'/><button class='continue' type='submit'>Click Here To Continue</button></div>"; break; case "2": if (!empty($_POST)) { $check_error = check_data($_POST); if (empty($check_error['errors'])) { header("Location:index.php?step=done&u=" . $check_error['u'] . "&p=" . $check_error['p'] . "&l=" . $check_error['l'] ); exit(); } } elseif (empty($_GET['accept'])) { header("Location:index.php?step=1"); exit(); } if (!empty($check_error['errors'])) { $body .= "<div class='idiv error'><p><img src='error.gif' width='16' height='16' align='absmiddle' /> <strong>You have errors in your submission:</strong></p> <p>" . $check_error['errors'] . "</p> </div>"; } $body .= "<form action='index.php?step=2' method='post' name='form'><div class='idiv strong'>Step 2 of 2: Checking System Requirements...</div>"; //first check for system requirements $body .= "<div class='idiv'><img src='warning.png' width='16' height='16' align='absmiddle' /> Make sure that you have uploaded all files in BINARY FORMAT</div>"; if (phpversion() >= "5.2") { $body .= "<div class='idiv'><img src='tick.png' width='16' height='16' align='absmiddle' /> PHP version 5.2 or greater is installed</div>"; } else { $error = true; $body .= "<div class='idiv'><img src='error.gif' width='16' height='16' align='absmiddle' /> JAM requires at least PHP version 5.2 or greater. Your current PHP version is: ". phpversion()."</div>"; } if (function_exists('mysql_connect')) { $body .= "<div class='idiv'><img src='tick.png' width='16' height='16' align='absmiddle' /> MySQL Database seems to be installed</div>"; } else { $body .= "<div class='idiv'><img src='error.gif' width='16' height='16' align='absmiddle' /> MySQL Database not detected. Please check to see if MySQL is compiled with PHP</div>"; $error = true; } if (extension_loaded('curl')) { $body .= "<div class='idiv'><img src='tick.png' width='16' height='16' align='absmiddle' /> Curl seems to be Installed</div>"; $ch = curl_init('http://www.jrox.com/index.php/licensing/check'); curl_setopt($ch, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, '10'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Returns response data instead of TRUE(1) //curl_setopt($ch, CURLOPT_POSTFIELDS, rtrim( $fields, "& " )); // use HTTP POST to send form data curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // uncomment this line if you get no gateway response. ### $resp = curl_exec($ch); //execute post and get results curl_close ($ch); if (ereg("INVALID",$resp)) { $body .= "<div class='idiv'><img src='tick.png' width='16' height='16' align='absmiddle' /> Curl Connectivity Verified Successfully</div>"; } else { $body .= "<div class='idiv'><img src='error.gif' width='16' height='16' align='absmiddle' /> Could not connect to licensing server</div>"; //$error = true; } } else { $body .= "<div class='idiv'><img src='error.gif' width='16' height='16' align='absmiddle' /> Curl has not been detected. Please install</div>"; $error = true; } //check mod_rewrite if( function_exists('apache_get_modules') ) { if(in_array('mod_rewrite',apache_get_modules())) { $body .= "<div class='idiv'><img src='tick.png' width='16' height='16' align='absmiddle' /> " . apache_get_version() . " mod_rewrite seems to be enabled</div>"; } else { $body .= "<div class='idiv'><img src='error.gif' width='16' height='16' align='absmiddle' /> The script was not able to check if mod_rewrite is enabled. Please verify this with your web host after installation is done. You can still proceed wit the installation</div>"; } } else { $body .= "<div class='idiv'><img src='error.gif' width='16' height='16' align='absmiddle' /> The script was not able to check if mod_rewrite is enabled. Please verify this with your web host after installation is done.</div>"; } //check for GD Library if (extension_loaded('gd') && function_exists('gd_info')) { $body .= "<div class='idiv'><img src='tick.png' width='16' height='16' align='absmiddle' /> GD Graphics Library seems to be enabled</div>"; } else { $body .= "<div class='idiv'><img src='error.gif' width='16' height='16' align='absmiddle' /> The script was not able to check if the GD Library is installed. Please verify this with your web host after installation is done.</div>"; } //enter database info if no errors if (empty($error)) { $body .= "<div class='idiv strong topmargin'>Enter JEM Installation Code...</div>"; $body .= '<div class="idiv input padding"> <label><span>JEM Installation Code</span> - you should have received this when downloading</label> <input name="jemcode" id="jemcode" type="text" value="'; if (empty($_POST['jemcode'])) { $body .= ''; } else { $body .= $_POST['jemcode']; } $body .='"/> </div>'; $body .= "<div class='idiv strong topmargin'>Enter Database Info...</div>"; $body .= '<div class="idiv input padding"> <label><span>database server</span> - the name of the server where your database is at</label> <input name="hostname" id="hostname" type="text" value="'; if (empty($_POST['hostname'])) { $body .= 'localhost'; } else { $body .= $_POST['hostname']; } $body .='"/> </div>'; $body .= '<div class="idiv input padding"> <label><span>database name</span> - the name of your database</label> <input name="database" id="database" type="text" value="'; if (empty($_POST['database'])) { $body .= 'database_name'; } else { $body .= $_POST['database']; } $body .='"/> </div>'; $body .= '<div class="idiv input padding"> <label><span>database username</span> - the username that will connect to your database</label> <input name="username" id="username" type="text" value="'; if (empty($_POST['username'])) { $body .= 'database_user'; } else { $body .= $_POST['username']; } $body .='"/> </div>'; $body .= '<div class="idiv input padding"> <label><span>database password</span> - the password of the database user</label> <input name="password" id="password" type="text" value="'; if (empty($_POST['password'])) { $body .= 'database_pass'; } else { $body .= $_POST['password']; } $body .='"/> </div>'; //check the file paths //get url info $current_page = curPageURL(); $page_data = parse_url($current_page); if (!empty($page_data['host'])) { $domain_array = explode('.', $page_data['host']); $subdomain = $domain_array[0]; } $subdomain = 'www'; if (!empty($_SERVER["SERVER_NAME"])) { $domain_name = _format_domain_name($_SERVER['SERVER_NAME']); } else { $domain_name = _format_domain_name($current_page); } if (!empty($page_data['path'])) { $folder_path = str_replace('/install/index.php', '', $page_data['path']); } else { $folder_path = ''; } //echo '<pre>'; print_r($page_data); $body .= "<div class='idiv strong topmargin'>Enter File Paths...</div>"; if (file_exists(PUBPATH . '/system/application/controllers/home.php')) { $body .= '<input name="base_physical_path" id="base_physical_path" type="hidden" value="PUBPATH" />'; } else { $body .= '<div class="idiv input padding"> <label><span>base physical path</span> - the full file path to your installation</label> <input name="base_physical_path" id="base_physical_path" type="text" value="'; if (empty($_POST['base_physical_path'])) { $body .= PUBPATH; } else { $body .= $_POST['base_physical_path']; } $body .='"/> </div>'; } $body .= '<div class="idiv input padding"> <label><span>base folder path</span> - the path to the installation folder (ex. /shop)</label> <input name="base_folder_path" id="base_folder_path" type="text" value="'; if (empty($_POST['base_folder_path'])) { $body .= $folder_path; } else { $body .= $_POST['base_folder_path']; } $body .='"/> </div>'; $body .= '<div class="idiv input padding"> <label><span>base domain name</span> - your domain name (ex. domain.com)</label> <input name="base_domain_name" id="base_domain_name" type="text" value="'; if (empty($_POST['base_domain_name'])) { $body .= $domain_name; } else { $body .= $_POST['base_domain_name']; } $body .='"/> </div>'; $body .= '<div class="idiv input padding"> <label><span>base subdomain name</span> - the subdomain such as www)</label> <input name="base_subdomain_name" id="base_subdomain_name" type="text" value="'; if (empty($_POST['base_subdomain_name'])) { $body .= $subdomain; } else { $body .= $_POST['base_subdomain_name']; } $body .='"/> </div>'; //enter admin info $admin_email = 'webmaster@' . $domain_name; $body .= "<div class='idiv strong topmargin'>Enter Admin Info...</div>"; $body .= '<div class="idiv input padding"> <label><span>admin first name</span></label> <input name="admin_fname" id="admin_fname" type="text" value="'; if (empty($_POST['admin_fname'])) { $body .= 'admin'; } else { $body .= $_POST['admin_fname']; } $body .='"/> </div>'; $body .= '<div class="idiv input padding"> <label><span>admin last name</span></label> <input name="admin_lname" id="admin_lname" type="text" value="'; if (empty($_POST['admin_lname'])) { $body .= 'user'; } else { $body .= $_POST['admin_lname']; } $body .='"/> </div>'; $body .= '<div class="idiv input padding"> <label><span>admin email address</span></label> <input name="admin_email" id="admin_email" type="text" value="'; if (empty($_POST['admin_email'])) { $body .= $admin_email; } else { $body .= $_POST['admin_email']; } $body .='"/> </div>'; $body .= '<div class="idiv input padding"> <label><span><input name="send_login" type="checkbox" id="send_login" value="1" style="width: 10px;"/> click to send login details to admin </span></label> </div>'; $body .= "<div align='center' style='margin-bottom:2em'><button type='submit' class='continue'>Click Here To Continue</button></div></form>"; } break; case "done": //now try to at least delete the installer and the sql file @unlink ('index.php'); @unlink ('jem_db.sql'); @unlink('check_ioncube.php'); @unlink('error.gif'); @unlink('ioncube-encoded-file.php'); @unlink('JEM_license.txt'); @unlink('style.css'); @unlink('tick.png'); @unlink('error_log'); @unlink('warning.png'); //try write to .htaccess file $body .= "<div class='idiv strong topmargin'>Installation Success!</div>"; $body .= "<div class='idiv'><img src='tick.png' width='16' height='16' align='absmiddle' /> <span class='strong'>Admin Username:</span> " . $_GET['u'] . "</div>"; $body .= "<div class='idiv'><img src='tick.png' width='16' height='16' align='absmiddle' /> <span class='strong'>Admin Password:</span> " . $_GET['p'] . "</div>"; $body .= "<div class='idiv'> <p>You can change your username/password in Members > Manage Admins after logging in... </p> <p><strong style=\"color:#ff3300\">IMPORTANT - Post-Installation Notes:</strong></p> <div class=\"postnotes\"> <ul>"; if (@rmdir ('../install') == false) { $body .= "<li>Make sure to delete the<strong><em> /install</em></strong> folder for security.</li>"; } //lets check the permissions for the images folder if (!is_writable('../images/admins')) { if (@chmod('../images/admins', 0777) == false) { $body .= "<li>If you want to upload admin photos, make sure the <strong>/images/admins</strong> folder is writeable</li>"; } } if (!is_writable('../images/banners')) { if (@chmod('../images/banners', 0777) == false) { $body .= "<li>If you want to upload banners, make sure the <strong>/images/banners</strong> folder is writeable</li>"; } } if (!is_writable('../images/captcha')) { if (@chmod('../images/captcha', 0777) == false) { $body .= "<li>If you want to use CAPTCHA images for forms, make sure the <strong>/images/captcha</strong> folder is writeable</li>"; } } if (!is_writable('../images/manufacturers')) { if (@chmod('../images/manufacturers', 0777) == false) { $body .= "<li>If you want to use upload manufacturer images, make sure the <strong>/images/manufacturers</strong> folder is writeable</li>"; } } if (!is_writable('../images/members')) { if (@chmod('../images/members', 0777) == false) { $body .= "<li>If you want to use upload member images, make sure the <strong>/images/members</strong> folder is writeable</li>"; } } if (!is_writable('../images/products')) { if (@chmod('../images/products', 0777) == false) { $body .= "<li>If you want to use upload products images, make sure the <strong>/images/products</strong> folder is writeable</li>"; } } if (!is_writable('../images/products_categories')) { if (@chmod('../images/products_categories', 0777) == false) { $body .= "<li>If you want to use upload product category images, make sure the <strong> /images/products_categories</strong> folder is writeable</li>"; } } $body .= "<li>If you get an error similiar to the following: <br /> <strong style=\"color:#ff3300\">The encoded file /home/domain/public_html/jem/index.php is corrupt.</strong><br /> You need to make sure you have uploaded all files in BINARY format. </li> <li>Make sure the permissions to the <em><strong>config.php</strong></em> and <em><strong>database.php</strong></em> files are not writeable (444). They are located in the<br /> <span class=\"style1\">/system/application/config folder</span></li> <li><a href=\"http://www.jrox.com/docs\" target=\"_blank\">Click Here to go through the Quick Start Guide and the User Guides for more information on software features and usage.</a></li> </ul> </div> </div>"; $body .= "<div align='center' style='margin-bottom:2em'><a href=\"http://" . $_GET['l'] . "/admin_login\" class='continue'>Click Here To Login</a></div>"; break; } $body .= '</div> </div> </body> </html> '; echo $body; } ?> <?php // ------------------------------------------------------------------------ function check_data() { $error = ''; //check install code if (empty($_POST['jemcode'])) { $error .= "Enter your JEM installation code\n"; } elseif ($_POST['jemcode'] != 'jem0608') { //check the jem code $ch = curl_init('http://www.jrox.com/index.php/licensing/check_install_code/' . trim($_POST['jemcode'])); curl_setopt($ch, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, '10'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Returns response data instead of TRUE(1) //curl_setopt($ch, CURLOPT_POSTFIELDS, rtrim( $fields, "& " )); // use HTTP POST to send form data curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // uncomment this line if you get no gateway response. ### $resp = curl_exec($ch); //execute post and get results curl_close ($ch); if (ereg("VALID_JEM_CODE",$resp)) { //good } else { $error .= "Enter a valid JEM installation code\n"; } } //first check db connectivity if ($sql = @mysql_connect(trim($_POST['hostname']), trim($_POST['username']), trim($_POST['password']))) { if (mysql_select_db($_POST['database'],$sql)) { //check version $t=mysql_query("select version() as ve"); $r=mysql_fetch_array($t); if ($r['ve'] < '4.1') { $error .= "MySQL database must be at version 4.1 and higher\n"; } } else { $error .= "Could not connect to database\n"; } } else { $error .= "Could not connect to database server\n"; } //check if config file is writeable $path = $_POST['base_physical_path'] == 'PUBPATH' ? PUBPATH : $_POST['base_physical_path']; if (!is_writable($path . '/system/application/config/config.php')) { $error .= "the <strong>$path/system/application/config/config.php</strong> file is not writeable. please make sure that it is writeable (chmod 777)\n"; } if (!is_writable($path .'/system/application/config/database.php')) { $error .= "the <strong>$path/system/application/config/database.php</strong> file is not writeable. please make sure that it is writeable (chmod 777)\n"; } //check domain name //check email address if (valid_email($_POST['admin_email']) == false) { $error .= "the admin email address is not properly formatted. please doublecheck\n"; } if (empty($error)) { //write the config.php file $cdata = array( 'encryption_key' => md5(time()), 'base_physical_path' => $_POST['base_physical_path'], 'base_folder_path' => $_POST['base_folder_path'], 'base_domain_name' => $_POST['base_domain_name'], 'base_subdomain_name' => $_POST['base_subdomain_name'], ); //write the database.php file $sdata = array( 'hostname' => $_POST['hostname'], 'database' => $_POST['database'], 'username' => $_POST['username'], 'password' => $_POST['password'], 'cachedir' => $path . '/system/cache/dbcache', ); $config_file = write_data('config', $cdata, $path . '/system/application/config/config.php'); $db_file = write_data('database', $sdata, $path . '/system/application/config/database.php'); //import sql $sql = read_file('jem_db.sql'); //add admin user $admin_username = _generate_username(); $admin_password = _generate_password(); $admin_fname = empty($_POST['admin_fname']) ? 'admin' : $_POST['admin_fname']; $admin_lname = empty($_POST['admin_lname']) ? 'user' : $_POST['admin_lname']; $sql = str_replace('{{admin_fname}}', $admin_fname, $sql); $sql = str_replace('{{admin_lname}}', $admin_lname, $sql); $sql = str_replace('{{admin_username}}', $admin_username, $sql); $sql = str_replace('{{admin_password}}', md5($admin_password), $sql); $sql = str_replace('{{admin_email}}', $_POST['admin_email'], $sql); $sqlArray = explode(';', $sql); foreach ($sqlArray as $stmt) { if (strlen($stmt)>3){ $result = mysql_query($stmt); if (!$result){ $sqlErrorCode = mysql_errno(); $sqlErrorText = mysql_error(); $sqlStmt = $stmt; break; } } } if (!empty($sqlErrorCode)){ echo "<p>An error occured during installation!</p>"; echo "<p>Error code: $sqlErrorCode</p>"; echo "<p>Error text: $sqlErrorText</p>"; echo "<p>Statement:<br/> $sqlStmt</p>"; exit(); } //update euro //update pound $sql = mysql_query("INSERT INTO `jem_currencies` (`currency_id`, `title`, `code`, `symbol_left`, `symbol_right`, `decimal_point`, `thousands_point`, `decimal_places`, `value`) VALUES (1, 'US Dollar', 'USD', '$', '', '.', ',', '2', 1.00), (2, 'Euro', 'EUR', '€', '', '.', ',', '2', 0.78), (3, 'GB Pound', 'GBP', '£', '', '.', ',', '2', 0.65), (4, 'Canadian Dollar', 'CAD', '$', '', '.', ',', '2', 1.24), (5, 'Australian Dollar', 'AUD', '$', '', '.', ',', '2', 1.53), (6, 'Philippine Peso', 'PHP', 'Php', '', '.', ',', '2', 49.01);") or die(mysql_error()); //update home page with image $sql = mysql_query("INSERT INTO `jem_content_articles` (`article_id`, `status`, `content_tags`, `content_type`, `content_path`, `category_id`, `content_title`, `content_body`, `date_published`, `modified_by`, `status_update`, `ping`, `content_description`, `remote_blog_id`) VALUES (1, '1', 'home page', '2', '', 0, '', '<div style=\"text-align: center;\"><img alt=\"\" src=\"" . $_POST['base_folder_path'] . "/images/misc/welcome.png\" border=\"0px\"></div>', '', '', '', '0', '', ''), (2, '1', '', '1', '', 2, 'Privacy Policy', '<span style=\"font-weight: bold;\">What information do we collect?</span><br><br>We collect information from you when you register on our site, place an order, subscribe to our newsletter or fill out a form. <br><br>Any data we request that is not required will be specified as voluntary or optional. <br><br>When\nordering or registering on our site, as appropriate, you may be asked\nto enter your: name, e-mail address, mailing address, phone number or\ncredit card information. You may, however, visit our site anonymously.<br><br>Google,\nas a third party vendor, uses cookies to serve ads on your site.\nGoogle''s use of the DART cookie enables it to serve ads to your users\nbased on their visit to your sites and other sites on the Internet.\nUsers may opt out of the use of the DART cookie by visiting the Google\nad and content network privacy policy. {more}<br><br><span style=\"font-weight: bold;\">What do we use your information for?</span><br><br>Any of the information we collect from you may be used in one of the following ways: <br><br>- To personalize your experience<br>(your information helps us to better respond to your individual needs)<br><br>- To improve our website<br>(we continually strive to improve our website offerings based on the information and feedback we receive from you)<br><br>- To process transactions<br>Your\ninformation, whether public or private, will not be sold, exchanged,\ntransferred, or given to any other company for any reason whatsoever,\nwithout your consent, other than for the express purpose of delivering\nthe purchased product or service requested by the customer. <br><br>- To send periodic emails<br><br>The\nemail address you provide for order processing, may be used to send you\ninformation and updates pertaining to your order or request, in\naddition to receiving occasional company news, updates, promotions,\nrelated product or service information, etc.<br><br>Note: If at any\ntime you would like to unsubscribe from receiving future emails, we\ninclude detailed unsubscribe instructions at the bottom of each email.<br><br>- To administer a contest, promotion, survey or other site feature<br><br><span style=\"font-weight: bold;\">How do we protect your information?</span><br><br>We\nimplement a variety of security measures to maintain the safety of your\npersonal information when you submit a request, place an order or\naccess your personal information. <br><br>These security measures\ninclude: password protected directories and databases to safeguard your\ninformation, SSL (Secure Sockets Layered) technology to ensure that\nyour information is fully encrypted and sent across the Internet\nsecurely or PCI Scanning to actively protect our servers from hackers\nand other vulnerabilities. <br><br>We offer the use of a secure\nserver. All supplied sensitive/credit information is transmitted via\nSecure Socket Layer (SSL) technology and then encrypted into our\nPayment gateway providers database only to be accessible by those\nauthorized with special access rights to such systems, and are required\nto keep the information confidential.<br><br>After a transaction, your private information (credit cards, social security numbers, financials, etc.) will .<br><br><span style=\"font-weight: bold;\">Do we use cookies?</span><br><br>Yes\n(Cookies are small files that a site or its service provider transfers\nto your computers hard drive through your Web browser (if you allow)\nthat enables the sites or service providers systems to recognize your\nbrowser and capture and remember certain information.<br><br><span style=\"font-weight: bold;\">Do we disclose any information to outside parties?</span><br><br>We\ndo not sell, trade, or otherwise transfer to outside parties your\npersonally identifiable information. This does not include trusted\nthird parties who assist us in operating our website, conducting our\nbusiness, or servicing you, so long as those parties agree to keep this\ninformation confidential. We may also release your information when we\nbelieve release is appropriate to comply with the law, enforce our site\npolicies, or protect ours or others'' rights, property, or safety.\nHowever, non-personally identifiable visitor information may be\nprovided to other parties for marketing, advertising, or other uses.<br><br><span style=\"font-weight: bold;\">Third party links</span><br><br>Occasionally,\nat our discretion, we may include or offer third party products or\nservices on our website. These third party sites have separate and\nindependent privacy policies. We therefore have no responsibility or\nliability for the content and activities of these linked sites.\nNonetheless, we seek to protect the integrity of our site and welcome\nany feedback about these sites.<br><br><span style=\"font-weight: bold;\">California Online Privacy Protection Act Compliance</span><br><br>Because\nwe value your privacy we have taken the necessary precautions to be in\ncompliance with the California Online Privacy Protection Act. We\ntherefore will not distribute your personal information to outside\nparties without your consent.<br><br>All users of our site may make any\nchanges to their information at anytime by logging into their control\npanel and going to the ''Edit Profile'' page.<br><br><span style=\"font-weight: bold;\">Childrens Online Privacy Protection Act Compliance</span><br><br>We\nare in compliance with the requirements of COPPA (Childrens Online\nPrivacy Protection Act), we do not collect any information from anyone\nunder 13 years of age. Our website, products and services are all\ndirected to people who are at least 13 years old or older.<br><br><span style=\"font-weight: bold;\">CAN-SPAM Compliance</span><br><br>We\nhave taken the necessary steps to ensure that we are compliant with the\nCAN-SPAM Act of 2003 by never sending out misleading information.<br><br><span style=\"font-weight: bold;\">Online Privacy Policy Only</span><br><br>This online privacy policy applies only to information collected through our website and not to information collected offline.', '1255102644', 'gonadmin', '', '0', '', ''); ") or die(mysql_error()); //add templates $sql = mysql_query("INSERT INTO `jem_email_templates` (`id`, `email_template_type`, `email_template_html`, `email_template_group`, `email_template_name`, `email_template_from_name`, `email_template_from_email`, `email_template_cc`, `email_template_bcc`, `email_template_subject`, `email_template_body_text`, `email_template_body_html`, `email_template_description`) VALUES (1, 'admin', 'html', '', 'admin_reset_password_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'Admin Reset Password', 'Hello {fname},\n\nyour login name is: {username}\n\nhere is your new password: {new_password}\n\nlogin URL: {admin_login_url}', '<p><span style=\"font-weight: bold; font-size: 10pt; font-family: Arial;\">Hello {fname},</span></p>\n<p><span style=\"font-size: 10pt; font-family: Arial;\">your login name is: {username}</span></p>\n<p><span style=\"font-size: 10pt; font-family: Arial;\">here is your new password: {new_password}</span></p>\n<p><span style=\"font-size: 10pt; font-family: Arial;\">login URL: </span><span style=\"font-size: 10pt; font-family: Arial;\"><a href=\"{admin_login_url}\">{admin_login_url}</a></span></p>', 'Sends the requesting admin a new reset password email'), (2, 'member', 'html', '', 'member_login_details_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'Account Login Details', 'Hello {fname},\n\nyour login details for {store_name}:\n\nusername: {primary_email}\npassword: {password}\n\nlogin URL: {login_url}', '<p>Hello {fname},</p>\n<p>your login details for {store_name}:</p>\n<p> </p>\n<p>username: {primary_email}<br />\npassword: {password}</p>\n<p>login URL: <a href=\"{%login_url%}\">{login_url}</a></p>', 'General member welcome email and login details'), (3, 'admin', 'html', '', 'admin_failed_login_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'admin failed login', 'Someone, maybe you, tried to login to your eCommerce Manager admin area unsuccessfully.\n\nDetails are:\n\nlogin url: {admin_login_url}\nusername used: {username}\npassword used: {password}\ndate and time of login: {date}\nip address: {ip_address}', '<p>Someone, maybe you, tried to login to your eCommerce Manager admin area unsuccessfully.</p>\n<p>Details are:<br />\nlogin url: {admin_login_url} <br />\nusername used: {username}<br />\npassword used: {password}<br />\ndate and time of login: {date}<br />\nip address: {ip_address}</p>', 'send an email alert when someone logs into the admin area unsuccessfully'), (4, 'admin', 'html', '', 'admin_ticket_deletion_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'Your Support Ticket Has Been Deleted', 'Hello {fname},\n\nyour support ticket ID #{ticket_id} has been deleted.\n\n{store_name}\n{login_url}', '<p><span style=\"text-decoration: underline;\">Hello {fname},<br />\n<br />\nyour support ticket ID #{ticket_id} has been deleted.<br />\n<br />\n<a href=\"{store_name}\">{store_name}</a><br />\n<a href=\"{login_url}\">{login_url}</a></span></p>', 'Sends an email notification to the user who submitted a support ticket notifying them that their ticket has been deleted.'), (5, 'member', 'html', '', 'support_ticket_response_template', '" . $_POST['base_domain_name'] . " Store', 'DO_NOT_REPLY@" . $_POST['base_domain_name'] . "', '', '', 'Your support ticket has been updated', '******************************************************************\nDo Not Reply To This Email - Login to the Support Desk To Respond\n******************************************************************\n\nHello {fname},\n\nYour support ticket ID {ticket_id} has been responded to by {admin_fname}.\n\nPlease login to your members area to view and post a new response.\n\n{login_url}\n\nDo not reply to this email as it will not be replied to.\n\n{store_name}\n{login_url}', '<p><span style=\"font-size: 10pt;\"><span style=\"font-weight: bold; font-size: 10pt;\">****************************************************************************************</span><br style=\"font-weight: bold;\" />\n<span style=\"font-weight: bold; font-size: 10pt;\">Do Not Reply To This Email - Login to the Support Desk To Respond</span><br style=\"font-weight: bold;\" />\n<span style=\"font-weight: bold; font-size: 10pt;\">****************************************************************************************</span></span><br />\n<br />\nHello {fname},<br />\n<br />\nYour support ticket ID {ticket_id} has been responded to by {admin_fname}.<br />\n<br />\nPlease login to your members area to view and post a new response.</p>\n<p>{login_url}<br />\n<br style=\"font-weight: bold;\" />\n<span style=\"font-weight: bold;\">Do not reply to this email as it will not be replied to.</span><br />\n<br />\n{store_name}<br />\n{login_url}</p>', 'Notifies the user that a support person has responded to their helpdesk ticket and asks them to login to your site to view it.'), (6, 'admin', 'html', '', 'assign_support_ticket_alert_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'You have been assigned a support ticket', 'Hello {fname},\n\nyou have been assigned a ticket in the help desk.\n\nplease login to address this issue.\n\n{store_name}\n{admin_login_url}', '<p>Hello {fname},<br />\n<br />\nyou have been assigned a ticket in the help desk.<br />\n<br />\nplease login to address this issue.<br />\n<br />\n{store_name}<br />\n{admin_login_url}</p>', 'send an email alert to the admin notifying him that he/she has an assigned support ticket'), (7, 'member', 'html', '', 'member_affiliate_performance_group_upgrade_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'Your group membership has been upgraded', 'Hello {fname},\n\nYour affiliate group membership has been upgraded.\n\nYou''ve achieved this through your performance.\n\nYour new group is {upgraded_affiliate_group}.\n\nThanks!\n{store_name}', '<p>Hello {fname},<br />\n<br />\nYour affiliate group membership has been upgraded.<br />\n<br />\nYou''ve achieved this through your performance.<br />\n<br />\nYour new group is {upgraded_affiliate_group}.<br />\n<br />\nThanks!<br />\n{store_name}</p>', 'Sends an email notificaton to the user telling him/her that her affiliate group has been upgraded due to her performance.'), (8, 'member', 'html', '', 'member_affiliate_performance_bonus_amount_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'performance bonus awarded', 'Hello {fname},\n\nCongratulations! You''ve earned a performance bonus commission for all your affiliate referrals!\n\nBonus amount: {bonus_amount}\n\n\nThanks again!\n\n{store_name}', '<p>Hello {fname},<br />\n<br />\nCongratulations! You''ve earned a performance bonus commission for all your affiliate referrals!<br />\n<br />\nBonus amount: {bonus_amount}<br />\n<br />\n<br />\nThanks again!<br />\n<br />\n{store_name}</p>', 'Sends an email notificaton to the user telling him/her that she has received a performance bonus commission'), (9, 'member', 'html', '', 'member_affiliate_commission_generated_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'New Commission Generated', 'Hello {fname},\n\nCongratulations! You''ve earned a referral commission!\n\nCommission Amount: {commission_amount}\nCommission Date: {current_date}\n\nLogin to check your affiliate stats:\n{login_url}\n\n{store_name}\n', '<p>Hello {fname},<br />\n<br />\nCongratulations! You''ve earned a referral commission!<br />\n<br />\nCommission Amount: {commission_amount}<br />\nCommission Date: {current_date}<br />\n<br />\nLogin to check your affiliate stats:<br />\n{login_url}<br />\n<br />\n{store_name}<br />\n </p>', 'Sends an email notification to the user to let him know that he has generated a new commission'), (10, 'member', 'html', '', 'member_payment_invoice_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', 'jrox2000@hotmail.com', 'Invoice {order_prefix}{invoice_id}', '===================================================\nInvoice {order_prefix}{invoice_id}\n===================================================\ndate purchased - {invoice_date}\ndue date - {due_date}\norder status: {order_status}\n===================================================\n\n\n===================================================\nAccount Information\n===================================================\n{customers_name}\n{customers_company}\n{customers_address_1}\n{customers_address_2}\n{customers_city} {customers_state} {customers_postal_code}\n{customers_country}\n{customers_telephone} \n{customers_primary_email} \n===================================================\n\n\n===================================================\nShipping Information\n===================================================\n{shipping_name}\n{shipping_company}\n{shipping_address_1}\n{shipping_address_2}\n{shipping_city} {shipping_state} {shipping_postal_code}\n{shipping_country}\n===================================================\n\n\n===================================================\nProducts Purchased\n===================================================\n{products_text}\n===================================================\n\n\n===================================================\nInvoice Amounts\n===================================================\nSubtotal Amount: {subtotal_amount}\nTax Amount: {tax_amount}\nShipping Amount: {shipping_amount}\nDiscount Amount: {discount_amount}\nTotal Amount: {total_amount}\n===================================================\n\n\n===================================================\nPayment Amounts\n===================================================\n{payments_text}\n\nTotal Payments: {total_payments}\n===================================================\n\n\n{payment_link_text}', '<table width=\"700\" cellspacing=\"0\" cellpadding=\"5\" border=\"0\" align=\"center\" style=\"border: 1px solid rgb(204, 204, 204);\">\n <tbody>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" border=\"0\" bgcolor=\"#eeeeee\">\n <tbody>\n <tr>\n <td width=\"50%\" valign=\"top\" align=\"left\"><font face=\"Arial, Helvetica, sans-serif\" size=\"4\"> <strong>{store_name}</strong> </font> <br />\n <font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"> {store_shipping_address}<br />\n {store_shipping_city}, {store_shipping_state} {store_shipping_postal_code}<br />\n {store_shipping_country} </font></td>\n <td width=\"50%\" valign=\"top\" align=\"right\"><font face=\"Arial, Helvetica, sans-serif\" size=\"4\"> <strong>invoice {order_prefix}{invoice_id}</strong> </font> <br />\n <font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"> <span style=\"text-transform: capitalize;\">date purchased - {invoice_date}<br />\n due date - {due_date}<br />\n order status: {order_status}<br />\n </span> </font></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"right\"><hr noshade=\"noshade\" width=\"100%\" size=\"1\" />\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tbody>\n <tr>\n <td width=\"49%\" valign=\"top\" align=\"center\">\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" border=\"0\">\n <tbody>\n <tr>\n <td align=\"left\" valign=\"top\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"> <strong>Account Information</strong><br />\n {customers_name}<br />\n {customers_company}<br />\n {customers_address_1}<br />\n {customers_address_2}<br />\n {customers_city} {customers_state} {customers_postal_code}<br />\n {customers_country}<br />\n {customers_telephone} <br />\n {customers_primary_email} </font></td>\n </tr>\n </tbody>\n </table>\n </td>\n <td width=\"49%\" valign=\"top\" align=\"center\">\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" border=\"0\">\n <tbody>\n <tr>\n <td align=\"left\" valign=\"top\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"> <strong>Shipping Information</strong> <br />\n {shipping_name}<br />\n {shipping_company}<br />\n {shipping_address_1}<br />\n {shipping_address_2}<br />\n {shipping_city} {shipping_state} {shipping_postal_code}<br />\n {shipping_country}<br />\n <strong>{shipping_method}</strong><br />\n <br />\n </font></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"right\"><hr noshade=\"noshade\" width=\"100%\" size=\"1\" />\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" border=\"0\">\n <tbody>\n <tr bgcolor=\"#eeeeee\">\n <td width=\"11%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>SKU</strong></font></td>\n <td colspan=\"2\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>product name</strong></font></td>\n <td width=\"19%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>unit price</strong></font></td>\n <td width=\"13%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>quantity</strong></font></td>\n <td><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>total</strong></font></td>\n </tr>\n <tr><td colspan=\"6\">{products_html}\n </td></tr> <tr>\n <td valign=\"top\" colspan=\"6\"> </td>\n </tr>\n <tr>\n <td> </td>\n <td width=\"20%\" align=\"right\"> </td>\n <td width=\"22%\"> </td>\n <td align=\"right\" colspan=\"2\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\">subtotal amount :</font></td>\n <td width=\"15%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\">{subtotal_amount}</font></td>\n </tr>\n <tr>\n <td> </td>\n <td align=\"right\"> </td>\n <td> </td>\n <td align=\"right\" colspan=\"2\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\">tax amount :</font></td>\n <td><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\">{tax_amount}</font></td>\n </tr>\n <tr>\n <td> </td>\n <td align=\"right\"> </td>\n <td> </td>\n <td align=\"right\" colspan=\"2\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\">shipping amount :</font></td>\n <td><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\">{shipping_amount}</font></td>\n </tr>\n <tr>\n <td> </td>\n <td align=\"right\"> </td>\n <td> </td>\n <td align=\"right\" colspan=\"2\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\">discount amount:</font></td>\n <td><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\">{discount_amount}</font></td>\n </tr>\n <tr>\n <td> </td>\n <td align=\"right\"> </td>\n <td> </td>\n <td align=\"right\" colspan=\"2\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong> total amount:</strong></font></td>\n <td><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>{total_amount}</strong></font></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"right\"><hr noshade=\"noshade\" width=\"100%\" size=\"1\" />\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" border=\"0\">\n <tbody>\n <tr bgcolor=\"#eeeeee\">\n <td width=\"17%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>payment date</strong></font></td>\n <td width=\"30%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>payment method</strong></font></td>\n <td width=\"36%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>transaction id</strong></font></td>\n <td width=\"17%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>payments</strong></font></td>\n </tr>\n <tr><td colspan=\"4\"> {payments_html}\n </td></tr> </tbody>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"right\"><hr noshade=\"noshade\" width=\"100%\" size=\"1\" />\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" border=\"0\">\n <tbody>\n <tr>\n <td width=\"17%\" style=\"text-align: right;\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>balance due:</strong></font>\n </strong></font></td>\n <td width=\"30%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>{balance_due}</strong></font></td>\n <td width=\"36%\" align=\"right\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>total payments:</strong></font></td>\n <td width=\"17%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\"><strong>{total_payments}</strong></font></td>\n </tr>\n <tr>\n <td valign=\"top\" align=\"center\" colspan=\"4\"><strong><font face=\"Arial, Helvetica, sans-serif\" size=\"-1\">{payment_link_html}</font></strong></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n</table>', 'sends a copy of the invoice to the user'), (11, 'member', 'html', '', 'member_affiliate_payment_sent_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'Your Affiliate Payment has been sent', 'Hello {fname},\n\nWe''ve sent your affiliate payment.\n\nthe amount you''ve made is {payment_amount}\n\n{affiliate_note}\n\nThanks again for being a great affiliate!\n\n{store_name}\n{login_url}', '<p>Hello {fname},<br />\n<br />\nWe''ve sent your affiliate payment.<br />\n<br />\nthe amount you''ve made is {payment_amount}<br />\n<br />\n{affiliate_note}<br />\n<br />\nThanks again for being a great affiliate!<br />\n<br />\n{store_name}<br />\n{login_url}</p>', 'Sends an email notification to the user letting them know that their affiliate payment has been sent'), (12, 'admin', 'html', '', 'admin_alert_comment_moderation_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'New article comment posted waiting on approval', 'hello,\n\na new article comment has been posted and is waiting for admin approval.\n\narticle id: {article_id}\n\narticle URL: {article_url}\n\nComments:\n\n{store_name}\n{login_url}', '<p>hello,<br />\n<br />\na new article comment has been posted and is waiting for admin approval.</p>\n<p>article id: {article_id}</p>\n<p>article URL: {article_url}</p>\n<p>Comments:</p>\n<p>{article_comment}<br />\n<br />\n{store_name}<br />\n{login_url}</p>', 'send an email alert to the admin notifying him that there is a new article comment posted that needs approval'), (13, 'admin', 'html', '', 'admin_alert_new_content_comment_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'New article comment posted', 'hello,\n\na new article comment has been posted.\n\narticle id: {article_id}\n\narticle URL: {article_url}\n\nComments:\n\n{article_comment}\n\n{store_name}\n{login_url}', '<p>hello,<br />\n<br />\na new article comment has been posted.<br />\n<br />\narticle id: {article_id}</p>\n<p>article URL: <a href=\"{article_url}\">{article_url}</a><br />\n<br />\nComments:<br />\n<br />\n{article_comment}<br />\n<br />\n{store_name}<br />\n{login_url}</p>', 'send an email alert to the admin notifying him that there is a new article comment posted.'), (14, 'admin', 'html', '', 'admin_alert_product_review_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'New article comment posted waiting on approval', 'hello,\n\na new product review has been posted and is waiting for admin approval.\n\nproduct id: {product_id}\n\nproduct URL: {product_url}\n\nComments:\n\n{review_comment}\n\n{store_name}\n{login_url}', '<p>hello,<br />\n<br />\na new product review has been posted and is waiting for admin approval.</p>\n<p>product id: {product_id}</p>\n<p>product URL: {product_url}</p>\n<p>Comments:</p>\n<p>{review_comment}<br />\n<br />\n{store_name}<br />\n{login_url}</p>', 'send an email alert to the admin notifying him that there is a new product review posted that needs approval'), (15, 'admin', 'html', '', 'admin_alert_contact_us_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'New Contact Form Lead', 'Hello,\n\nA user has filled out your contact form details:\n\nDate: {current_time}\n\nName: {contact_name}\n\nEmail: {contact_email}\n\nMessage:\n\n{contact_message_text}\n\n{login_url}\n{store_name}', '<p>Hello,<br />\n<br />\nA user has filled out your contact form details:<br />\n<strong><br />\nDate: </strong>{current_time}<br />\n<br />\n<strong>Name:</strong> {contact_name}</p>\n<p><strong>Email:</strong> {contact_email}</p>\n<p><strong>Message:</strong></p>\n<p>{contact_message_html}<br />\n<br />\n{login_url}<br />\n{store_name}</p>', 'Sends an email notification to the store email address when someone fills out your contact us form'), (16, 'member', 'html', '', 'member_reset_password_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'your password has been reset', 'Hello {fname},\n\nhere is your new password: {new_password}\n\nlogin URL: {login_url}\n\n\n{store_name}\n\n{login_url}\n', '<p>Hello {fname},<br />\n<br />\nhere is your new password: {new_password}<br />\n<br />\nlogin URL: {login_url}</p>\n<p>{store_name}</p>\n<p>{login_url}</p>', 'Sends an email notification to the user that his/her password has been reset.'), (17, 'member', 'html', '', 'member_email_confirmation_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'Account Confirmation Email', 'Hello {fname},\n\nplease click on the following link to confirm your account with us:\n\n{confirm_link}\n\n{store_name}\n{login_url}', '<p>Hello {fname},<br />\n<br />\nplease click on the following link to confirm your account with us:<br />\n<br />\n<a href=\"{confirm_link}\">click here to confirm</a><br />\n<br />\n{store_name}<br />\n{login_url}</p>', 'Sends an email notification to the user to confirm his / her email account'), (18, 'member', 'html', '', 'member_order_status_change_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'Your Order Status Has Been Updated', 'Hello {fname},\n\nThe status for your order with invoice ID {invoice_id} has been updated. \n\nThe new order status is now:\n\n{new_order_status}\n\nPlease login to your account for further details:\n\n{store_name}\n{login_url}', '<p>Hello {fname},<br />\n<br />\nThe status for your order with invoice ID {invoice_id} has been updated. <br />\n<br />\nThe new order status is now:<br />\n<br />\n{new_order_status}<br />\n<br />\nPlease login to your account for further details:<br />\n<br />\n{store_name}<br />\n{login_url}</p>', 'Sends an email notification to the user that alerts them to their order status'), (19, 'admin', 'html', '', 'admin_affiliate_commission_generated_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'A New Commission Has Been Generated', 'Hello {fname},\n\nA new commission has been generated by one of your users:\n\nUsername: {member_username}\nCommission Amount: {commission_amount}\nCommission Date: {current_date}\n\nLogin to the admin area for more info:\n\n{admin_login_url}\n\n{store_name}\n', '<p>Hello {fname},<br />\n<br />\nA new commission has been generated by one of your users:<br />\n<br />\nUsername: {member_username}<br />\nCommission Amount: {commission_amount}<br />\nCommission Date: {current_date}<br />\n<br />\nLogin to the admin area for more info:<br />\n<br />\n{admin_login_url}<br />\n<br />\n{store_name}</p>', 'Sends an email notification to the admin when a new commission is generated'), (20, 'admin', 'html', '', 'admin_product_inventory_alert_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'Product Inventory Alert', 'Hello {fname},\n\nthe inventory level for {product_name} has gone below the alert level of {inventory_alert_level}\n\nProduct Details:\n\nProduct ID: {product_id}\nProduct SKU: {product_sku}\nProduct Name: {product_name}\nCurrent Inventory Level: {current_inventory}\n\nLogin to your admin area for further information and to update the levels:\n\n{admin_login_url}\n\n{store_name}\n', '<p>Hello {fname},<br />\n<br />\nthe inventory level for<strong> {product_name}</strong> has gone below the alert level of <strong>{inventory_alert_level}</strong><br />\n<br />\nProduct Details:<br />\n<br />\n<strong>Product ID: {product_id}<br />\nProduct SKU: {product_sku}<br />\nProduct Name: {product_name}<br />\nCurrent Inventory Level: {current_inventory}</strong><br />\n<br />\nLogin to your admin area for further information and to update the levels:<br />\n<br />\n<a href=\"{admin_login_url}\">{admin_login_url}</a><br />\n<br />\n{store_name}<br />\n </p>', 'Sends an email notification to the admin when the inventory level of a product is below the alert level'), (21, 'admin', 'html', '', 'admin_alert_new_order_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'A New Order Has Been Generated', 'Hello {fname},\n\nA new payment has been made:\n\nInvoice Details:\n\nCustomer: {customer_name}\n\nInvoice ID: {invoice_id}\nInvoice Amount: {invoice_amount}\nTransaction ID: {transaction_id}\nPayment Method: {payment_method}\n\n\nLogin to your admin area for more details:\n\n{admin_login_url}', '<p>Hello {fname},<br />\n</p>\n<p>A new payment has been made:<br />\n<br />\nInvoice Details:<br />\n<br />\n<strong>Customer: {customer_name}<br />\n<br />\nInvoice ID: {invoice_id}<br />\nInvoice Amount: {invoice_amount}<br />\nTransaction ID: {transaction_id}<br />\nPayment Method: {payment_method}</strong><br />\n<br />\n<br />\nLogin to your admin area for more details:<br />\n<br />\n{admin_login_url}</p>', 'Sends an email notification to the admin when a new invoice or order has been generated.'), (22, 'admin', 'html', '', 'admin_vendor_alert_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'New Order Received', 'Hello,\n\nA new order needs to be shipped:\n\nInvoice ID: {invoice_id}\nProduct Name: {product_name}\nProduct SKU: {product_sku}\nProduct Quantity: {quantity}\n\nShipping Information:\n\n{shipping_fname} {shipping_lname}\n{shipping_address_1}\n{shipping_address_2}\n{shipping_city}, {shipping_state} {shipping_postal_code}\n{shipping_country}\n\nThanks.\n\n{store_name}\n', '<p>Hello,<br />\n<br />\nA new order needs to be shipped:<br />\n<br />\nInvoice ID: {invoice_id}<br />\nProduct Name: {product_name}<br />\nProduct SKU: {product_sku}<br />\nProduct Quantity: {quantity}<br />\n<br />\n<strong>Shipping Information:</strong><br />\n<br />\n{shipping_fname} {shipping_lname}<br />\n{shipping_address_1}<br />\n{shipping_address_2}<br />\n{shipping_city}, {shipping_state} {shipping_postal_code}<br />\n{shipping_country}<br />\n<br />\nThanks.<br />\n<br />\n{store_name}<br />\n </p>', 'Sends an email notification to your vendor that a new order needs to be shipped'), (23, 'admin', 'html', '', 'admin_alert_new_signup_template', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'A new user has signed up!', 'hello {fname},\n\na new user has been added to your site:\n\nFull Name: {member_name}\nUsername: {member_username}\nSignup IP: {signup_ip}\nSignup Date: {current_time}\n\nPlease view full details in the admin area:\n\n{admin_login_url}\n\n{store_name}', '<p>hello {fname},<br />\n<br />\na new user has been added to your site:<br />\n<br />\nFull Name: {member_name}<br />\nUsername: {member_username}<br />\nSignup IP: {signup_ip}<br />\nSignup Date: {current_time}<br />\n<br />\nPlease view full details in the admin area:<br />\n<br />\n{admin_login_url}<br />\n<br />\n{store_name}</p>', 'Sends an email notification to the admin when a new user has signed up and has been added to the database'), (24, 'admin', 'html', '', 'admin_alert_support_ticket_response', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'Support Ticket has been Logged / Updated', 'Hello {fname},\n\n{member_name} has logged or responded to a support ticket.\n\nDate: {current_time}\nTicket ID: {ticket_id}\nPriority: {ticket_priority}\n\nTicket Subject: \n{ticket_subject}\n\nTicket Message:\n{ticket_message}\n\nPlease login to the admin area to view full details.\n\n\n{store_name}\n{admin_login_url}', '<p>Hello {fname},<br />\n<br />\n{member_name} has logged or responded to a support ticket.<br />\n<br />\nDate: {current_time}<br />\nTicket ID: {ticket_id}<br />\nPriority: {ticket_priority}<br />\n<br />\nTicket Subject: <br />\n{ticket_subject}<br />\n<br />\nTicket Message:<br />\n{ticket_message_html}<br />\n<br />\nPlease login to the admin area to view full details.<br />\n<br />\n<br />\n{store_name}<br />\n{admin_login_url}</p>', 'Sends an email notification to the admin that a support ticket has been logged or responded to'), (25, 'member', 'html', '', 'member_affiliate_send_downline_email', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'Message from your sponsor', 'Hello {downline_member_name},\n\nYour sponsor, {downline_sponsor_name} has sent you a message:\n\n{downline_message_text} \n\n{downline_sponsor_name}\n{downline_sponsor_email}\n{downline_sponsor_affiliate_link}\n\n\n{store_name}\n{login_url}\n\n', '<p>Hello {downline_member_name},<br />\n<br />\nYour sponsor, {downline_sponsor_name} has sent you a message:<br />\n<br />\n{downline_message_html} <br />\n<br />\n{downline_sponsor_name}<br />\n{downline_sponsor_email}<br />\n{downline_sponsor_affiliate_link}<br />\n<br />\n<br />\n{store_name}<br />\n{login_url}</p>', 'Sends an email to the dowline of the user'), (26, 'member', 'html', '', 'member_affiliate_downline_signup', '" . $_POST['base_domain_name'] . " Store', 'store@" . $_POST['base_domain_name'] . "', '', '', 'You just referred someone!', 'Hello {fname},\n\nYou have just referred someone in your downline!\n\n{downline_name}\n{downline_email}\n', '<p>Hello {fname},<br />\n<br />\nYou have just referred someone in your downline!<br />\n<br />\n{downline_name}<br />\n{downline_email}<br />\n </p>', 'Notifies the user that someone signed up in their downline') ;") or die(mysql_error()); //add settings $sql = mysql_query("INSERT INTO `jem_settings` (`settings_key`, `settings_value`, `settings_module`, `settings_type`, `settings_group`, `settings_sort_order`, `settings_function`) VALUES ('sts_admin_date_format', 'mm/dd/yyyy:m/d/Y:M d Y', 'settings', 'dropdown', 8, 2, 'date_format'), ('sts_admin_default_language', 'english', 'settings', 'dropdown', 8, 1, 'language'), ('sts_admin_enable_hostip_lookup', '0', 'settings', 'dropdown', 8, 99, 'boolean'), ('sts_admin_enable_wysiwyg_content', '1', 'settings', 'dropdown', 8, 4, 'boolean'), ('sts_admin_image_height', '200', 'settings', 'text', 10, 7, 'none'), ('sts_admin_image_resize', '1', 'settings', 'dropdown', 10, 6, 'boolean'), ('sts_admin_image_width', '200', 'settings', 'text', 10, 8, 'none'), ('sts_admin_layout_theme', 'default', 'system', 'hidden', 8, 8, 'none'), ('sts_admin_time_format', 'm-d-Y h:i:s A', 'settings', 'text', 8, 3, 'none'), ('sts_affiliate_alert_downline_signup', '0', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_affiliate_alert_payment_sent', '0', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_affiliate_allow_downline_email', '0', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_affiliate_allow_downline_view', '0', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_affiliate_allow_upload_photos', '0', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_affiliate_auto_approve_commissions', '0', 'settings', 'text', 2, 99, 'none'), ('sts_affiliate_auto_generate_coupon', '0', 'settings', 'dropdown', 13, 20, 'boolean'), ('sts_affiliate_auto_generate_coupon_amount', '.25', 'settings', 'text', 13, 21, 'none'), ('sts_affiliate_auto_generate_coupon_type', 'percent', 'settings', 'dropdown', 13, 22, 'commission_type'), ('sts_affiliate_commission_levels', '1', 'settings', 'dropdown', 2, 3, 'numbers_10'), ('sts_affiliate_custom_payment_id', 'Custom ID', 'settings', 'text', 2, 99, 'none'), ('sts_affiliate_enable_affiliate_marketing', '1', 'settings', 'dropdown', 2, 1, 'boolean'), ('sts_affiliate_enable_forced_matrix', '0', 'system', 'hidden', 2, 3, 'boolean'), ('sts_affiliate_enable_hostip_lookup', '0', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_affiliate_enable_direct_product_code', '1', 'settings', 'dropdown', 13, 13, 'boolean'), ('sts_affiliate_enable_performance_bonus', '0', 'settings', 'dropdown', 14, 1, 'boolean'), ('sts_affiliate_enable_profiles', '0', 'settings', 'dropdown', 13, 18, 'boolean'), ('sts_affiliate_enable_recommended_profile', '1', 'settings', 'dropdown', 13, 19, 'boolean'), ('sts_affiliate_enable_referral_signup_bonus', '0', 'settings', 'dropdown', 14, 9, 'boolean'), ('sts_affiliate_enable_referral_signup_bonus_amount', '10.00', 'settings', 'text', 14, 10, 'none'), ('sts_affiliate_enable_replication', '0', 'settings', 'dropdown', 13, 16, 'boolean'), ('sts_affiliate_enable_signup_bonus', '0', 'settings', 'dropdown', 14, 7, 'boolean'), ('sts_affiliate_enable_signup_bonus_amount', '10.00', 'settings', 'text', 14, 8, 'none'), ('sts_affiliate_enable_trackers', '0', 'system', 'hidden', 13, 9, 'boolean'), ('sts_affiliate_enable_wysiwyg_content', '1', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_affiliate_image_auto_resize', '1', 'settings', 'dropdown', 10, 9, 'boolean'), ('sts_affiliate_image_height', '200', 'settings', 'text', 10, 10, 'none'), ('sts_affiliate_image_width', '200', 'settings', 'text', 10, 11, 'none'), ('sts_affiliate_intro_text', 'Referred By:', 'settings', 'text', 2, 99, 'none'), ('sts_affiliate_link_type', 'regular', 'settings', 'dropdown', 2, 5, 'affiliate_link_type'), ('sts_affiliate_matrix_width', '2', 'system', 'hidden', 2, 3, 'matrix_width'), ('sts_affiliate_min_payment', '100', 'settings', 'text', 2, 99, 'none'), ('sts_affiliate_new_commission', 'no_pending', 'settings', 'dropdown', 2, 6, 'pending_commission'), ('sts_affiliate_performance_bonus_amount', '100', 'settings', 'text', 14, 5, 'none'), ('sts_affiliate_performance_bonus_required', 'commission_amount', 'settings', 'dropdown', 14, 2, 'affiliate_performance_bonus_required'), ('sts_affiliate_performance_bonus_required_amount', '1000', 'settings', 'text', 14, 3, 'none'), ('sts_affiliate_performance_bonus_type', 'group_upgrade', 'settings', 'dropdown', 14, 4, 'affiliate_performance_bonus'), ('sts_affiliate_program_type', 'pay-per-sale', 'settings', 'dropdown', 2, 2, 'affiliate_program_type'), ('sts_store_refer_friend_enable', '1', 'settings', 'dropdown', 12, 76, 'boolean'), ('sts_store_refer_friend_code', 'PHNjcmlwdCBzcmM9Imh0dHA6Ly9jZG4uc29jaWFsdHdpc3QuY29tLzAwMDAwMDAwMDAvc2NyaXB0LmpzIj48L3NjcmlwdD4gPGltZyBzdHlsZT0iYm9yZGVyOjA7bWFyZ2luOjA7cGFkZGluZzowOyIgc3JjPSJodHRwOi8vaW1hZ2VzLnNvY2lhbHR3aXN0LmNvbS9idXR0b24taW1hZ2VzL3RhZmRyb3Bkbl9ibHVlMTYucG5nIiBvbm1vdXNlb3V0PSJoaWRlSG92ZXJNYXAodGhpcykiIG9ubW91c2VvdmVyPSJzaG93SG92ZXJNYXAodGhpcywgJzAwMDAwMDAwMDAnLCB7YWZmaWxpYXRlX2xpbmt9LCBkb2N1bWVudC50aXRsZSkiIG9uY2xpY2s9ImN3KHRoaXMsIHtpZDonMDAwMDAwMDAwMCcsbGluazoge2FmZmlsaWF0ZV9saW5rfSwgdGl0bGU6IGRvY3VtZW50LnRpdGxlIH0pIi8+', 'settings', 'textarea', 12, 79, 'base64_decode'), ('sts_affiliate_require_referral_code', '0', 'settings', 'dropdown', 2, 7, 'boolean'), ('sts_affiliate_restrict_self_commission', '1', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_affiliate_show_downline_details', '1', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_affiliate_show_downline_emails', '1', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_affiliate_show_downline_photos', '0', 'system', 'hidden', 16, 99, 'none'), ('sts_affiliate_show_name', '1', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_affiliate_tools_per_page', '25', 'settings', 'text', 13, 99, 'none'), ('sts_affiliate_total_sale_commissions', 'per_product', 'settings', 'dropdown', 2, 2, 'cart_commissions'), ('sts_backup_path', '/var/www/downloads/', 'settings', 'text', 9, 2, 'none'), ('system_layout_member_links_array', 'a:6:{i:0;a:8:{s:2:\"id\";s:2:\"86\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:9:\"Dashboard\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:14:\"{members_home}\";s:15:\"menu_sort_order\";s:1:\"1\";s:13:\"menu_location\";s:1:\"5\";s:4:\"subs\";a:0:{}}i:1;a:8:{s:2:\"id\";s:2:\"89\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:7:\"Support\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:17:\"{members_support}\";s:15:\"menu_sort_order\";s:1:\"2\";s:13:\"menu_location\";s:1:\"5\";s:4:\"subs\";a:0:{}}i:2;a:8:{s:2:\"id\";s:2:\"88\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:8:\"Invoices\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:18:\"{members_invoices}\";s:15:\"menu_sort_order\";s:1:\"3\";s:13:\"menu_location\";s:1:\"5\";s:4:\"subs\";a:2:{i:0;a:7:{s:2:\"id\";s:2:\"90\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:9:\"Downloads\";s:11:\"menu_parent\";s:2:\"88\";s:8:\"menu_url\";s:19:\"{members_downloads}\";s:15:\"menu_sort_order\";s:1:\"1\";s:13:\"menu_location\";s:1:\"0\";}i:1;a:7:{s:2:\"id\";s:2:\"93\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:11:\"Memberships\";s:11:\"menu_parent\";s:2:\"88\";s:8:\"menu_url\";s:21:\"{members_memberships}\";s:15:\"menu_sort_order\";s:1:\"2\";s:13:\"menu_location\";s:1:\"0\";}}}i:3;a:8:{s:2:\"id\";s:2:\"87\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:9:\"Marketing\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:19:\"{members_marketing}\";s:15:\"menu_sort_order\";s:1:\"4\";s:13:\"menu_location\";s:1:\"5\";s:4:\"subs\";a:5:{i:0;a:7:{s:2:\"id\";s:2:\"96\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:14:\"Email Downline\";s:11:\"menu_parent\";s:2:\"87\";s:8:\"menu_url\";s:24:\"{members_email_downline}\";s:15:\"menu_sort_order\";s:1:\"1\";s:13:\"menu_location\";s:1:\"0\";}i:1;a:7:{s:2:\"id\";s:2:\"95\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:18:\"Affiliate Payments\";s:11:\"menu_parent\";s:2:\"87\";s:8:\"menu_url\";s:18:\"{members_payments}\";s:15:\"menu_sort_order\";s:1:\"2\";s:13:\"menu_location\";s:1:\"0\";}i:2;a:7:{s:2:\"id\";s:2:\"94\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:11:\"Commissions\";s:11:\"menu_parent\";s:2:\"87\";s:8:\"menu_url\";s:21:\"{members_commissions}\";s:15:\"menu_sort_order\";s:1:\"3\";s:13:\"menu_location\";s:1:\"0\";}i:3;a:7:{s:2:\"id\";s:2:\"91\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:13:\"View Downline\";s:11:\"menu_parent\";s:2:\"87\";s:8:\"menu_url\";s:18:\"{members_downline}\";s:15:\"menu_sort_order\";s:1:\"4\";s:13:\"menu_location\";s:1:\"0\";}i:4;a:7:{s:2:\"id\";s:2:\"92\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:17:\"Affiliate Coupons\";s:11:\"menu_parent\";s:2:\"87\";s:8:\"menu_url\";s:17:\"{members_coupons}\";s:15:\"menu_sort_order\";s:1:\"5\";s:13:\"menu_location\";s:1:\"0\";}}}i:4;a:8:{s:2:\"id\";s:2:\"73\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:7:\"Profile\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:17:\"{members_details}\";s:15:\"menu_sort_order\";s:1:\"5\";s:13:\"menu_location\";s:1:\"5\";s:4:\"subs\";a:0:{}}i:5;a:8:{s:2:\"id\";s:2:\"74\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:7:\"Content\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:17:\"{members_content}\";s:15:\"menu_sort_order\";s:1:\"6\";s:13:\"menu_location\";s:1:\"5\";s:4:\"subs\";a:0:{}}}', 'system', 'text', 99, 1, 'none'), ('sts_cart_add_account_group', '1', 'settings', 'dropdown', 3, 4, 'affiliate_group'), ('sts_cart_add_account_mailing_list', '3', 'settings', 'dropdown', 3, 5, 'mailing_list'), ('sts_cart_number_recommended_products', '3', 'settings', 'text', 3, 28, 'none'), ('sts_products_number_similar_products_details_page', '5', 'settings', 'dropdown', 12, 37, 'numbers_5'), ('sts_cart_recommended_products_keywords', '1', 'settings', 'dropdown', 3, 29, 'boolean'), ('sts_cart_recommend_products', '1', 'settings', 'dropdown', 3, 25, 'boolean'), ('sts_cart_ssl_on_checkout', '0', 'settings', 'dropdown', 3, 2, 'boolean'), ('sts_cart_ssl_on_checkout_url', 'https://" . $_POST['base_subdomain_name'] . '.' . $_POST['base_domain_name'] . "/', 'settings', 'text', 3, 2, 'none'), ('sts_products_show_similar_products_details_page', '1', 'settings', 'dropdown', 12, 36, 'boolean'), ('sts_content_articles_per_page', '10', 'settings', 'text', 4, 10, 'none'), ('sts_content_categories_per_page', '25', 'settings', 'text', 4, 2, 'none'), ('sts_content_enable_comments', '1', 'settings', 'dropdown', 4, 1, 'boolean'), ('sts_email_charset', 'UTF-8', 'settings', 'text', 5, 8, 'none'), ('sts_email_limit_mass_mailing', '1000', 'settings', 'text', 5, 9, 'none'), ('sts_email_mailer_type', 'php', 'settings', 'dropdown', 5, 1, 'mailer_type'), ('sts_email_send_queue', '0', 'settings', 'dropdown', 5, 45, 'boolean'), ('sts_email_smtp_host', 'mail." . $_POST['base_domain_name'] . "', 'settings', 'text', 5, 3, 'none'), ('sts_email_smtp_password', '', 'settings', 'text', 5, 5, 'none'), ('sts_email_smtp_port', '25', 'settings', 'text', 5, 6, 'none'), ('sts_email_smtp_timeout', '60', 'settings', 'text', 5, 7, 'none'), ('sts_email_smtp_username', '', 'settings', 'text', 5, 4, 'none'), ('sts_email_use_smtp_authentication', '1', 'settings', 'dropdown', 5, 2, 'boolean'), ('sts_image_enable_thickbox', '1', 'settings', 'dropdown', 10, 4, 'boolean'), ('sts_image_library', 'GD2', 'settings', 'dropdown', 10, 1, 'image_library'), ('sts_image_maintain_ratio', '1', 'settings', 'dropdown', 10, 2, 'boolean'), ('sts_image_max_photo_size', '2048', 'settings', 'text', 10, 3, 'none'), ('sts_products_alert_inventory', '1', 'settings', 'dropdown', 12, 8, 'boolean'), ('sts_products_alert_inventory_level', '25', 'settings', 'text', 12, 9, 'none'), ('sts_products_categories_image_auto_resize', '0', 'settings', 'dropdown', 10, 45, 'boolean'), ('sts_products_categories_image_height', '200', 'settings', 'text', 10, 46, 'none'), ('sts_products_categories_image_width', '480', 'settings', 'text', 10, 47, 'none'), ('sts_products_description_1_name', 'description', 'settings', 'text', 12, 6, 'none'), ('sts_products_description_2_name', 'features', 'settings', 'text', 12, 7, 'none'), ('sts_products_enable_bookmarks', '1', 'settings', 'dropdown', 12, 85, 'boolean'), ('sts_products_enable_global discounts', '0', 'system', 'hidden', 12, 2, 'boolean'), ('sts_products_images_per_product', '5', 'settings', 'text', 12, 5, 'none'), ('sts_products_manufacturer_image_auto_resize', '0', 'settings', 'dropdown', 10, 20, 'boolean'), ('sts_products_manufacturer_image_height', '100', 'settings', 'text', 10, 21, 'none'), ('sts_products_manufacturer_image_width', '100', 'settings', 'text', 10, 23, 'none'), ('sts_sec_admin_failed_login_email', 'store@" . $_POST['base_domain_name'] . "', 'settings', 'text', 6, 1, 'none'), ('sts_sec_admin_restrict_ip', '', 'settings', 'text', 6, 3, 'none'), ('sts_sec_enable_admin_restrict_ip', '0', 'settings', 'dropdown', 6, 2, 'boolean'), ('sts_sec_enable_captcha', '1', 'settings', 'dropdown', 6, 99, 'boolean'), ('sts_sec_enable_max_mind', '0', 'system', 'hidden', 6, 99, 'boolean'), ('sts_sec_max_mind_key', '', 'system', 'hidden', 6, 99, 'none'), ('sts_products_per_page', '6', 'settings', 'text', 12, 3, 'none'), ('sts_sec_site_restrict_ips', '', 'settings', 'textarea', 6, 95, 'none'), ('sts_store_default_country', '223', 'settings', 'dropdown', 1, 5, 'countries'), ('sts_store_default_currency', 'USD', 'settings', 'dropdown', 1, 7, 'currencies'), ('sts_store_default_keywords', '', 'settings', 'text', 1, 3, 'none'), ('sts_store_default_language', 'english', 'settings', 'dropdown', 1, 6, 'language'), ('sts_store_default_weight', 'lbs', 'settings', 'dropdown', 1, 8, 'weight'), ('sts_store_description', '" . $_POST['base_domain_name'] . "', 'settings', 'text', 1, 2, 'none'), ('sts_store_disable_cart_maintenance', '0', 'settings', 'dropdown', 3, 1, 'boolean'), ('module_payment_gateway_paypal_standard_header_image', '', 'payment_gateway', 'text', 126, 5, 'none'), ('sts_store_email', 'store@" . $_POST['base_domain_name'] . "', 'settings', 'text', 1, 4, 'none'), ('sts_store_image_auto_resize', '1', 'settings', 'dropdown', 10, 12, 'boolean'), ('sts_store_image_height', '300', 'settings', 'text', 10, 13, 'none'), ('sts_store_image_width', '300', 'settings', 'text', 10, 14, 'none'), ('sts_store_key', '', 'settings', 'text', 15, 99, 'none'), ('layout_design_site_theme', '" . DEFAULT_THEME . "', 'system', 'hidden', 12, 1, 'none'), ('sts_store_name', '" . ucfirst($_POST['base_domain_name']) . " Store', 'settings', 'text', 1, 1, 'none'), ('sts_store_order_id_prefix', 'JEM', 'settings', 'text', 3, 12, 'none'), ('sts_store_categories_per_page', '3', 'system', 'hidden', 12, 4, 'none'), ('sts_store_shipping_address', '123 test drive', 'settings', 'text', 1, 20, 'none'), ('sts_store_shipping_city', 'los angeles', 'settings', 'text', 1, 21, 'none'), ('sts_store_shipping_country', '223', 'settings', 'dropdown', 1, 24, 'countries'), ('sts_store_shipping_state', 'CA', 'settings', 'text', 1, 22, 'none'), ('sts_store_shipping_zip', '90210', 'settings', 'text', 1, 23, ''), ('sts_store_time_format', 'm-d-Y h:i:s A', 'settings', 'text', 1, 9, 'none'), ('sts_store_upload_photo_types', 'gif|jpg|png|swf', 'settings', 'text', 10, 5, 'none'), ('sts_support_auto_close', '0', 'settings', 'dropdown', 7, 16, 'boolean'), ('sts_support_auto_close_interval', '14', 'settings', 'dropdown', 7, 17, 'numbers_30'), ('sts_support_enable', '1', 'settings', 'dropdown', 7, 1, 'boolean'), ('sts_support_max_upload_size', '1024', 'settings', 'text', 7, 18, 'none'), ('sts_support_upload_download_types', 'zip|rar|doc|txt', 'settings', 'text', 7, 8, 'none'), ('sts_support_url_redirect', 'http://www.domain.com/support/', 'settings', 'text', 7, 2, 'none'), ('module_shipping_by_percent_amount', '.10', 'shipping', 'text', 1, 1, 'none'), ('module_shipping_by_percent_enable_tax_zone', '0', 'shipping', 'dropdown', 1, 2, 'enable'), ('module_shipping_by_percent_handling_fee', '0.00', 'shipping', 'text', 1, 5, 'none'), ('module_shipping_by_percent_tax_zone', '1', 'shipping', 'dropdown', 1, 3, 'tax_zone'), ('module_shipping_zone_based_zone_4_handling_fee', '4.56', 'shipping', 'text', 117, 16, 'none'), ('module_shipping_zone_based_zone_4_table', '1:5.00,3:2.50,400:5.00,1000:9.99', 'shipping', 'textarea', 117, 15, 'none'), ('module_shipping_zone_based_zone_3_handling_fee', '', 'shipping', 'text', 117, 14, 'none'), ('module_shipping_zone_based_tax_zone', '1', 'shipping', 'dropdown', 117, 3, 'tax_zone'), ('module_shipping_zone_based_zone_1_countries', '', 'shipping', 'textarea', 117, 6, 'none'), ('module_shipping_zone_based_zone_1_table', '', 'shipping', 'textarea', 117, 7, 'none'), ('module_shipping_zone_based_zone_1_handling_fee', '', 'shipping', 'text', 117, 8, 'none'), ('module_shipping_zone_based_zone_2_countries', '', 'shipping', 'textarea', 117, 9, 'none'), ('module_shipping_zone_based_zone_2_table', '', 'shipping', 'textarea', 117, 10, 'none'), ('module_shipping_zone_based_zone_2_handling_fee', '', 'shipping', 'text', 117, 11, 'none'), ('module_shipping_zone_based_zone_3_countries', '', 'shipping', 'textarea', 117, 12, 'none'), ('module_shipping_zone_based_zone_3_table', '', 'shipping', 'textarea', 117, 13, 'none'), ('module_shipping_flat_rate_amount', '5.00', 'shipping', 'text', 9, 1, 'none'), ('module_shipping_flat_rate_enable_tax_zone', '1', 'shipping', 'dropdown', 9, 2, 'enable'), ('module_shipping_flat_rate_handling_fee', '2.50', 'shipping', 'text', 9, 5, 'none'), ('module_shipping_flat_rate_tax_zone', '2', 'shipping', 'dropdown', 9, 3, 'tax_zone'), ('module_shipping_free_shipping_quantity_type', 'price', 'shipping', 'dropdown', 12, 1, 'zone_calc'), ('module_shipping_free_shipping_required_amount', '300.00', 'shipping', 'text', 12, 2, 'none'), ('module_shipping_free_shipping_enable_tax_zone', '0', 'shipping', 'dropdown', 12, 3, 'enable'), ('module_shipping_free_shipping_handling_fee', '0.00', 'shipping', 'text', 12, 5, 'none'), ('module_shipping_free_shipping_tax_zone', '1', 'shipping', 'dropdown', 12, 4, 'tax_zone'), ('module_shipping_per_item_amount', '1.50', 'shipping', 'text', 13, 1, 'none'), ('module_shipping_per_item_enable_tax_zone', '1', 'shipping', 'dropdown', 13, 2, 'enable'), ('module_shipping_per_item_handling_fee', '0.00', 'shipping', 'text', 13, 5, 'none'), ('module_shipping_per_item_tax_zone', '1', 'shipping', 'dropdown', 13, 3, 'tax_zone'), ('sts_shipping_use_vendor_zip', '0', 'settings', 'dropdown', 17, 1, 'enable'), ('sts_shipping_send_vendor_email_alert', '0', 'settings', 'dropdown', 17, 2, 'enable'), ('sts_products_enable_reviews', '1', 'settings', 'dropdown', 12, 50, 'enable'), ('sts_products_listing_style', 'list', 'settings', 'dropdown', 12, 4, 'product_listing_style'), ('sts_video_player_height', '400', 'settings', 'text', 18, 10, 'none'), ('sts_video_player_width', '400', 'settings', 'text', 18, 20, 'none'), ('sts_video_player_autostart', '1', 'settings', 'dropdown', 18, 37, 'boolean'), ('sts_video_player_allow_fullscreen', '1', 'settings', 'dropdown', 18, 40, 'boolean'), ('sts_video_player_logo', 'http://" . $_POST['base_subdomain_name'] . '.' . $_POST['base_domain_name'] . $_POST['base_folder_path'] . "/images/misc/vlogo.png', 'settings', 'text', 18, 50, 'none'), ('sts_content_html_editor', 'innovaeditor', 'settings', 'dropdown', 4, 15, 'editor'), ('sts_email_enable_debugging', '0', 'settings', 'dropdown', 5, 55, 'boolean'), ('sts_email_enable_ssl', 'none', 'settings', 'dropdown', 5, 65, 'ssl_tls'), ('sts_video_player_front_color', '05080f', 'settings', 'text', 18, 23, 'none'), ('sts_video_player_screen_color', 'ffffff', 'settings', 'text', 18, 25, 'none'), ('sts_video_player_back_color', '6272c4', 'settings', 'text', 18, 28, 'none'), ('sts_video_player_display_click', 'link', 'settings', 'dropdown', 18, 29, 'player_link'), ('sts_video_player_default_link', 'http://" . $_POST['base_subdomain_name'] . '.' . $_POST['base_domain_name'] . "', 'settings', 'text', 18, 28, 'none'), ('sts_store_default_timezone', 'UM8', 'settings', 'dropdown', 11, 8, 'timezone_menu'), ('sts_store_use_daylight_savings_time', '1', 'settings', 'dropdown', 11, 9, 'boolean'), ('layout_design_header_name', '" . ucfirst($_POST['base_domain_name']) . " Store', 'layout', 'text', 1, 10, 'none'), ('layout_design_header_tag_line', 'Welcome To Our Store', 'layout', 'text', 1, 15, 'none'), ('layout_design_site_logo', '', 'layout', 'text', 1, 20, 'none'), ('layout_design_site_logo_height', '40', 'layout', 'text', 1, 21, 'none'), ('layout_design_site_logo_width', '300', 'layout', 'text', 1, 22, 'none'), ('layout_design_enable_top_menu', '1', 'layout', 'dropdown', 2, 3, 'boolean'), ('layout_design_enable_footer_menu', '1', 'layout', 'dropdown', 2, 6, 'boolean'), ('layout_design_enable_left_column_home_page', '1', 'layout', 'dropdown', 2, 10, 'boolean'), ('layout_design_enable_right_column_home_page', '1', 'layout', 'dropdown', 2, 13, 'boolean'), ('layout_design_enable_left_column_store', '1', 'layout', 'dropdown', 2, 15, 'boolean'), ('layout_design_enable_right_column_store', '1', 'layout', 'dropdown', 2, 16, 'boolean'), ('layout_design_enable_left_column_checkout', '0', 'layout', 'dropdown', 2, 18, 'boolean'), ('layout_design_enable_right_column_checkout', '0', 'layout', 'dropdown', 2, 20, 'boolean'), ('layout_design_enable_left_column_members_area', '0', 'layout', 'dropdown', 2, 22, 'boolean'), ('layout_design_enable_right_column_members_area', '0', 'layout', 'dropdown', 2, 24, 'boolean'), ('layout_design_enable_left_column_support_desk', '0', 'layout', 'dropdown', 2, 26, 'boolean'), ('layout_design_enable_right_column_support_desk', '0', 'layout', 'dropdown', 2, 28, 'boolean'), ('layout_design_enable_left_column_product_details', '0', 'layout', 'dropdown', 2, 30, 'boolean'), ('layout_design_enable_right_column_product_details', '0', 'layout', 'dropdown', 2, 33, 'boolean'), ('layout_design_enable_left_column_content_pages', '1', 'layout', 'dropdown', 2, 36, 'boolean'), ('layout_design_enable_right_column_content_pages', '0', 'layout', 'dropdown', 2, 38, 'boolean'), ('layout_design_custom_css', '', 'layout', 'textarea', 3, 1, 'none'), ('layout_design_custom_home_page_redirect', '', 'layout', 'text', 1, 16, 'none'), ('system_layout_top_links_array', 'a:6:{i:0;a:8:{s:2:\"id\";s:2:\"17\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:4:\"Home\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:6:\"{home}\";s:15:\"menu_sort_order\";s:1:\"1\";s:13:\"menu_location\";s:1:\"1\";s:4:\"subs\";a:0:{}}i:1;a:8:{s:2:\"id\";s:2:\"52\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:13:\"Manufacturers\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:15:\"{manufacturers}\";s:15:\"menu_sort_order\";s:1:\"2\";s:13:\"menu_location\";s:1:\"1\";s:4:\"subs\";a:0:{}}i:2;a:8:{s:2:\"id\";s:2:\"50\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:5:\"Store\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:7:\"{store}\";s:15:\"menu_sort_order\";s:1:\"3\";s:13:\"menu_location\";s:1:\"1\";s:4:\"subs\";a:0:{}}i:3;a:8:{s:2:\"id\";s:2:\"49\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:12:\"New Products\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:14:\"{new_products}\";s:15:\"menu_sort_order\";s:1:\"4\";s:13:\"menu_location\";s:1:\"1\";s:4:\"subs\";a:0:{}}i:4;a:8:{s:2:\"id\";s:1:\"2\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:7:\"Content\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:9:\"{content}\";s:15:\"menu_sort_order\";s:1:\"5\";s:13:\"menu_location\";s:1:\"1\";s:4:\"subs\";a:0:{}}i:5;a:8:{s:2:\"id\";s:1:\"1\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:10:\"Categories\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:20:\"{product_categories}\";s:15:\"menu_sort_order\";s:1:\"6\";s:13:\"menu_location\";s:1:\"1\";s:4:\"subs\";a:0:{}}}', 'system', 'text', 99, 1, 'none'), ('module_payment_gateway_paypal_standard_currency_code', 'USD', 'payment_gateway', 'text', 126, 3, 'none'), ('module_payment_gateway_authorize_net_aim_enable_debug_email', '0', 'payment_gateway', 'dropdown', 125, 9, 'boolean'), ('system_rs_config_data', '', 'system', 'hidden', 1, 99, 'none'), ('sts_email_enable_archive', '1', 'settings', 'dropdown', 5, 77, 'boolean'), ('sts_email_auto_prune_archive', '30', 'settings', 'text', 5, 78, 'none'), ('system_layout_left_links_array', 'a:6:{i:0;a:8:{s:2:\"id\";s:1:\"4\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:4:\"Home\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:6:\"{home}\";s:15:\"menu_sort_order\";s:1:\"1\";s:13:\"menu_location\";s:1:\"2\";s:4:\"subs\";a:0:{}}i:1;a:8:{s:2:\"id\";s:2:\"43\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:13:\"Manufacturers\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:15:\"{manufacturers}\";s:15:\"menu_sort_order\";s:1:\"2\";s:13:\"menu_location\";s:1:\"2\";s:4:\"subs\";a:0:{}}i:2;a:8:{s:2:\"id\";s:2:\"21\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:5:\"Store\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:7:\"{store}\";s:15:\"menu_sort_order\";s:1:\"3\";s:13:\"menu_location\";s:1:\"2\";s:4:\"subs\";a:0:{}}i:3;a:8:{s:2:\"id\";s:2:\"16\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:12:\"New Products\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:14:\"{new_products}\";s:15:\"menu_sort_order\";s:1:\"4\";s:13:\"menu_location\";s:1:\"2\";s:4:\"subs\";a:0:{}}i:4;a:8:{s:2:\"id\";s:2:\"15\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:7:\"Content\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:9:\"{content}\";s:15:\"menu_sort_order\";s:1:\"5\";s:13:\"menu_location\";s:1:\"2\";s:4:\"subs\";a:0:{}}i:5;a:8:{s:2:\"id\";s:2:\"24\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:10:\"Categories\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:20:\"{product_categories}\";s:15:\"menu_sort_order\";s:1:\"6\";s:13:\"menu_location\";s:1:\"2\";s:4:\"subs\";a:0:{}}}', 'system', 'text', 99, 1, 'none'), ('sts_content_members_dashboard_enable', '1', 'settings', 'dropdown', 21, 3, 'boolean'), ('sts_content_members_dashboard_num_articles', '10', 'settings', 'text', 21, 6, 'none'), ('sts_content_members_dashboard_enable_account_details', '1', 'settings', 'dropdown', 21, 31, 'boolean'), ('sts_content_members_dashboard_enable_invoices', '1', 'settings', 'dropdown', 21, 32, 'boolean'), ('sts_content_members_dashboard_enable_tools', '1', 'settings', 'dropdown', 21, 33, 'boolean'), ('sts_content_members_dashboard_enable_reports', '1', 'settings', 'dropdown', 21, 34, 'boolean'), ('sts_content_members_dashboard_enable_support', '1', 'settings', 'dropdown', 21, 35, 'boolean'), ('sts_content_members_dashboard_enable_commissions', '1', 'settings', 'dropdown', 21, 36, 'boolean'), ('sts_content_members_dashboard_enable_content', '0', 'settings', 'dropdown', 21, 37, 'boolean'), ('sts_content_members_dashboard_enable_downloads', '1', 'settings', 'dropdown', 21, 38, 'boolean'), ('sts_content_members_dashboard_enable_downline', '0', 'settings', 'dropdown', 21, 39, 'boolean'), ('sts_content_members_dashboard_enable_memberships', '0', 'settings', 'dropdown', 21, 40, 'boolean'), ('system_layout_right_links_array', 'a:6:{i:0;a:8:{s:2:\"id\";s:3:\"102\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:4:\"Home\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:6:\"{home}\";s:15:\"menu_sort_order\";s:1:\"1\";s:13:\"menu_location\";s:1:\"3\";s:4:\"subs\";a:0:{}}i:1;a:8:{s:2:\"id\";s:2:\"47\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:13:\"Manufacturers\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:15:\"{manufacturers}\";s:15:\"menu_sort_order\";s:1:\"2\";s:13:\"menu_location\";s:1:\"3\";s:4:\"subs\";a:0:{}}i:2;a:8:{s:2:\"id\";s:2:\"46\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:5:\"Store\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:7:\"{store}\";s:15:\"menu_sort_order\";s:1:\"3\";s:13:\"menu_location\";s:1:\"3\";s:4:\"subs\";a:0:{}}i:3;a:8:{s:2:\"id\";s:2:\"45\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:12:\"New Products\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:14:\"{new_products}\";s:15:\"menu_sort_order\";s:1:\"4\";s:13:\"menu_location\";s:1:\"3\";s:4:\"subs\";a:0:{}}i:4;a:8:{s:2:\"id\";s:1:\"8\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:7:\"Content\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:9:\"{content}\";s:15:\"menu_sort_order\";s:1:\"5\";s:13:\"menu_location\";s:1:\"3\";s:4:\"subs\";a:0:{}}i:5;a:8:{s:2:\"id\";s:1:\"6\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:10:\"Categories\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:20:\"{product_categories}\";s:15:\"menu_sort_order\";s:1:\"6\";s:13:\"menu_location\";s:1:\"3\";s:4:\"subs\";a:0:{}}}', 'system', 'text', 99, 1, 'none'), ('system_layout_bottom_links_array', 'a:6:{i:0;a:8:{s:2:\"id\";s:1:\"5\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:16:\"terms of service\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:18:\"{terms_of_service}\";s:15:\"menu_sort_order\";s:1:\"1\";s:13:\"menu_location\";s:1:\"4\";s:4:\"subs\";a:0:{}}i:1;a:8:{s:2:\"id\";s:2:\"55\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:10:\"Contact us\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:12:\"{contact_us}\";s:15:\"menu_sort_order\";s:1:\"2\";s:13:\"menu_location\";s:1:\"4\";s:4:\"subs\";a:0:{}}i:2;a:8:{s:2:\"id\";s:2:\"54\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:8:\"Site Map\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:9:\"{sitemap}\";s:15:\"menu_sort_order\";s:1:\"3\";s:13:\"menu_location\";s:1:\"4\";s:4:\"subs\";a:0:{}}i:3;a:8:{s:2:\"id\";s:2:\"53\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:3:\"RSS\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:11:\"{rss_feeds}\";s:15:\"menu_sort_order\";s:1:\"4\";s:13:\"menu_location\";s:1:\"4\";s:4:\"subs\";a:0:{}}i:4;a:8:{s:2:\"id\";s:1:\"9\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:8:\"About Us\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:10:\"{about_us}\";s:15:\"menu_sort_order\";s:1:\"5\";s:13:\"menu_location\";s:1:\"4\";s:4:\"subs\";a:0:{}}i:5;a:8:{s:2:\"id\";s:1:\"7\";s:11:\"menu_status\";s:1:\"1\";s:9:\"menu_name\";s:14:\"Privacy Policy\";s:11:\"menu_parent\";s:1:\"0\";s:8:\"menu_url\";s:16:\"{privacy_policy}\";s:15:\"menu_sort_order\";s:1:\"6\";s:13:\"menu_location\";s:1:\"4\";s:4:\"subs\";a:0:{}}}', 'system', 'text', 99, 1, 'none'), ('system_enable_rs_config', 'rfsEhL4ulhVq4P+8go6uELBHeJIrvVBLLq98PdBYViuP6a+iOJIUADaw6qk9ZnD5Ep0bmbJpGgBJ9qY/ggXnnrJfykkVE7/qeceaBnj23ymqx/Z0/8d/8WHn4bWY/NmZxxx', 'system', 'hidden', 1, 99, 'none'), ('sts_form_enable_custom_fields_checkout', '1', 'settings', 'dropdown', 19, 1, 'boolean'), ('sts_form_enable_custom_fields_registration', '1', 'settings', 'dropdown', 19, 5, 'boolean'), ('sts_form_enable_custom_fields_membership', '1', 'settings', 'dropdown', 19, 10, 'boolean'), ('sts_store_enable_language_selector', '1', 'settings', 'dropdown', 11, 1, 'boolean'), ('sts_content_update_services', 'http://rpc.pingomatic.com/\nhttp://api.feedster.com/ping\nhttp://api.moreover.com/ping\nhttp://api.my.yahoo.com/rss/ping\nhttp://blogsearch.google.com/ping/RPC2\nhttp://ping.feedburner.com\nhttp://ping.rootblog.com/rpc.php\nhttp://ping.syndic8.com/xmlrpc.php\nhttp://rpc.newsgator.com/\nhttp://rpc.technorati.com/rpc/ping\nhttp://rpc.weblogs.com/RPC2', 'settings', 'textarea', 4, 25, 'none'), ('sts_store_phone_number', '212-555-1212', 'settings', 'text', 1, 28, 'none'), ('sts_sec_enable_auto_ip_block', '0', 'settings', 'dropdown', 6, 88, 'boolean'), ('sts_sec_auto_ip_block_interval', '10', 'settings', 'text', 6, 89, 'none'), ('sts_sec_site_enable_form_flood_control', '1', 'settings', 'dropdown', 6, 91, 'boolean'), ('sts_sec_site_form_flood_control_interval', '2', 'settings', 'text', 6, 92, 'none'), ('layout_design_home_page_redirect', 'store', 'layout', 'dropdown', 1, 14, 'homepage_redirect'), ('sts_affiliate_coupon_expires', '30', 'settings', 'text', 13, 23, 'none'), ('sts_support_enable_file_uploads', '0', 'settings', 'dropdown', 7, 7, 'boolean'), ('sts_affiliate_replication_enable_header_footer', '1', 'settings', 'dropdown', 13, 16, 'boolean'), ('sts_support_upload_folder_path', '/home/folder/support/', 'settings', 'text', 7, 16, 'none'), ('sts_support_enable_email_on_assigned_ticket', '1', 'settings', 'dropdown', 7, 56, 'boolean'), ('module_shipping_UPS_pickup_method', 'CC', 'shipping', 'text', 48, 1, 'none'), ('module_shipping_UPS_packaging', 'CP', 'shipping', 'dropdown', 48, 2, 'none'), ('module_shipping_UPS_delivery_type', 'RES', 'shipping', 'dropdown', 48, 3, 'none'), ('module_shipping_UPS_handling_fee', '5.00', 'shipping', 'text', 48, 4, 'none'), ('module_shipping_UPS_enable_tax_zone', '0', 'shipping', 'dropdown', 48, 5, 'enable'), ('module_shipping_UPS_tax_zone', '1', 'shipping', 'dropdown', 48, 6, 'tax_zone'), ('module_shipping_USPS_handling_fee', '0.00', 'shipping', 'text', 114, 7, 'none'), ('module_shipping_UPS_shipping_types', '1DA,2DA,3DS,GND,XPR', 'shipping', 'dropdown', 48, 8, 'none'), ('sts_store_affiliate_id', '', 'settings', 'text', 15, 99, 'affiliate_id'), ('module_affiliate_marketing_banners_file_types', 'jpg|gif|png|swf', 'affiliate_marketing', 'text', 59, 1, 'none'), ('module_affiliate_marketing_text_ads_default_text_ad_width', '150', 'affiliate_marketing', 'text', 62, 1, 'none'), ('module_affiliate_marketing_text_ads_default_border_color', '333333', 'affiliate_marketing', 'text', 62, 1, 'none'), ('module_affiliate_marketing_text_ads_default_bg_title_color', 'bcc724', 'affiliate_marketing', 'text', 62, 2, 'none'), ('module_affiliate_marketing_text_ads_default_font_title_color', 'ad0707', 'affiliate_marketing', 'text', 62, 3, 'none'), ('module_affiliate_marketing_text_ads_default_bg_body_color', 'ffffff', 'affiliate_marketing', 'text', 62, 4, 'none'), ('module_affiliate_marketing_text_ads_default_font_body_color', '333333', 'affiliate_marketing', 'text', 62, 5, 'none'), ('module_affiliate_marketing_html_ads_default_html_ad_width', '150', 'affiliate_marketing', 'text', 64, 1, 'none'), ('module_affiliate_marketing_html_ads_default_border_color', '333333', 'affiliate_marketing', 'text', 64, 1, 'none'), ('module_affiliate_marketing_html_ads_default_bg_title_color', 'ffffff', 'affiliate_marketing', 'text', 64, 2, 'none'), ('module_affiliate_marketing_html_ads_default_font_title_color', 'a81818', 'affiliate_marketing', 'text', 64, 3, 'none'), ('module_affiliate_marketing_html_ads_default_bg_body_color', 'ffffff', 'affiliate_marketing', 'text', 64, 4, 'none'), ('module_affiliate_marketing_html_ads_default_font_body_color', '333333', 'affiliate_marketing', 'text', 64, 5, 'none'), ('module_affiliate_marketing_viral_pdfs_paper_size', 'letter', 'affiliate_marketing', 'dropdown', 66, 1, 'paper_size'), ('module_affiliate_marketing_viral_pdfs_orientation', 'portrait', 'affiliate_marketing', 'dropdown', 66, 1, 'paper_orientation'), ('sts_content_auto_generate_xml_sitemap', '1', 'settings', 'dropdown', 4, 35, 'boolean'), ('sts_video_player_control_bar', 'over', 'settings', 'dropdown', 18, 35, 'video_control_bar'), ('sts_affiliate_coupon_limit_use', '', 'settings', 'text', 13, 24, 'none'), ('system_enable_gs_config', 'PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPjwhLS0NCmdvb2dsZV9hZF9jbGllbnQgPSAicHViLTk2NTk5NDk2MzgwODA1MTUiOw0KLyogNzI4eDE1LCBjcmVhdGVkIDMvMTAvMDkgKi8NCmdvb2dsZV9hZF9zbG90ID0gIjgxOTMxMzQ4NDAiOw0KZ29vZ2xlX2FkX3dpZHRoID0gNzI4Ow0KZ29vZ2xlX2FkX2hlaWdodCA9IDE1Ow0KZ29vZ2xlX2NvbG9yX2JvcmRlciA9ICJ7Y29sb3JfMX0iOw0KZ29vZ2xlX2NvbG9yX2JnID0gIntjb2xvcl8yfSI7DQpnb29nbGVfY29sb3JfbGluayA9ICJ7Y29sb3JfM30iOw0KZ29vZ2xlX2NvbG9yX3RleHQgPSAie2NvbG9yXzR9IjsNCmdvb2dsZV9jb2xvcl91cmwgPSAie2NvbG9yXzV9IjsNCi8vLS0+DQo8L3NjcmlwdD4NCjxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ig0Kc3JjPSJodHRwOi8vcGFnZWFkMi5nb29nbGVzeW5kaWNhdGlvbi5jb20vcGFnZWFkL3Nob3dfYWRzLmpzIj4NCjwvc2NyaXB0Pg==', 'system', 'hidden', 1, 1, 'none'), ('module_advertising_ad_block_top', '<script type="text/javascript"><!--\ngoogle_ad_client = "pub-9659949638080515";\ngoogle_ad_width = 728;\ngoogle_ad_height = 15;\ngoogle_ad_format = "728x15_0ads_al_s";\n//2007-09-08: jamaffiliates top\ngoogle_ad_channel = "2973468107";\ngoogle_color_border = "333333";\ngoogle_color_bg = "ffffff";\ngoogle_color_link = "cccccc";\ngoogle_color_text = "333333";\ngoogle_color_url = "333333";\n//-->\n</script>\n<script type="text/javascript"\nsrc="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n</script>', 'advertising', 'textarea', 76, 1, 'none'), ('module_advertising_ad_block_bottom', '<script type="text/javascript"><!--\ngoogle_ad_client = "pub-9659949638080515";\ngoogle_ad_width = 728;\ngoogle_ad_height = 15;\ngoogle_ad_format = "728x15_0ads_al_s";\n//2007-09-08: jamaffiliates top\ngoogle_ad_channel = "2973468107";\ngoogle_color_border = "ffffff";\ngoogle_color_bg = "ffffff";\ngoogle_color_link = "333333";\ngoogle_color_text = "333333";\ngoogle_color_url = "333333";\n//-->\n</script>\n<script type="text/javascript"\n src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n</script>', 'advertising', 'textarea', 76, 1, 'none'), ('module_advertising_ad_block_left', '<script type="text/javascript"><!--\ngoogle_ad_client = "pub-9659949638080515";\ngoogle_ad_width = 160;\ngoogle_ad_height = 600;\ngoogle_ad_format = "160x600_as";\ngoogle_ad_type = "text_image";\ngoogle_ad_channel = "";\ngoogle_color_border = "333333";\ngoogle_color_bg = "FFFFFF";\ngoogle_color_link = "333333";\ngoogle_color_text = "000000";\ngoogle_color_url = "333333";\ngoogle_ui_features = "rc:0";\n//-->\n</script>\n<script type="text/javascript"\n src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n</script>', 'advertising', 'textarea', 76, 1, 'none'), ('module_advertising_ad_block_right', '<script type="text/javascript"><!--\ngoogle_ad_client = "pub-9659949638080515";\ngoogle_ad_width = 160;\ngoogle_ad_height = 600;\ngoogle_ad_format = "160x600_as";\ngoogle_ad_type = "image";\ngoogle_ad_channel = "";\ngoogle_color_border = "333333";\ngoogle_color_bg = "FFFFFF";\ngoogle_color_link = "333333";\ngoogle_color_text = "000000";\ngoogle_color_url = "333333";\ngoogle_ui_features = "rc:0";\n//-->\n</script>\n<script type="text/javascript"\n src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n</script>', 'advertising', 'textarea', 76, 1, 'none'), ('sts_products_per_home_page', '5', 'settings', 'text', 12, 3, 'none'), ('sts_store_google_analytics_code', '', 'settings', 'textarea', 11, 15, 'none'), ('sts_invoice_enable_logo', '1', 'settings', 'dropdown', 20, 35, 'boolean'), ('sts_invoice_autload_print_window', '0', 'settings', 'dropdown', 20, 45, 'boolean'), ('sts_store_set_curl_timeout', '5', 'settings', 'text', 11, 50, 'none'), ('sts_invoice_due_date_days', '0', 'settings', 'text', 20, 55, 'none'), ('sts_affiliate_show_pending_comms_members', '0', 'settings', 'dropdown', 16, 35, 'boolean'), ('sts_content_articles_home_page', '5', 'settings', 'text', 4, 12, 'none'), ('sts_email_show_email_content_queue', '0', 'settings', 'dropdown', 5, 85, 'boolean'), ('sts_store_enable_downline_cache', '0', 'settings', 'dropdown', 11, 82, 'boolean'), ('sts_store_enable_downline_cache_minutes', '5', 'settings', 'dropdown', 11, 83, 'numbers_10'), ('sts_affiliate_commission_levels_restrict_view', '3', 'settings', 'dropdown', 2, 3, 'numbers_10'), ('module_data_export_members_starting_rows', '0', 'data_export', 'text', 92, 3, 'none'), ('module_data_export_members_total_rows', '1000', 'data_export', 'text', 92, 2, 'none'), ('module_data_export_members_delimiter', ',', 'data_export', 'text', 92, 1, 'none'), ('module_data_export_products_delimiter', ',', 'data_export', 'text', 93, 1, 'none'), ('module_data_export_products_total_rows', '1000', 'data_export', 'text', 93, 2, 'none'), ('module_data_export_products_starting_rows', '0', 'data_export', 'text', 93, 3, 'none'), ('module_data_export_invoices_delimiter', ',', 'data_export', 'text', 94, 1, 'none'), ('module_data_export_invoices_starting_date', '', 'data_export', 'text', 94, 2, 'none'), ('module_data_export_invoices_ending_date', '', 'data_export', 'text', 94, 3, 'none'), ('module_data_export_commissions_delimiter', ',', 'data_export', 'text', 95, 1, 'none'), ('module_data_export_commissions_total_rows', '1000', 'data_export', 'text', 95, 2, 'none'), ('module_data_export_commissions_starting_rows', '0', 'data_export', 'text', 95, 3, 'none'), ('module_data_export_affiliate_payments_delimiter', ',', 'data_export', 'text', 96, 1, 'none'), ('module_data_export_affiliate_payments_total_rows', '500', 'data_export', 'text', 96, 2, 'none'), ('module_data_export_affiliate_payments_starting_rows', '0', 'data_export', 'text', 96, 3, 'none'), ('module_data_export_invoice_payments_delimiter', ',', 'data_export', 'text', 97, 1, 'none'), ('module_data_export_invoice_payments_starting_date', '', 'data_export', 'text', 97, 2, 'none'), ('module_data_export_invoice_payments_ending_date', '', 'data_export', 'text', 97, 3, 'none'), ('sts_affiliate_restrict_subdomains', 'www,ftp,mail,webmail', 'settings', 'text', 2, 5, 'none'), ('sts_affiliate_cookie_timer', '365', 'settings', 'text', 2, 25, 'none'), ('sts_products_manufacturer_category_name', 'Manufacturers', 'settings', 'text', 12, 35, 'none'), ('sts_affiliate_lifetime_sponsor', '0', 'settings', 'dropdown', 2, 25, 'boolean'), ('sts_affiliate_delete_commission_on_checkout', '1', 'settings', 'dropdown', 2, 26, 'boolean'), ('sts_content_require_comment_moderation', '1', 'settings', 'dropdown', 4, 1, 'boolean'), ('layout_design_enable_left_column_faq_pages', '1', 'layout', 'dropdown', 2, 40, 'boolean'), ('layout_design_enable_right_column_faq_pages', '0', 'layout', 'dropdown', 2, 43, 'boolean'), ('sts_faq_articles_per_page', '5', 'settings', 'text', 4, 11, 'none'), ('sts_content_rss_per_page', '25', 'settings', 'text', 4, 40, 'none'), ('layout_design_enable_left_column_standard_pages', '1', 'layout', 'dropdown', 2, 40, 'boolean'), ('layout_design_enable_right_column_standard_pages', '1', 'layout', 'dropdown', 2, 42, 'boolean'), ('sts_products_bookmarks_code', 'PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPnZhciBhZGR0aGlzX3B1YiAgPSAianJveG9ubGluZSI7PC9zY3JpcHQ+CjxhIGhyZWY9Imh0dHA6Ly93d3cuYWRkdGhpcy5jb20vYm9va21hcmsucGhwIiBvbm1vdXNlb3Zlcj0icmV0dXJuIGFkZHRoaXNfb3Blbih0aGlzLCAnJywgJ1tVUkxdJywgJ1tUSVRMRV0nKSIgb25tb3VzZW91dD0iYWRkdGhpc19jbG9zZSgpIiBvbmNsaWNrPSJyZXR1cm4gYWRkdGhpc19zZW5kdG8oKSI+PGltZyBzcmM9Imh0dHA6Ly9zNy5hZGR0aGlzLmNvbS9idXR0b24xLXNoYXJlLmdpZiIgd2lkdGg9IjEyNSIgaGVpZ2h0PSIxNiIgYm9yZGVyPSIwIiBhbHQ9IiIgLz48L2E+PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiIHNyYz0iaHR0cDovL3M3LmFkZHRoaXMuY29tL2pzLzE1Mi9hZGR0aGlzX3dpZGdldC5qcyI+PC9zY3JpcHQ+', 'settings', 'textarea', 12, 88, 'base64_decode'), ('layout_design_enable_left_column_profile_pages', '1', 'layout', 'dropdown', 12, 52, 'boolean'), ('layout_design_enable_right_column_profile_pages', '0', 'layout', 'dropdown', 12, 55, 'boolean'), ('sts_affiliate_enable_profile_description', '1', 'settings', 'dropdown', 13, 19, 'boolean'), ('sts_form_enable_custom_fields_contact_us', '1', 'settings', 'dropdown', 19, 49, 'boolean'), ('sts_products_enable_inventory', '0', 'settings', 'dropdown', 12, 7, 'boolean'), ('sts_cart_remove_account_mailing_list', '1', 'settings', 'dropdown', 3, 5, 'mailing_list'), ('module_shipping_USPS_max_weight', '70', 'shipping', 'text', 114, 6, 'none'), ('module_shipping_USPS_machinable', 'true', 'shipping', 'dropdown', 114, 5, 'boolean'), ('module_shipping_USPS_size', 'REGULAR', 'shipping', 'dropdown', 114, 4, 'none'), ('module_shipping_USPS_container', 'VARIABLE', 'shipping', 'dropdown', 114, 3, 'none'), ('module_shipping_USPS_userid', '', 'shipping', 'text', 114, 2, 'none'), ('module_shipping_USPS_gateway_url', 'http://production.shippingapis.com/ShippingAPI.dll', 'shipping', 'text', 114, 1, 'none'), ('module_shipping_USPS_enable_tax_zone', '0', 'shipping', 'dropdown', 114, 8, 'enable'), ('module_shipping_USPS_tax_zone', '1', 'shipping', 'dropdown', 114, 9, 'tax_zone'), ('sts_sec_site_enable_block_free_email_accounts', '0', 'settings', 'dropdown', 6, 96, 'boolean'), ('module_shipping_USPS_domestic_shipping_types', 'EXPRESS,FIRST CLASS,MEDIA', 'shipping', 'dropdown', 114, 10, 'none'), ('module_shipping_USPS_international_shipping_types', 'Priority Mail International Flat Rate Box', 'shipping', 'dropdown', 114, 11, 'none'), ('sts_affiliate_auto_generate_coupon_recurring', '0', 'settings', 'dropdown', 13, 23, 'boolean'), ('sts_email_require_confirmation_on_signup', '1', 'settings', 'dropdown', 5, 88, 'boolean'), ('module_shipping_zone_based_enable_tax_zone', '0', 'shipping', 'dropdown', 117, 2, 'enable'), ('module_shipping_zone_based_calculation_type', 'price', 'shipping', 'dropdown', 117, 1, 'zone_calc'), ('sts_sec_site_block_free_email_accounts', 'hotmail.com\ngmail.com', 'settings', 'textarea', 6, 97, 'none'), ('sts_sec_enable_captcha_order_form', '0', 'settings', 'dropdown', 6, 99, 'boolean'), ('sts_shipping_use_billing_taxes', '1', 'settings', 'dropdown', 17, 4, 'boolean'), ('module_payment_gateway_paypal_standard_disable_verification', '0', 'payment_gateway', 'dropdown', 126, 4, 'boolean'), ('module_payment_gateway_authorize_net_aim_send_merchant_notification', '1', 'payment_gateway', 'dropdown', 125, 8, 'boolean'), ('module_payment_gateway_authorize_net_aim_send_customer_notification', '1', 'payment_gateway', 'dropdown', 125, 7, 'boolean'), ('module_payment_gateway_authorize_net_aim_require_cvv', '1', 'payment_gateway', 'dropdown', 125, 6, 'boolean'), ('module_payment_gateway_authorize_net_aim_authorization_type', 'AUTH_CAPTURE', 'payment_gateway', 'dropdown', 125, 5, 'cc_auth_type'), ('module_payment_gateway_authorize_net_aim_enable_testing', '1', 'payment_gateway', 'dropdown', 125, 4, 'boolean'), ('module_payment_gateway_authorize_net_aim_transaction_key', '', 'payment_gateway', 'text', 125, 3, 'none'), ('module_payment_gateway_authorize_net_aim_merchant_id', '', 'payment_gateway', 'text', 125, 2, 'none'), ('module_payment_gateway_authorize_net_aim_url', 'https://secure.authorize.net/gateway/transact.dll', 'payment_gateway', 'text', 125, 1, 'none'), ('module_payment_gateway_paypal_standard_email', '', 'payment_gateway', 'text', 126, 1, 'none'), ('module_payment_gateway_paypal_standard_url', 'https://www.paypal.com/cgi-bin/webscr', 'payment_gateway', 'text', 126, 2, 'none'), ('sts_invoice_new_order_status_physical', 'order_pending', 'settings', 'dropdown', 20, 40, 'order_status'), ('sts_invoice_new_order_status_digital', 'order_pending', 'settings', 'dropdown', 20, 41, 'order_status'), ('sts_invoice_new_order_status_membership', 'order_completed', 'settings', 'dropdown', 20, 42, 'order_status'), ('sts_affiliate_auto_generate_coupon_credits', '0', 'settings', 'dropdown', 13, 23, 'boolean'), ('module_payment_gateway_paypal_standard_enable_debug_email', '0', 'payment_gateway', 'dropdown', 126, 5, 'boolean'), ('sts_affiliate_refund_commission_type', 'delete', 'settings', 'dropdown', 2, 99, 'commission_refund_option'), ('sts_affiliate_enable_recurring_commission', '1', 'settings', 'dropdown', 2, 2, 'boolean'), ('module_payment_gateway_offline_payment_download_link', 'http://" . $_POST['base_subdomain_name'] . '.' . $_POST['base_domain_name'] . "/offline_order.pdf', 'payment_gateway', 'text', 135, 2, 'none'), ('module_payment_gateway_authorize_net_aim_md5_hash', '', 'payment_gateway', 'text', 125, 10, 'none'), ('module_payment_gateway_authorize_net_aim_enable_arb', '0', 'payment_gateway', 'dropdown', 125, 11, 'boolean'), ('module_payment_gateway_alertpay_email', '', 'payment_gateway', 'text', 129, 1, 'none'), ('module_payment_gateway_alertpay_url', 'https://www.alertpay.com/PayProcess.aspx', 'payment_gateway', 'text', 129, 2, 'none'), ('module_payment_gateway_alertpay_currency_code', 'USD', 'payment_gateway', 'text', 129, 3, 'none'), ('module_payment_gateway_alertpay_disable_verification', '', 'payment_gateway', 'text', 129, 4, 'none'), ('module_payment_gateway_alertpay_enable_debug_email', '0', 'payment_gateway', 'dropdown', 129, 5, 'boolean'), ('module_payment_gateway_2checkout_enable_testing', '1', 'payment_gateway', 'dropdown', 132, 4, 'boolean'), ('module_payment_gateway_2checkout_md5_hash', '', 'payment_gateway', 'text', 132, 3, 'none'), ('module_payment_gateway_2checkout_url', 'https://www.2checkout.com/checkout/spurchase', 'payment_gateway', 'text', 132, 2, 'none'), ('module_payment_gateway_2checkout_id', '', 'payment_gateway', 'text', 132, 1, 'none'), ('module_payment_gateway_2checkout_enable_debug_email', '0', 'payment_gateway', 'dropdown', 132, 5, 'boolean'), ('module_payment_gateway_psigate_url', '', 'payment_gateway', 'text', 133, 1, 'none'), ('module_payment_gateway_psigate_merchant_id', '', 'payment_gateway', 'text', 133, 2, 'none'), ('module_payment_gateway_psigate_passphrase', '', 'payment_gateway', 'text', 133, 3, 'none'), ('module_payment_gateway_psigate_enable_testing', '1', 'payment_gateway', 'dropdown', 133, 4, 'boolean'), ('module_payment_gateway_psigate_require_cvv', '1', 'payment_gateway', 'dropdown', 133, 5, 'boolean'), ('module_payment_gateway_psigate_enable_debug_email', '0', 'payment_gateway', 'dropdown', 133, 6, 'boolean'), ('module_payment_gateway_liberty_reserve_id', '', 'payment_gateway', 'text', 134, 1, 'none'), ('module_payment_gateway_liberty_reserve_url', 'https://sci.libertyreserve.com', 'payment_gateway', 'text', 134, 2, 'none'), ('module_payment_gateway_liberty_reserve_secret_word', '', 'payment_gateway', 'text', 134, 4, 'none'), ('module_payment_gateway_liberty_reserve_store_name', 'mystore', 'payment_gateway', 'text', 134, 5, 'none'), ('module_payment_gateway_liberty_reserve_currency_code', 'LRUSD', 'payment_gateway', 'text', 134, 6, 'none'), ('module_payment_gateway_liberty_reserve_enable_debug_email', '0', 'payment_gateway', 'dropdown', 134, 7, 'boolean'), ('module_payment_gateway_offline_payment_message', 'thank you for your order.\n\nenter your offline ordering instructions here.', 'payment_gateway', 'textarea', 135, 1, 'none'), ('module_payment_gateway_eway_merchant_id', '', 'payment_gateway', 'text', 137, 2, 'none'), ('module_payment_gateway_eway_payment_method', 'REAL_TIME', 'payment_gateway', 'text', 137, 3, 'none'), ('module_payment_gateway_eway_enable_testing', '1', 'payment_gateway', 'dropdown', 137, 4, 'boolean'), ('module_payment_gateway_eway_require_cvv', '1', 'payment_gateway', 'dropdown', 137, 5, 'boolean'), ('module_payment_gateway_eway_enable_debug_email', '0', 'payment_gateway', 'dropdown', 137, 6, 'boolean'), ('module_payment_gateway_egold_id', '', 'payment_gateway', 'text', 139, 1, 'none'), ('module_payment_gateway_egold_url', 'https://www.e-gold.com/sci_asp/payments.asp', 'payment_gateway', 'text', 139, 2, 'none'), ('module_payment_gateway_egold_secret_word', '', 'payment_gateway', 'text', 139, 4, 'none'), ('module_payment_gateway_egold_payment_units', '1', 'payment_gateway', 'text', 139, 5, 'none'), ('module_payment_gateway_egold_enable_debug_email', '0', 'payment_gateway', 'dropdown', 139, 6, 'boolean'), ('module_payment_gateway_nochex_id', '', 'payment_gateway', 'text', 140, 1, 'none'), ('module_payment_gateway_nochex_url', 'https://secure.nochex.com', 'payment_gateway', 'text', 140, 2, 'none'), ('module_payment_gateway_nochex_disable_verification', '0', 'payment_gateway', 'dropdown', 140, 3, 'boolean'), ('module_payment_gateway_nochex_enable_testing', '1', 'payment_gateway', 'dropdown', 140, 4, 'boolean'), ('module_payment_gateway_nochex_enable_debug_email', '0', 'payment_gateway', 'dropdown', 140, 5, 'boolean'), ('sts_content_members_dashboard_enable_coupons', '0', 'settings', 'dropdown', 21, 41, 'boolean'), ('sts_content_members_dashboard_enable_traffic', '1', 'settings', 'dropdown', 21, 42, 'boolean'), ('sts_affiliate_allow_expandable_downlines', '0', 'settings', 'dropdown', 16, 99, 'boolean'), ('sts_cron_password_key', '" . strtoupper(md5(time())) . "', 'system', 'hidden', 1, 1, 'none'), ('sts_invoice_enable_auto_generate_invoice', '1', 'settings', 'dropdown', 20, 67, 'boolean'), ('sts_invoice_auto_generate_invoice_day', '3', 'settings', 'text', 20, 69, 'text'), ('module_data_import_jam_segment_affiliates', '0', 'data_import', 'dropdown', 150, 1, 'boolean'), ('module_data_import_jam_affiliate_limit', '10000', 'data_import', 'text', 150, 2, 'none'), ('module_data_import_jam_affiliate_offset', '0', 'data_import', 'text', 150, 3, 'none'), ('module_data_import_jam_segment_commissions', '0', 'data_import', 'dropdown', 150, 4, 'boolean'), ('module_data_import_jam_commission_limit', '10000', 'data_import', 'text', 150, 5, 'none'), ('module_data_import_jam_commission_offset', '0', 'data_import', 'text', 150, 6, 'none'), ('module_data_import_jam_segment_payments', '0', 'data_import', 'dropdown', 150, 7, 'boolean'), ('module_data_import_jam_payment_limit', '10000', 'data_import', 'text', 150, 8, 'none'), ('module_data_import_jam_payment_offset', '0', 'data_import', 'text', 150, 9, 'none'), ('module_data_import_jam_segment_traffic', '0', 'data_import', 'dropdown', 150, 10, 'boolean'), ('module_data_import_jam_traffic_limit', '10000', 'data_import', 'text', 150, 11, 'none'), ('module_data_import_jam_traffic_offset', '0', 'data_import', 'text', 150, 12, 'none'), ('module_data_import_products_delimiter', 'tab', 'data_import', 'dropdown', 151, 1, 'delimiter'), ('module_data_import_products_heading_first_row', '1', 'data_import', 'dropdown', 151, 2, 'boolean'), ('module_data_import_products_generate_new_ids', '1', 'data_import', 'dropdown', 151, 3, 'boolean'), ('module_data_import_members_delimiter', 'comma', 'data_import', 'dropdown', 152, 1, 'delimiter'), ('module_data_import_members_heading_first_row', '1', 'data_import', 'dropdown', 152, 2, 'boolean'), ('module_data_import_members_generate_new_ids', '1', 'data_import', 'dropdown', 152, 3, 'boolean'), ('module_payment_gateway_firstdata_connect_enable_debug', '0', 'payment_gateway', 'dropdown', 153, 5, 'boolean'), ('module_payment_gateway_firstdata_connect_txntype', 'sale', 'payment_gateway', 'text', 153, 3, 'none'), ('module_payment_gateway_firstdata_connect_mode', 'fullpay', 'payment_gateway', 'text', 153, 4, 'none'), ('module_payment_gateway_firstdata_connect_url', 'https://www.linkpointcentral.com/lpc/servlet/lppay', 'payment_gateway', 'text', 153, 2, 'none'), ('module_payment_gateway_firstdata_connect_storename', '', 'payment_gateway', 'text', 153, 1, 'none'), ('module_payment_gateway_firstdata_connect_enable_debug_email', '0', 'payment_gateway', 'dropdown', 153, 6, 'boolean'), ('module_payment_gateway_payjunction_url', 'https://payjunction.com/quick_link', 'payment_gateway', 'text', 154, 1, 'none'), ('module_payment_gateway_payjunction_username', '', 'payment_gateway', 'text', 154, 2, 'none'), ('module_payment_gateway_payjunction_password', '', 'payment_gateway', 'text', 154, 3, 'none'), ('module_payment_gateway_payjunction_transaction_type', 'AUTH_CAPTURE', 'payment_gateway', 'dropdown', 154, 4, 'cc_auth_type'), ('module_payment_gateway_payjunction_require_cvv', '1', 'payment_gateway', 'dropdown', 154, 5, 'boolean'), ('sts_content_enable_wordpress_publishing', '0', 'settings', 'dropdown', 4, 44, 'boolean'), ('sts_content_wordpress_url', '', 'settings', 'text', 4, 46, 'none'), ('sts_content_wordpress_username', '', 'settings', 'text', 4, 48, 'none'), ('sts_content_wordpress_password', '', 'settings', 'text', 4, 50, 'none'), ('sts_store_jem_installation_id', '" . trim($_POST['jemcode']) . "', 'system', 'hidden', 1, 99, 'none'), ('sts_form_enable_tos_checkbox', '0', 'settings', 'dropdown', 19, 15, 'boolean'), ('sts_content_enable_disqus_form', '', 'settings', 'textarea', 4, 2, 'base64_decode'), ('sts_tracking_auto_prune_days', '365', 'settings', 'text', '13', '67', 'none'), ('sts_admin_disable_thickbox_popups', '1', 'settings', 'dropdown', '8', '25', 'boolean'), ('sts_email_bounce_server', '', 'settings', 'text', '5', '77', 'none'), ('sts_email_bounce_username', '', 'settings', 'text', '5', '78', 'none'), ('sts_email_bounce_password', '', 'settings', 'text', '5', '79', 'none'), ('sts_email_bounce_port', '110', 'settings', 'text', '5', '80', 'none'), ('sts_email_bounce_service_flags', '/pop3/notls', 'settings', 'text', '5', '81', 'none'), ('module_advertising_ad_block_content_ad_1', '', 'advertising', 'textarea', '1', '76', 'none'), ('module_advertising_ad_block_content_ad_2', '', 'advertising', 'textarea', '1', '76', 'none'), ('sts_content_enable_ping_fm', '0', 'settings', 'dropdown', '4', '67', 'boolean'), ('sts_content_ping_fm_app_key', '', 'settings', 'text', '4', '68', 'none'), ('sts_content_enable_tweetmeme_code', '0', 'settings', 'dropdown', '4', '69', 'boolean'), ('sts_content_enable_facebook_share', '0', 'settings', 'dropdown', '4', '70', 'boolean'), ('module_payment_gateway_goemerchant_url', 'https://secure.goemerchant.com/secure/gateway/aegateway.aspx', 'payment_gateway', 'text', 156, 1, 'none'), ('module_payment_gateway_goemerchant_merchant_id', '', 'payment_gateway', 'text', 156, 2, 'none'), ('module_payment_gateway_goemerchant_transaction_key', '', 'payment_gateway', 'text', 156, 3, 'none'), ('module_payment_gateway_goemerchant_authorization_type', 'AUTH_CAPTURE', 'payment_gateway', 'dropdown', 156, 5, 'cc_auth_type'), ('module_payment_gateway_goemerchant_require_cvv', '1', 'payment_gateway', 'dropdown', 156, 6, 'boolean'), ('module_payment_gateway_goemerchant_enable_debug_email', '0', 'payment_gateway', 'dropdown', 156, 9, 'boolean'), ('module_payment_gateway_chargeback_guardian_url', 'https://secure.chargebackguardiangateway.com/api/transact.php', 'payment_gateway', 'text', 157, 1, 'none'), ('module_payment_gateway_chargeback_guardian_username', '', 'payment_gateway', 'text', 157, 2, 'none'), ('module_payment_gateway_chargeback_guardian_password', '', 'payment_gateway', 'text', 157, 3, 'none'), ('module_payment_gateway_chargeback_guardian_authorization_type', 'sale', 'payment_gateway', 'text', 157, 5, 'none'), ('module_payment_gateway_chargeback_guardian_require_cvv', '1', 'payment_gateway', 'dropdown', 157, 6, 'boolean'), ('module_payment_gateway_chargeback_guardian_enable_debug_email', '0', 'payment_gateway', 'dropdown', 157, 9, 'boolean'), ('sts_products_random_home_page', '0', 'settings', 'dropdown', 12, 4, 'boolean') ;") or die(mysql_error()); $data['u'] = $admin_username; $data['p'] = $admin_password; if (!empty($_POST['base_subdomain_name'])) { $config_base_url = $_POST['base_subdomain_name'] . '.' . $_POST['base_domain_name'] . $_POST['base_folder_path']; } else { $config_base_url = $_POST['base_domain_name'] . $_POST['base_folder_path']; } $data['l'] = $config_base_url; $data['errors'] = false; if (!empty($_POST['send_login'])) { $to = $_POST['admin_email']; $email_subject = strtoupper($_POST['base_domain_name']) . ' Installation Details'; $from_email = "system@" . $_POST['base_domain_name']; $message = "Installation Details for " . $config_base_url . "\n"; $message .= "===============================================\n\n"; $message .= "http://". $config_base_url . "/index.php/admin_login/" . "\n"; $message .= "username: " . $admin_username . "\n"; $message .= "password: " . $admin_password . "\n"; $message .= "\n===============================================\n\n"; $message .= "Thanks!\n"; $message .= "Support Team\n"; $headers = "From: $from_email"; //SEND EMAIL @mail($to,$email_subject,$message,$headers); } //update licensing database $fields = ""; $auth_fields = array( 'j_domain' => "http://" . $config_base_url, 'j_email' => $_POST['admin_email'], 'j_date' => date('m.d.Y'), 'j_ip' => $_SERVER['REMOTE_ADDR'], ); foreach( $auth_fields as $key => $value ) $fields .= "$key=" . urlencode( $value ) . "&"; $ch = curl_init('http://www.jrox.com/index.php/licensing/install'); curl_setopt($ch, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, '10'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Returns response data instead of TRUE(1) curl_setopt($ch, CURLOPT_POSTFIELDS, rtrim( $fields, "& " )); // use HTTP POST to send form data curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // uncomment this line if you get no gateway response. ### $resp = curl_exec($ch); //execute post and get results curl_close ($ch); return $data; } else { $data['errors'] = nl2br($error); return $data; } } function valid_email($address) { return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $address)) ? FALSE : TRUE; } function read_file($file) { if ( ! file_exists($file)) { return FALSE; } if (function_exists('file_get_contents')) { return file_get_contents($file); } if ( ! $fp = @fopen($file, FOPEN_READ)) { return FALSE; } flock($fp, LOCK_SH); $data = ''; if (filesize($file) > 0) { $data =& fread($fp, filesize($file)); } flock($fp, LOCK_UN); fclose($fp); return $data; } function _generate_username() { $a = random_string('alpha', 3); $a .= 'admin'; return $a; } function _generate_password() { $a = random_string('alnum', 8); return strtolower($a); } function random_string($type = 'alnum', $len = 8) { switch($type) { case 'alnum' : case 'numeric' : case 'alpha' : case 'nozero' : switch ($type) { case 'alnum' : $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; break; case 'numeric' : $pool = '0123456789'; break; case 'nozero' : $pool = '123456789'; break; case 'alpha' : $pool = 'abcdefghijklmnopqrstuvwxyz'; break; } $str = ''; for ($i=0; $i < $len; $i++) { $str .= substr($pool, mt_rand(0, strlen($pool) -1), 1); } return $str; break; case 'unique' : return md5(uniqid(mt_rand())); break; } } function _format_domain_name($domain) { $pattern = '/\w+\..{2,3}(?:\..{2,3})?(?:$|(?=\/))/i'; $url = $domain; if (preg_match($pattern, $url, $matches) === 1) { $url = $matches[0]; } return $url; } function curPageURL() { $pageURL = 'http'; if (!empty($_SERVER["HTTPS"]) == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } function write_data($type = '', $data = '', $path = '') { if ($type == 'config') { if ($data['base_physical_path'] != 'PUBPATH') { $data['base_physical_path'] = '\'' . $data['base_physical_path'] . '\''; } if (!empty($data['base_subdomain_name'])) { $config_base_url = '\'http://\' . $config[\'base_subdomain_name\'] . \'.\' . $config[\'base_domain_name\'] . $config[\'base_folder_path\'];'; $config_base_ssl_url = '\'http://\' . $config[\'base_subdomain_name\'] . \'.\' . $config[\'base_domain_name\'] . $config[\'base_folder_path\'];'; } else { $config_base_url = '\'http://\' . $config[\'base_domain_name\'] . $config[\'base_folder_path\'];'; $config_base_ssl_url = '\'http://\' . $config[\'base_domain_name\'] . $config[\'base_folder_path\'];'; } $content = '<?php if (!defined(\'BASEPATH\')) exit(\'No direct script access allowed\'); /* |-------------------------------------------------------------------------- | Script Limits |-------------------------------------------------------------------------- */ $config[\'script_memory_limit\'] = \'64M\'; $config[\'script_time_limit\'] = \'0\'; /* |-------------------------------------------------------------------------- | SSL settings |-------------------------------------------------------------------------- */ define(\'SSL_PUBLIC_AREA\', false); define(\'SSL_MEMBERS_AREA\', false); define(\'SSL_ADMIN_AREA\', false); /* |-------------------------------------------------------------------------- | Folder and License Path |-------------------------------------------------------------------------- */ $config[\'base_license_domain_name\'] = \'' . $data['base_domain_name'] . '\'; $config[\'base_physical_path\'] = ' . $data['base_physical_path'] . '; $config[\'base_folder_path\'] = \'' . $data['base_folder_path'] . '\'; $config[\'base_domain_name\'] = \'' . $data['base_domain_name'] . '\'; $config[\'base_subdomain_name\'] = \'' . $data['base_subdomain_name'] . '\'; $config[\'base_url\'] = ' . $config_base_url . ' $config[\'base_SSL_url\'] = ' . $config_base_url . ' $config[\'auto_check_current_version\'] = \'1\'; /* |-------------------------------------------------------------------------- | Pagination Links |-------------------------------------------------------------------------- */ $config[\'pagination_links\'] = 2; /* |-------------------------------------------------------------------------- | Images Path and Settings |-------------------------------------------------------------------------- */ $config[\'images_admins_dir\'] = \'admins\'; $config[\'images_products_dir\'] = \'products\'; $config[\'images_members_dir\'] = \'members\'; $config[\'images_banners_dir\'] = \'banners\'; $config[\'images_manufacturers_dir\'] = \'manufacturers\'; $config[\'images_product_categories_dir\'] = \'products_categories\'; $config[\'site_replication_folder\'] = \'rep\'; $config[\'images_maintain_ratio\'] = true; $config[\'images_thickbox_class\'] = \'thickbox\'; $config[\'images_quality\'] = \'100%\'; $config[\'rss_image_height\'] = \'75\'; $config[\'rss_image_width\'] = \'75\'; $config[\'member_marketing_tool_ext\'] = \'png\'; $config[\'pragma_header_cache_control\'] = false; $config[\'category_path_separator\'] = \'/\'; $config[\'disable_db_autosorting\'] = false; $config[\'maximum_recommended_products_profile_page\'] = \'25\'; //the maximum number of products to show on the affiliate profile page /* |-------------------------------------------------------------------------- | URL Settings |-------------------------------------------------------------------------- */ $config[\'jrox_url_separator\'] = \'dash\'; //dash or underscore only $config[\'tracker_unique_referrals_only\'] = false; /* |-------------------------------------------------------------------------- | Member Settings |-------------------------------------------------------------------------- */ $config[\'member_min_username_length\'] = \'6\'; $config[\'members_password_function\'] = \'md5\'; //md5, sha1, or mcrypt $config[\'member_mass_email_throttle\'] = \'0\'; $config[\'member_url_login_redirect\'] = \'\'; $config[\'member_url_logout_redirect\'] = \'\'; $config[\'member_require_membership_registration\'] = \'\'; $config[\'member_hide_mailing_list_box\'] = false; $config[\'member_disable_registration_email\'] = false; $config[\'member_list_append_unsubscribe\'] = true; $config[\'member_enable_group_change_registration\'] = false; $config[\'member_enable_bilevel_affiliate_groups\'] = false; /* |-------------------------------------------------------------------------- | Alert Settings |-------------------------------------------------------------------------- */ $config[\'cron_send_recurring_payment_info_email\'] = true; /* |-------------------------------------------------------------------------- | Content Settings |-------------------------------------------------------------------------- */ $config[\'content_enable_javascript_code\'] = false; /* |-------------------------------------------------------------------------- | Product Settings |-------------------------------------------------------------------------- */ $config[\'store_min_word_length_product_overview\'] = \'50\'; /* |-------------------------------------------------------------------------- | Links and Customization |-------------------------------------------------------------------------- */ $config[\'customizer_theme_customization_url\'] = \'http://www.jrox.com/theme_customization/\'; $config[\'customizer_license_ordering_url\'] = \'http://www.jrox.com/buy/\'; //order button $config[\'customizer_admin_area_help_url\'] = \'http://www.jrox.com/help/\'; //admin help button $config[\'customizer_admin_area_forum_url\'] = \'http://forums.jrox.com/\'; $config[\'customizer_admin_area_docs_url\'] = \'http://www.jrox.com/docs/\'; //$config[\'customizer_admin_area_videos_url\'] = \'http://www.jrox.com/docs/videos/\'; $config[\'customizer_admin_area_quick_start_url\'] = \'http://www.jrox.com/docs/quick_start_guide/\'; $config[\'customizer_member_area_help_url\'] = \'http://www.jrox.com/docs/member_docs/\'; //members help button /* |-------------------------------------------------------------------------- | Index File |-------------------------------------------------------------------------- */ $config[\'index_page\'] = \'\'; $config[\'admin_index_page\'] = \'\'; $config[\'checkout_index_page\'] = \'\'; /* |-------------------------------------------------------------------------- | URI PROTOCOL |-------------------------------------------------------------------------- | \'AUTO\' Default - auto detects | \'PATH_INFO\' Uses the PATH_INFO | \'QUERY_STRING\' Uses the QUERY_STRING | \'REQUEST_URI\' Uses the REQUEST_URI | \'ORIG_PATH_INFO\' Uses the ORIG_PATH_INFO | */ $config[\'uri_protocol\'] = \'AUTO\'; /* |-------------------------------------------------------------------------- | Default Language |-------------------------------------------------------------------------- */ $config[\'language\'] = \'english\'; /* |-------------------------------------------------------------------------- | Default Character Set |-------------------------------------------------------------------------- */ $config[\'charset\'] = \'UTF-8\'; //ISO-8859-1 UTF-8 /* |-------------------------------------------------------------------------- | Error Logging Threshold |-------------------------------------------------------------------------- */ $config[\'log_threshold\'] = \'0\'; /* |-------------------------------------------------------------------------- | Error Logging Directory Path |-------------------------------------------------------------------------- */ $config[\'log_path\'] = \'\'; /* |-------------------------------------------------------------------------- | Date Format for Logs |-------------------------------------------------------------------------- */ $config[\'log_date_format\'] = \'Y-m-d H:i:s\'; /* |-------------------------------------------------------------------------- | Cache Directory Path |-------------------------------------------------------------------------- */ $config[\'cache_path\'] = \'\'; /* |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- */ //CHANGING THIS WILL INVALIDATE CURRENT ENCRYPTED DATA! $config[\'encryption_key\'] = \'' . $data['encryption_key'] . '\'; /* |-------------------------------------------------------------------------- | Session Variables |-------------------------------------------------------------------------- */ $config[\'sess_cookie_name\'] = \'jrox_session\'; $config[\'sess_expiration\'] = 60 * 60 * 24; $config[\'sess_expiration_pub\'] = 60 * 60 * 24; $config[\'sess_expiration_cart\'] = 60 * 60 * 24; $config[\'sess_encrypt_cookie\'] = FALSE; $config[\'sess_use_database\'] = TRUE; $config[\'sess_table_name\'] = \'sessions\'; $config[\'sess_match_ip\'] = FALSE; $config[\'sess_match_useragent\'] = TRUE; $config[\'sess_time_to_update\'] = 300; /* |-------------------------------------------------------------------------- | Cookie Related Variables |-------------------------------------------------------------------------- */ $config[\'aff_cookie_name\'] = \'jrox_com\'; $config[\'cookie_prefix\'] = \'\'; $config[\'cookie_domain\'] = \'.' . $data['base_domain_name'] . '\'; $config[\'ssl_cookie_domain\'] = \'.' . $data['base_domain_name'] . '\'; $config[\'cookie_path\'] = \'/\'; /* |-------------------------------------------------------------------------- | Output Compression |-------------------------------------------------------------------------- */ $config[\'compress_output\'] = FALSE; /* |-------------------------------------------------------------------------- | Host IP Lookup URL |-------------------------------------------------------------------------- */ $config[\'base_hostip_location_URL\'] = \'http://api.hostip.info/get_html.php?ip=\'; $config[\'base_hostip_lookup_URL\'] = \'http://www.hostip.info/index.html?spip=\'; /* |-------------------------------------------------------------------------- | Master Time Reference |-------------------------------------------------------------------------- */ $config[\'time_reference\'] = \'gmt\'; /* |-------------------------------------------------------------------------- | Do Not Edit Anything Below. It May Cause Your Site To Be Unstable |-------------------------------------------------------------------------- */ $config[\'subclass_prefix\'] = \'JROX_\'; $config[\'enable_hooks\'] = TRUE; $config[\'permitted_uri_chars\'] = \'a-z 0-9~%.:_-\'; $config[\'enable_query_strings\'] = FALSE; $config[\'directory_trigger\'] = \'d\'; $config[\'controller_trigger\'] = \'c\'; $config[\'function_trigger\'] = \'m\'; $config[\'rewrite_short_tags\'] = FALSE; $config[\'global_xss_filtering\'] = FALSE; $config[\'url_suffix\'] = \'\'; ?>'; } else { $content = '<?php if (!defined(\'BASEPATH\')) exit(\'No direct script access allowed\'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database. | | For complete instructions please consult the "Database Connection" | page of the User Guide. | | ------------------------------------------------------------------- | EXPLANATION OF VARIABLES | ------------------------------------------------------------------- | | [\'hostname\'] The hostname of your database server. | [\'username\'] The username used to connect to the database | [\'password\'] The password used to connect to the database | [\'database\'] The name of the database you want to connect to | [\'dbdriver\'] The database type. ie: mysql. Currently supported: mysql, mysqli, postgre, odbc, mssql | [\'dbprefix\'] You can add an optional prefix, which will be added | to the table name when using the Active Record class | [\'pconnect\'] TRUE/FALSE - Whether to use a persistent connection | [\'db_debug\'] TRUE/FALSE - Whether database errors should be displayed. | [\'cache_on\'] TRUE/FALSE - Enables/disables query caching | [\'cachedir\'] The path to the folder where cache files should be stored | [\'char_set\'] The character set used in communicating with the database | [\'dbcollat\'] The character collation used in communicating with the database | | The $active_group variable lets you choose which connection group to | make active. By default there is only one group (the "default" group). | | The $active_record variables lets you determine whether or not to load | the active record class */ $active_group = \'default\'; $active_record = TRUE; $db[\'default\'][\'hostname\'] = \'' . $data['hostname'] . '\'; $db[\'default\'][\'username\'] = \'' . $data['username'] . '\'; $db[\'default\'][\'password\'] = \'' . $data['password'] . '\'; $db[\'default\'][\'database\'] = \'' . $data['database'] . '\'; $db[\'default\'][\'dbdriver\'] = \'mysql\'; $db[\'default\'][\'dbprefix\'] = \'jem_\'; $db[\'default\'][\'pconnect\'] = FALSE; $db[\'default\'][\'db_debug\'] = TRUE; $db[\'default\'][\'cache_on\'] = FALSE; $db[\'default\'][\'cachedir\'] = \'' . $data['cachedir'] . '\'; $db[\'default\'][\'char_set\'] = \'utf8\'; $db[\'default\'][\'dbcollat\'] = \'utf8_unicode_ci\'; ?>'; } //open the config.php file $handle = @fopen($path, 'w+'); if ($handle) { if (fwrite($handle, $content)) { fclose($handle); } else { $show_errors .= "Could not write to includes/" . $type . ".php.\n"; $show_errors .= "Please check the file permissions.\n"; return $show_errors; } } else { $show_errors .= "Could not write to includes/" . $type . ".php.\n"; $show_errors .= "Please check the file permissions.\n"; return $show_errors; } } ?>