<?php
$Secure = true;			#true : private host - false : public host
$facebook = false;
$this->getinfo_ip = false;

$homepage = "getlink.vn";
$fileinfo_dir = 'data';
$fileinfo = "info.dat";
$fileinfo_ext = "dat";
$pathphim = "./../../../../phim/files/movie.dat";
$passdefault = "getlinkv6";

$download_prefix = "";
$listfile = true;		# enable/disable all user can see list files.
$privatefile = false;	# enable/disable other people can see your file in the list files
$privateip = false;		# enable/disable other people can download your file.


# link manager host 
$linkgate = "http://manager2022.getlink.vn:8081/managerv7/";
#$linkgate = "http://managerdirect.getlink.vn:8081/managerv7/";
$passgate = "demo";
# link magnet
//$linkmagnet = "http://localhost/getlink/getto/";
$linkmagnet = "http://magnet2022test.getlink.vn:8081/getto/";
$passmagnet = "demo";
$infomagnet = 'http://magnet2022test.getlink.vn:8081/magnet.h/';
# link check isp
#$checkisp = "http://127.0.0.1:8081/newisp/";
$checkisp = "http://checkisp2022.getlink.vn:8081/newisp/";
#$checkisp = "http://getlinkpremium.download/newisp/";
# link send mail
$linkmail = "http://mail2022.getlink.vn:8081/mygl/mail/mail.php";
$linkmailforgot = "http://mail2022.getlink.vn:8081/mygl/mail/forgot.php";
#$linkmail = "http://64.237.62.35:8081/mygl/mail/mail.php";
#$linkmailforgot = "http://64.237.62.35:8081/mygl/mail/forgot.php";
$passmail = "getlinkv3";
# mail nhan mail thong bao loi + contact
$mailerror = "hotro@getlink.vn";
$linkreport = "http://report01.getlinkvn.com/report01/";
$acc_api = "http://api.getlink.vn:8172/homegl.test.kien/api.php";
#$acc_api = "http://64.237.62.35:8081/homegl.test.kien/api.php";


# link manager host
#$linkgate = "http://managertestdirect11.getlink.vn:8081/managerv11/";
#$passgate = "demo";
# link mega link
$megalink = "http://megalink.getlink.vn:9179/managerv11/megalink/";
$passmega = "demo21@21k9";
#$megalink = "http://megalink2022.getlink.vn:8081/managerv11/megalink/";
#$passmega = "5a102d532110";
# mail nhan mail thong bao loi + contact

if(file_exists($fileinfo_dir."/info.php")) require_once ('data/info.php');
$this->count_dl = 50; //số phim hiển thị (sắp xếp theo lượt down nhiều)
$this->maxsv = 5; //#chưa rõ sử dụng làm gì
$this->gens = array(
	'action'		=> 'Hành động',
	'comedy'		=> 'Phim hài',
	'family'		=> 'Phim gia đình',
	'drama'			=> 'Kịch tính (drama)',
	'crime'			=> 'Hình sự',
	'adventure'		=> 'Phiêu lưu',
	'biography'		=> 'Tiểu sử',
	'history'		=> 'Lịch sử',
	'mystery'		=> 'Bí ẩn',
	'sci-fi'		=> 'Viễn tưởng',
	'western'		=> 'Viễn tây',
	'animation'		=> 'Hoạt hình',
	'documentary'		=> 'Phim tài liệu',
	'romance'		=> 'Tình cảm',
	'war'			=> 'Chiến tranh',
	'sport'			=> 'Thể thao',
	'horror'		=> 'Kinh dị',
	'fantasy'		=> 'Thần thoại',
	'music'			=> 'Âm nhạc',
	'musical'		=> 'Ca nhạc',
	'thriller'		=> 'Trinh thám',
	'reality-tv'		=> 'Thực tế',
	'film-noir'		=> 'Phim noir',
	'1phimchieurap'		=> 'Phim chiếu rạp',	
);

