当前位置:网站首页>php安全开发 12博客系统的 系统模块信息的修改
php安全开发 12博客系统的 系统模块信息的修改
2022-06-12 01:43:00 【qq_42307546】
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','修改成功');
}
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8"/>
<title>『豪情』后台管理</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">后台管理</a></h1>
<ul class="navbar-list clearfix">
<li><a class="on" href="index.html">首页</a></li>
<li><a href="#" target="_blank">网站首页</a></li>
</ul>
</div>
<div class="top-info-wrap">
<ul class="top-info-list clearfix">
<li><a href="#">管理员</a></li>
<li><a href="#">修改密码</a></li>
<li><a href="#">退出</a></li>
</ul>
</div>
</div>
</div>
<div class="container clearfix">
<div class="sidebar-wrap">
<div class="sidebar-title">
<h1>菜单</h1>
</div>
<div class="sidebar-content">
<ul class="sidebar-list">
<li>
<a href="#"><i class="icon-font"></i>常用操作</a>
<ul class="sub-menu">
<li><a href="design.html"><i class="icon-font"></i>作品管理</a></li>
<li><a href="design.html"><i class="icon-font"></i>博文管理</a></li>
<li><a href="design.html"><i class="icon-font"></i>分类管理</a></li>
<li><a href="design.html"><i class="icon-font"></i>留言管理</a></li>
<li><a href="design.html"><i class="icon-font"></i>评论管理</a></li>
<li><a href="design.html"><i class="icon-font"></i>友情链接</a></li>
<li><a href="design.html"><i class="icon-font"></i>广告管理</a></li>
</ul>
</li>
<li>
<a href="#"><i class="icon-font"></i>系统管理</a>
<ul class="sub-menu">
<li><a href="system.html"><i class="icon-font"></i>系统设置</a></li>
<li><a href="system.html"><i class="icon-font"></i>清理缓存</a></li>
<li><a href="system.html"><i class="icon-font"></i>数据备份</a></li>
<li><a href="system.html"><i class="icon-font"></i>数据还原</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">首页</a><span class="crumb-step">></span><span class="crumb-name">系统设置</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>网站信息设置</h1>
</div>
<div class="result-content">
<table width="100%" class="insert-tab">
<tbody><tr>
<th width="15%"><i class="require-red">*</i>域名:</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>站点标题:</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>关键字:</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>描述:</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="提交" name ="sub" class="btn btn-primary btn6 mr10">
<input type="button" value="返回" onClick="history.go(-1)" class="btn btn6">
</td>
</tr>
</tbody></table>
</div>
</div>
</form>
</div>
</div>
<!--/main-->
</div>
</body>
</html>
边栏推荐
- 实体类DTO转VO通过插件转化
- 2022 tool fitter (Advanced) recurrent training question bank and online simulation examination question bank source: YiDianTong official account of safety production simulation examination
- Huawei intermodal game or application review rejected: the application detected payment servicecatalog:x6
- Huawei, this is too strong
- State Administration of market supervision and state Internet Information Office: carry out data security management certification
- Operation of simulated examination platform of diazotization process examination question bank in 2022
- Advanced data storage
- UoE UG3 Inf Course Research
- C dynamically calls the static library generated by go
- Simulated 100 questions and simulated examination for safety management personnel of metal and nonmetal mines (small open pit quarries) in 2022
猜你喜欢

Kill, pkill, killall, next, what I brought to you in the last issue is how to end the process number and rush!

"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
![[n32g457] remote monitoring of graffiti cloud based on RT thread and n32g457](/img/c3/5c9970d7e77afce925814d0ecd3b96.jpg)
[n32g457] remote monitoring of graffiti cloud based on RT thread and n32g457

The resignation of the chief oracle engineer was furious: MySQL is a terrible database, so it is recommended to consider PostgreSQL!

实体类DTO转VO通过插件转化

Sogou Pinyin official website screenshot tool pycharm installation

PCA from 0 to 1

华为,这也太强了吧..

【项目实训】微信公众号获取用户openid

In 2022, the internal promotion of the "MIHA Tour" golden, silver and silver social recruitment started in April and march! Less overtime, good welfare, 200+ posts for you to choose, come and see!
随机推荐
Go language learning summary (7) -- Dachang go programming specification summary
MP3 to Wav to Midi
kali安装empire过程中遇到的各种报错解决方案
Loop loop and CX
Concepts of programs, processes, and threads
Perceptron from 0 to 1
The role of MOV ah, 4CH int 21
How much coverage is appropriate for children's serious illness insurance? Which product is the best?
2022年重氮化工艺考试题库模拟考试平台操作
Redis集群更换节点IP后如何恢复集群并保留完整集群数据
Wechat applet - a case of comparing the size of numbers
TIOBE - 2022年6月编程语言排行
On the night of the joint commissioning, I beat up my colleagues
"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
Operation of simulated examination platform of diazotization process examination question bank in 2022
A summary of the interface automation test problems most easily encountered
Elementary OJ problem of binary tree
Jvm: thread context classloader
pca从0到1
Why should a redis cluster use a reverse proxy? Just read this one