Server: | Microsoft-IIS/10.0 |
System: | Windows NT BH-PLESK-WEB3 10.0 build 20348 (Windows Server 2022) AMD64 |
User: | IWPD_8556(lensai) ( 0 ) |
PHP Version: | 8.3.21 |
Python Version: | Python is not available |
Disabled Functions: | , Cron, Curl, Ftp, GCC, Mail, Mysql, PKEXEC, Perl, Python, SendMail, Ssh, Wget, exec, passthru, shell_exec, system |
<?php session_start(); $id=$_SESSION['id']; include_once('config.php'); if(isset($_POST['compose'])) { $user_id=$_POST['user_id']; $user_name=$_POST['username']; $subject=$_POST['subject']; $message=$_POST['message']; $j = 0; //Variable for indexing uploaded image $target_path1 = "upload/"; //Declaring Path for uploaded images for ($i = 0; $i < count($_FILES['file']['name']); $i++) {//loop to get individual element from the array $validextensions = array("jpeg", "jpg", "png","zip","pdf","doc","gif","sql","txt"); //Extensions which are allowed $ext = explode('.', basename($_FILES['file']['name'][$i]));//explode file name from dot(.) $file=$_FILES['file']['name'][$i]; $file_extension = end($ext); //store extensions in the variable $target_path = $target_path1.$file;//set the target path with a new name of image $j = $j + 1;//increment the number of uploaded images according to the files in array move_uploaded_file($_FILES['file']['tmp_name'][$i],$target_path);//if file moved to uploads folder } $file=implode(",",$_FILES['file']['name']); $insert="insert into mailbox (user_id,subject,message,file,create_by_id)values('$user_id','$subject','$message','$file','$id')"; $exe=mysql_query($insert); header('location:index.php?p=compose'); } ?>
Name | Size | Type | Permissions | Options |
---|---|---|---|---|
bootstrap | DIR | Directory | drwxrwxrwx | |
build | DIR | Directory | drwxrwxrwx | |
css | DIR | Directory | drwxrwxrwx | |
dist | DIR | Directory | drwxrwxrwx | |
images | DIR | Directory | drwxrwxrwx | |
DIR | Directory | drwxrwxrwx | ||
mailbox | DIR | Directory | drwxrwxrwx | |
plugins | DIR | Directory | drwxrwxrwx | |
sliders | DIR | Directory | drwxrwxrwx | |
.htaccess | 0.118 KB | File | -rw-rw-rw- | |
add_blog.php | 2.889 KB | File | -rw-rw-rw- | |
add_brochures.php | 3.218 KB | File | -rw-rw-rw- | |
add_papers.php | 2.231 KB | File | -rw-rw-rw- | |
add_product.php | 3.519 KB | File | -rw-rw-rw- | |
add_product_attach.php | 1.443 KB | File | -rw-rw-rw- | |
add_slide.php | 2.555 KB | File | -rw-rw-rw- | |
add_specification.php | 3.123 KB | File | -rw-rw-rw- | |
add_user.php | 7.685 KB | File | -rw-rw-rw- | |
add_video.php | 1.582 KB | File | -rw-rw-rw- | |
ajax.php | 1.183 KB | File | -rw-rw-rw- | |
attachment.php | 4.931 KB | File | -rw-rw-rw- | |
blog.php | 4.760 KB | File | -rw-rw-rw- | |
brochures.php | 4.405 KB | File | -rw-rw-rw- | |
change_pass_control.php | 0.946 KB | File | -rw-rw-rw- | |
change_password.php | 1.690 KB | File | -rw-rw-rw- | |
changelog | 2.168 KB | File | -rw-rw-rw- | |
compose.php | 4.953 KB | File | -rw-rw-rw- | |
concentrated.php | 5.195 KB | File | -rw-rw-rw- | |
config.php | 0.233 KB | File | -rw-rw-rw- | |
controller.php | 17.718 KB | File | -rw-rw-rw- | |
counter.txt | 0.003 KB | File | -rw-rw-rw- | |
dashboard.php | 10.186 KB | File | -rw-rw-rw- | |
delete_process.php | 0.012 KB | File | -rw-rw-rw- | |
demo.php | 0.083 KB | File | -rw-rw-rw- | |
edit_blog.php | 2.999 KB | File | -rw-rw-rw- | |
edit_product.php | 4.765 KB | File | -rw-rw-rw- | |
edit_specification.php | 2.999 KB | File | -rw-rw-rw- | |
error_log | 288.954 KB | File | -rw-rw-rw- | |
forgot.php | 2.757 KB | File | -rw-rw-rw- | |
img.php | 0.359 KB | File | -rw-rw-rw- | |
index.php | 11.069 KB | File | -rw-rw-rw- | |
login.php | 0.582 KB | File | -rw-rw-rw- | |
login_control.php | 0.716 KB | File | -rw-rw-rw- | |
logout.php | 0.099 KB | File | -rw-rw-rw- | |
mail.php | 0.508 KB | File | -rw-rw-rw- | |
mail_controller.php | 1.324 KB | File | -rw-rw-rw- | |
papers.php | 4.332 KB | File | -rw-rw-rw- | |
Product.php | 4.522 KB | File | -rw-rw-rw- | |
read_mai.php | 18.012 KB | File | -rw-rw-rw- | |
register.php | 4.011 KB | File | -rw-rw-rw- | |
sent.php | 9.575 KB | File | -rw-rw-rw- | |
slider.php | 6.859 KB | File | -rw-rw-rw- | |
sliderupdate.php | 3.239 KB | File | -rw-rw-rw- | |
specification.php | 3.194 KB | File | -rw-rw-rw- | |
subscriber_list.php | 7.287 KB | File | -rw-rw-rw- | |
test.html | 0.006 KB | File | -rw-rw-rw- | |
update.php | 0.920 KB | File | -rw-rw-rw- | |
video.php | 4.870 KB | File | -rw-rw-rw- | |
viewproduct.php | 0.135 KB | File | -rw-rw-rw- | |
visotor_counter.php | 0.009 KB | File | -rw-rw-rw- |