$this->folderimg = '/var/www/html/img/';
/*
$this->sv_root = array(
	'vnpthn'		=> 'Server VN',
	'vnpthcm'		=> 'Server VN',
	'vtelhn'		=> 'Server VN',
	'vtelhcm'		=> 'Server VN',
	'us'			=> 'Server US',	
);
*/

$this->sv_root = array(
	'sg'			=> 'Server Singapore',	
	'jp'		=> 'Server Japan',						 								
	'us'			=> 'Server US',	
	'vnpt'		=> array('vnpthn','vnpthcm'),
	'fpt'		=> array('fpthcm','fpthn'),
	'viettel'		=> array('vtelhcm','vtelhn'),
);
$this->server = array(
	'usa'		=> 'USA (New)',
	'vnpthn'		=> 'VNPT HN',
	'vtelhn'		=> 'Viettel HN',
	'fpthcm'		=> 'FPT HCM',
	'sg'		=> 'SG',
	'hk'		=> 'HK',
	'jp'		=> 'JP',
	'us'		=> 'US',
	'fr'		=> 'FR',
	'ca'		=> 'CA',
	'syd'		=> 'AU',
	'ger'		=> 'DE',
	'vtelhcm'		=> 'Viettel HCM',
	'fpthn'		=> 'FPT HN',
	'vnpthcm'		=> 'VNPT HCM',
);
//limit số link được nhập
$this->maxgetlink = array(
	'icerbox.com'			=> 10,
	'novafile.com'			=> 10,						
	'hitfile.net'			=> 50,
	'upstore.net'			=> 10,
	'filesmonster.com'		=> 20,
	'uploadgig.com'			=> 50,
	'nitroflare.com'		=> 50,
	'rapidgator.net'		=> 50,
	'filenext.com'			=> 50,
	'otherhost'			=> 50, //limit mặc định cho các host còn lại
);
//limit số link được nhập
$this->maxleechlink = array(
	'icerbox.com'			=> 5,
	'nitro.download'		=> 2,
	'nitroflare.com'		=> 2,						 					 
	'k2s.cc'				=> 2,
	'rapidgator.net'		=> 5,
	'alfafile.net	'		=> 3,
	'otherhost'				=> 5, //limit mặc định cho các host còn lại
);
//limit số link được nhập
$this->maxleecherrorlink = array(
	'icerbox.com'			=> 3,
	'rapidgator.net'		=> 3,
	'otherhost'			=> 3, //limit mặc định cho các host còn lại
);
//limit số link tối đa trong 1 ngày được leech ở tab error
$this->max_link_error_leech = array(
	'icerbox.com'			=> 20,
	'rapidgator.net'		=> 20,
	'fshare.vn'				=> 20,
	'otherhost'				=> 20, //limit mặc định cho các host còn lại
);
$this->maxleech_fshare = 1;	//limit số link được nhập
$this->maxlink_fshare = 10;	//limit số link được leech trong ngày

$this->diehost = array('uploaded.net', 'uploaded.to', 'ul.to', 'hotfile.com', 'rapidshare.com', 'megaupload.com', 'filesonic.com', 'fileserve.com', 'wupload.com', 'megashares.com', 'datafile.com', 'uploading.com', 'freakshare.com', 'netload.in', 'oron.com', 'filepost.com', 'uploadstation.com', 'shareflare.net', 'bitshare.com', 'extabit.com', 'share-online.biz', 'vip-file.com', 'yourfilelink.com');																			 
//filter các host có nhiều domain phụ - 2020/06/22 - 23:47 (GMT+7)
$this->filterhost = array(
	'uploaded.net'	=>	array('uploaded.to','ul.to'),
	'rapidgator.net'	=>	array('rapidgator.to','rg.to'),
	'turbobit.net'	=>	array('turbo-bit.net','trbbt.net','tbit.to','turbo.to','turbobit.cc','turb.to','turb.cc'),
	'1fichier.com'	=>	array('alterupload.com','cjoint.net','dl4free.com','tenvoi.com','pjointe.com','megadl.fr','piecejointe.net','mesfichiers.org','dfichiers.com','desfichiers.com'),
	'hitfile.net'	=>	array('hitf.to','hitf.cc','hitfile.cc'),
	'mega.nz'	=>	array('mega1.nz','mega.co.nz'),
	'youtube.com'	=>	array('youtube1.com','youtu.be'),
	'upstore.net'	=>	array('upstore1.net','upsto.re'),
	'k2s.cc'	=>	array('keep2share.cc','keep2s.cc','k2share.cc'),
	'katfile.com'	=>	array('katfile.online','katfile.cloud'),
	'fboom.me'	=>	array('fileboom.me','fileboom.com'),
	'4share.vn'	=>	array('up2.4share.vn','up.4share.vn'),
	'nitro.download'	=>	array('nitroflare.com'),
);

