OverLord Shell

Path : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/
File Upload :
Current File : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/jobadd_save.php

<?php
error_reporting(0);
session_start();
include("db/conn.php");
//var_dump($_SESSION);exit;
if(!isset($_SESSION['company_id'])){session_destroy();echo "login.php";exit;}
if(!in_array($_SESSION['loggedin_user'],array('admin','company'))){echo "404.php";exit;}
if($_SERVER['REQUEST_METHOD']!='POST' || empty($_POST)){echo "404.php";exit;}

$company_name=$_POST['company_name'];


    $string = htmlentities(trim($_POST['job_description']),ENT_QUOTES);
   
    $patterns = array();
    $patterns[0] = '/([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)/';
    $patterns[1] = '/([0-9]+[\- ]?[0-9]{9}+)/';
	$patterns[2] = '/([0-9]{2,}-[0-9]{0,}-[0-9]{0,})/';
	$patterns[3] =  "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/";
	
    $replacements = array();
    $replacements[0] = '';
    $replacements[1] = '';
	$replacements[2] = '';
	$replacements[3] = '';

    //should use just one call of preg_replace for perfomance issues
    $string = preg_replace($patterns, $replacements, $string);

$data = array(
		'job_title' => $_POST['job_title'],
		'company_id' => $_SESSION['company_id'],
		'my_company_id' => $_POST['my_company_id'],
		'job_location' => $_POST['job_location'],
		'no_of_position' => $_POST['no_of_position'],
        'ctc' => $_POST['ctc'],
		'workexp' => $_POST['workexp'],
		'education' => $_POST['education'],
		'job_description' =>$string,
		'jobcategory' => $_POST['jobcategory'],
		'active'=>y,
		'posted_on' => date('Y-m-d H:i:s'),
		'createdby' => $_SESSION['company_id'],
		'createdon' => date('Y-m-d H:i:s')
	);
	//print_r($data);exit;
	$insertresult = dbRowInsert('busdir_mst_companyjob', $data);

	$insertresultarr = explode("-",$insertresult);
	
	echo $insertresultarr[0];
?>

xRyukZ - Copyright 2k19