[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: add_model.php
<?php include 'header.php';?> <style> .col-md-3,.col-md-4{ display:inline-block !important; } </style> <div class="main-panel"> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-title">Add Model</div> </div> <form method="post" id="exampleValidation" data-toggle="validator" enctype="multipart/form-data" > <div class="card-body"> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Name <span class="required-label">*</span></label> <div class="col-lg-3 col-md-3 col-sm-12"> <input type="text" name="name" class="form-control" placeholder="Name"> </div> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Age <span class="required-label">*</span></label> <div class="col-lg-3 col-md-3 col-sm-12"> <input type="text" name="age" class="form-control" placeholder="Age"> </div> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Height <span class="required-label">*</span></label> <div class="col-lg-3 col-md-3 col-sm-12"> <input type="text" name="height" class="form-control" placeholder="Height"> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Figure <span class="required-label">*</span></label> <div class="col-lg-3 col-md-3 col-sm-12"> <input type="text" name="title" class="form-control" placeholder="Figure "> </div> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Profession <span class="required-label">*</span></label> <div class="col-lg-3 col-md-3 col-sm-12"> <input type="text" name="title" class="form-control" placeholder="Profession"> </div> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Hair <span class="required-label">*</span></label> <div class="col-lg-3 col-md-3 col-sm-12"> <input type="text" name="hair" class="form-control" placeholder="Hair "> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Ethnicity<span class="required-label">*</span></label> <div class="col-lg-2 col-md-2 col-sm-12"> <input type="text" name="ethnicity" class="form-control" placeholder="Ethnicity"> </div> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Nationality <span class="required-label">*</span></label> <div class="col-lg-3 col-md-3 col-sm-12"> <input type="text" name="nationality" class="form-control" placeholder="Nationality"> </div> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Languages <span class="required-label">*</span></label> <div class="col-lg-4 col-md-4 col-sm-12"> <input type="text" name="languages" class="form-control" placeholder="Languages "> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Images<span class="required-label">*</span></label> <div class="col-lg-2 col-md-2 col-sm-12"> <input type="file" name="image1" placeholder="Image" required> </div> <div class="col-lg-2 col-md-2 col-sm-12"> <input type="file" name="image2" placeholder="Image" required> </div> <div class="col-lg-2 col-md-2 col-sm-12"> <input type="file" name="image3" placeholder="Image" required> </div> <div class="col-lg-2 col-md-2 col-sm-12"> <input type="file" name="image4" placeholder="Image" required> </div> </div> <div class="form-group form-show-validation row"> <div class="col-lg-2 col-md-2 col-sm-12"> <input type="file" name="image5" placeholder="Image" required> </div> <div class="col-lg-2 col-md-2 col-sm-12"> <input type="file" name="image6" placeholder="Image" required> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Timing<span class="required-label">*</span></label> <div class="col-lg-4 col-md-2 col-sm-12"> <input type="text" name="timing1" class="form-control" placeholder="Timing"> </div> <label for="name" class="col-lg-2 col-md-1 col-sm-4 mt-sm-2 ">Price<span class="required-label">*</span></label> <div class="col-lg-3 col-md-2 col-sm-12"> <input type="text" name="price1" class="form-control" placeholder="Out Call Price 1"> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Timing<span class="required-label">*</span></label> <div class="col-lg-4 col-md-2 col-sm-12"> <input type="text" name="timing2" class="form-control" placeholder="Timing"> </div> <label for="name" class="col-lg-2 col-md-1 col-sm-4 mt-sm-2 ">Price<span class="required-label">*</span></label> <div class="col-lg-3 col-md-2 col-sm-12"> <input type="text" name="price2" class="form-control" placeholder="Out Call Price 2"> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Timing<span class="required-label">*</span></label> <div class="col-lg-4 col-md-2 col-sm-12"> <input type="text" name="timing3" class="form-control" placeholder="Timing"> </div> <label for="name" class="col-lg-2 col-md-1 col-sm-4 mt-sm-2 ">Price<span class="required-label">*</span></label> <div class="col-lg-3 col-md-2 col-sm-12"> <input type="text" name="price3" class="form-control" placeholder="Out Call Price 3"> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 ">Service Description <span class="required-label">*</span></label> <div class="col-lg-12 col-md-12 col-sm-12"> <textarea name="description" class="form-control" rows="10"></textarea> </div> </div> <div class="card-action"> <div class="row"> <div class="col-md-12"> <input class="btn btn-success" type="submit" name="sub" value="Submit"> </div> </div> </div> </div> </form> <?php $uid=$show->getid('ids','MDL'); if(isset($_POST['sub'])){ if(file_exists($_FILES['image1']['tmp_name']) || is_uploaded_file($_FILES['image1']['tmp_name'])) { $img1=$show->imageEdit($_FILES['image1']['name']); move_uploaded_file($_FILES['image1']['tmp_name'],"../product_img/".$img1); } if(file_exists($_FILES['image2']['tmp_name']) || is_uploaded_file($_FILES['image2']['tmp_name'])) { $img2=$show->imageEdit($_FILES['image2']['name']); move_uploaded_file($_FILES['image2']['tmp_name'],"../product_img/".$img2); } if(file_exists($_FILES['image3']['tmp_name']) || is_uploaded_file($_FILES['image3']['tmp_name'])) { $img3=$show->imageEdit($_FILES['image3']['name']); move_uploaded_file($_FILES['image3']['tmp_name'],"../product_img/".$img3); } if(file_exists($_FILES['image4']['tmp_name']) || is_uploaded_file($_FILES['image4']['tmp_name'])) { $img4=$show->imageEdit($_FILES['image4']['name']); move_uploaded_file($_FILES['image4']['tmp_name'],"../product_img/".$img4); } if(file_exists($_FILES['image5']['tmp_name']) || is_uploaded_file($_FILES['image5']['tmp_name'])) { $img5=$show->imageEdit($_FILES['image5']['name']); move_uploaded_file($_FILES['image5']['tmp_name'],"../product_img/".$img5); } if(file_exists($_FILES['image6']['tmp_name']) || is_uploaded_file($_FILES['image6']['tmp_name'])) { $img6=$show->imageEdit($_FILES['image6']['name']); move_uploaded_file($_FILES['image6']['tmp_name'],"../product_img/".$img6); } $data = array( 'model_id' =>$uid, 'name' =>htmlspecialchars($_POST['name']), 'age' =>htmlspecialchars($_POST['age']), 'height' =>htmlspecialchars($_POST['height']), 'hair' =>htmlspecialchars($_POST['hair']), 'ethnicity' =>htmlspecialchars($_POST['ethnicity']), 'nationality' =>htmlspecialchars($_POST['nationality']), 'languages' =>htmlspecialchars($_POST['languages']), 'image1' =>$img1, 'image2' =>$img2, 'image3' =>$img3, 'image4' =>$img4, 'image5' =>$img5, 'image6' =>$img6, 'price1' =>htmlspecialchars($_POST['price1']), 'price2' =>htmlspecialchars($_POST['price2']), 'price3' =>htmlspecialchars($_POST['price3']), 'timing1' =>htmlspecialchars($_POST['timing1']), 'timing2' =>htmlspecialchars($_POST['timing2']), 'timing3' =>htmlspecialchars($_POST['timing3']), 'description' =>htmlspecialchars($_POST['description']), 'status'=>'ACTIVE' ); // print_r($data); if($show->insert('model',$data)){ echo '<script> setTimeout(function() { swal({ title: "Thank You !", text: "Your model has been submitted.", type: "success" }, function() { window.location = "'.$_SERVER['REQUEST_URI'].'"; }); }, 1000); </script>'; //echo "<script>swal('Thank you for Registration.');window.location.href='".$_SERVER['request_uri']."';</script>"; } } ?> </div> </div> </div> </div> </div> <?php include 'footer.php'; ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 692.36 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619