当前位置:网站首页>Modification of system module information of PHP security development 12 blog system
Modification of system module information of PHP security development 12 blog system
2022-06-12 01:46:00 【qq_ forty-two million three hundred and seven thousand five hun】
system.php
<?php
include_once "init.php";
$result = $conn->query("select * from config");
while($row=$result->fetch_assoc()){
$web[$row['name']] = $row['value'];
}
if($_POST['sub']){
unset($_POST['sub']);
foreach ($_POST as $name=>$value){
$name=filterstr($name);
$value=filterstr($value);
$conn->query("update config set value= '$value' where name='$name'");
if($conn->error){
echo "error".$conn->error;
}
}
//redirect('2','system.php',' Modification successful ');
}
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8"/>
<title>『 Passion 』 Background management </title>
<link rel="stylesheet" type="text/css" href="css/common.css"/>
<link rel="stylesheet" type="text/css" href="css/main.css"/>
</head>
<body>
<div class="topbar-wrap white">
<div class="topbar-inner clearfix">
<div class="topbar-logo-wrap clearfix">
<h1 class="topbar-logo none"><a href="index.html" class="navbar-brand"> Background management </a></h1>
<ul class="navbar-list clearfix">
<li><a class="on" href="index.html"> home page </a></li>
<li><a href="#" target="_blank"> homepage </a></li>
</ul>
</div>
<div class="top-info-wrap">
<ul class="top-info-list clearfix">
<li><a href="#"> Administrators </a></li>
<li><a href="#"> Change Password </a></li>
<li><a href="#"> sign out </a></li>
</ul>
</div>
</div>
</div>
<div class="container clearfix">
<div class="sidebar-wrap">
<div class="sidebar-title">
<h1> menu </h1>
</div>
<div class="sidebar-content">
<ul class="sidebar-list">
<li>
<a href="#"><i class="icon-font"></i> Common operations </a>
<ul class="sub-menu">
<li><a href="design.html"><i class="icon-font"></i> Work management </a></li>
<li><a href="design.html"><i class="icon-font"></i> Blog management </a></li>
<li><a href="design.html"><i class="icon-font"></i> Classification management </a></li>
<li><a href="design.html"><i class="icon-font"></i> message management </a></li>
<li><a href="design.html"><i class="icon-font"></i> Comment management </a></li>
<li><a href="design.html"><i class="icon-font"></i> link </a></li>
<li><a href="design.html"><i class="icon-font"></i> Advertising management </a></li>
</ul>
</li>
<li>
<a href="#"><i class="icon-font"></i> System management </a>
<ul class="sub-menu">
<li><a href="system.html"><i class="icon-font"></i> System settings </a></li>
<li><a href="system.html"><i class="icon-font"></i> Clean cache </a></li>
<li><a href="system.html"><i class="icon-font"></i> The data backup </a></li>
<li><a href="system.html"><i class="icon-font"></i> Data restore </a></li>
</ul>
</li>
</ul>
</div>
</div>
<!--/sidebar-->
<div class="main-wrap">
<div class="crumb-wrap">
<div class="crumb-list"><i class="icon-font"></i><a href="index.html"> home page </a><span class="crumb-step">></span><span class="crumb-name"> System settings </span></div>
</div>
<div class="result-wrap">
<form action="#" method="post" id="myform" name="myform">
<div class="config-items">
<div class="config-title">
<h1><i class="icon-font"></i> Website information settings </h1>
</div>
<div class="result-content">
<table width="100%" class="insert-tab">
<tbody><tr>
<th width="15%"><i class="require-red">*</i> domain name :</th>
<td><input type="text" id="" value="<?php echo $web['website_url']; ?>" size="85" name="website_url" class="common-text"></td>
</tr>
<tr>
<th><i class="require-red">*</i> Site title :</th>
<td><input type="text" id="" value="<?php echo $web['website_title']; ?>" size="85" name="website_title" class="common-text"></td>
</tr>
<tr>
<th><i class="require-red">*</i> keyword :</th>
<td><input type="text" id="" value="<?php echo $web['website_keywords']; ?>" size="85" name="website_keywords" class="common-text"></td>
</tr>
<tr>
<th><i class="require-red">*</i> describe :</th>
<td><input type="text" id="" value="<?php echo $web['desc']; ?>" size="85" name="desc" class="common-text"></td>
</tr>
<tr>
<th></th>
<td>
<input type="submit" value=" Submit " name ="sub" class="btn btn-primary btn6 mr10">
<input type="button" value=" return " onClick="history.go(-1)" class="btn btn6">
</td>
</tr>
</tbody></table>
</div>
</div>
</form>
</div>
</div>
<!--/main-->
</div>
</body>
</html>
边栏推荐
- php开发09 文章模块的删除和文章分类编写
- pip运行报错:Fatal error in launcher: Unable to create process using
- 如何定位关键词使得广告精准投放。
- Operating mechanism of Google ads bidding
- 博文推荐|BookKeeper - Apache Pulsar 高可用 / 强一致 / 低延迟的存储实现
- Vue3+ts+node creates personal blog (database design)
- LeetCode LCP 07. Deliver information
- 括号生成(回溯)
- Machines / scenarios not suitable for webrdp
- [从零开始学习FPGA编程-19]:快速入门篇 - 操作步骤4-1- Verilog 软件下载与开发环境的搭建- Altera Quartus II版本
猜你喜欢

初探性能优化!从2个月到4小时的性能提升!

"Xilin chain" of Southwest Forestry University passed the functional test of Electronic Standards Institute of the Ministry of industry and information technology | FISCO bcos case

pip运行报错:Fatal error in launcher: Unable to create process using
![MySQL training report [with source code]](/img/c2/46bdc2f8c522d2c8881e532b6f3f49.png)
MySQL training report [with source code]

Kmeans from 0 to 1

Several visualization methods of point cloud 3D object detection results (second, pointpillars, pointrcnn)

Dataset how to use dataset gracefully. After reading this article, you can fully understand the dataset in c7n/choerodon/ toothfish UI

Redis實現消息隊列的4種方案

Is the bidding price fixed for each click?

kmeans从0到1
随机推荐
PyGame alien invasion
博文推荐|BookKeeper - Apache Pulsar 高可用 / 强一致 / 低延迟的存储实现
如何为Excel中的单元格自动填充颜色
Bracket generation (backtracking)
Chinese Version Vocaloid AI Tuner Feasibility Test
Leetcode 55 jump game
Educational knowledge and ability test questions of primary and secondary school educational endowment examination in the second half of 2019 (middle school) - subjective questions
Redis cluster + sentinel mode + replicas
php安全开发 12博客系统的 系统模块信息的修改
大一下期:学习总结
Perceptron from 0 to 1
The role of MOV ah, 4CH int 21
Installing mysql-5.7 for Linux (centos7)
[project training] wechat official account template message push
括号生成(回溯)
颠倒字符串中的单词(split、双端队列)
php安全开发 13博客系统的栏目模块的编写
西南林业大学“西林链”通过工信部电子标准院功能测试 | FISCO BCOS案例
Why should a redis cluster use a reverse proxy? Just read this one
Manually tear the linked list (insert, delete, sort) and pointer operation