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/forumhet/public_html/group/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/forumhet/public_html/group/avatar.php
<?php
/*///////////////////////
//@Tac gia: Nguyen Ary
//@Site: gochep.net
//@Facebook: facebook.com/tia.chophht
///////////////////////*/
define('_IN_JOHNCMS', 1);
require('../incfiles/core.php');
require('../incfiles/lib/class.upload.php');

$textl= 'Thay ảnh đại diện của nhóm';
require('../incfiles/head.php');
require('func.php');
$id= intval(abs($_GET['id']));
$dem = mysql_result(mysql_query("SELECT COUNT(*) FROM `nhom` WHERE `id`='$id'"),0);
if(!isset($id) || $dem == 0) {
echo '<br/><div class="tb">Nhóm không tồn tại hoặc đã bị xoá!</div>';
require('../incfiles/end.php');
exit;
}
$nhom = nhom($id);
echo head_nhom($id, $user_id);
if($nhom['user_id'] != $user_id) {
echo '<br/><div class="tb">Không đủ quyền!</div>';
require('../incfiles/end.php');
exit;
}
echo '<div class="phdr"><b>Thay ảnh đại diện nhóm</b></div><div class="list1">';
if(isset($_POST['submit'])) {
$handle = new upload($_FILES['imagefile']);
if($handle->uploaded) {
$handle->file_new_name_body = $id;
//$handle->mime_check = false;
$handle->allowed = array('image/jpeg',
'image/gif',
'image/png');
$handle->file_max_size = 1024 * $set['flsz'];
$handle->file_overwrite = true;
$handle->image_resize = true;
$handle->image_x = 40;
$handle->image_y = 40;
$handle->image_convert ='png';
$handle->process('avatar/');
if ($handle->processed) {
echo '<divclass="tb">Thay thế ảnh đại diện thành công! <a href="page.php?id='.$id.'">Trở về nhóm >></a></div>';
} else {
echo functions::display_error($handle->error);
}
$handle->clean();
}
} else {
echo'<form method="post" enctype="multipart/form-data">Chọn ảnh:<br/><input type="file" name="imagefile" value=""/><input type="hidden" name="MAX_FILE_SIZE" value="'. (1024 * $set['flsz']) .'"/><br/><input type="submit" name="submit" value="Thay thế" /></div></form>';
}
echo '</div>';
require('../incfiles/end.php');
?>

Youez - 2016 - github.com/yon3zu
LinuXploit