shell bypass 403
<?php
$con=mysqli_connect("localhost","az2015_automate","az2015_automate","az2015_automate") or die('Connection Failed');
define('MAINDATABASE','az2015_automate');
define("TITLE", "Automation Zone");
define('DBPREFIX','');
$Msg="";
date_default_timezone_set("Asia/Singapore");
function gettodate()
{
date_default_timezone_set('Asia/Singapore');
return date('Y-m-d');
}
function gettodatetime()
{
date_default_timezone_set('Asia/Singapore');
return date('Y-m-d H:i:s');
}
function alert_msg($msg)
{
echo "<script>alert('".
$msg
."');
</script>";
}
function isImage($ImageType)
{
if($ImageType=="image/png" ||
$ImageType=="image/jpg" ||
$ImageType=="image/JPG" ||
$ImageType=="image/JPEG" ||
$ImageType=="image/jpeg" ||
$ImageType=="image/PNG" ||
$ImageType=="image/GIF" ||
$ImageType=="image/gif" ||
$ImageType=="image/bmp" )
{
return true;
}
else
{
return false;
}
}
function isPdf($pdftype)
{
if($pdftype == "application/pdf")
{
return true;
}
else
{
return false;
}
}
function showSuccessAlert($data,$con){
$Msg='<div class="alert alert-success errAlert_admin navbar-fixed-top" id="Msg">'.$data.'</div>';
return $Msg;
}
function showErrorAlert($data,$con){
$Msg='<div class="alert alert-danger errAlert_admin navbar-fixed-top" id="Msg">'.$data.'</div>';
return $Msg;
}
function countSlider($con){
$chk_count_sql="SELECT COUNT(*) AS row_count FROM home_slider";
$chk_count_exe=mysqli_query($con,$chk_count_sql);
$chk_count_result=mysqli_fetch_array($chk_count_exe);
if($chk_count_result["row_count"] >= "6"){
return true;
}
else{
return false;
}
}
function countImage($art_id,$con){
$chk_imgCount_sql="SELECT COUNT(*) AS img_row_count FROM article_more_images WHERE art_img_id='".$art_id."'";
$chk_imgCount_exe=mysqli_query($con,$chk_imgCount_sql);
$chk_imgCount_result=mysqli_fetch_array($chk_imgCount_exe);
if($chk_imgCount_result["img_row_count"] >= "7"){
return true;
}
else{
return false;
}
}
function imgresize($readpath, $imagename, $destinationpath, $imgwidth, $imgheight) {
$mimage = new SimpleImage();
$mimage->load($readpath.$imagename);
$mimage->resize($imgwidth,$imgheight);
$mimage->save($destinationpath.$imagename);
return 'success';
}
function url(){
return sprintf(
"%s://%s%s",
isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http',
$_SERVER['HTTP_HOST'],
$_SERVER['REQUEST_URI']
);
}
function pathurl(){
$pathInfo = pathinfo(url());
//echo $_SERVER["SCRIPT_FILENAME"];
//echo $pathInfo['dirname'];
return $pathInfo['dirname'];
}
?>