$this->splimit1 = 'http://www2022.getlink.vn:8081/host/support.txt';
#$this->splimit1 = 'http://homedirect11.getlink.vn:8081/host/support.txt';
$this->firewall = array(
	'spro2022.getlink.vn:8081'	=>	array('spro11.getlink.vn', 'spro.getlink.vn'),
	'my2022.getlink.vn:8081'	=>	array('my.getlink.vn', 'mytest.getlink.vn'),
	'vip2022.getlink.vn:8081'	=>	array('vip.getlink.vn', 'vip11.getlink.vn'),
	'premium2022.getlink.vn:8081'	=>	array('premium.getlink.vn', 'premium11.getlink.vn'),
);
if(!isset($this->mng_rieng))
//Turn on when $this->leechrieng==true
$this->mng_rieng = array(
	'uploadgig.com'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=uploadgig.com',
	#'uploadgig.com'		=> 'http://leechrieng.getlink.vn:8081/leech.uploadgig/',
#	'uploadgig.com'		=> 'http://leechrieng.getlink.vn:8081/leechmng/',
	'nitroflare.com'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=nitro.download',
	'nitro.download'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=nitro.download',
#	'nitroflare.com'		=> 'http://leechrieng.getlink.vn:8081/leech.nitro/',
	#'nitro.download'		=> 'http://leechrieng.getlink.vn:8081/leech.nitro/',
#	'nitroflare.com'		=> 'http://leechrieng.getlink.vn:8081/leechmng/',
#	'nitro.download'		=> 'http://leechrieng.getlink.vn:8081/leechmng/',
	#'icerbox.com'		=> 'http://leechrieng.getlink.vn:8081/leech.icerbox/',
	'icerbox.com'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=icerbox.com',
#	'icerbox.com'		=> 'http://leechrieng.getlink.vn:8081/leechmng/',
	'filenext.com'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=filenext.com',
	#'filenext.com'		=> 'http://leechrieng.getlink.vn:8081/leech.filenext/',
#	'filenext.com'		=> 'http://leechrieng.getlink.vn:8081/leechmng/',
	#'upstore.net'		=> 'http://leechrieng.getlink.vn:8081/leech.upstorev2/',
	'upstore.net'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=upstore.net',
	'tezfiles.com'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=tezfiles.com',
	'upstore.net'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=upstore.net',
	'filesmonster.com'	=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=filesmonster.com',
	'filextras.com'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=filextras.net',
#	'filextras.com'		=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'filejoker.com'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=filejoker.net',
	'filejoker.net'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=filejoker.net',
#	'tezfiles.com'			=> 'http://leechrieng.getlink.vn:8081/leech.tezfiles.rieng/',
#	'filedot.to'		=> 'http://leechrieng.getlink.vn:8081/leech.filedot/',
#	'upstore.net'		=> 'http://leechrieng.getlink.vn:8081/upstore2/',
#	'upstore.net'		=> 'http://leechrieng.getlink.vn:8081/leech.upstore/',
#	'upstore.net'		=> 'http://leechrieng.getlink.vn:8081/leechmng/',
#	'other'		=> 'http://leechmanager2022.getlink.vn:8081/leechmng/',
#	'other'		=> 'http://leechmanager2022.spro.getlink.vn:8081/leechmng/',
);
//use when $this->leechrieng==false
if(!isset($this->mng_normal))
$this->mng_normal = array(
	#'4share.vn'			=> 'http://leechrieng.getlink.vn:8081/leech.4share/',
	#'up.4share.vn'		=> 'http://leechrieng.getlink.vn:8081/leech.4share/',
	#'alfafile.net'		=> 'http://leechrieng.getlink.vn:8081/leech.alfafile/',
	'alfafile.net'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=alfafile.net',
	'1fichier.com'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=1fichier.com',
	#'1fichier.com'		=> 'http://leechrieng.getlink.vn:8081/leech.1fichier/',
	#'uptobox.com'		=> 'http://leechrieng.getlink.vn:8081/leech.uptobox/',
	'k2s.cc'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=k2s.cc',
	'keep2share.cc'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=k2s.cc',
	'k2share.cc'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=k2s.cc',
	'keep2s.cc'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=k2s.cc',
	#'k2s.cc'		=> 'http://leechrieng.getlink.vn:8081/leech.k2s/',
	#'keep2share.cc'		=> 'http://leechrieng.getlink.vn:8081/leech.k2s/',
	#'k2share.cc'		=> 'http://leechrieng.getlink.vn:8081/leech.k2s/',
	#'keep2s.cc'		=> 'http://leechrieng.getlink.vn:8081/leech.k2s/',
	'fboom.me'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=fboom.me',
	'fileboom.me'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=fboom.me',
	#'fboom.me'		=> 'http://leechrieng.getlink.vn:8081/leech.fboom/',
	#'fileboom.me'		=> 'http://leechrieng.getlink.vn:8081/leech.fboom/',
	#'uploadgig.com'		=> 'http://leechrieng.getlink.vn:8081/leech.buy/',
	#'nitroflare.com'	=> 'http://leechrieng.getlink.vn:8081/leech.buy/',
	#'nitro.download'	=> 'http://leechrieng.getlink.vn:8081/leech.buy/',
	#'icerbox.com'		=> 'http://leechrieng.getlink.vn:8081/leech.buy/',
	#'filenext.com'		=> 'http://leechrieng.getlink.vn:8081/leech.buy/',
	'uploadgig.com'		=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'nitroflare.com'	=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'nitro.download'	=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'icerbox.com'		=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'filenext.com'		=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'filextras.com'		=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'filejoker.com'		=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'filejoker.net'		=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'filesmonster.com'	=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'tezfiles.com'		=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'novafile.org'		=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'novafile.com'		=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'upstore.net'		=> 'http://leechrieng15.getlink.vn:9114/buy/?hostdb=buy',
	'fshare.vn'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=fshare.vn',
	#'fshare.vn'			=> 'http://leechrieng.getlink.vn:8081/leech.fshare/',
	#'hitfile.net'		=> 'http://leechrieng.getlink.vn:8081/leech.hitfile/',	
	'hitf.to'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=hitfile.net',	
	'hitf.cc'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=hitfile.net',	
	'hitfile.net'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=hitfile.net',	
	'hitfile.cc'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=hitfile.net',	
	'katfile.com'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=katfile.com',
	#'katfile.com'			=> 'http://leechrieng.getlink.vn:8081/leech.katfilev2/',
	'turbobit.net'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=turbobit.net',
	#'turbobit.net'			=> 'http://leechrieng.getlink.vn:8081/leech.turbobitv2/',
	#'novafile.com'		=> 'http://leechrieng.getlink.vn:9112/leech.novafile/',
	#'novafile.org'		=> 'http://leechrieng.getlink.vn:9112/leech.novafile/',
	'magnet'			=> 'http://leechrieng15.getlink.vn:9114/leech.magnet/',
	'torrent'			=> 'http://leechrieng15.getlink.vn:9114/leech.magnet/',
	#'magnet'			=> 'http://leechrieng.getlink.vn:8081/leech.magnet/',
	#'torrent'			=> 'http://leechrieng.getlink.vn:8081/leech.magnet/',
	#'filejoker.net'			=> 'http://leechrieng.getlink.vn:8081/leech.filejoker/',
	#'filejoker.com'			=> 'http://leechrieng.getlink.vn:8081/leech.filejoker/',
	#'tezfiles.com'			=> 'http://leechrieng.getlink.vn:8081/leech.tezfiles/',
	#'filesmonster.com'			=> 'http://leechrieng.getlink.vn:8081/leech.filesmonster/',
	#'extmatrix.com'			=> 'http://leechrieng.getlink.vn:8081/leech.extmatrix/',
	'extmatrix.com'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=extmatrix.com',
	'fireget.com'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=fireget.com',
	'prefiles.com'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=prefiles.com',
	'rapidgator.net'		=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=rapidgator.net',
	#'rapidgator.net'	=> 'http://leechrieng.getlink.vn:8081/leech.rapidgator/',
	'rosefile.net'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=rosefile.net',
	#'rosefile.net'	=> 'http://leechrieng.getlink.vn:8081/leech.rosefile/',
#	'other'		=> 'http://leechmanager2022.getlink.vn:8081/leechmng.normal/',
	'other'		=> 'http://leechrieng15.getlink.vn:9114/other/?hostdb=other',
#	'other'			=> 'http://leechrieng15.getlink.vn:9114/leechmng/?hostdb=other',
#	'other'		=> 'http://leechmanager2022.spro.getlink.vn:8081/leechmng/',
#	'other'		=> 'http://leechmanager2022.getlink.vn:8081/leechmng/',
);


