Example #1
0
<!--[if lte IE 8]>
	<script language = javascript>
		window.location.href = "./message.php?msg=糟糕啦,本页面不支持内核为 IE9 以下的浏览器,请使用其他浏览器 (IE 10, Chrome)!"
	</script>
<![endif]-->

<?php 
include "./include/database_heading.php";
include "./include/basic_functions.php";
include "./include/check_authority.php";
CheckAuthority("./index.php");
$NavTitle = "首页";
include "./include/heading_common.php";
?>


<div id="nav-dc"></div>

<div id="container">
	<p><br>
	
	<div id="body" class="c-wrap">
		<link href="./css/css.css" rel="stylesheet" type="text/css">

		<div id="page_index">
			<?php 
include "./page/index/index_announcement.php";
?>

			<div class="layout-col">
				<div class="layout-col-left">
Example #2
0
<?php

include "./include/database_heading.php";
include "./include/basic_functions.php";
include "./include/check_authority.php";
CheckAuthority("./message.php");
$NavTitle = "出错啦";
include "./include/heading_common.php";
?>

<div id="nav-dc"></div>

<div id="container">
	<p><br>
	
	<div id="body" class="c-wrap">
		<div id="page_error">
			<div class="block">
				<div class="block-content">
					<div class="colorize">
						<h2 class="colorize-h2">出错啦!</h2>
						
						<div class="colorize-content">
							<p><b>访问时出错了:</b></p>
							
							<blockquote>
								<p><?php 
echo $_GET["msg"];
?>
</p>
							</blockquote>
Example #3
0
<?php

include "./include/database_heading.php";
include "./include/basic_functions.php";
include "./include/check_authority.php";
CheckAuthority("./admin.php");
$NavTitle = "后台管理";
include "./include/heading_common.php";
?>


<div id="nav-dc"></div>

<div id="container">
	<p><br>
	
	<div id="body" class="c-wrap">
		<div id="page_about">
			<?php 
include "./page/admin/admin_navigation.php";
?>
			
			<a id="admin_title"></a>
			<div class="block">
				<div class="block-content">
					<div class="colorize">
						<h2 class="colorize-h2">后台管理</h2>
						
						<div class="colorize-content">
						
						<?php 
Example #4
0
<?php

include "../include/basic_functions.php";
include "../include/database_info.php";
$con = mysql_connect($DB_Where, $DB_UName, $DB_PWord);
mysql_select_db("iVolunteer_Excalibur", $con);
mysql_set_charset("utf8", $con);
include "../include/check_authority.php";
if (HaveAuthority("./action/action_alterkey.php")) {
    if (!isset($_SESSION)) {
        session_start();
    }
    $G_name = $_SESSION["UName"];
    $G_key = $_POST["key"];
    if (!$G_key) {
        header("Location: ../message.php?msg=您设置新密码不能为空!");
    } else {
        mysql_query("UPDATE users SET `key` = '{$G_key}' WHERE `name` = '{$G_name}'");
        header("Location: ./action_logout.php");
    }
} else {
    CheckAuthority("./action/action_alterkey.php");
}
mysql_close($con);
Example #5
0
<?php

include "../include/basic_functions.php";
include "../include/database_info.php";
$con = mysql_connect($DB_Where, $DB_UName, $DB_PWord);
mysql_select_db("iVolunteer_Excalibur", $con);
mysql_set_charset("utf8", $con);
include "../include/check_authority.php";
if (HaveAuthority("./action/action_apply.php")) {
    if (!isset($_SESSION)) {
        session_start();
    }
    $G_belong1 = $_POST["belong1"];
    $G_belong2 = $_POST["belong2"];
    $G_name = $_SESSION["UName"];
    if ($G_belong1 == $G_belong2) {
        header("Location: ../message.php?msg=第一志愿和第二志愿不能相同,请修改后再申请!");
    } else {
        mysql_query("UPDATE users SET belong1 = {$G_belong1}, belong2 = {$G_belong2} WHERE name = '{$G_name}'");
        header("Location: ../index.php");
    }
} else {
    CheckAuthority("./action/action_apply.php");
}
mysql_close($con);
<?php

include "../../../include/basic_functions.php";
include "../../../include/database_info.php";
$con = mysql_connect($DB_Where, $DB_UName, $DB_PWord);
mysql_select_db("iVolunteer_Excalibur", $con);
mysql_set_charset("utf8", $con);
include "../../../include/check_authority.php";
if (HaveAuthority("./page/admin/action/*")) {
    $G_id = $_GET["id"];
    mysql_query("DELETE FROM groups WHERE id = {$G_id}");
    header("Location: ../../../index.php");
} else {
    CheckAuthority("./page/admin/action/*");
}
mysql_close($con);
Example #7
0
<?php

