Server IP : 202.29.229.35 / Your IP : 18.225.92.18 Web Server : Apache System : Linux aapanel2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : www ( 1001) PHP Version : 5.5.38 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.ivecr2.ac.th/system_admin/ |
Upload File : |
<?php session_start(); if($_SESSION['r_statuslogin'] != 1){ echo '<script language="javascript">alert("สำหรับผู้ดูแลระบบเท่านั้น")</script>'; echo'<meta http-equiv="refresh" content="0;url=../index.php">'; exit(); } ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php $ad_ID=$_SESSION['r_workId'];//รหัสผุ้ที่เข้าใช้งานระบบและผู้บันทึกข้อมูล $mid=$_GET['mID']; //$nid='2'; //echo "===++".$nid; $date=date("Y:m:d"); $time=date("h:i:s"); if(isset($_FILES['upfile']['name'])){//ตรวจสอบว่าเป็นค่าว่างหรือไม่ ถ้าหากไม่ว่าง $count=count($_FILES['upfile']['name']);//นับค่าว่าส่งมากี่ค่า จะกเก็บชือรูป for($i=0; $i<$count; $i++){ $tmp=$_FILES['upfile']['tmp_name'][$i]; //$name=$mid."_".$_FILES['upfile']['name'][$i]; $extpic=strtolower(end(explode(".",$_FILES['upfile']['name'][$i]))); $date=date('Ymd-his')."_".rand(1,9999); $name=$mid."_".$date."_".$i.".".$extpic; //echo ">>>".$name; move_uploaded_file($tmp,'pic_meeting/'.$name);//copy file รูปไปไว้ใน img } } //---------เก็บ log------------- $sqllog="insert into tbl_logfilemeeting values (null,'$ad_ID','3','$mid','$date','$time') "; $resultlog=mysql_query($sqllog,$connect1); echo "<script language='javascript'>alert('บันทึกรูปโครงการเพิ่มเติ่มเรียบร้อยแล้ว')</script>"; echo '<meta http-equiv="refresh" content="0;url=index.php?i=showmting_all&&mID='.$mid.'">'; exit(); ?>