-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.php
32 lines (29 loc) · 1.01 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* Created by PhpStorm.
* User: ZE3kr
* Date: 2019-01-03
* Time: 22:12
*/
/** Absolute path to the directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
if( isset($_POST['account']) && isset($_POST['password']) &&
isset($_POST['current_year']) && isset($_POST['current_term']) ) {
$p_account = $_POST['account'];
$p_password = $_POST['password'];
$p_current_year = $_POST['current_year'];
$p_current_term = $_POST['current_term'];
include_once ABSPATH.'require_grade.php';
} else if( isset($_GET['account']) && isset($_GET['password']) &&
isset($_GET['current_year']) && isset($_GET['current_term']) ) {
$p_account = $_GET['account'];
$p_password = $_GET['password'];
$p_current_year = $_GET['current_year'];
$p_current_term = $_GET['current_term'];
include_once ABSPATH.'require_grade.php';
} else {
include_once ABSPATH.'login_grade.php';
}