include "./include/database_heading.php";
include "./include/basic_functions.php";
include "./include/check_authority.php";
CheckAuthority("./group.php");
$G_id = $_GET["id"];
$result = mysql_query("SELECT * FROM groups WHERE id = {$G_id}");
$row = mysql_fetch_array($result);
$NavTitle = "管理服务队 - " . $row["name"];
include "./include/heading_common.php";
?>
	


<div id="nav-dc"></div>

<div id="container">
	<p><br>
	
	<div id="body" class="c-wrap">
		<div id="page_problems_all">
			<?php 
include "./page/group/group_detail.php";
?>

			<div class="layout-col">
				<div class="layout-col-left">
					<div class="layout-col-content">
						<?php 
include "./page/group/group_waitlist1.php";
Example #8
0
<?php

include "./include/database_heading.php";
include "./include/basic_functions.php";
include "./include/check_authority.php";
CheckAuthority("./about.php");
$NavTitle = "关于";
include "./include/heading_common.php";
?>


<div id="nav-dc"></div>

<div id="container">
	<p><br>
	
	<div id="body" class="c-wrap">
		<div id="page_about">
			<?php 
include "./page/about/about_contributors.php";
?>
			
			<a id="title"></a>
			<div class="block">
				<div class="block-content">
					<div class="colorize">
						<h2 class="colorize-h2">关于 iVolunteer</h2>
						
						<div class="colorize-content">
						
						<?php 
Example #9
0
<?php

include "../include/basic_functions.php";
include "../include/database_info.php";
$con = mysql_connect($DB_Where, $DB_UName, $DB_PWord);
mysql_select_db("iVolunteer_Excalibur", $con);
include "../include/check_authority.php";
if (HaveAuthority("./action/action_logout.php")) {
    if (!isset($_SESSION)) {
        session_start();
    }
    $_SESSION["UName"] = "";
    header("Location: ../index.php");
} else {
    CheckAuthority("./action/action_logout.php");
}
mysql_close($con);
Example #10
0
<?php

include "./include/database_heading.php";
include "./include/basic_functions.php";
include "./include/check_authority.php";
CheckAuthority("./detail.php");
$G_id = $_GET["id"];
$result = mysql_query("SELECT * FROM groups WHERE id = {$G_id}");
$row = mysql_fetch_array($result);
$NavTitle = $row["name"];
include "./include/heading_common.php";
?>
	


<div id="nav-dc"></div>

<div id="container">
	<p><br>
	
	<div id="body" class="c-wrap">
		<div id="page_problems_all">
			<?php 
include "./page/detail/detail_detail.php";
?>
			
			<div class="layout-col">
				<div class="layout-col-left">
					<div class="layout-col-content">
						<?php 
include "./page/detail/detail_waitlist.php";
<?php

include "../../../include/basic_functions.php";
include "../../../include/database_info.php";
$con = mysql_connect($DB_Where, $DB_UName, $DB_PWord);
mysql_select_db("dilutedream_ivolunteer_ultimate", $con);
include "../../../include/check_authority.php";
if (HaveAuthority("./page/group/action/*")) {
    $G_id = $_GET["id"];
    $G_name = $_POST["name"];
    mysql_query("UPDATE groups SET name = '{$G_name}' WHERE id = {$G_id}");
    header("Location: ../../../group.php?id={$G_id}");
} else {
    CheckAuthority("./page/group/action/*");
}
mysql_close($con);
Example #12
0
<?php

include "../include/basic_functions.php";
include "../include/database_info.php";
$con = mysql_connect($DB_Where, $DB_UName, $DB_PWord);
mysql_select_db("iVolunteer_Excalibur", $con);
mysql_set_charset("utf8", $con);
include "../include/check_authority.php";
if (HaveAuthority("./action/action_login.php")) {
    $G_name = $_POST["UName"];
    $result = mysql_query("SELECT * FROM users WHERE name = '{$G_name}'");
    $row = mysql_fetch_array($result);
    if (!$_POST["UName"] || !$_POST["PWord"] || $row["key"] != $_POST["PWord"]) {
        header("Location: ../message.php?msg=糟糕啦,您填写的姓名或者密码错误!");
    } else {
        if (!isset($_SESSION)) {
            session_start();
        }
        $_SESSION["UName"] = $G_name;
        header("Location: ../index.php");
    }
} else {
    CheckAuthority("./action/action_login.php");
}
mysql_close($con);