$this->mng_error = 'http://leechrieng15.getlink.vn:9114/baoloi/';
$this->mng_fshare = 'http://leechrieng15.getlink.vn:9114/freefshare/';

#$this->leechmng = 'http://mytestdirect11.getlink.vn:8081/leechmng/';
$this->passleech = 'leech21@21gl'; //pass hệ thống, không thay đổi !!!
$this->checklink = 'http://127.0.0.1:8081/checklink/?url=';
#$this->checklink = 'http://my68.getlink.vn/checklink/?url=';
#$this->checklink = 'http://checklink2022.getlink.vn:8081/checklink/?url=';
#http://checklink2022.getlink.vn:8081/checklink/?url=https://nitroflare.com/view/F71B1803741B6F8
#$this->checklink = 'https://mytest.getlink.vn/checklink/?url=';
$this->max_list_file = 15; //số file tối đa hiển thị list leech
$this->pw_verified = '9b3b999b7b6a7323e294aa1500f4d2dc'; //password xác nhận từ leech manager
$this->pw_autologin = 'demo23@2024'; //password auto login
$truehttps = false;
$this->server_tab = array(
	'japan'	=>	array('jp', '<b>Leech link<BR><font color="red">(Server Nhật)</font></b>')			//subdomain|domain, tên tab <font color="blue">(server Nhật)</font>
	,'singapore'	=>	array('sg', 'Leech link<BR>(Server Singapore)')
	,'vietnam'	=>	array('vn', 'Leech link<BR>(Server Việt Nam)')
	,'cdn'	=>	array('cdn6868.20gbpscdn.info', 'Leech link<BR>(Server CloudFlare)')
	,'canada'	=>	array('ca', '')
	,'france'	=>	array('fr', '')
	,'germany'	=>	array('ger', '')
	,'fpthcm'	=>	array('fpthcm', '')
	,'fpthn'	=>	array('fpthn', '')
	,'vnpthcm'	=>	array('vnpthcm', '')
	,'vnpthn'	=>	array('vnpthn', '')
	,'vtelhcm'	=>	array('vtelhcm', '')
	,'vtelhn'	=>	array('vtelhn', '')
	,'hongkong'	=>	array('hk', '')
	,'sydney'	=>	array('syd', '')
	,'usa'	=>	array('usa', '')
);

$this->timefresh = 10; //sec
$this->bw_canhbao = 200; //(GB) - khi dung lượng tổng account vượt quá ngưỡng sẽ cảnh báo về manager
$this->bw_dir = '/bwplus/';

require_once ('./../../../../class.user/viet.all.php'); 
?>