当前位置:网站首页>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>
边栏推荐
- Chinese Version Vocaloid AI Tuner Feasibility Test
- Watermelon video synchronization Tiktok also has benefits ~ the official "China Video Partner Program"
- Annotate your own point cloud dataset with labelcloud open source tool as a tutorial of Kitti annotation format (support PCD and bin point clouds)
- Agile v.s. Waterfall
- 聯調這夜,我把同事打了...
- Basic use of MATLAB
- Uniapp gets the instance of the previous page
- Given a project, how will you conduct performance testing?
- Recursive and non recursive transformation
- Perceptron from 0 to 1
猜你喜欢

Introduction to prism framework - Modular introduction

华为联运游戏或应用审核驳回:应用检测到支付serviceCatalog:X6

Data system provider Jidao technology joins dragon lizard community

如何让杀毒软件停止屏蔽某个网页?以GDATA为例

MATLAB basic application 02 wind stock data introduction and use case:

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

聯調這夜,我把同事打了...

Matlab 基础04 - 冒号Colon operator “:”的使用和复杂应用详析

Huawei intermodal game or application review rejected: the application detected payment servicecatalog:x6

Weibull Distribution韦布尔分布的深入详述(1)原理和公式
随机推荐
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!
Unity顶点动画的阴影实现
Prism框架初识-模块化介绍
Colorize Voronoi Diagram Template
You don't need to show your talent. The method is here. You earn 9844 in 31 days as an we media
"C'est plus sûr d'apprendre une technologie!" Hangzhou Campus Little Brother transfer software test, Hi - Ti 10K + double break!
【项目实训】jwt
Forecast report on market demand and future prospect of cvtf industry of China's continuously variable transmission oil
马尔可夫网络 与 条件随机场
Several visualization methods of point cloud 3D object detection results (second, pointpillars, pointrcnn)
[project training] verification notes
LeetCode Algorithm 1791. 找出星型图的中心节点
The 14th five year plan and investment feasibility study report of global and Chinese hydraulic ester base oil industry 2022 ~ 2028
Point cloud perception algorithm interview knowledge points (II)
PCA from 0 to 1
Weekly CTF week 1: Amazing tapes
Mise en œuvre de l'ombre de l'animation du Vertex de l'unit é
JMeter operation process that can be understood at a glance
博文推荐|BookKeeper - Apache Pulsar 高可用 / 强一致 / 低延迟的存储实现
kmeans从0到1