first commit
This commit is contained in:
29
cn/container/db_connection.php
Normal file
29
cn/container/db_connection.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
$servername = "107.155.87.31";
|
||||
$username = "aitoolpath";
|
||||
$password = "WBjexxZJfjzdxhid";
|
||||
$database = "aitoolpath";
|
||||
|
||||
// Create connection
|
||||
$conn = mysqli_connect($servername, $username, $password, $database);
|
||||
|
||||
// Check connection
|
||||
if (!$conn) {
|
||||
die("Connection failed: " . mysqli_connect_error());
|
||||
}
|
||||
|
||||
function sanitize_input($input) {
|
||||
// Remove unwanted characters and potential threats
|
||||
$input = trim($input); // Remove unnecessary spaces
|
||||
$input = stripslashes($input); // Remove backslashes
|
||||
$input = htmlspecialchars($input); // Convert special characters to HTML entities
|
||||
$input = preg_replace("/[\"'<>]/", "", $input); // Remove quotes and angle brackets
|
||||
return $input;
|
||||
}
|
||||
|
||||
|
||||
error_reporting(0); // Disable all error reporting
|
||||
ini_set('display_errors', 0); // Do not display errors on the page
|
||||
|
||||
|
||||
?>
|
||||
106
cn/container/faq.php
Normal file
106
cn/container/faq.php
Normal file
@@ -0,0 +1,106 @@
|
||||
<section class="faq-one">
|
||||
<div class="container">
|
||||
<div class="section-title text-center">
|
||||
<div class="section-title__tagline-box">
|
||||
<span class="section-title__tagline">Frequently Asked Questions</span>
|
||||
</div>
|
||||
<h2 class="section-title__title">Questions About our AI Tool Path? <br>
|
||||
We have Answers!
|
||||
</h2>
|
||||
</div>
|
||||
<div class="faq-one__inner">
|
||||
<div class="accrodion-grp" data-grp-name="faq-one-accrodion">
|
||||
<div class="accrodion">
|
||||
<div class="accrodion-title">
|
||||
<h4>What Is AI Tool Path Generative AI Tool?</h4>
|
||||
</div>
|
||||
<div class="accrodion-content">
|
||||
<div class="inner">
|
||||
<p>Once you know your audience, <a href="#">choose a topic</a> that will resonate
|
||||
with them. Look for trending topics in your industry or address common questions
|
||||
or challenges your audience may be facing. Keep in mind that your topic should
|
||||
be both interesting and relevant to your audience
|
||||
</p>
|
||||
</div>
|
||||
<!-- /.inner -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="accrodion active">
|
||||
<div class="accrodion-title">
|
||||
<h4>How Can I Make Generative AI Content for Next Project</h4>
|
||||
</div>
|
||||
<div class="accrodion-content">
|
||||
<div class="inner">
|
||||
<p>Once you know your audience, <a href="#">choose a topic</a> that will resonate
|
||||
with them. Look for trending topics in your industry or address common questions
|
||||
or challenges your audience may be facing. Keep in mind that your topic should
|
||||
be both interesting and relevant to your audience
|
||||
</p>
|
||||
</div>
|
||||
<!-- /.inner -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="accrodion">
|
||||
<div class="accrodion-title">
|
||||
<h4>Is there a limitation on how much content I can generate?</h4>
|
||||
</div>
|
||||
<div class="accrodion-content">
|
||||
<div class="inner">
|
||||
<p>Once you know your audience, <a href="#">choose a topic</a> that will resonate
|
||||
with them. Look for trending topics in your industry or address common questions
|
||||
or challenges your audience may be facing. Keep in mind that your topic should
|
||||
be both interesting and relevant to your audience
|
||||
</p>
|
||||
</div>
|
||||
<!-- /.inner -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="accrodion">
|
||||
<div class="accrodion-title">
|
||||
<h4>What Languages does it supports</h4>
|
||||
</div>
|
||||
<div class="accrodion-content">
|
||||
<div class="inner">
|
||||
<p>Once you know your audience, <a href="#">choose a topic</a> that will resonate
|
||||
with them. Look for trending topics in your industry or address common questions
|
||||
or challenges your audience may be facing. Keep in mind that your topic should
|
||||
be both interesting and relevant to your audience
|
||||
</p>
|
||||
</div>
|
||||
<!-- /.inner -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="accrodion">
|
||||
<div class="accrodion-title">
|
||||
<h4>What is SEO Writing AI and how do I use it?</h4>
|
||||
</div>
|
||||
<div class="accrodion-content">
|
||||
<div class="inner">
|
||||
<p>Once you know your audience, <a href="#">choose a topic</a> that will resonate
|
||||
with them. Look for trending topics in your industry or address common questions
|
||||
or challenges your audience may be facing. Keep in mind that your topic should
|
||||
be both interesting and relevant to your audience
|
||||
</p>
|
||||
</div>
|
||||
<!-- /.inner -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="accrodion">
|
||||
<div class="accrodion-title">
|
||||
<h4>Is it helpful for Digital Marketer or Content Writer?</h4>
|
||||
</div>
|
||||
<div class="accrodion-content">
|
||||
<div class="inner">
|
||||
<p>Once you know your audience, <a href="#">choose a topic</a> that will resonate
|
||||
with them. Look for trending topics in your industry or address common questions
|
||||
or challenges your audience may be facing. Keep in mind that your topic should
|
||||
be both interesting and relevant to your audience
|
||||
</p>
|
||||
</div>
|
||||
<!-- /.inner -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
63
cn/container/footer.php
Normal file
63
cn/container/footer.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
||||
|
||||
<footer class="main-footer">
|
||||
<div class="main-footer__shape-1 img-bounce"></div>
|
||||
<div class="main-footer__top">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xl-4 col-lg-6 col-md-6 wow fadeInUp mt-5" data-wow-delay="100ms">
|
||||
<div class="footer-widget__column footer-widget__about">
|
||||
<div class="footer-widget__logo">
|
||||
<a href="index"><img src="images/ai_logo.png" width="110px" alt="Logo"></a>
|
||||
</div>
|
||||
<p class="footer-widget__about-text">我们的终极指南,帮助您发现和探索人工智能工具和资源的世界。无论您是寻找最新AI软件的开发者,还是寻求创新AI应用的营销人员,AI Tool Path 都能满足您的需求。</p>
|
||||
</div>
|
||||
<div class="site-footer__social">
|
||||
<a href="https://www.facebook.com/profile.php?id=61564933300521&mibextid=LQQJ4d" target="_blank"><i class="fab fa-facebook"></i></a>
|
||||
<a href="https://www.instagram.com/aitoolsshare?igsh=cGphMXpuMnBicW5r&utm_source=qr" target="_blank"><i class="fab fa-instagram"></i></a>
|
||||
<a href="https://www.tiktok.com/@aiptshare?_t=8pd28ku932U&_r=1" target="_blank"><i class="fab fa-tiktok"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-3 col-lg-6 col-md-6"></div>
|
||||
<div class="col-xl-3 col-lg-6 col-md-6 wow fadeInUp mt-5" data-wow-delay="300ms">
|
||||
<div class="footer-widget__column footer-widget__resources">
|
||||
<div class="footer-widget__title-box">
|
||||
<h3 class="footer-widget__title">资源</h3>
|
||||
</div>
|
||||
<div class="footer-widget__resources-list-box">
|
||||
<ul class="footer-widget__resources-list">
|
||||
<li><a href="products">产品</a></li>
|
||||
<li><a href="blog">博客</a></li>
|
||||
<li><a href="contact">加入我们</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-2 col-lg-6 col-md-6 wow fadeInUp mt-5" data-wow-delay="200ms">
|
||||
<div class="footer-widget__column footer-widget__company">
|
||||
<div class="footer-widget__title-box">
|
||||
<h3 class="footer-widget__title">公司</h3>
|
||||
</div>
|
||||
<div class="footer-widget__company-list-box">
|
||||
<ul class="footer-widget__company-list">
|
||||
<li><a href="privacy-policy">条款与条件</a></li>
|
||||
<li><a href="privacy-policy">隐私政策</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-footer__bottom">
|
||||
<div class="container">
|
||||
<div class="main-footer__bottom-inner">
|
||||
<p class="main-footer__bottom-text">
|
||||
版权 © 2024 <a href="">AI Tool Path</a>. 版权所有,保留所有权利.
|
||||
<a href="https://beian.miit.gov.cn/" target="_blank" style="margin-left: 10px;">琼ICP备2024038584号-3</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
38
cn/container/footer_links.php
Normal file
38
cn/container/footer_links.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<!-- End Color Palate / Color Switcher -->
|
||||
<!-- Search Popup -->
|
||||
<div class="search-popup">
|
||||
<div class="color-layer"></div>
|
||||
<button class="close-search"><span class="far fa-times fa-fw"></span></button>
|
||||
<form method="post" action="">
|
||||
<div class="form-group">
|
||||
<input type="search" name="search-field" value="" placeholder="Search Here" required="">
|
||||
<button type="submit"><i class="far fa-search fa-fw"></i></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- End Search Popup -->
|
||||
</div>
|
||||
<!-- End PageWrapper -->
|
||||
<!-- Scroll To Top -->
|
||||
<div class="scroll-to-top scroll-to-target" data-target="html"><span class="fas fa-arrow-up fa-fw"></span></div>
|
||||
<script src="js/jquery.js"></script>
|
||||
<script src="js/01-bootstrap.min.js"></script>
|
||||
<script src="js/02-bootstrap-select.min.js"></script>
|
||||
<script src="js/03-color-settings.js"></script>
|
||||
<script src="js/04-owl.js"></script>
|
||||
<script src="js/05-jarallax.min.js"></script>
|
||||
<script src="js/06-isotope.js"></script>
|
||||
<script src="js/07-wow.js"></script>
|
||||
<script src="js/08-validate.js"></script>
|
||||
<script src="js/09-appear.js"></script>
|
||||
<script src="js/10-swiper.min.js"></script>
|
||||
<script src="js/11-jquery.easing.min.js"></script>
|
||||
<script src="js/12-gsap.min.js"></script>
|
||||
<script src="js/13-odometer.js"></script>
|
||||
<script src="js/14-tilt.jquery.min.js"></script>
|
||||
<script src="js/15-magnific-popup.min.js"></script>
|
||||
<script src="js/16-jquery-ui.js"></script>
|
||||
<script src="js/17-marquee.min.js"></script>
|
||||
<script src="js/18-jquery.circleType.js"></script>
|
||||
<script src="js/19-jquery.lettering.min.js"></script>
|
||||
<script src="js/script.js"></script>
|
||||
73
cn/container/free_trail.php
Normal file
73
cn/container/free_trail.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
// Initialize variables with default values
|
||||
$small_heading_EN = '';
|
||||
$small_heading_CN = '';
|
||||
$large_heading_EN = '';
|
||||
$large_heading_CN = '';
|
||||
$btn_text_EN = '';
|
||||
$btn_text_CN = '';
|
||||
$btn_link = '';
|
||||
$long_description_EN = '';
|
||||
$long_description_CN = '';
|
||||
|
||||
$query = "SELECT * FROM cta_form_data LIMIT 1";
|
||||
$result = mysqli_query($conn, $query);
|
||||
|
||||
if (!$result) {
|
||||
// Handle query error
|
||||
die("Database query failed: " . mysqli_error($conn));
|
||||
}
|
||||
|
||||
if (mysqli_num_rows($result) > 0) {
|
||||
$rowss = mysqli_fetch_assoc($result);
|
||||
// Assign fetched data to variables
|
||||
$small_heading_EN = $rowss['small_heading_CTA_EN'];
|
||||
$small_heading_CN = $rowss['small_heading_CTA_CN'];
|
||||
$large_heading_EN = $rowss['Large_heading_CTA_EN'];
|
||||
$large_heading_CN = $rowss['Large_heading_CTA_CN'];
|
||||
$btn_text_EN = $rowss['btn_text_cta_EN'];
|
||||
$btn_text_CN = $rowss['btn_text_cta_CN'];
|
||||
$btn_link = $rowss['btn_link'];
|
||||
$long_description_EN = $rowss['long_description_CTA_EN'];
|
||||
|
||||
// Allow HTML in long_description_CN
|
||||
$long_description_CN = $rowss['long_description_CTA_CN']; // Output as-is
|
||||
} else {
|
||||
// Handle the case where no records are found
|
||||
$long_description_CN = "No data available.";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<section class="free-trail">
|
||||
<div class="container">
|
||||
<div class="free-trail__wrap">
|
||||
<div class="free-trail__shape-3" style="background-image: url(images/shapes/free-trail-shape-3.png);"></div>
|
||||
<div class="free-trail__shape-1 float-bob-x"></div>
|
||||
<div class="free-trail__start-1 zoominout">
|
||||
<img src="images/shapes/free-trail-start-1.png" alt="">
|
||||
</div>
|
||||
<div class="free-trail__start-2 float-bob-y">
|
||||
<img src="images/shapes/free-trail-start-2.png" alt="">
|
||||
</div>
|
||||
<div class="free-trail__start-3 float-bob-x">
|
||||
<img src="images/shapes/free-trail-start-3.png" alt="">
|
||||
</div>
|
||||
<div class="free-trail__start-4 zoominout">
|
||||
<img src="images/shapes/free-trail-start-4.png" alt="">
|
||||
</div>
|
||||
<div class="free-trail__inner">
|
||||
<div class="section-title text-center">
|
||||
<div class="section-title__tagline-box">
|
||||
<span class="section-title__tagline"><?php echo html_entity_decode($small_heading_CN); ?></span>
|
||||
</div>
|
||||
<h2 class="section-title__title"><?php echo html_entity_decode($large_heading_CN); ?></h2>
|
||||
</div>
|
||||
<p class="free-trail__text"><?php echo html_entity_decode($long_description_CN); ?></p> <!-- Output without escaping -->
|
||||
<div class="free-trail__btn-box">
|
||||
<a href="<?php echo $btn_link; ?>" class="thm-btn-two free-trail__btn"><?php echo $btn_text_CN; ?><i class="icon-up-right-arrow"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
179
cn/container/header.php
Normal file
179
cn/container/header.php
Normal file
@@ -0,0 +1,179 @@
|
||||
<div class="page-wrapper">
|
||||
<!-- Preloader -->
|
||||
<div class="preloader"></div>
|
||||
<!-- End Preloader -->
|
||||
<!-- Cursor -->
|
||||
<div class="cursor"></div>
|
||||
<div class="cursor-follower"></div>
|
||||
<!-- Cursor End -->
|
||||
<!-- Main Header -->
|
||||
<header class="main-header main-header-one">
|
||||
<!-- Header Lower -->
|
||||
<div class="header-lower">
|
||||
<div class="main-menu__wrapper">
|
||||
<div class="inner-container d-flex align-items-center justify-content-between">
|
||||
<!-- Logo Box -->
|
||||
<div class="main-header-one__logo-box">
|
||||
<a href="index">
|
||||
<img src="images/ai_logo.png" width="110px" alt="Logo">
|
||||
</a>
|
||||
</div>
|
||||
<div class="nav-outer">
|
||||
<!-- Main Menu -->
|
||||
<nav class="main-menu show navbar-expand-md">
|
||||
<div class="navbar-header">
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse"
|
||||
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse clearfix" id="navbarSupportedContent">
|
||||
<ul class="navigation clearfix">
|
||||
<li><a href="products">产品</a></li>
|
||||
<li><a href="blog">博客</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
<!-- Main Menu End-->
|
||||
</div>
|
||||
<!-- Outer Box -->
|
||||
<div class="outer-box d-flex align-items-center">
|
||||
<ul class="main-header__login-sing-up">
|
||||
<li><a href="contact">加入我们</a></li>
|
||||
</ul>
|
||||
<!-- Mobile Navigation Toggler -->
|
||||
<div class="mobile-nav-toggler">
|
||||
<span class="icon-menu"></span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End Outer Box -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End Header Lower -->
|
||||
<!-- Mobile Menu -->
|
||||
<div class="mobile-menu">
|
||||
<div class="menu-backdrop"></div>
|
||||
<div class="close-btn"><span class="icon far fa-times fa-fw"></span></div>
|
||||
<nav class="menu-box">
|
||||
<div class="nav-logo"><a href="index">AI Tool Path</a></div>
|
||||
<!-- Search -->
|
||||
<div class="search-box">
|
||||
<!--<form method="post" action="">-->
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <input type="search" name="search-field" value="" placeholder="SEARCH HERE" required>-->
|
||||
<!-- <button type="submit"><span class="icon far fa-search fa-fw"></span></button>-->
|
||||
<!-- </div>-->
|
||||
</form>
|
||||
</div>
|
||||
<div class="menu-outer">
|
||||
<!--Here Menu Will Come Automatically Via Javascript / Same Menu as in Header-->
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
<!-- End Mobile Menu -->
|
||||
</header>
|
||||
<!-- End Main Header -->
|
||||
<!-- CSS for Basic Styling -->
|
||||
<style>
|
||||
.top_search_form{
|
||||
background: rgba(60, 60, 119, 0.5);
|
||||
padding: 40px 10px;
|
||||
// margin-top: -170px;
|
||||
margin-bottom: 100px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.search-container {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#search-input {
|
||||
padding: 8px;
|
||||
box-sizing: border-box;
|
||||
border-radius: 5px 0px 0px 5px;
|
||||
width: 85%;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border: solid 1px #3c3c77;
|
||||
color: rgba(225, 225, 225, 0.5);
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
.s_btn {
|
||||
padding: 8px;
|
||||
border-radius: 0px 5px 5px 0px;
|
||||
background:#426bff;
|
||||
color:#fff;
|
||||
padding: 10px 20px;
|
||||
border: solid 1px #426bff;
|
||||
}
|
||||
|
||||
.suggestions-list {
|
||||
position: absolute;
|
||||
top: 45%;
|
||||
left: 3.5%;
|
||||
background: #fff;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
max-height: 200px;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
width: 93%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.suggestions-list li {
|
||||
padding: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.suggestions-list li:hover {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
#form_tags {
|
||||
justify-content: center;
|
||||
margin-top: 20px;
|
||||
}
|
||||
#form_tags a {
|
||||
padding: 10px 20px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
a.cat_active {
|
||||
background: #426bff;
|
||||
color: #fff;
|
||||
}
|
||||
@media only screen and (max-width: 600px) {
|
||||
#search-input {
|
||||
width: 99%;
|
||||
border-radius:5px;
|
||||
}
|
||||
.s_btn {
|
||||
width:98%;
|
||||
border-radius:5px;
|
||||
padding: 8px 20px;
|
||||
margin-top:13px;
|
||||
}
|
||||
.suggestions-list {
|
||||
top: 18%;
|
||||
left: 1.5%;
|
||||
width: 97%;
|
||||
}
|
||||
#form_tags {
|
||||
justify-content: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
#form_tags a {
|
||||
padding: 5px 10px;
|
||||
font-size:12px;
|
||||
margin-left:3px;
|
||||
}
|
||||
.career-page-top__job-apply-country-list {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
69
cn/container/links.php
Normal file
69
cn/container/links.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
|
||||
<!--Color Switcher Mockup-->
|
||||
<link href="css/color-switcher-design.css" rel="stylesheet">
|
||||
<!-- Color Themes -->
|
||||
<link id="theme-color-file" href="css/color-themes/default-color.css" rel="stylesheet">
|
||||
<link rel="shortcut icon" href="images/favicon.png" type="image/x-icon">
|
||||
<link rel="icon" href="images/favicon.png" type="image/x-icon">
|
||||
<!-- Responsive -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<!-- Stylesheets -->
|
||||
<meta name="360-site-verification" content="fe8d8c3da251df36a0252d7c2fd03d0f" />
|
||||
<link href="css/bootstrap.css" rel="stylesheet">
|
||||
<link href="css/style.css" rel="stylesheet">
|
||||
<link href="css/responsive.css" rel="stylesheet">
|
||||
<meta name="robots" content="index, follow">
|
||||
|
||||
|
||||
<?php include('../cms_admin/db_connection.php');?>
|
||||
|
||||
<?php
|
||||
// 首先,检查是否有传参
|
||||
$page_title = isset($title) ? $title : '';
|
||||
$page_description = isset($description) ? $description : '';
|
||||
$page_keywords = isset($keywords) ? $keywords : '';
|
||||
|
||||
// 如果没有传参,则从数据库中获取默认值
|
||||
if (empty($page_title) || empty($page_description) || empty($page_keywords)) {
|
||||
// 查询数据库
|
||||
$fetch_query = "SELECT * FROM basic_info LIMIT 1";
|
||||
$result = $conn->query($fetch_query);
|
||||
|
||||
// 如果查询到数据,则从数据库获取值
|
||||
if ($result->num_rows > 0) {
|
||||
$row = $result->fetch_assoc();
|
||||
|
||||
// 只有在未设置的情况下才从数据库中设置值
|
||||
$page_title = empty($page_title) ? $row['m_title_CN'] : $page_title;
|
||||
$page_description = empty($page_description) ? $row['m_desc_CN'] : $page_description;
|
||||
$page_keywords = empty($page_keywords) ? $row['m_keywords_CN'] : $page_keywords;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<title><?php echo $page_title; ?></title>
|
||||
<meta name="title" content="<?php echo $page_title; ?>">
|
||||
<meta name="description" content="<?php echo $page_description; ?>">
|
||||
<meta name="keywords" content="<?php echo $page_keywords; ?>">
|
||||
|
||||
|
||||
<?php
|
||||
// Get the visitor's IP address
|
||||
$ip_address = $_SERVER['REMOTE_ADDR'];
|
||||
// Get the current date
|
||||
$current_date = date('Y-m-d');
|
||||
|
||||
// Prepare and execute the check query
|
||||
$check_query = "SELECT id FROM visitors WHERE ip = '$ip_address' AND date = '$current_date'";
|
||||
$check_result = mysqli_query($conn, $check_query);
|
||||
|
||||
if (mysqli_num_rows($check_result) == 0) {
|
||||
// If no matching IP and date, insert a new record
|
||||
$insert_query = "INSERT INTO visitors (ip, date) VALUES ('$ip_address', '$current_date')";
|
||||
mysqli_query($conn, $insert_query);
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user