403Webshell
Server IP : 103.82.32.14  /  Your IP : 216.73.217.140
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/rubymnik/public_html/admin/quanlykenh/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/rubymnik/public_html/admin/quanlykenh/quanlykenh_ajax.php
<?php
$page = "../";
include '../../configchannel.php';
include '../configtotal.php';
?>
<?php
														$dem = $_GET['page'] * 20 - 20;
														$wherenhansu = "";
														if($_GET['nhansu'] != "all")
														{
															$wherenhansu = "AND `IdNguoiLam` = " . $_GET['nhansu'];
														}
														$result = SelectAll('QuanLyChannel',"SELECT QuanLyChannel.id AS IDChannelSQL, NameChannel, QuanLyChannel.IdChannel as IdKenh, NgayUpdate, NetworkSuport, SUM(SoLuotXem) AS TongLuotXem, ROUND(SUM(DoanhThu),0) AS TongDoanhThu, IdNguoiLam FROM QuanLyChannel JOIN SoLieuChannel ON QuanLyChannel.id = SoLieuChannel.IdChannel WHERE QuanLyChannel.id > 0 $wherenhansu GROUP BY SoLieuChannel.IdChannel ORDER BY TongDoanhThu DESC LIMIT $dem, 20");
														while($res = mysqli_fetch_array($result)) :
														?>
														<tr>
															<td>
																<?php echo ++$dem; ?>
															</td>
															
															<td>
															   <a href="https://www.youtube.com/channel/<?php echo $res['IdKenh']; ?>" target="_blank"><?php echo $res['NameChannel']==null? $res['IdKenh'] : $res['NameChannel']; ?></a>
															</td>
															<td>
																<?php 
																	$resultQL = mysqli_fetch_assoc(Select('NguoiLam', false, "`id` = ".$res['IdNguoiLam']."" ,''));
																	if(isset($resultQL['id']))
																	{
																		echo $resultQL['TenNhanVien'];
																		
																	}
																	else
																	{
																		echo "NONE";
																	}
																?>
															</td>
															<!--<td>
																<?php 
																$thoiGianGioiHan = date('d/m/Y', strtotime($res['NgayPublicCuoi']));
																$thoiGianPublic = strtotime($res['NgayPublicCuoi']);
																$thoiGianHienTai = strtotime(date('Y/m/d H:i:s'));
																$thoiGianChuaLamViec = $thoiGianHienTai - $thoiGianPublic;
																if($thoiGianChuaLamViec >= 604800)
																{
																	echo $thoiGianGioiHan . ' <span style="font-size: 9px;"><i class="fa fa-caret-down text-danger m-r-5"></i><span style="color: #f05050;">'.secondsToTime($thoiGianChuaLamViec).'</span> </span>';
																}
																else
																{
																	echo $thoiGianGioiHan . ' <span style="font-size: 9px;"><i style="color: #5dec7c;" class="fa fa-caret-up text-primary m-r-5"></i><span style="color: #5dec7c;">'.secondsToTime($thoiGianChuaLamViec).'</span></span>';
																}

																?>
															</td>
															-->
															 <td>
																<?php 
																	$resultQLNetwork = mysqli_fetch_assoc(Select('NetworkSuport', false, "`Id` = ".$res['NetworkSuport']."" ,''));
																	if(isset($resultQLNetwork['Id']))
																	{
																		echo $resultQLNetwork['NameNetwork'] . ' - Tỉ Lệ Share ' . $resultQLNetwork['TiLeShareDoanhThu'] . ' %';
																		
																	}
																	else
																	{
																		echo "NONE";
																	}
																?>
															</td>
															
															<td>
																<a class="table-action-btn" data-animation="fadein" data-overlaySpeed="200" data-overlayColor="#36404a" data-bs-toggle="modal" data-bs-target="#con-close-modal-<?php echo $res['IDChannelSQL']; ?>"><span class="material-symbols-outlined">edit_square</span></a>
																
																<a class="table-action-btn" data-animation="fadein" data-overlaySpeed="200" data-overlayColor="#36404a" data-bs-toggle="modal" data-bs-target="#con-close-modal-delete-<?php echo $res['IDChannelSQL']; ?>"><span style="color: #e16e6e;" class="material-symbols-outlined"> delete </span></a>
																
																<!-- Danger Alert Modal -->
																<div id="con-close-modal-delete-<?php echo $res['IDChannelSQL']; ?>" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
																	<div class="modal-dialog modal-sm">
																		<div class="modal-content modal-filled bg-danger">
																			<div class="modal-body p-4">
																				<div class="text-center">
																					<i class="dripicons-wrong h1 text-white"></i>
																					<h4 class="mt-2 text-white">Cảnh Báo!</h4>
																					<p class="mt-3 text-white">Bạn có thực sự muốn xóa kênh này khỏi hệ thống không?</p>
																					<a href="?deletechannel=<?php echo $res['IDChannelSQL']; ?>" class="btn btn-light my-2">Continue</a>
																				</div>
																			</div>
																		</div><!-- /.modal-content -->
																	</div><!-- /.modal-dialog -->
																</div><!-- /.modal -->
																
																<!-- sample modal content -->

																<div id="con-close-modal-<?php echo $res['IDChannelSQL']; ?>" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
																	<div class="modal-dialog modal-dialog-centered">
																		<div class="modal-content">
																			<div class="modal-header">
																				<h4 class="modal-title">Edit Channel</h4>
																				<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
																			</div>
																			<form role="form" method="POST" enctype="multipart/form-data">
																			<div class="modal-body p-4">
																				<div class="row">
																					<div class="col-md-12">
																						<div class="mb-3">
																							<label for="name">Tên Channel</label>
																							<input type="text" class="form-control" name="NameChannel" placeholder="Nhập tên network" value="<?php echo $res['NameChannel']; ?>">
																						</div>
																					</div>
																				</div>
																				<?php if($_SESSION['login']['Admin'] == 1) : ?>
																				<div class="row">
																					<div class="col-md-12">
																						<div class="mb-3">
																							<label for="name">Support Network</label>
																							<select class="form-select" name="NetworkSuport" data-style="btn-white">
																								<option value="0">Không có</option>
																								<?php
																									$resulta = Select('NetworkSuport', false, "", "");
																									while($resa = mysqli_fetch_array($resulta))
																									{
																										if($res['NetworkSuport'] == $resa['Id'])
																										{
																											echo '<option value="'.$resa['Id'].'" selected>'.$resa['NameNetwork'].' - '.$resa['SuportNetwork'].' - '.$resa['TiLeShareDoanhThu'].'</option>';
																										}
																										else
																										{
																											echo '<option value="'.$resa['Id'].'">'.$resa['NameNetwork'].' - '.$resa['SuportNetwork'].' - '.$resa['TiLeShareDoanhThu'].'</option>';
																										}
																										
																									}
																								?>
																							</select>
																						</div>
																					</div>
																				</div>
																				<?php endif; ?>
																				
																				<input type="hidden" value="<?php echo $res['IDChannelSQL']; ?>" name="IdChannelEdit"/>
																			</div>
																			<div class="modal-footer">
																				<button type="submit" class="btn btn-success waves-effect waves-light">Save</button>
																				<button type="button" class="btn btn-danger waves-effect waves-light m-l-10" data-bs-dismiss="modal" aria-label="Close">Cancel</button>
																			</div>
																			</form>
																		</div>
																	</div>
																</div><!-- /.modal -->
															</td>
															
														</tr>
														<?php endwhile; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit