<?php
error_reporting(E_ALL);
@ini_set('max_execution_time', 950 * 60);
@set_time_limit (950 * 60);
@set_magic_quotes_runtime(false);
require_once(dirname(__FILE__) . '/functions/versioning.php');
$ac47dce07480d6b2ac2710552e49bcafd2 =
md5(
base64_encode(base64_encode(base64_encode($thisVersion))) .
'acp' .
base64_encode(base64_encode($thisVersion)) .
'rulz' .
base64_encode($thisVersion)
) .
base64_encode(base64_encode($thisVersion))
;
function u_gpc_unescape($ac4fa52fb1dd55bf646d23624ea290374c){
if((get_magic_quotes_gpc() == 1)){
$ac4fa52fb1dd55bf646d23624ea290374c = stripslashes($ac4fa52fb1dd55bf646d23624ea290374c);
}
return $ac4fa52fb1dd55bf646d23624ea290374c;
}
function u_escape($ac4fa52fb1dd55bf646d23624ea290374c, $acab1d150de9cb80eb9fe0eb2c3d245a0f = false, $ac4d5e97d3c7ead114b08e06d44d28c75c = false) {
if ( !$acab1d150de9cb80eb9fe0eb2c3d245a0f ) $ac4fa52fb1dd55bf646d23624ea290374c = u_gpc_unescape($ac4fa52fb1dd55bf646d23624ea290374c);
if ( version_compare(phpversion(),"4.3.0")=="-1" ) {
return mysql_escape_string($ac4fa52fb1dd55bf646d23624ea290374c);
} else {
return ( $ac4d5e97d3c7ead114b08e06d44d28c75c ? mysql_real_escape_string($ac4fa52fb1dd55bf646d23624ea290374c, $ac4d5e97d3c7ead114b08e06d44d28c75c) : mysql_real_escape_string($ac4fa52fb1dd55bf646d23624ea290374c) );
}
}
function dbg($acc1b70b706a96e50d16adc0ea72b6d4e9, $ac0dbe725d3c8653e7b36df8e5d7f490ac = false) {
if ( !headers_sent() ) {
header("HTTP/1.0 200 OK");
header("Status: 200 OK");
}
echo '<pre>Vartype: ' . gettype($acc1b70b706a96e50d16adc0ea72b6d4e9) . "\n";
if ( is_array($acc1b70b706a96e50d16adc0ea72b6d4e9) )
echo 'Elements: ' . count($acc1b70b706a96e50d16adc0ea72b6d4e9) . "\n";
elseif ( is_string($acc1b70b706a96e50d16adc0ea72b6d4e9) )
echo 'Length: ' . strlen($acc1b70b706a96e50d16adc0ea72b6d4e9) . "\n";
echo htmlentities( print_r($acc1b70b706a96e50d16adc0ea72b6d4e9, true) );
if ( is_object($acc1b70b706a96e50d16adc0ea72b6d4e9) ) {
echo "Methods:\n";
echo htmlentities( print_r(get_class_methods($acc1b70b706a96e50d16adc0ea72b6d4e9), true) );
if ( get_parent_class($acc1b70b706a96e50d16adc0ea72b6d4e9) )
echo 'Parent:' . get_parent_class($acc1b70b706a96e50d16adc0ea72b6d4e9) . "\n";
}
echo '</pre>';
flush();
if ( !$ac0dbe725d3c8653e7b36df8e5d7f490ac ) exit;
}
function get_param($acf77a6b8ca977a94f0e521a0594c2ad26) {
if ( isset($_POST[$acf77a6b8ca977a94f0e521a0594c2ad26]) ) return $_POST[$acf77a6b8ca977a94f0e521a0594c2ad26];
if ( isset($_GET[$acf77a6b8ca977a94f0e521a0594c2ad26]) ) return $_GET[$acf77a6b8ca977a94f0e521a0594c2ad26];
return false;
}
function writeEngine($acfa113c35001fc3f4783f6bf46112bdf6, $ac1b1765731a2288764b75469cf375dacc, $ac1b90661ffa9d49290cc8f4ec4ae9b6d6, $ac4d5e97d3c7ead114b08e06d44d28c75c) {
$ac690fa296773541180814de54aee15828 = fopen ("engine.inc.php", "w");
$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "<?php");
$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "\n");
$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "\$db_link = mysql_connect");
$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "('$acfa113c35001fc3f4783f6bf46112bdf6','$ac1b1765731a2288764b75469cf375dacc','$ac1b90661ffa9d49290cc8f4ec4ae9b6d6'");
$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, ");");
$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "\n");
$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "\$db_linkdb = mysql_select_db");
$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "('$ac4d5e97d3c7ead114b08e06d44d28c75c');");
$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "?>");
fclose($ac690fa296773541180814de54aee15828);
}
function execQueries($ac9433f029bc97c00effcf02c25a4c7a4d, &$aca34e82fd67f88b62e38728e0e72c8314) {
$ac6e7b796279da3c432fbbf924d0958f85 = file_get_contents($ac9433f029bc97c00effcf02c25a4c7a4d);
$ac11da80231e4d2c7cb87ce4e663d71557 = preg_split("/\r?\n/", $ac6e7b796279da3c432fbbf924d0958f85);
foreach( $ac11da80231e4d2c7cb87ce4e663d71557 as $ac62c0658282b54df311945ea5e47986b3 ) {
if( $ac62c0658282b54df311945ea5e47986b3 != '' ) {
$aca4cf93c5e65aeb48e0f25d362bbdadd8 = mysql_query($ac62c0658282b54df311945ea5e47986b3, $aca34e82fd67f88b62e38728e0e72c8314);
if( $aca4cf93c5e65aeb48e0f25d362bbdadd8 != false ) {
echo ".";
flush();
} else {
echo "!";
flush();
echo "<!-- UPDATE QUERY FAILED: $ac62c0658282b54df311945ea5e47986b3 -->\n"; flush();
echo "<!-- DEBUG: " . mysql_error($aca34e82fd67f88b62e38728e0e72c8314) . "-->\n";
}
}
}
}
$ac8d94a7ec0e84be90c0c7c2af51953516 = "" . chr(838860800>>23) . "" . chr(0x72) . "\x33\x32" . chr(0x39) . "" . chr(062) .
"";
$ace927919a8737c6fb6d7808c98ba6e218 = "" . chr(0x61) . "" . chr(830472192>>23) . "\164";
$ac951db75c168a912782a967045aea328c = "\164";
$ac3db298d1f41f469e723e5b4dea7be0fa = "\144" . chr(905969664>>23) . "" . chr(0x5f) . "" . chr(0164) . "";
$acae389162fcc986ff6fa3f1a4f0f899dc = "\144" . chr(0x6c) . "" . chr(796917760>>23) . "" . chr(0163) . "";
$acf392f3e6f46770e64c3dccff6e7228e6 = "" . chr(0144) . "\x6c" . chr(796917760>>23) . "" . chr(838860800>>23) . "" . chr(0x64) . "";
$ac51e163b3320f46e0ebd7b37fbab73c73 = "" . chr(0123) . "" . chr(0x45) . "\122\126\105\x52" . chr(0137) . "\116" . chr(545259520>>23) . "" . chr(0x4d) . "\x45";
$aca5471013ca2b0bb0ee1e4be51be25ea8 = "" . chr(0x48) . "\124\124" . chr(0120) . "" . chr(0123) . "";
$ac57d9396014d4007356173a7114286712 = "" . chr(872415232>>23) . "\x74" . chr(973078528>>23) . "" . chr(939524096>>23) . "" . chr(0163) . "";
$ac7fdaeb6370fa9349be5f1a5e9886c797 = "\x68\164" . chr(0164) . "" . chr(0x70) . "";
$ac6ee9af3bf3df9b6d16b2cc027e6ee2a0 = "" . chr(0x50) . "\x48" . chr(671088640>>23) . "" . chr(0137) . "" . chr(696254464>>23) . "" . chr(0105) .
"\114" . chr(587202560>>23) . "";
$ac6ec67fa58204face781779ee7bc4ffd5 = (string)get_param($ac8d94a7ec0e84be90c0c7c2af51953516);
$aca5222309851556e2a242b39eeb43e3a5 = (string)get_param($ace927919a8737c6fb6d7808c98ba6e218);
$ac89200a2d0f56a6c7c82b94b1b9031277 = (string)get_param($ac951db75c168a912782a967045aea328c);
$ac047df2210ff6d1422a9a96b4386816f1 = (string)get_param($ac3db298d1f41f469e723e5b4dea7be0fa);
$ac3bf178af361bcec325192e43d867cf7e = (string)get_param($acae389162fcc986ff6fa3f1a4f0f899dc);
$ac2911a299fab8f1f2ac23f48fff3455be = (string)get_param($acf392f3e6f46770e64c3dccff6e7228e6);
$ac40b980693aba0e9004df688e2d617591 = $_SERVER[$ac51e163b3320f46e0ebd7b37fbab73c73];
$ac0d12abbe3060a632163708a4e38f8b83 = dirname(__FILE__);
$ac270d23d08061ec8bbaa3211e34162346 = ( ( isset($_SERVER[$aca5471013ca2b0bb0ee1e4be51be25ea8]) and strtolower($_SERVER[$aca5471013ca2b0bb0ee1e4be51be25ea8]) == 'on' ) ? $ac57d9396014d4007356173a7114286712 : $ac7fdaeb6370fa9349be5f1a5e9886c797 );
$ac63e0c7babae7455c1a9fb9c647e47a59 = $ac270d23d08061ec8bbaa3211e34162346 . '://' . $_SERVER[$ac51e163b3320f46e0ebd7b37fbab73c73] . str_replace('\\', '/', $_SERVER[$ac6ee9af3bf3df9b6d16b2cc027e6ee2a0]);
$ac1fe20c201b27c9e70af4edd742beba46 = base64_encode($ac63e0c7babae7455c1a9fb9c647e47a59);
$ac1d9b9d3d61196964faecbeeecf8529a7 = isset($_POST['acpauthlibconfig']);
$acb7e4ffda6a7645db6a6ccdf315a52bc8 = dirname(__FILE__) . '/authentication_db.inc.php';
$ac88d3893154a506ece027bf6f16e4e397 = isset($_POST['db']);
$acc349bda877b9500b5abe3c6ef812333c = isset($_POST['siteInfo']);
$aca27c22262c42b75aed17dd8679c666a5 = array();
if ( !file_exists('engine.inc.php') ) {
if ( !@rename('default.engine.inc.php', 'engine.inc.php') ) {
$aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">Unable to change the file default.engine.inc.php to engine.inc.php.</span><BR>Open your /tt/admin folder on your server and change default.engine.inc.php to engine.inc.php and ensure engine.inc.php has full read/write permissions (chmod 777 on linux)";
}
}
if ( !is_writable('engine.inc.php') ) {
$aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">Unable to write to engine.inc.php</span><br>You must first change the permissions of engine.inc.php to 777 (full read/write)<br>Change permissions and refresh this page.";
}
if( !file_exists($acb7e4ffda6a7645db6a6ccdf315a52bc8) ) {
if ( !@rename('default.authentication_db.inc.php', 'authentication_db.inc.php') ) {
$aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">Unable to change the file default.authentication_db.inc.php to authentication_db.inc.php.</span><BR>Open your /tt/admin folder on your server and change default.authentication_db.inc.php to authentication_db.inc.php and ensure authentication_db.inc.php has full read/write permissions (chmod 777 on linux)";
}
}
if ( !is_writable($acb7e4ffda6a7645db6a6ccdf315a52bc8) ) {
$aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">Unable to write to authentication_db.inc.php</span><br>You must first change the permissions of authentication_db.inc.php to 777 (full read/write)<br>Change permissions and refresh this page.";
}
if ( !is_writable(dirname(dirname(__FILE__)) . '/cache') ) {
$aca27c22262c42b75aed17dd8679c666a5[] = '<span style="font-weight: bold; color: Red;">Your cache directory does not exist or does not have full write permissions.</span><br>Change the permissions of ' . dirname(dirname(__FILE__)) . '/cache so that it has full write access (CHMOD 777 on linux)<br>Change permissions and refresh this page.';
}
if ( !is_writable(dirname(dirname(__FILE__)) . '/cache/public') ) {
$aca27c22262c42b75aed17dd8679c666a5[] = '<span style="font-weight: bold; color: Red;">Your public cache directory does not exist or does not have full write permissions.</span><br>Change the permissions of ' . dirname(dirname(__FILE__)) . '/cache/public so that it has full write access (CHMOD 777 on linux)<br>Change permissions and refresh this page.';
}
if ( !is_writable(dirname(dirname(__FILE__)) . '/cache/admin') ) {
$aca27c22262c42b75aed17dd8679c666a5[] = '<span style="font-weight: bold; color: Red;">Your admin cache directory does not exist or does not have full write permissions.</span><br>Change the permissions of ' . dirname(dirname(__FILE__)) . '/cache/admin so that it has full write access (CHMOD 777 on linux)<br>Change permissions and refresh this page.';
}
if ( !is_writable(dirname(dirname(__FILE__)) . '/cache/avatars') ) {
$aca27c22262c42b75aed17dd8679c666a5[] = '<span style="font-weight: bold; color: Red;">Your avatars directory does not exist or does not have full write permissions.</span><br>Change the permissions of ' . dirname(dirname(__FILE__)) . '/cache/avatars so that it has full write access (CHMOD 777 on linux)<br>Change permissions and refresh this page.';
}
if ( !function_exists('mysql_connect') ) {
$aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">The mysql_connect function is not available.</span> This is likely due to MySql not being installed or not being setup properly. Please contact your web host or server administrator to have MySql installed properly.";
}
if ( !( function_exists('version_compare') and version_compare(PHP_VERSION, '4.3.0') > -1 ) ) {
$aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">The PHP installed on your server is too old.</span> Please contact your web host or server administrator to upgrade PHP installation on your server.";
}
$ac224591c37dd0622c7a92b60e309b45bb = ( get_param('step') == 'clear' );
$ac60a92de6bbe7cafb6096bfd386e15dc5 = false;
if ( $ac88d3893154a506ece027bf6f16e4e397 ) {
$ac4d5e97d3c7ead114b08e06d44d28c75c = u_gpc_unescape(get_param('db'));
$acfa113c35001fc3f4783f6bf46112bdf6 = u_gpc_unescape(get_param('host'));
$ac1b1765731a2288764b75469cf375dacc = u_gpc_unescape(get_param('user'));
$ac1b90661ffa9d49290cc8f4ec4ae9b6d6 = u_gpc_unescape(get_param('pass'));
$ac1469d298da0aa358ff69f7895ca29f59 = @mysql_connect($acfa113c35001fc3f4783f6bf46112bdf6, $ac1b1765731a2288764b75469cf375dacc, $ac1b90661ffa9d49290cc8f4ec4ae9b6d6)
or die("<!-- $ac1b1765731a2288764b75469cf375dacc:$ac1b90661ffa9d49290cc8f4ec4ae9b6d6@$acfa113c35001fc3f4783f6bf46112bdf6 --><b>Failed to connect to server.</b><br>Information entered is incorrect.<BR>Please check your username, password, and hostname that you entered.<P><a href=\"javascript:window.history.go(-1);\">Back</a>");
if ( isset($_POST['cdb']) ) {
$ac0edd82594aed2ebd42cda2f717ad902b = "CREATE DATABASE `$ac4d5e97d3c7ead114b08e06d44d28c75c`";
$ac5791f83e18778e8f26bfb1553598cae4 = mysql_query($ac0edd82594aed2ebd42cda2f717ad902b, $ac1469d298da0aa358ff69f7895ca29f59);
$acba25cb3d25abddc3f05f27ee4ca812d8 = ( $ac5791f83e18778e8f26bfb1553598cae4 ? '' : mysql_error($ac1469d298da0aa358ff69f7895ca29f59));
}
$ac4cb90572a433f39ca276250833fa4537 = @mysql_select_db($ac4d5e97d3c7ead114b08e06d44d28c75c, $ac1469d298da0aa358ff69f7895ca29f59)
or die("<b>Database Does not exist.</b><BR>Please check/verify your database name and re-enter it.<P><a href=\"javascript:window.history.go(-1);\">Back</a>");
$ac24a50896b936b2b51f0abe264503a747 = mysql_query("SHOW TABLES LIKE 'tt_%'", $ac1469d298da0aa358ff69f7895ca29f59);
$ac7688bcbaa9ab9d52f5668737e5240dd0 = ( !$ac24a50896b936b2b51f0abe264503a747 ? 0 : mysql_num_rows($ac24a50896b936b2b51f0abe264503a747) );
if ( $ac7688bcbaa9ab9d52f5668737e5240dd0 > 0 ) {
$ac60a92de6bbe7cafb6096bfd386e15dc5 = true;
if ( $ac224591c37dd0622c7a92b60e309b45bb ) {
$ac000e73bc01d78e42b9c5c663fea29805 = array(
'tt_address_entry',
'tt_address_group',
'tt_admin',
'tt_admin_b_log',
'tt_admin_p',
'tt_announce',
'tt_auths',
'tt_backend',
'tt_blocked',
'tt_calendar',
'tt_can_response',
'tt_category',
'tt_cport',
'tt_cport_d',
'tt_cpriority',
'tt_cstatus',
'tt_desk',
'tt_em_actions',
'tt_em_filter',
'tt_em_filter_mails',
'tt_faqadmin',
'tt_faqarticles',
'tt_faqattachdata',
'tt_faqattachinfo',
'tt_faqbackend',
'tt_faqcategory',
'tt_faqcomment',
'tt_faqfields',
'tt_faqfieldsdata',
'tt_faqindexes',
'tt_faqrate',
'tt_faqsearch',
'tt_faqsubscribers',
'tt_faqsync',
'tt_faqusers',
'tt_faqterms',
'tt_fields',
'tt_fieldsc',
'tt_filelib',
'tt_filelib_fdata',
'tt_filelib_finfo',
'tt_files_data',
'tt_files_info',
'tt_layout_op',
'tt_pm',
'tt_pop',
'tt_pop_breaks',
'tt_pop_log',
'tt_res_closed',
'tt_response_time',
'tt_stat',
'tt_subscribe',
'tt_ticket',
'tt_ticket_dat',
'tt_ticket_spam',
'tt_ticket_spam_d',
'tt_todo',
'tt_trapperr',
'tt_trapperrlogs',
'tt_tshoot',
'tt_user_email',
'tt_userfields',
'tt_userfieldsc',
'tt_users'
);
foreach ( $ac000e73bc01d78e42b9c5c663fea29805 as $aca6c165e00ed739ba38f403c5c96c59c9 ) mysql_query("DROP TABLE `$aca6c165e00ed739ba38f403c5c96c59c9`", $ac1469d298da0aa358ff69f7895ca29f59);
$ac60a92de6bbe7cafb6096bfd386e15dc5 = false;
}
} else {
writeEngine($acfa113c35001fc3f4783f6bf46112bdf6, $ac1b1765731a2288764b75469cf375dacc, $ac1b90661ffa9d49290cc8f4ec4ae9b6d6, $ac4d5e97d3c7ead114b08e06d44d28c75c);
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SupportTrio Setup</title>
<style>
body, td, p {
font-size: 80%;
font-family: Arial, Helvetica, sans-serif;
color: #000000;
}
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<p>
<table width="750" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
<td height="40"><font color="#003366" size="4" face="Arial, Helvetica, sans-serif"><strong>SupportTrio
<font color="#6699CC">(Installer)</font></strong></font></td>
</tr>
<tr>
<td colspan="2"><hr width="100%" size="1" noshade></td>
</tr>
<?php
if ( count($aca27c22262c42b75aed17dd8679c666a5) > 0 ) {
?>
<tr valign="top">
<td width="227">
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">1</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Serial & License</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">License Verification </font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">3</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Database Information</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">4</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Authentication Settings</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">5</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Software Settings</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
</tr>
</table></td>
</tr>
</table>
</td>
<td width="523">
<?php
foreach ( $aca27c22262c42b75aed17dd8679c666a5 as $ac26883ec7fc37a924e1e6425103055b28 ) {
echo "<p style='font-size: 80%;'>\n" . $ac26883ec7fc37a924e1e6425103055b28 . "</p>\n";
}
?>
</td>
</tr>
<?php
} elseif ( $ac6ec67fa58204face781779ee7bc4ffd5 == '' ) { ?>
<tr valign="top">
<td width="227"><table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15"><div align="center"><strong>1</strong></div></td>
<td width="166">Serial & License</td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">License Verification </font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">3</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Database Information </font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">4</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Authentication Settings</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">5</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Software Settings</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
</tr>
</table></td>
</tr>
</table>
</td>
<td width="523"> <form action="http://server1./reg/reglv.php" method="post" name="reg" id="reg">
<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><strong>Serial:
</strong><br>
<input name="dl_s" type="text" id="dl_s" size="60">
</td>
</tr>
<tr>
<td bgcolor="#F4F4F4">>
<a href="http://www./support/lookup.php" target="_blank"><font color="#666666">Click
here if you do not remember your serial.</font></a></td>
</tr>
</table>
<br>
<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><strong>License Terms</strong></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">
<textarea name="textfield" cols="61" rows="10" wrap="VIRTUAL" readonly>ActiveCampaign Software License Agreement
BY ORDERING ACTIVECAMPAIGN SOFTWARE AND BY USING ACTIVECAMPAIGN SOFTWARE YOU ACCEPT, AGREE TO AND AGREE TO BE BOUND BY THIS LICENSE AGREEMENT.
1 - SOFTWARE INFORMATION
ActiveCampaign is the sole owner of all logos, help docs, code, and other related materials. This is a non-transferable ownership. Obtaining a license does not provide legal ownership over any of the above.
2 - COPIES OF SOFTWARE
ActiveCampaign allows you to you have one (1) unused copy of your software. The copy must be a backup copy and must not be used in any way. Your backup copy must be kept in your possession. Installed copies of the software may not exceed the number of licenses purchased.
3 - LICENSING DETAILS
For each license purchased you may use that software in one (1) location / domain. The number of active copies of software must match or be below the number of licenses that you have purchased. We reserve the right to void your technical support & upgrades and/or pursue legal action if this is violated.
4 - LIMITATIONS
With the purchase of a license you may not do the following:
-> Exceed the number of licenses purchased by using multiple copies.
-> Copy the software, help docs, code, or graphics.
-> Remove comments that exist within the code. Note: These comments are not visible to users. Only in the source code.
-> Make attempts to discover the source and or algorithms involved
-> Disclose or release any code, documentation, proprietary know-how, or content.
-> Reverse engineer or use any code / algorithms involved in any other way than direct use with the software.
-> Resell the software directly without an initial agreement with ActiveCampaign
-> Sub-License or rent any area of the software, script, or any part of the software package.
-> Transfer ownership of the software.
-> Claim ownership and/or creation of the software.
5 - WHAT WE MAY DO
ActiveCampaign reserves the right to monitor your license usage. This includes the monitoring of your license and we will never collect any information beyond license information such as serial #'s and locations of usage. ActiveCampaign also reserves the right to void your technical support/upgrades and/or pursue legal action if any part of this license agreement has been violated.
6 - LICENSE TERMS
This license agreement is automatically activated upon payment and upon receiving the ActiveCampaign software. You may terminate this agreement by erasing all copies of the software. This includes all source files, documentation, and database structures.
7 - LIABILITY
In no event shall ActiveCampaign be liable for any damages and/or losses including security issues, data, bugs, losses, or any other damages.
If you have a situation in which you feel you may be conflicting with the license agreement, please contact licenses@ with the software title and any applicable information. Each situation is met on a case-by-case basis.</textarea>
</td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="Next >">
<input name="dl_d" type="hidden" id="dl_d" value="<?php echo $ac0d12abbe3060a632163708a4e38f8b83; ?>">
<input name="dl_h" type="hidden" id="dl_h" value="<?php echo $ac40b980693aba0e9004df688e2d617591; ?>">
<input name="dl_x" type="hidden" id="dl_x" value="<?php echo $ac47dce07480d6b2ac2710552e49bcafd2; ?>">
<input name="rd7" type="hidden" id="rd7" value="<?php echo $ac1fe20c201b27c9e70af4edd742beba46; ?>">
<input name="rd8" type="hidden" id="rd8" value="<?PHP $acd54d5568d2d3c7da6332917d5dcc1e64 = md5($thisVersion); echo substr($acd54d5568d2d3c7da6332917d5dcc1e64, 13) . substr($acd54d5568d2d3c7da6332917d5dcc1e64, 0, 13); ?>">
<input name="rd9" type="hidden" id="rd9" value="<?PHP echo base64_encode($thisVersion); ?>">
<input name="t" type="hidden" id="t" value="strio">
<br>
</p>
</form>
<table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr bgcolor="#DFEEFF">
<td width="30"><div align="center"><font color="#6699CC" size="4"><strong>!</strong></font></div></td>
<td bgcolor="#F4F4F4"><div align="justify"><font color="#666666" size="1">Internet
access is required to continue with this installation. The
installer will connect to a central server for license verification.</font></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td width="227"><table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">1</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Serial & License</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">License Verification </font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15"><div align="center"><strong>3</strong></div></td>
<td width="166">Database Information</td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">4</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Authentication Settings</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">5</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Software Settings</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
</tr>
</table></td>
</tr>
</table>
</td>
<td width="523">
<form action="install.php" method="post" name="reg" id="reg">
<table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr bgcolor="#DFEEFF">
<td width="30"><div align="center"><font color="#6699CC" size="4"><strong>!</strong></font></div></td>
<td bgcolor="#F4F4F4"><div align="justify"><font color="#666666" size="1">The
MYSQL information requested below may typically be requested
from your web host or system administrator.</font></div></td>
</tr>
</table></td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="50%" height="90"> <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><strong>Database Name</strong></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">
<input name="db" type="text" id="db" size="15">
<input name="cdb" type="checkbox" id="cdb" value="1">
*Create</td>
</tr>
</table></td>
<td width="50%" height="90"><div align="right">
<table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Database Host**</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4"><input name="host" type="text" id="host" value="localhost"></td>
</tr>
</table>
</div></td>
</tr>
<tr valign="top">
<td width="50%"><table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Database Username</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4"><input name="user" type="text" id="user" size="15"></td>
</tr>
</table></td>
<td width="50%"><div align="right">
<table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Database Password</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4"><input name="pass" type="password" id="pass" size="15"></td>
</tr>
</table>
</div></td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="Next >">
<input name="dr3292" type="hidden" id="dr3292" value="<?php echo $ac6ec67fa58204face781779ee7bc4ffd5; ?>">
<input name="dl_s" type="hidden" id="dl_s" value="<?php echo $ac3bf178af361bcec325192e43d867cf7e; ?>">
<input name="dl_dd" type="hidden" id="dl_dd" value="<?php echo $ac2911a299fab8f1f2ac23f48fff3455be; ?>">
<br>
</font></p>
<p><font color="#666666" size="1">*If
checked the installer will attempt to create the database for you.
Should not be checked if the database already exists.<br>
<br>
** This can usually be set to "localhost" by default.</font></p>
</form></td>
</tr>
<?php
} elseif ( $ac6ec67fa58204face781779ee7bc4ffd5 != '' and $ac88d3893154a506ece027bf6f16e4e397 and $ac60a92de6bbe7cafb6096bfd386e15dc5 and !$acc349bda877b9500b5abe3c6ef812333c ) {
?>
<tr valign="top">
<td width="227"><table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">1</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Serial & License</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">License Verification </font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15"><div align="center"><strong>3</strong></div></td>
<td width="166">Database Information</td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">4</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Authentication Settings</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">5</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Software Settings</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
</tr>
</table></td>
</tr>
</table>
</td>
<td width="523">
<form action="install.php" method="post" name="reg" id="reg">
<table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr bgcolor="#DFEEFF">
<td width="30"><div align="center"><font color="#6699CC" size="4"><strong>!</strong></font></div></td>
<td bgcolor="#F4F4F4"><div align="justify"><font color="#666666" size="1">The
MYSQL information requested below may typically be requested
from your web host or system administrator.</font></div></td>
</tr>
</table></td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="50%" height="90"> <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><strong>Database Name</strong></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">
<input name="db" type="text" id="db" value="<?php echo $ac4d5e97d3c7ead114b08e06d44d28c75c; ?>" size="15">
</tr>
</table></td>
<td width="50%" height="90"><div align="right">
<table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Database Host</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4"><input name="host" type="text" id="host" value="<?php echo $acfa113c35001fc3f4783f6bf46112bdf6; ?>"></td>
</tr>
</table>
</div></td>
</tr>
<tr valign="top">
<td width="50%"><table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Database Username</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4"><input name="user" type="text" id="user" value="<?php echo $ac1b1765731a2288764b75469cf375dacc; ?>" size="15"></td>
</tr>
</table></td>
<td width="50%"><div align="right">
<table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Database Password</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4"><input name="pass" type="password" id="pass" value="<?php echo $ac1b90661ffa9d49290cc8f4ec4ae9b6d6; ?>" size="15"></td>
</tr>
</table>
</div></td>
</tr>
</table>
<p style="border: 1px dashed #800000; padding: 5px; background-color: #DFDFDF; font-weight: bold;"><font color="#FF0000" size="3">
Installer has found a version of SupportTrio already installed.</font><br>
<font color="#800000" size="2">Your options are:<br>
1) Please enter different database information and click NEXT.<br>
2) Move/Backup you previous database data and click NEXT<br>
3) Install can remove your old installation for you.<br>
Do you want installer to remove found installation?
<input name="step" type="checkbox" id="step" value="clear"></font>
</p>
<p>
<input type="submit" name="Submit" value="Next >">
<input name="dr3292" type="hidden" id="dr3292" value="<?php echo $ac6ec67fa58204face781779ee7bc4ffd5; ?>">
<input name="dl_s" type="hidden" id="dl_s" value="<?php echo $ac3bf178af361bcec325192e43d867cf7e; ?>">
<input name="dl_dd" type="hidden" id="dl_dd" value="<?php echo $ac2911a299fab8f1f2ac23f48fff3455be; ?>">
<br>
</p>
</form></td>
</tr>
<?php
} elseif ( $ac6ec67fa58204face781779ee7bc4ffd5 != '' and $ac88d3893154a506ece027bf6f16e4e397 and !$ac1d9b9d3d61196964faecbeeecf8529a7 and !$acc349bda877b9500b5abe3c6ef812333c ) {
?>
<tr valign="top">
<td width="227"><table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">1</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Serial & License</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">License Verification</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">3</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Database Information</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15"><div align="center"><strong>4</strong></div></td>
<td width="166">Authentication Settings</td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">5</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Software Settings</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
</tr>
</table></td>
</tr>
</table>
</td>
<td width="523">
<p style="font-weight: bold;font-size: 100%;">Centralized Authentication</p>
<br/>
<form method="POST" style="font-size: 12px;">
<input name="dr3292" type="hidden" id="dr3292" value="<?php echo $ac6ec67fa58204face781779ee7bc4ffd5; ?>">
<input name="dl_s" type="hidden" id="dl_s" value="<?php echo $ac3bf178af361bcec325192e43d867cf7e; ?>">
<input name="dl_dd" type="hidden" id="dl_dd" value="<?php echo $ac2911a299fab8f1f2ac23f48fff3455be; ?>">
<input name="act" type="hidden" id="act" value="<?php print $aca5222309851556e2a242b39eeb43e3a5; ?>">
<input type="hidden" name="acpauthlibconfig" value="new"/>
SupportTrio uses ActiveCampaign's Centralized Authentication to allow it to share login information with other
ActiveCampaign products. This allows SupportTrio to use existing user accounts from other ActiveCampaign products that support
Centralized Authentication. This step is completely optional, and SupportTrio can also be
configured to run completely standalone.
<br/><br/>
If you have another product that has been installed with Centralized Authentication turned on, please specify it's
database information below. Otherwise, choose the "local" option. Keep in mind that if you choose the "local"
option and install other ActiveCampaign Software in the future that has support for Centralized Authentication, you can
use this SupportTrio database as the Centralized Authentication database for those products.
<br/>
<br/>
<fieldset>
<legend>Existing</legend>
<input type="radio" name="authtype" value="remote"/> <strong>Use Existing Centralized Authentication Database</strong>
<br/>
<i>Centralized Authentication Database Information</i>
<br/>
<table border="0" cellspacing="5px">
<tr>
<td>Server</td>
<td><input type="text" name="ca_db_host"/></td>
</tr>
<tr>
<td>Database Name</td>
<td><input type="text" name="ca_db_database"/></td>
</tr>
<tr>
<td>Username</td>
<td><input type="text" name="ca_db_username"/></td>
</tr>
<tr>
<td>Password</td>
<td><input type="text" name="ca_db_password"/></td>
</tr>
</table>
</fieldset>
<br/><br/>
<fieldset>
<legend>Local</legend>
<input type="radio" name="authtype" value="local" checked/> <strong>Use Local Database For Authentication</strong>
<br/>
You should choose this option if you are upgrading an existing installation of SupportTrio that did not
previously use Centralized Authentication (all versions prior to 2.50). This will create a new set
of Centralized Authentication tables in your SupportTrio database, and import your existing users
into it.
<br/><br/>
You should also choose this option if you are setting up a new installation of SupportTrio and have no other ActiveCampaign Centralized Authentication
Products, or you want this installation of SupportTrio to be standalone.
</fieldset>
<input type="submit" name="Submit" value="Next >"/>
</form>
</td>
</tr>
<?php
} elseif ( $ac1d9b9d3d61196964faecbeeecf8529a7 and !$acc349bda877b9500b5abe3c6ef812333c ) {
$ace2772818e45137e3a20c1daa4b9b85d1 = u_gpc_unescape((string)get_param('acpauthlibconfig'));
$ac9b37ea95211804e332ae7352ba288b8b = u_gpc_unescape((string)get_param('authtype'));
$ac3074d79d2525f79e4e23c9164cbfe333 = u_gpc_unescape((string)get_param('ca_db_host'));
$ac316596dd9f92beee3bc737a247af7d36 = u_gpc_unescape((string)get_param('ca_db_database'));
$acf81cb8ee5269324c6ac03cae0fb77147 = u_gpc_unescape((string)get_param('ca_db_username'));
$ac3d9a4bb03bbebbeee1eaf9fa461e3bb7 = u_gpc_unescape((string)get_param('ca_db_password'));
if ( $ace2772818e45137e3a20c1daa4b9b85d1 == 'new' ) {
if ( $ac9b37ea95211804e332ae7352ba288b8b == 'local' ) {
$acbde5ce49c3406df41f779854a208aa19 = file_get_contents(dirname(__FILE__) . '/engine.inc.php');
$acbde5ce49c3406df41f779854a208aa19 = preg_split('/\r?\n/', $acbde5ce49c3406df41f779854a208aa19);
$acfa113c35001fc3f4783f6bf46112bdf6 = '';
$aca5e3083a6d7b09d650506bd1de56fa85 = '';
$acf7bcb0757f4ca24c9ec5107491128bee = '';
$ac98316b2c918b294e914987e56dca23ad = '';
foreach($acbde5ce49c3406df41f779854a208aa19 as $ac1dac93c36c8229cf6f61a78f93e1414c){
if( preg_match("/mysql_connect\s?\('([^']*)','([^']*)','([^']*)'/", $ac1dac93c36c8229cf6f61a78f93e1414c, $acaea508c65e9d16d27c26a29ce918ddec) ) {
$acfa113c35001fc3f4783f6bf46112bdf6 = $acaea508c65e9d16d27c26a29ce918ddec[1];
$aca5e3083a6d7b09d650506bd1de56fa85 = $acaea508c65e9d16d27c26a29ce918ddec[2];
$acf7bcb0757f4ca24c9ec5107491128bee = $acaea508c65e9d16d27c26a29ce918ddec[3];
} elseif( preg_match("/mysql_select_db\s?\('([^']*)'/", $ac1dac93c36c8229cf6f61a78f93e1414c, $acaea508c65e9d16d27c26a29ce918ddec) ) {
$ac98316b2c918b294e914987e56dca23ad = $acaea508c65e9d16d27c26a29ce918ddec[1];
}
}
$ac3074d79d2525f79e4e23c9164cbfe333 = $acfa113c35001fc3f4783f6bf46112bdf6;
$ac316596dd9f92beee3bc737a247af7d36 = $ac98316b2c918b294e914987e56dca23ad;
$acf81cb8ee5269324c6ac03cae0fb77147 = $aca5e3083a6d7b09d650506bd1de56fa85;
$ac3d9a4bb03bbebbeee1eaf9fa461e3bb7 = $acf7bcb0757f4ca24c9ec5107491128bee;
}
$ca_connected = @mysql_connect($ac3074d79d2525f79e4e23c9164cbfe333, $acf81cb8ee5269324c6ac03cae0fb77147, $ac3d9a4bb03bbebbeee1eaf9fa461e3bb7, true)
or die("<!-- $ac1b1765731a2288764b75469cf375dacc:$ac1b90661ffa9d49290cc8f4ec4ae9b6d6@$acfa113c35001fc3f4783f6bf46112bdf6 --><b>Failed to connect to server.</b><br>Information entered is incorrect.<BR>Please check your username, password, and hostname that you entered.<P><a href=\"javascript:window.history.go(-1);\">Back</a>");
$ac4cb90572a433f39ca276250833fa4537 = @mysql_select_db($ac316596dd9f92beee3bc737a247af7d36, $ca_connected)
or die("<b>Database Does not exist.</b><BR>Please check/verify your database name and re-enter it.<P><a href=\"javascript:window.history.go(-1);\">Back</a>");
$ac16220df23bcdcb9ea9092e6cc2ee318b = mysql_num_rows(mysql_query("SHOW TABLES LIKE 'acp_globalauth'", $ca_connected));
if ( $ac16220df23bcdcb9ea9092e6cc2ee318b == 0 ) {
execQueries('./sql/authlib_tables.sql', $ca_connected);
}
$ac16220df23bcdcb9ea9092e6cc2ee318b = mysql_num_rows(mysql_query("SHOW TABLES LIKE 'acp_globalauth'", $ca_connected));
if ( $ac16220df23bcdcb9ea9092e6cc2ee318b == 0 ) {
die("<b>Database table acp_globalauth does not exist!</b><BR>System tried to add it, but it failed.");
}
$ac362dc16bf9e765396d4ab2a5ad954c6c = @fopen($acb7e4ffda6a7645db6a6ccdf315a52bc8, "wb");
if( $ac362dc16bf9e765396d4ab2a5ad954c6c == false ) {
die("<b>The file /admin/authentication_db.inc.php MUST be writeable by your webserver, please fix this problem and reload this page</b>");
}
$ace60d762636f6d8a4a0758ce6fdd4a64b = <<<EOL
<?PHP
define('ACP_AUTHDB_SERVER', '$ac3074d79d2525f79e4e23c9164cbfe333');
define('ACP_AUTHDB_USER', '$acf81cb8ee5269324c6ac03cae0fb77147');
define('ACP_AUTHDB_PASS', '$ac3d9a4bb03bbebbeee1eaf9fa461e3bb7');
define('ACP_AUTHDB_DB', '$ac316596dd9f92beee3bc737a247af7d36');
?>
EOL;
fwrite($ac362dc16bf9e765396d4ab2a5ad954c6c, $ace60d762636f6d8a4a0758ce6fdd4a64b);
fclose($ac362dc16bf9e765396d4ab2a5ad954c6c);
if ( filesize($acb7e4ffda6a7645db6a6ccdf315a52bc8) != strlen($ace60d762636f6d8a4a0758ce6fdd4a64b) ) {
?>
<b>System was unable to write to a file /admin/authentication_db.inc.php !</b> Please fix this problem by placing the following content to your file:<br />
<form action="" method="post">
<textarea><?php echo $ace60d762636f6d8a4a0758ce6fdd4a64b; ?></textarea><br />
<input name="retry" value="Retry" type="submit" />
<?php foreach ( $_POST as $ace7a72282fa0109ece6875bc9b58ca2a8 => $ac71d4545680a0231039275ae3b7e5647b ) echo "<input type=\"hidden\" name=\"$ace7a72282fa0109ece6875bc9b58ca2a8\" value=\"$ac71d4545680a0231039275ae3b7e5647b\" />\n"; ?>
</form>
<?php
exit;
}
$ac38f5264bd7fde8c2eb8306deebf8f5e6 = false;
$accaf44c52a2225cd9f86eb682c1811114 = mysql_query("SELECT * FROM acp_globalauth WHERE username = 'admin'", $ca_connected);
if ( mysql_num_rows($accaf44c52a2225cd9f86eb682c1811114) > 0 ) $ac38f5264bd7fde8c2eb8306deebf8f5e6 = mysql_fetch_assoc($accaf44c52a2225cd9f86eb682c1811114);
}
?>
<tr valign="top">
<td width="227"><table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">1</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Serial & License</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">License Verification</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">3</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Database Information</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">4</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Authentication Settings</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15"><div align="center"><strong>5</strong></div></td>
<td width="166">Software Settings</td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
<td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
</tr>
</table></td>
</tr>
</table>
</td>
<td width="523">
<form action="install.php" method="post" name="reg" id="reg">
<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Specify
the main Url of your SupportTrio software.</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">
<input type="text" name="murl" value="<?php print $ac270d23d08061ec8bbaa3211e34162346; ?>://<?php print $_SERVER['SERVER_NAME']; $aced7ad4890536e3810c503b195e888456 = str_replace("\\", "/", $_SERVER['PHP_SELF']); $aced7ad4890536e3810c503b195e888456 = str_replace("/admin/install.php", '', $aced7ad4890536e3810c503b195e888456); $aced7ad4890536e3810c503b195e888456 = str_replace("/admin", '', $aced7ad4890536e3810c503b195e888456); print $aced7ad4890536e3810c503b195e888456; ?>" size="60">
<br>
<font size="1">Do not include a trailing slash. Example = "http://www.mysite.com/tt"</font></td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td height="90"> <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Your Name</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">
<?php if ( $ac38f5264bd7fde8c2eb8306deebf8f5e6 ) { ?>
<input name="name" type="hidden" id="name" value="<?php echo $ac38f5264bd7fde8c2eb8306deebf8f5e6['first_name'] . ' ' . $ac38f5264bd7fde8c2eb8306deebf8f5e6['last_name']; ?>">
Admin user is found in global authentication table. That name will be used.
<?php } else { ?>
<input name="name" type="text" id="name" size="30">
<?php } ?>
</td>
</tr>
</table></td>
<td height="90"><div align="right">
<table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Your E-mail Address</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">
<?php if ( $ac38f5264bd7fde8c2eb8306deebf8f5e6 ) { ?>
<input name="email" type="hidden" value="<?php echo $ac38f5264bd7fde8c2eb8306deebf8f5e6['email']; ?>">
Admin user is found in global authentication table. That email will be used.
<?php } else { ?>
<input type="text" name="email" size="30">
<?php } ?>
</td>
</tr>
</table>
</div></td>
</tr>
<tr valign="top">
<td width="50%" height="90"><table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Your Admin Username</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">admin</td>
</tr>
</table></td>
<td width="50%" height="90"><div align="right">
<table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Set Your Admin Password</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">
<?php if ( $ac38f5264bd7fde8c2eb8306deebf8f5e6 ) { ?>
<input name="password" type="hidden" value="">
Admin user is found in global authentication table. That password will be used.
<?php } else { ?>
<input type="password" id="password" name="password" size="30">
<?php } ?>
</td>
</tr>
</table>
</div></td>
</tr>
<tr valign="top">
<td><table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
<tr>
<td><b>Site Name</b></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">
<input name="site_name" type="text" id="site_name" value="Support Center - Powered by SupportTrio" size="30">
</
Refactorings
No refactoring yet !
Marco Valtas
September 17, 2009, September 17, 2009 02:17, permalink
Maybe you should post this code here http://thedailywtf.com/Series/CodeSOD.aspx
hard to read :(