[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: portfolio.php
<?php include('header.php'); ?> <div id="page-wrapper"> <div class="row"> <div id="col-md-12"> <section class="panel"> <header class="panel-heading"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> Create Portfolio </header> <div class="panel-body" style="d"> <form class="form-horizontal" name="form" id="form" method="post" enctype="multipart/form-data" onSubmit="return Upload();"> <div class="form-group"> <label for="selector1" class="col-sm-3 control-label">Select <font color="#FF0000">WEB</font> Type</label> <div class="col-sm-8"><select name="web_type" id="selector1" class="form-control1" required> <option value="">Choose an option</option> <option value="basic">Basic</option> <option value="php">php</option> <option value="wordpress">WordPress</option> <option value="design">Design</option> <option value="ecommerce">Ecommerce</option> </select></div> </div> <div class="form-group"> <label for="focusedinput" class="col-sm-3 control-label">Input <font color="#FF0000">WEB</font> Name</label> <div class="col-sm-8"> <input type="text" name="web_name" class="form-control1" id="focusedinput" pattern="^[a-zA-Z\s.]{3,}$" oninvalid="setCustomValidity('Please enter Valid Name')" onchange="try{setCustomValidity('')}catch(e){}" required/> </div> </div> <div class="form-group"> <label for="focusedinput" class="col-sm-3 control-label">Input <font color="#FF0000">WEB</font> URL</label> <div class="col-sm-8"> <input type="text" name="web_url" class="form-control1" id="focusedinput" /> </div> </div> <div class="form-group"> <label for="exampleInputFile" class="col-sm-3 control-label">File Input</label> <div class="col-sm-8"> <input type="file" name="myfile" id="exampleInputFile" accept="image/JPEG, image/jpeg, image/png" required> </div> </div> <div class="row"> <div class="col-sm-8 col-sm-offset-9"> <input type="submit" name="submit" value="Submit" id="submit" class="btn-success btn"/> </div> </div> </form> <?php if(isset($_POST['submit'])) { $img=$show->imageEdit($_FILES[myfile]['name']); move_uploaded_file($_FILES['myfile']['tmp_name'],"../assets/img/".$img); $data=array( 'web_type'=>htmlentities(strip_tags($_POST['web_type'])), 'web_name'=>htmlentities(strip_tags($_POST['web_name'])), 'web_url'=>htmlentities(strip_tags($_POST['web_url'])), 'screen_shot'=>$img, 'date'=>date('Y-m-d'), ); $r1=$show->insert('portfolio',$data); if($r1){ echo "<script> sweetAlert('Good Job', 'Portfolio Inserted', 'success');</script>"; echo"<script>window.location.href='portfolio.php';</script>"; } } ?> </div><!--panel body--> </section> </div> </div> </div> <!--footer--> <?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: 678.1 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