<?php
require_once 'admin-pannel/config/core.php';
// Create a new mysqli connection
$conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
// Check the connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Fetch favicon, company logo, and company copyright from site_settings table
$favicon_url = ""; // Default value
$logoUrl = ""; // Default value
$companyCopyright = ""; // Default value
$sql = "SELECT favicon, company_logo, company_copyright FROM site_settings LIMIT 1";
$result = $conn->query($sql);
if ($result && $result->num_rows > 0) {
$row = $result->fetch_assoc();
$favicon_url = $row['favicon'];
$logoUrl = $row['company_logo'];
$companyCopyright = $row['company_copyright'];
}
// Fetch metatitle, metadescription, metakeyword
$sql = "SELECT title, meta_description, meta_keyword FROM webpages WHERE webpage_name = ?";
$stmt = $conn->prepare($sql);
$webpage_name = "about"; // Replace "index" with the actual webpage name
$stmt->bind_param("s", $webpage_name);
$stmt->execute();
$stmt->bind_result($title, $meta_description, $meta_keyword);
$stmt->fetch();
$stmt->close();
// Fetch content from the `about_us` table
$sql = "SELECT * FROM about_us LIMIT 1"; // Adjust this query as needed
$result = $conn->query($sql);
$content = '';
if ($result && $result->num_rows > 0) {
$row = $result->fetch_assoc();
$content = $row['content']; // Assuming 'content' is the column that holds the HTML content
}
// Fetch analytics_script from google_analytics table
$analytics_script = 'No analytics script found.';
$sql = "SELECT analytics_script FROM google_analytics";
$result = $conn->query($sql);
if ($result && $result->num_rows > 0) {
$row = $result->fetch_assoc();
$analytics_script = $row['analytics_script'];
}
// Fetch data from social media
$sql = "SELECT * FROM social_media";
$result = $conn->query($sql);
// Initialize an empty array to store social media data
$socials = [];
// Check if the query was successful
if ($result && $result->num_rows > 0) {
// Fetch associative array
while ($row = $result->fetch_assoc()) {
$socials[] = $row;
}
}
// Fetch google_adsense script
$sql = "SELECT script, script_1 FROM google_adsense ORDER BY id DESC LIMIT 1";
$result = $conn->query($sql);
$script = '';
$script_1 = '';
if ($result && $result->num_rows > 0) {
$row = $result->fetch_assoc();
$script = $row['script'];
$script_1 = $row['script_1'];
}
$conn->close();
?>
<!DOCTYPE html>
<html>
<head>
<!-- Character set configuration -->
<meta charset="UTF-8" />
<title><?php echo htmlspecialchars($title); ?></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link id="image_2" rel="icon" type="image/x-icon" href="admin-pannel/<?php echo htmlspecialchars($favicon_url); ?>">
<meta name="robots" content="index, follow" />
<meta name="description" content="<?php echo htmlspecialchars($meta_description); ?>">
<meta name="keywords" content="<?php echo htmlspecialchars($meta_keyword); ?>">
<!-- Viewport configuration, scaling options -->
<meta name="viewport" content="width=device-width, initial-scale=1,
maximum-scale=1" />
<!-- bootstrap.min.css CSS Stylesheet -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<!-- custom.css CSS Stylesheet -->
<link href="assets/css/custom.css" rel="stylesheet" />
<!-- Font Awesome css -->
<link href="assets/fontawesome/css/fontawesome.css" rel="stylesheet"/>
<!-- Google font css -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- analytics_script Begin -->
<?php echo $analytics_script ?>
<!-- analytics_script End -->
</head>
<body>
<!--Navbar Begin-->
<nav class="navbar navbar-expand-lg bg-dark border-bottom">
<div class="container">
<a class="navbar-brand" href="index.php"><img src="admin-pannel/<?php echo htmlspecialchars($logoUrl); ?>"
class="img-fluid"></a>
<button class="navbar-toggler" type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mx-auto">
<li class="nav-item">
<a class="nav-link" href="upload.php">Background Remove</a>
</li>
<li class="nav-item">
<a class="nav-link" href="template-design.php">Pre Designed Templates</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about-us.php">About us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact-us.php">Contact us</a>
</li>
</ul>
<form class="d-flex" role="search">
<a class="btn btn-primary" href="./admin-pannel/login.php">Admin Panel</a>
</form>
</div>
</div>
</nav>
<!--Navbar End-->
<!--Shape Section Begin-->
<section class="bs-dark-400 shapes">
<div class="container">
<div class="row py-5 g-3">
<div class="col-md-12">
<h1 class="text-white display-6 fw-bold">About us</h1>
</div>
</div>
</div>
</section>
<!--Shape Section End-->
<!--About us Content Begin-->
<section class="bg-light ptb-100">
<div class="container">
<div class="row">
<?php echo !empty($content) ? $content : 'No content found.'; ?>
</div>
</div>
</section>
<!--About us Content End-->
<!--Login Begin-->
<section class="ptb-100 position-relative">
<!--svg Decoration Begin-->
<figure class="position-absolute top-50 start-0 translate-middle-y
ms-n7 d-none d-xl-block">
<svg class="rotate-74 fill-primary opacity-1">
<circle cx="180.4" cy="15.5" r="7.7"></circle>
<path d="m159.9 22.4c-3.8 0-6.9-3.1-6.9-6.9s3.1-6.9 6.9-6.9 6.9
3.1 6.9 6.9-3.1 6.9-6.9 6.9z"></path>
<ellipse transform="matrix(.3862 -.9224 .9224 .3862 71.25
138.08)" cx="139.4" cy="15.5" rx="6.1" ry="6.1"></ellipse>
<circle cx="118.9" cy="15.5" r="5.4"></circle>
<path d="m98.4 20.1c-2.5 0-4.6-2.1-4.6-4.6s2.1-4.6 4.6-4.6 4.6
2.1 4.6 4.6-2.1 4.6-4.6 4.6z"></path>
<path d="m77.9 19.3c-2.1 0-3.8-1.7-3.8-3.8s1.7-3.8 3.8-3.8 3.8
1.7 3.8 3.8-1.7 3.8-3.8 3.8z"></path>
<path d="m57.3 18.6c-1.7 0-3.1-1.4-3.1-3.1s1.4-3.1 3.1-3.1 3.1
1.4 3.1 3.1-1.4 3.1-3.1 3.1z"></path>
<path d="m36.8 17.8c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3
2.3-1 2.3-2.3 2.3z"></path>
<circle cx="16.3" cy="15.5" r="1.6"></circle>
<circle cx="180.4" cy="38.5" r="7.7"></circle>
<path d="m159.9 45.3c-3.8 0-6.9-3.1-6.9-6.9s3.1-6.9 6.9-6.9 6.9
3.1 6.9 6.9-3.1 6.9-6.9 6.9z"></path>
<ellipse transform="matrix(.8486 -.5291 .5291 .8486 .7599
79.566)" cx="139.4" cy="38.5" rx="6.1" ry="6.1"></ellipse>
<circle cx="118.9" cy="38.5" r="5.4"></circle>
<path d="m98.4 43.1c-2.5 0-4.6-2.1-4.6-4.6s2.1-4.6 4.6-4.6 4.6
2.1 4.6 4.6-2.1 4.6-4.6 4.6z"></path>
<circle cx="77.9" cy="38.5" r="3.8"></circle>
<path d="m57.3 41.5c-1.7 0-3.1-1.4-3.1-3.1s1.4-3.1 3.1-3.1 3.1
1.4 3.1 3.1c0 1.8-1.4 3.1-3.1 3.1z"></path>
<path d="m36.8 40.8c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3
2.3-1 2.3-2.3 2.3z"></path>
<circle cx="16.3" cy="38.5" r="1.6"></circle>
<circle cx="180.4" cy="61.4" r="7.7"></circle>
<path d="m159.9 68.3c-3.8 0-6.9-3.1-6.9-6.9s3.1-6.9 6.9-6.9 6.9
3.1 6.9 6.9-3.1 6.9-6.9 6.9z"></path>
<ellipse transform="matrix(.3862 -.9224 .9224 .3862 28.902
166.26)" cx="139.4" cy="61.4" rx="6.1" ry="6.1"></ellipse>
<circle cx="118.9" cy="61.4" r="5.4"></circle>
<path d="m98.4 66c-2.5 0-4.6-2.1-4.6-4.6s2.1-4.6 4.6-4.6 4.6 2.1
4.6 4.6c0 2.6-2.1 4.6-4.6 4.6z"></path>
<path d="m77.9 65.2c-2.1 0-3.8-1.7-3.8-3.8s1.7-3.8 3.8-3.8 3.8
1.7 3.8 3.8-1.7 3.8-3.8 3.8z"></path>
<path d="m57.3 64.5c-1.7 0-3.1-1.4-3.1-3.1s1.4-3.1 3.1-3.1 3.1
1.4 3.1 3.1-1.4 3.1-3.1 3.1z"></path>
<path d="m36.8 63.7c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3
2.3-1 2.3-2.3 2.3z"></path>
<circle cx="16.3" cy="61.4" r="1.6"></circle>
<circle cx="180.4" cy="84.4" r="7.7"></circle>
<path d="m159.9 91.3c-3.8 0-6.9-3.1-6.9-6.9s3.1-6.9 6.9-6.9 6.9
3.1 6.9 6.9-3.1 6.9-6.9 6.9z"></path>
<path d="m139.4 90.5c-3.4 0-6.1-2.7-6.1-6.1s2.7-6.1 6.1-6.1 6.1
2.7 6.1 6.1c0 3.3-2.7 6.1-6.1 6.1z"></path>
<circle cx="118.9" cy="84.4" r="5.4"></circle>
<path d="m98.4 89c-2.5 0-4.6-2.1-4.6-4.6s2.1-4.6 4.6-4.6 4.6 2.1
4.6 4.6-2.1 4.6-4.6 4.6z"></path>
<path d="m77.9 88.2c-2.1 0-3.8-1.7-3.8-3.8s1.7-3.8 3.8-3.8 3.8
1.7 3.8 3.8-1.7 3.8-3.8 3.8z"></path>
<path d="m57.3 87.4c-1.7 0-3.1-1.4-3.1-3.1s1.4-3.1 3.1-3.1 3.1
1.4 3.1 3.1c0 1.8-1.4 3.1-3.1 3.1z"></path>
<path d="m36.8 86.7c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3
2.3-1 2.3-2.3 2.3z"></path>
<circle cx="16.3" cy="84.4" r="1.6"></circle>
<circle cx="180.4" cy="107.3" r="7.7"></circle>
<path d="m159.9 114.2c-3.8 0-6.9-3.1-6.9-6.9s3.1-6.9 6.9-6.9 6.9
3.1 6.9 6.9-3.1 6.9-6.9 6.9z"></path>
<path d="m139.4 113.4c-3.4 0-6.1-2.7-6.1-6.1s2.7-6.1 6.1-6.1 6.1
2.7 6.1 6.1-2.7 6.1-6.1 6.1z"></path>
<circle cx="118.9" cy="107.3" r="5.4"></circle>
<path d="m98.4 111.9c-2.5 0-4.6-2.1-4.6-4.6s2.1-4.6 4.6-4.6 4.6
2.1 4.6 4.6c0 2.6-2.1 4.6-4.6 4.6z"></path>
<path d="m77.9 111.2c-2.1 0-3.8-1.7-3.8-3.8s1.7-3.8 3.8-3.8 3.8
1.7 3.8 3.8-1.7 3.8-3.8 3.8z"></path>
<path d="m57.3 110.4c-1.7 0-3.1-1.4-3.1-3.1s1.4-3.1 3.1-3.1 3.1
1.4 3.1 3.1-1.4 3.1-3.1 3.1z"></path>
<path d="m36.8 109.6c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3
2.3c0.1 1.3-1 2.3-2.3 2.3z"></path>
<circle cx="16.3" cy="107.3" r="1.6"></circle>
<circle cx="180.4" cy="130.3" r="7.7"></circle>
<path d="m159.9 137.2c-3.8 0-6.9-3.1-6.9-6.9s3.1-6.9 6.9-6.9 6.9
3.1 6.9 6.9-3.1 6.9-6.9 6.9z"></path>
<ellipse transform="matrix(.3862 -.9224 .9224 .3862 -34.62
208.52)" cx="139.4" cy="130.3" rx="6.1" ry="6.1"></ellipse>
<circle cx="118.9" cy="130.3" r="5.4"></circle>
<path d="m98.4 134.9c-2.5 0-4.6-2.1-4.6-4.6s2.1-4.6 4.6-4.6 4.6
2.1 4.6 4.6-2.1 4.6-4.6 4.6z"></path>
<path d="m77.9 134.1c-2.1 0-3.8-1.7-3.8-3.8s1.7-3.8 3.8-3.8 3.8
1.7 3.8 3.8-1.7 3.8-3.8 3.8z"></path>
<path d="m57.3 133.4c-1.7 0-3.1-1.4-3.1-3.1s1.4-3.1 3.1-3.1 3.1
1.4 3.1 3.1-1.4 3.1-3.1 3.1z"></path>
<path d="m36.8 132.6c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3
2.3-1 2.3-2.3 2.3z"></path>
<circle cx="16.3" cy="130.3" r="1.6"></circle>
<circle cx="180.4" cy="153.2" r="7.7"></circle>
<path d="m159.9 160.1c-3.8 0-6.9-3.1-6.9-6.9s3.1-6.9 6.9-6.9 6.9
3.1 6.9 6.9-3.1 6.9-6.9 6.9z"></path>
<ellipse transform="matrix(.3862 -.9224 .9224 .3862 -55.794
222.61)" cx="139.4" cy="153.2" rx="6.1" ry="6.1"></ellipse>
<circle cx="118.9" cy="153.2" r="5.4"></circle>
<path d="m98.4 157.8c-2.5 0-4.6-2.1-4.6-4.6s2.1-4.6 4.6-4.6 4.6
2.1 4.6 4.6c0 2.6-2.1 4.6-4.6 4.6z"></path>
<circle cx="77.9" cy="153.2" r="3.8"></circle>
<path d="m57.3 156.3c-1.7 0-3.1-1.4-3.1-3.1s1.4-3.1 3.1-3.1 3.1
1.4 3.1 3.1-1.4 3.1-3.1 3.1z"></path>
<path d="m36.8 155.5c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3
2.3-1 2.3-2.3 2.3z"></path>
<circle cx="16.3" cy="153.2" r="1.6"></circle>
<circle cx="180.4" cy="176.2" r="7.7"></circle>
<path d="m159.9 183.1c-3.8 0-6.9-3.1-6.9-6.9s3.1-6.9 6.9-6.9 6.9
3.1 6.9 6.9-3.1 6.9-6.9 6.9z"></path>
<ellipse transform="matrix(.3862 -.9224 .9224 .3862 -76.968
236.7)" cx="139.4" cy="176.2" rx="6.1" ry="6.1"></ellipse>
<circle cx="118.9" cy="176.2" r="5.4"></circle>
<path d="m98.4 180.8c-2.5 0-4.6-2.1-4.6-4.6s2.1-4.6 4.6-4.6 4.6
2.1 4.6 4.6-2.1 4.6-4.6 4.6z"></path>
<path d="m77.9 180c-2.1 0-3.8-1.7-3.8-3.8s1.7-3.8 3.8-3.8 3.8 1.7
3.8 3.8-1.7 3.8-3.8 3.8z"></path>
<path d="m57.3 179.3c-1.7 0-3.1-1.4-3.1-3.1s1.4-3.1 3.1-3.1 3.1
1.4 3.1 3.1-1.4 3.1-3.1 3.1z"></path>
<path d="m36.8 178.5c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3
2.3-1 2.3-2.3 2.3z"></path>
<circle cx="16.3" cy="176.2" r="1.6"></circle>
</svg>
</figure>
<!--svg Decoration End-->
<!--container Begin-->
<div class="container position-relative">
<!-- SVG decoration Begin-->
<figure class="position-absolute top-50 start-50 translate-middle ms-2">
<svg>
<path class="fill-primary opacity-4" d="m496 22.999c0 10.493-8.506 18.999-18.999 18.999s-19-8.506-19-18.999 8.507-18.999 19-18.999 18.999 8.506 18.999 18.999z"></path>
<path class="fill-primary opacity-4" d="m775 102.5c0 5.799-4.701 10.5-10.5 10.5-5.798 0-10.499-4.701-10.499-10.5 0-5.798 4.701-10.499 10.499-10.499 5.799 0 10.5 4.701 10.5 10.499z"></path>
<path class="fill-primary opacity-4" d="m192 102c0 6.626-5.373 11.999-12 11.999s-11.999-5.373-11.999-11.999c0-6.628 5.372-12 11.999-12s12 5.372 12 12z"></path>
<path class="fill-primary opacity-4" d="m20.499 10.25c0 5.66-4.589 10.249-10.25 10.249-5.66 0-10.249-4.589-10.249-10.249-0-5.661 4.589-10.25 10.249-10.25 5.661-0 10.25 4.589 10.25 10.25z"></path>
</svg>
</figure>
<!-- SVG decoration End-->
<div class="row">
<div class="col-12">
<!-- SVG decoration Begin-->
<figure class="position-absolute top-0 start-0 pt-5 ms-5">
<svg class="fill-primary opacity-4" width="29px" height="29px">
<path d="M29.004,14.502 C29.004,22.512 22.511,29.004
14.502,29.004 C6.492,29.004 -0.001,22.512 -0.001,14.502
C-0.001,6.492 6.492,-0.001 14.502,-0.001 C22.511,-0.001
29.004,6.492 29.004,14.502 Z"></path>
</svg>
</figure>
<!-- SVG decoration End-->
<div class="bg-grad-pink p-2 p-sm-5 rounded-1">
<div class="row position-relative">
<!-- SVG decoration Begin-->
<figure class="fill-primary opacity-1 position-absolute top-50 start-0 translate-middle-y">
<svg width="141px" height="141px">
<path d="M140.520,70.258 C140.520,109.064 109.062,140.519 70.258,140.519 C31.454,140.519 -0.004,109.064 -0.004,70.258 C-0.004,31.455 31.454,-0.003 70.258,-0.003 C109.062,-0.003 140.520,31.455 140.520,70.258 Z"></path>
</svg>
</figure>
<!-- SVG decoration End-->
<div class="col-lg-11 mx-auto d-block">
<div class="position-relative overflow-hidden">
<!-- SVG decoration Begin-->
<figure class="position-absolute top-0 end-0 mt-5">
<svg width="566.3px" height="353.7px" viewBox="0 0 566.3 353.7">
<path stroke="#fff" fill="none" d="M525.1,4c8.1,0.7,14.9,7.2,17.9,14.8c3,7.6,3,16,2.1,24.1c-4.7,44.3-32.1,84.7-69.4,108.9 c-37.4,24.2-83.7,32.8-127.9,27.6c-32.3-3.8-63.5-14.5-95.9-16.6c-21.6-1.4-45.6,2.1-60.1,18.3c-7.7,8.5-11.8,19.6-14.8,30.7 c-7.9,29.5-9,60.8-19.7,89.5c-5.5,14.8-14,29.1-27.1,38c-15.6,10.5-35.6,12-54.2,9.5c-18.6-2.5-36.5-8.6-55-12.1"></path>
<path stroke="#2E236C" fill="none" d="M560.7,0.2c10,18.3,3.7,41.1-5,60.1c-11.8,25.9-28,50.3-50.2,68.2c-29,23.3-66.3,34-103.2,38.6 c-36.9,4.6-74.3,3.8-111.3,7.2c-22.3,2-45.3,5.9-63.5,19c-26.8,19.2-39,55.3-68.3,70.4c-38.2,19.6-89.7-4.9-125.6,18.8 c-22.6,15-30.7,44.2-33.3,71.2"></path>
</svg>
</figure>
<!-- SVG decoration End-->
<!-- Row Begin-->
<div class="row position-relative align-items-center">
<!-- Content -->
<div class="col-md-8">
<!-- Title -->
<h2 class="h1 fw-800 mb-3">Ready to get <br>Remove Background from Image?</h2>
<p class="lead">Remove image backgrounds automatically in 5 seconds with just one click. </p>
<p class="lead mb-0"><span class="fw-bold">Email</span> : admin@admin.com</p>
<p class="lead mb-0"><span class="fw-bold">Password</span> : admin1234</p>
<a href="./admin-pannel/login.php" class="btn btn-primary btn-lg mb-2 mt-3">Admin Pannel</a>
</div>
<!-- Image -->
<div class="col-md-4">
<img src="assets/images/working.svg" class="img-fluid rounded-1" alt="working" title="working">
</div>
</div>
<!-- Row END -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Row END -->
</div>
<!--container End-->
</section>
<!--Login End-->
<!--Section for google adsence Code Begin-->
<section class="pb-100 text-center ">
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-12 col-sm-12 my-2">
<!-- AdSense code BEGIN-->
<?php echo $script ; ?>
<!-- AdSense code END-->
</div>
</div>
</div>
</section>
<!--Section for google adsence Code End-->
<!--Footer Begin-->
<?php include 'footer.php';?>
<!--Footer End-->
<!-- popper.min.js -->
<script src="assets/js/popper.min.js"></script>
<!-- jquery-3.4.1.min js -->
<script src="assets/js/jquery-3.4.1.min.js"></script>
<!-- bootstrap.bundle.min js-->
<script src="assets/js/bootstrap.bundle.min.js"></script>
</body>
</html>