| Server IP : 172.67.187.206 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/triamudom/check/volunteer/ |
Upload File : |
<?php
@session_start();
$path = "../";
include ($path.'include/config_db.php');
include ($path.'include/class_db.php');
include ($path.'include/class_display.php');
include ($path.'include/function.php');
$CLASS['db'] = new db();
$CLASS['db']->connect ();
$CLASS['disp'] = new display();
$db = $CLASS['db'];
$disp = $CLASS['disp'];
$date_day = date("Y-m-d").' '.date("H:i:s");
$tb_volunteer_log_date = $_REQUEST['tb_volunteer_log_date'];
$tb_volunteer_log_detail = $_REQUEST['tb_volunteer_log_detail'];
$tb_volunteer_log_picture = $_FILES['tb_volunteer_log_picture'];
$tb_volunteer_log_picture_me = $_REQUEST['tb_volunteer_log_picture_me'];
$tb_register_knowledge_id = $_REQUEST['tb_register_knowledge_id'];
if($tb_volunteer_log_picture){
$namefile = copyobject($tb_volunteer_log_picture[size], $tb_volunteer_log_picture[name], $tb_volunteer_log_picture[tmp_name], "file_work_", "file_work/", "$tb_volunteer_log_picture_me", "");
}else{
$namefile = $tb_volunteer_log_picture_me;
}
$query_insertwork = $db->query("INSERT INTO tb_volunteer_logs
(tb_volunteer_log_id,
tb_volunteer_log_date,
tb_room_id,
tb_volunteer_log_detail,
tb_volunteer_log_picture,
tb_student_id,
tb_volunteer_log_dateinsert)
VALUES (NULL,
'".$tb_volunteer_log_date."',
'".$_SESSION['sessionuser_degree']."',
'".$tb_volunteer_log_detail."',
'".$namefile."',
'".$_SESSION['sessionuser_id']."',
'".$date_day."')");
print "
<script language='javascript'>
window.location.href='display_regis_logwork.php';
</script>
";
?>