commit
a311100b8b
@ -0,0 +1,15 @@
|
||||
/*
|
||||
MySQL Data Transfer
|
||||
Source Host: localhost
|
||||
Source Database: weibo
|
||||
Target Host: localhost
|
||||
Target Database: weibo
|
||||
Date: 2017/7/13 16:31:04
|
||||
*/
|
||||
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
-- ----------------------------
|
||||
-- Table structure for about
|
||||
-- ----------------------------
|
||||
CREATE TABLE `about` (
|
||||
`aboutus` text NOT NULL COMMENT '关于我们',
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
include "inc/config.php";
|
||||
|
||||
if(isset($_SESSION["Username"])){
|
||||
$username=$_SESSION["Username"];
|
||||
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
}
|
||||
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "../inc/config.php";
|
||||
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
?>
|
||||
<?php include "../inc/config.php"; ?>
|
||||
<?php
|
||||
if(isset($_SESSION["log"])){
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
if($admin==1){
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "../inc/config.php";
|
||||
if($act=="del")
|
||||
{
|
||||
|
||||
mysql_query("delete from users where id=$id");
|
||||
mysql_query("delete from topics where uid=$id");
|
||||
mysql_query("delete from comments where uid=$id");
|
||||
|
||||
}
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "../inc/config.php";
|
||||
if($act=="del")
|
||||
{
|
||||
mysql_query("delete from users where id=$id");
|
||||
mysql_query("delete from topics where uid=$id");
|
||||
mysql_query("delete from comments where uid=$id");
|
||||
}
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
error_reporting(E_ERROR | E_WARNING);
|
||||
session_start();
|
||||
?>
|
||||
<?php include "../inc/config.php"; ?>
|
||||
<?php
|
||||
if(isset($_SESSION["log"])){
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
if($admin==1){
|
||||
?>
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "../inc/config.php";
|
||||
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
@ -0,0 +1,15 @@
|
||||
<div id="wrapper">
|
||||
<ul id="mainNav">
|
||||
<li><a href="index.php" class="active">管理员:<?php echo $tname ?></a></li>
|
||||
<li><a href="index.php">管理首页</a></li>
|
||||
<li><a href="../index.php">网站首页</a></li>
|
||||
<li class="logout"><a href="../logout.php">退出</a></li>
|
||||
</ul>
|
||||
<div id="containerHolder">
|
||||
<div id="container">
|
||||
<div id="sidebar">
|
||||
<ul class="sideNav">
|
||||
<li><a href="config.php" target="main">网站配置</a></li>
|
||||
<li><a href="cate.php" class="active" target="main">话题管理</a></li>
|
||||
<li><a href="user.php" target="main">用户管理</a></li>
|
||||
<li><a href="hei_user.php" target="main">用户黑名单</a></li>
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
include "../inc/config.php";
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>校网学堂后台管理系统</title>
|
||||
|
@ -0,0 +1,15 @@
|
||||
|
||||
<?php include "../inc/config.php";
|
||||
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
@ -0,0 +1,9 @@
|
||||
<div id="main">
|
||||
<br>
|
||||
<h3>系统信息</h3>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr class="odd"><td>欢迎来到校校园微商务管理系统</td></tr>
|
||||
|
||||
</table>
|
||||
</div>
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
include "../inc/config.php";
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>校网学堂后台管理系统</title>
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include "../inc/config.php";
|
||||
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
|
||||
session_start();
|
||||
?>
|
||||
<?php include "../inc/config.php"; ?>
|
||||
<?php include "../inc/functions.php"; ?>
|
||||
<?php
|
||||
if(isset($_SESSION["log"])){
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
if($admin==1){
|
@ -0,0 +1,15 @@
|
||||
#main table tr .action a { margin: 0 0 0 10px; text-decoration: none; color: #9b9b9b; }
|
||||
#main table tr .action .edit { color: #c5a059; }
|
||||
#main table tr .action .delete { color: #a02b2b; }
|
||||
#main table tr .action .view { color: #55a34a; }
|
||||
#main table tr .action a:hover { text-decoration: underline; }
|
||||
|
||||
#main fieldset p { margin: 0 0 7px 0; } /* half of the normal bottom margin */
|
||||
|
||||
.jNiceSelectWrapper ul {
|
||||
height: 99px;
|
||||
}
|
||||
|
||||
.jNiceSelectWrapper div span {
|
||||
padding: 9px 7px 0;
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
#main fieldset p { margin: 0 0 7px 0; } /* half of the normal bottom margin */
|
||||
|
||||
.jNiceSelectWrapper div span {
|
||||
padding: 9px 7px 0;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
/* -------------
|
||||
* Buttons
|
||||
* ------------- */
|
||||
|
||||
button {
|
||||
margin: 0px;
|
||||
padding: 0px 0px;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
cursor: pointer;
|
||||
height: 29px;
|
||||
display: block;
|
||||
float: left;
|
||||
overflow: visible;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
/* Basic ---------------------------------------- */
|
||||
|
||||
.clear { clear: both; }
|
||||
|
||||
body {
|
||||
background: white;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
color: #646464;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
text-align: left;
|
||||
width: 930px;
|
@ -0,0 +1,15 @@
|
||||
|
||||
ol, ul {
|
||||
list-style: none;
|
||||
}
|
||||
blockquote, q {
|
||||
quotes: none;
|
||||
}
|
||||
|
||||
/* remember to define focus styles! */
|
||||
:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* UPDATED: 12.19.07
|
||||
*
|
||||
* jNice
|
||||
* by Sean Mooney (sean@whitespace-creative.com)
|
||||
*
|
||||
* To Use: place in the head
|
||||
* <link href="inc/style/jNice.css" rel="stylesheet" type="text/css" />
|
||||
* <script type="text/javascript" src="inc/js/jquery.jNice.js"></script>
|
||||
*
|
||||
* And apply the jNice class the form you want to style
|
||||
*
|
||||
* To Do: Add textareas, Add File upload
|
||||
*
|
||||
******************************************** */
|
@ -0,0 +1,15 @@
|
||||
(function(){
|
||||
/*
|
||||
* jQuery 1.2.6 - New Wave Javascript
|
||||
*
|
||||
* Copyright (c) 2008 John Resig (jquery.com)
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
||||
* and GPL (GPL-LICENSE.txt) licenses.
|
||||
*
|
||||
* $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
|
||||
* $Rev: 5685 $
|
||||
*/
|
||||
|
||||
// Map over jQuery in case of overwrite
|
||||
var _jQuery = window.jQuery,
|
||||
// Map over the $ in case of overwrite
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "../inc/config.php";
|
||||
if(isset($_SESSION["log"])){
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
if($admin==1){
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include "../inc/config.php"; ?>
|
||||
<?php
|
||||
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "../inc/config.php";
|
||||
if($act=="del")
|
||||
{
|
||||
|
||||
mysql_query("delete from users where id=$id");
|
||||
mysql_query("delete from topics where uid=$id");
|
||||
mysql_query("delete from comments where uid=$id");
|
||||
|
||||
}
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
session_start();
|
||||
|
||||
include "../inc/config.php";
|
||||
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
|
||||
|
||||
$perNumber=10; //每页显示的记录数
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
function getUserName($uid,$field='truename'){
|
||||
$uid = intval($uid);
|
||||
|
||||
if($uid >0){
|
||||
$sql = "SELECT $field FROM users WHERE id=$uid";
|
||||
$query = mysql_query($sql);
|
||||
if($query){
|
||||
$user = mysql_fetch_array($query,MYSQL_ASSOC);
|
||||
|
||||
if($user){
|
||||
if($field != '*') return $user[$field];
|
||||
else return $user;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<div id="index_footer">
|
||||
<div class="inner_index_footer">
|
||||
<div class="fri_link">友情链接: <?php while ($linkinfo=mysql_fetch_array($links)) { ?>
|
||||
<span class="webside">
|
||||
<a target="_blank" title="<?php echo $linkinfo['name'];?>" href="<?php echo $linkinfo['url'];?>"><?php echo $linkinfo['name'];?></a>
|
||||
</span><?php } ?>
|
||||
</div>
|
||||
<div class="index_copy"> © 2012
|
||||
<a href="http://www.miibeian.gov.cn" target="_blank"></a>
|
||||
<a href="about.php#us" >关于我们</a> |
|
||||
<a href="about.php#contact" >联系方式</a> |
|
||||
<a href="about.php#duty" >免责声明</a> |
|
||||
<a href="about.php#privacy" >隐私保护</a> |
|
||||
<a href="links.php" >友情链接</a>
|
||||
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
error_reporting(0);
|
||||
//数据库信息
|
||||
$host="localhost";
|
||||
$user="root";
|
||||
$pass="root";
|
||||
$db="weibo";
|
||||
|
||||
//数据库连接
|
||||
$conn=mysql_connect($host,$user,$pass) or die (mysql_error());
|
||||
mysql_select_db($db,$conn) or die (mysql_error());
|
||||
mysql_query("set names utf8");
|
||||
|
||||
//网站信息
|
||||
$sitelist=mysql_query("select * from config");
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
//过滤脚本代码
|
||||
function cleanJs($text) {
|
||||
$text = trim ( $text );
|
||||
$text = stripslashes ( $text );
|
||||
//完全过滤注释
|
||||
$text = preg_replace ( '/<!--?.*-->/', '', $text );
|
||||
//完全过滤动态代码
|
||||
$text = preg_replace ( '/<\?|\?>/', '', $text );
|
||||
//完全过滤js
|
||||
$text = preg_replace ( '/<script?.*\/script>/', '', $text );
|
||||
//过滤多余html
|
||||
$text = preg_replace ( '/<\/?(html|head|meta|link|base|body|title|style|script|form|iframe|frame|frameset)[^><]*>/i', '', $text );
|
||||
//过滤on事件lang js
|
||||
while ( preg_match ( '/(<[^><]+)(lang|onfinish|onmouse|onexit|onerror|onclick|onkey|onload|onchange|onfocus|onblur)[^><]+/i', $text, $mat ) ) {
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
class resizeimage
|
||||
{
|
||||
//图片类型
|
||||
var $type;
|
||||
//实际宽度
|
||||
var $width;
|
||||
//实际高度
|
||||
var $height;
|
||||
//改变后的宽度
|
||||
var $resize_width;
|
||||
//改变后的高度
|
||||
var $resize_height;
|
||||
//是否裁图
|
||||
var $cut;
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "inc/config.php";
|
||||
include "common.php";
|
||||
//头部导航
|
||||
if(isset($_SESSION["Username"])){
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
}
|
||||
|
||||
//今日话题
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "inc/config.php";
|
||||
|
||||
if(isset($_SESSION["Username"])){
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
}
|
||||
//SEO设置
|
||||
$title="友情链接";
|
||||
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
include "inc/config.php";
|
||||
require_once('common.php');
|
||||
|
||||
if(isset($_POST['name'])){
|
||||
$name = trim($_POST['name']);
|
||||
}
|
||||
if(isset($_POST['password'])){
|
||||
$password = md5($_POST['password']);
|
||||
}
|
||||
|
||||
if(isset($name)!=""){
|
||||
$query="select * from users where name='$name'";
|
||||
$result=mysql_query($query,$conn);
|
||||
if(mysql_num_rows($result)<1){
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
include "inc/config.php";
|
||||
include "inc/functions.php";
|
||||
include "common.php";
|
||||
|
||||
if(isset($_SESSION["Username"])){
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "inc/config.php";
|
||||
include "inc/functions.php";
|
||||
include "common.php";
|
||||
|
||||
if(isset($_SESSION["Username"])){
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo,MYSQL_ASSOC);
|
||||
$uid=$user['id'];
|
||||
$name=$user['name'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
$usite=$user['site'];
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
include "inc/config.php";
|
||||
include "common.php";
|
||||
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$name=$user['name'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
|
||||
include "inc/uploadpic.php";
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "inc/config.php";
|
||||
include "common.php";
|
||||
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$name=$user['name'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
|
||||
|
||||
if(isset($_POST['editsubmit'])){
|
@ -0,0 +1,15 @@
|
||||
/*基本*/
|
||||
* {padding:0;margin:0;}
|
||||
/*body {font:normal 12px/150% "Arial, Helvetica, sans-serif";text-align:center;background:#fff;}*/
|
||||
body{font:normal normal normal 12px/1.5em "Arial";text-align:center;background:#9AE3E9;margin:0 auto;
|
||||
width:795px;}
|
||||
table {border-collapse:collapse;}
|
||||
th,caption {font-weight:normal;font-style:normal;text-align:left;}
|
||||
caption {font-weight:bold;}
|
||||
ol,ul {list-style:none}
|
||||
a img {border:none}
|
||||
h1,h2,h3,h4,h5,h6,input,button,textarea {font:normal 12px Tahoma,SimSun;}
|
||||
input[type="text"],input[type="password"] {-webkit-border-radius:5px;-moz-border-radius:5px;}
|
||||
button {cursor:pointer;}
|
||||
p {margin:5px 0;line-height:140%;}
|
||||
address {font-style:normal;clear:both;}
|
@ -0,0 +1,15 @@
|
||||
.mblogTitle, .setupTittle {
|
||||
background:#ECF7FB none repeat scroll 0 0;
|
||||
border-bottom:1px solid #DCF7FB;
|
||||
color:#333333;
|
||||
}
|
||||
.mblogTitle {
|
||||
font-size:14px;
|
||||
height:36px;
|
||||
line-height:36px;
|
||||
margin-bottom:20px;
|
||||
padding-left:20px;
|
||||
padding-top:3px;
|
||||
}
|
||||
.jh_oneWblog {
|
||||
clear:both;
|
@ -0,0 +1,15 @@
|
||||
.highslide-container DIV {
|
||||
FONT-SIZE: 10pt; FONT-FAMILY: Verdana,Helvetica
|
||||
}
|
||||
.highslide-container TABLE {
|
||||
BACKGROUND: none transparent scroll repeat 0% 0%
|
||||
}
|
||||
.highslide {
|
||||
TEXT-DECORATION: none; outline: none
|
||||
}
|
||||
.highslide IMG {
|
||||
BORDER-RIGHT: silver 2px solid; BORDER-TOP: silver 2px solid; BORDER-LEFT: silver 2px solid; BORDER-BOTTOM: silver 2px solid
|
||||
}
|
||||
.highslide:hover IMG {
|
||||
BORDER-LEFT-COLOR: gray; BORDER-BOTTOM-COLOR: gray; BORDER-TOP-COLOR: gray; BORDER-RIGHT-COLOR: gray
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
/*sidebar_个人信息*/
|
||||
#side .userPannal {
|
||||
padding:20px 0px 10px 15px;
|
||||
}
|
||||
#side .userPannalhead {
|
||||
float:left;
|
||||
display:block;
|
||||
height:20px;
|
||||
width:120px;
|
||||
position:relative;
|
||||
}
|
||||
#side .userPannalhead .nick {
|
||||
font-size:14px;
|
||||
font-weight:normal;
|
||||
left:15px;
|
@ -0,0 +1,15 @@
|
||||
#logo {
|
||||
BACKGROUND: none transparent scroll repeat 0% 0%; FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale',src='http://images/logo.png')
|
||||
}
|
||||
.mainMenu .utilNavHover {
|
||||
BACKGROUND: none transparent scroll repeat 0% 0%; FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale',src='http://images/main_menu_over.png')
|
||||
}
|
||||
.mainMenu .utilNavCurt {
|
||||
BACKGROUND: none transparent scroll repeat 0% 0%; FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale',src='http://images/main_menu.png')
|
||||
}
|
||||
.mainMenu1 .utilNavHover {
|
||||
BACKGROUND: none transparent scroll repeat 0% 0%; FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale',src='http://images/main_menu_over.png')
|
||||
}
|
||||
.mainMenu1 .utilNavCurt {
|
||||
BACKGROUND: none transparent scroll repeat 0% 0%; FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale',src='http://images/main_menu.png')
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
/*用户信息 start*/
|
||||
.userinfo {padding:15px 8px 0 8px; _padding-left:8px; overflow:hidden;width:176px;word-wrap:break-word; position:relative;}
|
||||
.userinfo_bind{position:absolute; top:10px; right:15px; _right:10px;}
|
||||
.sideUserName {font-size:14px;line-height:16px;margin:0;padding:5px 0 8px 7px;}
|
||||
.sideUserName span {font-size:11px;}
|
||||
.userinfo .userphoto {}
|
||||
.stats {clear:both;margin:15px 0 15px 7px;width:177px;height:37px;overflow:hidden;}
|
||||
.stats li {float:left;border-left:none;padding:0 5px;}
|
||||
.stats_count {display:block;font-size:12px;line-height:20px;}
|
||||
a .stats_count {text-decoration:none; font-family:georgia; font-size:12px; font-weight:normal; line-height:1.1;}
|
||||
#following {border-left-width:0;padding-left:0;}
|
||||
#followers {}
|
||||
#updates {padding-right:0;}
|
||||
.aboutme {margin:10px 0 0 7px;}
|
||||
.aboutme li {line-height:160%;}
|
@ -0,0 +1,15 @@
|
||||
#uTitle {line-height:48px;}
|
||||
#uTitle img {float:left;margin-right:10px;}
|
||||
|
||||
.tb {margin:10px 80px 40px;}
|
||||
.tb th, .tb td {vertical-align:top;padding:7px 5px;}
|
||||
.tb th {text-align:right;width:120px;}
|
||||
|
||||
.settingTab {width:520px;margin:0 auto;text-align:center;padding-top:5px;position:relative;left:0%;bottom:-1px;_bottom:-2px;}
|
||||
.settingTab li {margin-left:-5px;float:left;height:19px;line-height:19px;border:1px solid #B3B3B3;position:relative;left:5%;}
|
||||
.settingTab li.curt {border-bottom-color:#FFF;}
|
||||
.settingTab li a {background-color:#E6E6E6;display:block;padding:0 5px;color:#333;}
|
||||
.settingTab li a:hover {background-color:#CCC;color:#000;text-decoration:none;}
|
||||
.settingTab li.curt a {background-color:#FFF;}
|
||||
|
||||
.joinnow {width:139px;height:41px;line-height:41px;background-position:-161px -221px;display:block;text-align:center;color:#000;margin:auto;}
|
@ -0,0 +1,15 @@
|
||||
#toolbar {
|
||||
background:none;
|
||||
border:0 none;
|
||||
height:60px;
|
||||
width:797px;
|
||||
|
||||
margin:0 auto;
|
||||
position:relative;
|
||||
z-index:50;
|
||||
}
|
||||
#innertoolbar {
|
||||
padding:2px 0px 0;
|
||||
|
||||
}
|
||||
#toolbar .toolbar_logo {
|
@ -0,0 +1,15 @@
|
||||
*{margin:0px; padding:0px;}
|
||||
ul, li {list-style:none;}
|
||||
img{ border:none medium;}
|
||||
#index_footer{height:100px;}
|
||||
.index_header_bg{height:84px; position:relative; overflow:hidden;}
|
||||
.index #mainWrapper{background-color:#BAEEF1;}
|
||||
.index #conWrapper{width:597px;}
|
||||
.index #side{border:none; width:198px; font-size:12px;}
|
||||
.inner_conwarpper{padding:8px 20px;}
|
||||
.index_fun_people{background:transparent url(../images/index/index_fun.jpg) no-repeat; width:96px; height:31px;}
|
||||
.index #txweblist{margin:0;}
|
||||
.index #conWrapper{min-height:700px; _height:700px;}
|
||||
#txweblist li {
|
||||
background:transparent url(../images/digulist_border.gif) repeat-x scroll 0 bottom;
|
||||
font-size:14px;
|
@ -0,0 +1,15 @@
|
||||
.login_form{padding:10px 10px 15px;}
|
||||
.login_form .signin th, .login_form .signin td {
|
||||
padding:7px 3px;
|
||||
}
|
||||
.login_form .signin th {
|
||||
font-weight:normal;
|
||||
padding-top:10px;
|
||||
text-align:right;
|
||||
width:11em;
|
||||
}
|
||||
.login_form .signin label {
|
||||
font-weight:normal;
|
||||
white-space:nowrap;
|
||||
}
|
||||
|
@ -0,0 +1,15 @@
|
||||
/* CSS Document */
|
||||
/*#pageNumber,
|
||||
#toTop {display:none;}*/
|
||||
/*common*/
|
||||
* {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
}
|
||||
html {
|
||||
_overflow:hidden
|
||||
}
|
||||
body {
|
||||
font-family:Tahoma, SimSun;
|
||||
font-size:12px;
|
||||
color:#333;
|
@ -0,0 +1,15 @@
|
||||
*{padding:0px; margin:0px;}
|
||||
input, textarea, button, select {
|
||||
font-size:14px;
|
||||
line-height:1.3;
|
||||
vertical-align:baseline;
|
||||
}
|
||||
#mainWrapper{background-color:#fff;}
|
||||
.reg-process{margin:20px;}
|
||||
.reg-head .join {float:left;}
|
||||
.reg-head .login {
|
||||
color:#0084B4;
|
||||
float:right;
|
||||
font-weight:bold;
|
||||
line-height:30px;
|
||||
margin-right:10px;
|
@ -0,0 +1,15 @@
|
||||
.topicslist {
|
||||
clear:both;
|
||||
overflow:hidden;
|
||||
padding:0 9px;
|
||||
width:180px;
|
||||
}
|
||||
.index_title01 {
|
||||
clear:both;
|
||||
color:#5B6059;
|
||||
font-size:14px;
|
||||
font-weight:normal;
|
||||
height:30px;
|
||||
margin-top:10px;
|
||||
line-height:30px;
|
||||
overflow:hidden;
|
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="Copyright" content="校网学堂">
|
||||
|
||||
<title><?php echo $sitename;?>
|
||||
</title>
|
||||
<link type="text/css" rel="stylesheet" href="style/build/base.css" />
|
||||
<link type="text/css" rel="stylesheet" href="style/build/main.css" />
|
||||
<link type="text/css" rel="stylesheet" href="style/index.css" />
|
||||
<link type="text/css" rel="stylesheet" href="style/topic.css" />
|
||||
<style>.page{margin:10px 0 5px 0px;overflow:hidden;}.page ul{ overflow:hidden;}.page ul li{float:left; list-style:none; font-size:12px; margin-right:5px; padding:1px 5px; border:solid 1px #DDD;}
|
||||
</style>
|
||||
</head>
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
include "inc/config.php";
|
||||
include "inc/functions.php";
|
||||
include "common.php";
|
||||
//导航
|
||||
if(isset($_SESSION["Username"])){
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
}
|
||||
//获得话题id
|
||||
$topicid=$_GET["id"];
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "inc/config.php";
|
||||
if(isset($_SESSION["Username"])){
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
}
|
||||
//SEO设置
|
||||
$title="话题库";
|
||||
$keywords="";
|
||||
$description="";
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "inc/config.php";
|
||||
include "common.php";
|
||||
|
||||
//导航
|
||||
if(isset($_SESSION["Username"])){
|
||||
$username=$_SESSION["Username"];
|
||||
$userinfo=mysql_query("select * from users where name='$username'");
|
||||
$user=mysql_fetch_array($userinfo);
|
||||
$uid=$user['id'];
|
||||
$tname=$user['truename'];
|
||||
$admin=$user['isadmin'];
|
||||
}
|
||||
|
Loading…
Reference in new issue