Server IP : 119.59.102.212 / Your IP : 3.141.244.88 Web Server : Apache/2 System : Linux narin 2.6.32-042stab142.1 #1 SMP Tue Jan 28 23:44:17 MSK 2020 x86_64 User : yangkam ( 1022) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/yangkam/domains/yangkam.go.th/public_html/coremain/module/load/ |
Upload File : |
<?php // Status Package Module $status_module=select_query("status_module","cms_status_module","id","28"); if($status_module[0]!=1) { fieldset_no_module(); } if(id_sub_permission(7)!=1){ permission_fail(); } $navig['download']="ดาวน์โหลด"; $navig['adddownload_form_topic']="เพิ่มข้อมูล"; navigator($navig); echo"<br>"; bar_header("ดาวน์โหลด"); // Bar_Header fieldset_top("ดาวน์โหลด"); import_request_variables('pG', 'p_'); if($p_add!="") { $add=trim($p_add); } if($p_name_group!="") { $name_group=trim($p_name_group); } // add topic download if($add=="1" and $name_group!="") { $sql = "INSERT INTO `cms_download_group` ( `id_group` , `name_group` , `status` ) VALUES (NULL, '$name_group', '1')"; $result = mysql_query($sql) or die(mysql_error()); echo"<br><br><center>ข้อมูลได้ถูกเพิ่มแล้ว</enter><br><br>"; echo "<meta http-equiv='refresh' content='2; url=index.php?mod=download&path=download'>" ; // include('coremain/footer.php'); exit; } ?> <br> <table width="500" border="0" align="center" cellpadding="1" cellspacing="3"> <form name="add" action="index.php?mod=adddownload_form_topic&add=1&path=download" method="post" onSubmit="return checkadd()"> <tr> <td width=5%></td> <td width=25%><div align="left"><img src='coremain/images/marker.gif'> <b>หัวข้อดาวน์โหลด</b></div></td> <td width=65%><div align="left"><input name="name_group" type="text" size="40"></td> </tr> <tr height="45"> <td width=5%></td> <td width=15%></td> <td width=80%><div align="left"> <input type="submit" name="Submit" value="เพิ่มข้อมูล" onmouseover=this.style.cursor='hand'> </td> </tr> </form> </table> <?php fieldset_down();?> <script language="javascript"> function checkadd() { if(document.add.name_group.value=="") { alert("กรุณาป้อนหัวข้อดาวน์โหลด!") ; document.add.name_group.focus() ; return false ; } else return true ; } </script>