demon |
Moderator |
|
|
Joined: Sep 22, 2010 |
Posts: 485 |
|
|
|
|
|
|
|
Code: | <?php
include( "version.php" );
$new_release_version = $new_release_version_number;
$error = 0;
echo "<html>\r\n <head>\r\n <title>Affiliate Niche Script Installer</title>\r\n <link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n </head>\r\n <body>\r\n\r\n <div id=\"block\">\r\n <h1>Affiliate Niche Script v";
echo $new_release_version;
echo "</h1>\r\n";
if ( !_obfuscate_DSkPJgE5AjYXASY7ECszATAkBgYUEyIя( "../includes/config.php" ) )
{
++$error;
echo "<p class=\"error_message\">Config.php missing, make sure there is a config.php file in the \"includes\" folder.</p>";
}
else
{
include_once( "../includes/config.php" );
if ( !_obfuscate_DT4iOykbJw8eJgoaNTMnHiwvMxQeMQEя( "dbprefix" ) )
{
_obfuscate_DQ4BNy49FTMeEgcrPQgCK1wpIzAXDBEя( "dbprefix", "ans_" );
}
}
if ( !isset( $_POST['page'] ) )
{
echo "\r\n\t<hr><p>Welcome to the Affiliate Niche Script installer.\r\n <br>Please complete all the steps to install your site successfully.</p>\r\n\t<fieldset>\r\n <legend>Introduction</legend>\r\n\t<form name=\"page1\" method=\"post\" action=\"\">\r\n\t<textarea style=\"width: 600px; height: 400px;\">\r\nBy installing this script you agree to the following conditions:\r\nThis is a legal agreement between you and Affiliatenichescript.com covering your use of Affiliate Niche Script (\"Product\"). By purchasing the Product you are consenting to be bound by this agreement.\r\nAll Products are owned by Affiliatenichescript.com and is protected by United States copyright laws and international treaty provisions. Therefore, you must treat the Product like any other copyrighted material. Paying the license fee allows you the right to use unlimited installations of the Product on unlimited web sites.\r\nYou may not copy the Software for distribution, resell, rent, lease, sublicense, convey, transfer rights, create any derivative works, or disclose modification source codes in any way. You may not copy any written materials accompanying the Software without express written authorization from Affiliatenichescript.com, in its original or altered state, must be in the possession of the by registered licensed company, organization or personal identity of the Software. Proofs of infringement of copyright violations include but not limited to similar code style and structures, similar layout and design, similar database design, and containing parts of the original Software source code.\r\nYou may not remove the original Affiliatenichescript.com footer link from the source of the software. Modification of the source code is forbidden, and protected by Ioncube encryption.\r\nOne standard license is valid for any for any number of sites, but all these sites must be owned by One Owner (our paid customer) also all these sites must have same IP address. \r\nSame license key will not work for sites on different IPs.\r\n\r\nIf you violate any part of this agreement your right to use the Product terminates automatically (Affiliatenichescript.com reserves the right to revoke the Software license at any time) and you must discontinue use of and destroy any and all copies and/or derivative works of the Products in your possession.\r\n\r\nOne standard license is valid for any number of sites, but all those sites must be owned by One Owner (our paid customer) also all those sites must have same IP address.\r\nSame license key will not work for sites on different IPs.\r\n</textarea>\r\n\r\n\t<br />\r\n\t<input name=\"page\" type=\"hidden\" value=\"1\" />\r\n\t<input type=\"submit\" class=\"submit\" value=\"Start\" />\r\n\t</form></fieldset>\r\n\t";
}
if ( isset( $_POST['page'] ) )
{
if ( $_POST['page'] == "1" )
{
echo "<fieldset><legend>Step 1</legend>";
echo "<form name=\"page1\" method=\"post\" action=\"\">";
echo "<input name=\"page\" type=\"hidden\" value=\"2\" />";
echo "<p>PHP..... <font color=green>installed.</font> <font color=grey>(v".PHP_VERSION.")</font></p>";
if ( !_obfuscate_DRwWHDQvCygHEjYqGjIMOQ0kMwIHLBEя( "5.1.*" ) )
{
++$error;
echo "<p class=\"error_message\">PHP version too old. Please install on a webserver where PHP is at least version 5.1.2</p>";
}
if ( !_obfuscate_DQY2IgYvGA0FLi4oMyMCIjsEMDg5CiIя( "curl" ) )
{
echo "<p class=\"error_message\">cURL not installed... Enable for better performance</p>";
}
else
{
$curl_ver = _obfuscate_DTQfLBESMRMkEyoLDwIZFDEwNiQqODIя( );
echo "<p>cURL..... <font color=green>installed.</font> <font color=grey>(v".$curl_ver['version'].")</font></p>";
}
if ( _obfuscate_DQY2IgYvGA0FLi4oMyMCIjsEMDg5CiIя( "mysql" ) )
{
echo "<p>MySQL extension..... <font color=green>loaded.</font></p>";
}
else
{
++$error;
echo "<p class=\"error_message\">MYSQL not installed...</p>";
}
if ( !_obfuscate_DT4iOykbJw8eJgoaNTMnHiwvMxQeMQEя( "dbhost" ) )
{
++$error;
echo "<p class=\"error_message\">Database hostname not set, please check the configuration from the config.php file and try again.</p>";
}
if ( !_obfuscate_DT4iOykbJw8eJgoaNTMnHiwvMxQeMQEя( "dbuser" ) )
{
++$error;
echo "<p class=\"error_message\">Database username not set, please check the config.php file and try again.</p>";
}
if ( !_obfuscate_DT4iOykbJw8eJgoaNTMnHiwvMxQeMQEя( "dbpass" ) )
{
++$error;
echo "<p class=\"error_message\">Database password not set, please check the config.php file and try again.</p>";
}
if ( !_obfuscate_DT4iOykbJw8eJgoaNTMnHiwvMxQeMQEя( "dbname" ) )
{
++$error;
echo "<p class=\"error_message\">Database name not set, please check the config.php file and try again.</p>";
}
if ( @_obfuscate_DQkSAw4ONTYpGzkYDBorBBQhCTwWNSIя( dbhost, dbuser, dbpass ) )
{
$ver_res = @_obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "SELECT VERSION( )" );
if ( $ver_res )
{
$mysql_ver = @_obfuscate_DSsmMS00EDMQEw8kAhAEDRoRFSVcHxEя( $ver_res, 0 );
}
echo "<p>Connected to MySQL..... <font color=green>done.</font> <font color=grey>(v".$mysql_ver.")</font></p>";
}
else
{
++$error;
echo "<p class=\"error_message\">Cannot connect to MySQL server. Please check your username/password.</p>";
}
if ( @_obfuscate_DS4CHVw4ChlcNQcSCQ4oOwsMHCwDLDIя( dbname ) )
{
echo "<p>Connected to Database..... <font color=green>done.</font></p>";
}
else
{
++$error;
echo "<p class=\"error_message\">Cannot select database. Please check your database name.</p>";
}
$res = _obfuscate_DTtbHzgXEg04JyUCNjwHCwdNDYQGREя( licensekey, "" );
if ( $res['status'] == "Active" )
{
echo "<p>License key (".licensekey.") is..... <font color=green>Active.</font></p>";
}
else if ( $res['status'] == "Invalid" )
{
++$error;
echo "<p class=\"error_message\">Your License key is invalid. </p>\r\n <p class=\"error_message2\"><small>Please visit <a href=http://www.affiliatenichescript.com target=_blank>Affiliatenichescript.com</a>\r\n for purchase or go to <a href=https://secure.scriptoffice.com/clientarea.php target=_blank>Client Area</a> of billing system to copy the key\r\n if you already have purchased the license.</small></p>";
}
else if ( $res['status'] == "Expired" )
{
++$error;
echo "<p class=\"error_message\">Your License key is Expired.</p>\r\n\t\t<p class=\"error_message2\"><small>Please contact our support or visit <a href=http://www.affiliatenichescript.com target=_blank>Affiliatenichescript.com</a>\r\n for purchase or go to <a href=https://secure.scriptoffice.com/clientarea.php target=_blank>Client Area</a>\r\n of billing system to copy the key if you already have purchased the license.</small></p>";
}
else if ( $res['status'] == "Suspended" )
{
++$error;
echo "<p class=\"error_message\">Your License key is Suspended.</p>\r\n\t\t<p class=\"error_message2\"><small>Please contact our support or visit <a href=http://www.affiliatenichescript.com target=_blank>Affiliatenichescript.com</a>\r\n for purchase or go to <a href=https://secure.scriptoffice.com/clientarea.php target=_blank>Client Area</a> of billing system to copy the key\r\n if you already have purchased the license.</small></p>";
}
unset( $res );
if ( $error == 0 )
{
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."active_guests" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."active_users" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."banned_users" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."bookmarks" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."categories" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."options" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."reviews" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."searchdata" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."trackcart" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."trackitem" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."trackprice" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."users" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."service" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."banners" );
$query = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "DROP TABLE IF EXISTS ".dbprefix."static_page" );
unset( $query );
$query = "\r\nCREATE TABLE `".dbprefix."active_guests` (\r\n `ip` varchar(15) NOT NULL,\r\n `timestamp` int(11) unsigned NOT NULL,\r\n PRIMARY KEY (`ip`)\r\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0001</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."active_users` (\r\n `username` varchar(30) NOT NULL,\r\n `timestamp` int(11) unsigned NOT NULL,\r\n PRIMARY KEY (`username`)\r\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0002</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."banned_users` (\r\n `username` varchar(30) NOT NULL,\r\n `timestamp` int(11) unsigned NOT NULL,\r\n PRIMARY KEY (`username`)\r\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0003</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."bookmarks` (\r\n `id` int(11) NOT NULL auto_increment,\r\n `asin` varchar(20) NOT NULL,\r\n `title` varchar(255) NOT NULL,\r\n `user` varchar(50) NOT NULL,\r\n `date` varchar(255) NOT NULL,\r\n PRIMARY KEY (`id`)\r\n) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0004</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."categories` (\r\n `type` varchar(50) NOT NULL default 'amazon',\r\n `title` varchar(255) NOT NULL default '',\r\n `keywords` varchar(255) NOT NULL default '',\r\n `description` varchar(255) NOT NULL default '',\r\n `id` int(11) NOT NULL auto_increment,\r\n `pid` INT NOT NULL DEFAULT '0',\r\n `node_id` VARCHAR(255) NOT NULL,\r\n `node_name` varchar(255) NOT NULL,\r\n `search_index` varchar(255) NOT NULL,\r\n `asins` varchar(255) NOT NULL,\r\n `featured` varchar(255) NOT NULL,\r\n `pagecontent` TEXT NOT NULL,\r\n `file_name` varchar(255) NOT NULL default '',\r\n `filters` TEXT NOT NULL,\r\n `options` TEXT NOT NULL,\r\n `associatetag` varchar(255) NOT NULL,\r\n `parent_id` int(11) NOT NULL default '0',\r\n `page_order` int(11) NOT NULL default '1000',\r\n `locale` varchar(10) NOT NULL,\r\n `display` tinyint(1) NOT NULL default '1',\r\n `displaysearch` TINYINT(1) NOT NULL DEFAULT '1',\r\n `sort` varchar(25) NOT NULL,\r\n PRIMARY KEY (`id`),\r\n KEY `parent_id` (`parent_id`),\r\n KEY `cat_name` (`node_name`)\r\n) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0005</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."options` (\r\n `id` int(11) NOT NULL auto_increment,\r\n `option_name` varchar(255) NOT NULL,\r\n `option_value` varchar(255) NOT NULL,\r\n `auto` varchar(10) NOT NULL,\r\n PRIMARY KEY (`id`)\r\n) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0006</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."reviews` (\r\n `id` int(11) NOT NULL auto_increment,\r\n `date` varchar(255) NOT NULL,\r\n `asin` varchar(50) NOT NULL,\r\n `rating` varchar(10) NOT NULL,\r\n `content` text NOT NULL,\r\n `user` varchar(100) NOT NULL,\r\n `status` varchar(50) NOT NULL,\r\n PRIMARY KEY (`id`)\r\n) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0007</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."searchdata` (\r\n `id` int(11) NOT NULL auto_increment,\r\n `query` varchar(255) NOT NULL,\r\n `cat` varchar(50) NOT NULL,\r\n `count` int(11) NOT NULL default '1',\r\n `date` varchar(50) NOT NULL,\r\n PRIMARY KEY (`id`)\r\n) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0008</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."trackcart` (\r\n `id` int(11) NOT NULL auto_increment,\r\n `action` varchar(100) NOT NULL,\r\n `destination` text NOT NULL,\r\n `asin` varchar(20) NOT NULL,\r\n `title` varchar(255) NOT NULL,\r\n `price` varchar(20) NOT NULL,\r\n `qty` varchar(3) NOT NULL,\r\n `ip` varchar(15) NOT NULL,\r\n `cartid` varchar(255) NOT NULL,\r\n `referer` varchar(255) NOT NULL,\r\n `date` varchar(255) NOT NULL,\r\n PRIMARY KEY (`id`)\r\n) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0009</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."trackitem` (\r\n `id` int(11) NOT NULL auto_increment,\r\n `asin` varchar(50) NOT NULL,\r\n `title` text NOT NULL,\r\n `ip` varchar(15) NOT NULL,\r\n `page_referer` varchar(255) NOT NULL,\r\n `site_referer` varchar(255) NOT NULL,\r\n `date` varchar(255) NOT NULL,\r\n PRIMARY KEY (`id`)\r\n) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0010</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."trackprice` (\r\n `id` int(11) NOT NULL auto_increment,\r\n `asin` varchar(50) NOT NULL,\r\n `title` varchar(255) NOT NULL,\r\n `date` varchar(255) NOT NULL,\r\n `user` varchar(100) NOT NULL,\r\n `amount` int(11) NOT NULL,\r\n `price` varchar(50) NOT NULL,\r\n `target` int(11) NOT NULL,\r\n `length` int(11) NOT NULL,\r\n `type` varchar(10) NOT NULL,\r\n PRIMARY KEY (`id`)\r\n) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0011</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."users` (\r\n `username` varchar(30) NOT NULL,\r\n `password` varchar(32) default NULL,\r\n `userid` varchar(32) default NULL,\r\n `userlevel` tinyint(1) unsigned NOT NULL,\r\n `email` varchar(50) default NULL,\r\n `timestamp` int(11) unsigned NOT NULL,\r\n `valid` tinyint(1) unsigned NOT NULL default '0',\r\n `name` varchar(50) default NULL,\r\n PRIMARY KEY (`username`)\r\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0012</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."service` (\r\n `descr` varchar(255) NOT NULL,\r\n `value` varchar(1000) default NULL,\r\n PRIMARY KEY (`descr`)\r\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0013</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."banners` (\r\n `id` INT NOT NULL AUTO_INCREMENT,\r\n `sort_order` INT NOT NULL DEFAULT '1',\r\n `placing` VARCHAR( 20 ) NOT NULL ,\r\n `banner_code` VARCHAR( 10000 ) NOT NULL,\r\n PRIMARY KEY (`id`)\r\n) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0014</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nCREATE TABLE `".dbprefix."static_page` (\r\n `id` int(11) NOT NULL AUTO_INCREMENT,\r\n `sort_order` int(11) NOT NULL DEFAULT '1',\r\n `page_name` varchar(255) NOT NULL,\r\n `pagecontent` TEXT NOT NULL,\r\n `file_name` varchar(255) NOT NULL default '',\r\n `parent_id` int(11) NOT NULL default '0',\r\n `menu_url` VARCHAR( 255 ) NOT NULL ,\r\n `desc_metatag` VARCHAR( 500 ) ,\r\n `key_metatag` VARCHAR( 500 ) ,\r\n PRIMARY KEY (`id`),\r\n KEY `parent_id` (`parent_id`),\r\n KEY `cat_name` (`page_name`)\r\n \r\n) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while creating tables: #0015</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "INSERT INTO `".dbprefix."categories` (`node_id`, `display`) VALUES ('-1', '0')";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while inserting data: #1001</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "INSERT INTO `".dbprefix."service` (`descr`, `value`) VALUES ('localkey', '')";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while inserting data: #1002</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
$query = "\r\nINSERT INTO `".dbprefix."options` (`id`, `option_name`, `option_value`, `auto`) VALUES (1, 'associateid', 'sonydigitalca-20', 'yes'),\r\n(2, 'awsaccesskeyid', '', 'yes'),\r\n(3, 'awssecretkeyid', '', 'yes'),\r\n(4, 'siteurl', '', ''),\r\n(5, 'countryid', 'com', ''),\r\n(6, 'email_from_name', 'Administrator', ''),\r\n(7, 'site_name', '', ''),\r\n(8, 'site_slogan', '', ''),\r\n(9, 'home_display', 'node', ''),\r\n(10, 'home_item', '', ''),\r\n(11, 'home_node', '3563', ''),\r\n(12, 'home_index', 'Books', ''),\r\n(13, 'home_kw', '', ''),\r\n(14, 'home_asin', '', ''),\r\n(15, 'title_home', '{SITE-NAME} - {SITE-SLOGAN}', ''),\r\n(16, 'title_cat', '{CATEGORY} Page {PAGE} - {SITE-NAME}', ''),\r\n(17, 'title_subcat', '{SUB-CATEGORY}: {CATEGORY} - {SITE-NAME}', ''),\r\n(18, 'title_prod', '{PRODUCT} - {CATEGORY} - {SITE-NAME}', ''),\r\n(19, 'title_search', 'Search: {SEARCH} - {SITE-NAME}', ''),\r\n(20, 'title_review', '{PRODUCT} Reviews - {SITE-NAME}', ''),\r\n(21, 'title_offer', '{PRODUCT} Offers - {SITE-NAME}', ''),\r\n(22, 'metak_home', '{SITE-KEYWORDS}', ''),\r\n(23, 'metak_cat', '{CATEGORY} Page {PAGE} - {SITE-NAME}', ''),\r\n(24, 'metak_subcat', '{SUB-CATEGORY}: {CATEGORY} - {SITE-NAME}', ''),\r\n(25, 'metak_prod', '{PRODUCT} - {CATEGORY} - {SITE-NAME}', ''),\r\n(26, 'metak_search', 'Search: {SEARCH} - {SITE-NAME}', ''),\r\n(27, 'metak_review', '{PRODUCT} Reviews - {SITE-NAME}', ''),\r\n(28, 'metak_offer', '{PRODUCT} Offers - {SITE-NAME}', ''),\r\n(29, 'metad_home', '{SITE-DESCRIPTION} - {SITE-SLOGAN}', ''),\r\n(30, 'metad_cat', '{CATEGORY} Page {PAGE} - {SITE-NAME}', ''),\r\n(31, 'metad_subcat', '{SUB-CATEGORY}: {CATEGORY} - {SITE-NAME}', ''),\r\n(32, 'metad_prod', '{PRODUCT} - {CATEGORY} - {SITE-NAME}', ''),\r\n(33, 'metad_search', 'Search: {SEARCH} - {SITE-NAME}', ''),\r\n(34, 'metad_review', '{PRODUCT} Reviews - {SITE-NAME}', ''),\r\n(35, 'metad_offer', '{PRODUCT} Offers - {SITE-NAME}', ''),\r\n(36, 'extension', 'php', 'yes'),\r\n(37, 'current_template', 'shopper', 'yes'),\r\n(38, 'url_length', '200', 'yes'),\r\n(39, 'rewrite_reviews', 'false', 'yes'),\r\n(40, 'seo_urls', 'false', 'yes'),\r\n(41, 'replace_reviews', 'true', 'yes'),\r\n(42, 'item_tracking', 'yes', 'yes'),\r\n(43, 'checkout_tracking', 'yes', 'yes'),\r\n(44, 'google_analytics', '', 'yes'),\r\n(45, 'shopping_cart', 'yes', 'yes'),\r\n(46, 'quantity_box', 'yes', ''),\r\n(47, 'home_minprice', '', 'yes'),\r\n(48, 'home_maxprice', '', 'yes'),\r\n(49, 'site_description', '', ''),\r\n(50, 'cron_key', '123abc', 'yes'),\r\n(51, 'filter_searchcloud', 'shit', ''),\r\n(52, 'c_pos', '1', ''),\r\n(53, 'a_pos', '2', ''),\r\n(54, 't_pos', '3', ''),\r\n(55, 'n_pos', '4', ''),\r\n(56, 'max_searchpages', '10', ''),\r\n(57, 'max_marketpages', '5', ''),\r\n(58, 'max_reviewpages', '10', ''),\r\n(59, 'product_title_length', '60', ''),\r\n(60, 'site_keywords', '', ''),\r\n(61, 'max_catpages', '100', ''),\r\n(62, 'email_from', 'no-reply@yourdomain.com', ''),\r\n(63, 'email_welcome', 'true', ''),\r\n(64, 'captcha', 'false', ''),\r\n(65, 'db_cache_length', '600', ''),\r\n(66, 'ans_version', '".$new_release_version."', ''),\r\n(67, 'asin-filter','', ''),\r\n(68, 'condition-filter','', ''),\r\n(69, 'image-filter','', ''),\r\n(70, 'rating-filter','', ''),\r\n(71, 'keyword-filter','', ''),\r\n(72, 'minprice-filter','', ''),\r\n(73, 'maxprice-filter','', ''),\r\n(74, 'merchant-filter','', ''),\r\n(75, 'title-filter','', ''),\r\n(76, 'display_topbox','true', ''),\r\n(77, 'display_newbox','true', ''),\r\n(78, 'display_cloudbox','true', ''),\r\n(79, 'display_trackbox','true', ''),\r\n(80, 'display_similarbox','true', ''),\r\n(81, 'amazon_cache','yes', ''),\r\n(82, 'cache_limit','50', ''),\r\n(83, 'ebay_locale','EBAY-US', ''),\r\n(84, 'ebay_trackingid','', ''),\r\n(85, 'ebay_networkid','', ''),\r\n(86, 'search','', 'a:4:{s:4:\"type\";s:7:\"blended\";s:4:\"node\";s:0:\"\";s:5:\"index\";s:0:\"\";s:7:\"keyword\";s:0:\"\";}'),\r\n(87, 'merchant_preference','lowest_new', ''),\r\n(88, 'review_sort','-OverallRating', ''),\r\n(89, 'email_stats','0', ''),\r\n(90, 'ajax_features','yes', '');\r\n";
if ( !( $stmt = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( $query ) ) )
{
exit( "<h1>Error while inserting data: #1003</h1><br />"._obfuscate_DRQBKAkwKAMPRYoNgYdOAkHCzYTFBEя( ) );
}
_obfuscate_DS1cPQEtNAclMAoUCBMsDjwmFTAZChEя( "../cache", "Cache (/cache)" );
_obfuscate_DS1cPQEtNAclMAoUCBMsDjwmFTAZChEя( "../cache/ans", "ANS Cache (/cache/ans)" );
_obfuscate_DS1cPQEtNAclMAoUCBMsDjwmFTAZChEя( "../cache/amazon", "Amazon Cache (/cache/amazon)" );
_obfuscate_DS1cPQEtNAclMAoUCBMsDjwmFTAZChEя( "../cache/db", "Database Cache (/cache/db)" );
}
if ( 0 < $error )
{
echo "<br /><p>There are <strong>".$error."</strong> error(s) which need resolving before you can continue installing this script.</p>";
echo _obfuscate_DSkFKx1cWzAqGjYMIQ8pF1tbPxMyPgEя( );
}
else
{
echo "\r\n\t\t\t<input type=\"submit\" class=\"submit\" value=\"Next\" />\r\n\t\t\t</form>\r\n\t\t\t</fieldset>\r\n\t\t\t";
}
}
if ( $_POST['page'] == "2" )
{
$siteurl = _obfuscate_DSwfQD8FIzccWxQOKiwCFQIHJQc4KxEя( "install/install.php", "", _obfuscate_DRgxMgcsJQQ1IhscNC0UFQksAg0kCSIя( ) );
echo "<fieldset><legend>Step 2</legend>";
echo "<form name=\"page2\" action=\"\" method=\"post\">";
echo "<input name=\"page\" type=\"hidden\" value=\"finished\" />";
echo "<label for=name accesskey=U><span class=\"required\">*</span> Site Name</label>";
echo "<input type=\"text\" name=\"sitename\" value=\"\" size=\"80\" />";
echo "<br />";
echo "<label for=name accesskey=S><span class=\"required\">*</span> Site URL</label>";
echo "<input type=\"text\" name=\"siteurl\" value=\"".$siteurl."\" size=\"80\" />";
echo "<br />";
echo "<label for=name accesskey=P><span class=\"required\">*</span> Admin Password</label>";
echo "<input type=\"text\" name=\"adminpass\" value=\"\" />";
echo "<br />";
echo "<label for=name accesskey=E><span class=\"required\">*</span> Email Address</label>";
echo "<input type=\"text\" name=\"email\" value=\"\" />";
echo "<br />";
echo "<input type=\"submit\" class=\"submit\" value=\"Next\" />";
echo "</form>";
echo "</fieldset>";
}
if ( $_POST['page'] == "finished" )
{
$sitename = $_POST['sitename'];
$siteurl = $_POST['siteurl'];
$adminpass = _obfuscate_DQlcFDMbMws2ESIuERcsEzISNSIhNDIя( $_POST['adminpass'] );
$email = $_POST['email'];
$rand = _obfuscate_DQlcFDMbMws2ESIuERcsEzISNSIhNDIя( _obfuscate_DQoQCgEhHwUwOSMQOAkuOxQWJisKOCIя( 16 ) );
@_obfuscate_DQkSAw4ONTYpGzkYDBorBBQhCTwWNSIя( dbhost, dbuser, dbpass );
@_obfuscate_DS4CHVw4ChlcNQcSCQ4oOwsMHCwDLDIя( dbname );
$options_result1 = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "UPDATE ".dbprefix."options SET option_value='".$siteurl."' WHERE option_name='siteurl'" );
$options_result2 = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "UPDATE ".dbprefix."options SET option_value='".$sitename."' WHERE option_name='site_name'" );
$admin_result = _obfuscate_DVwcCQsnGxAaGx8YLDwCEg47PREhFREя( "INSERT INTO ".dbprefix."users (username,password,email,userid,userlevel,name,valid) VALUES ('admin','{$adminpass}','{$email}','{$rand}','9','Administrator','1')" );
echo "<hr><h1><font color=\"green\">Finished!</font></h1>";
echo "<p>Affiliate Niche Script has successfully been installed.</p>";
echo "<p>Click <a href=\"".$siteurl."admin/\">here</a> to visit the admin area to continue setting up your store.</p>";
echo "<hr><p><font color=\"brown\">Please delete the \"install\" folder from where you installed this software before you continue.</font></p>";
}
}
echo " </div>\r\n\r\n </body>\r\n</html>";
?>
|
|
|