changes, finishing later
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['admin'])) { header("Location: login.php"); exit; }
|
||||
include("../db.php");
|
||||
include("../lib/db.php");
|
||||
include("../config/config.php");
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['name'])) {
|
||||
$name = $_POST['name'];
|
||||
|
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
include("../db.php");
|
||||
include("../lib/db.php");
|
||||
include("../config/config.php");
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$username = $_POST['username'];
|
||||
|
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
include("../db.php");
|
||||
include("../lib/db.php");
|
||||
include("../config/config.php");
|
||||
|
||||
if (!isset($_SESSION['admin']) || $_SESSION['auth_type'] != 'local') {
|
||||
header("Location: login.php");
|
||||
|
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['admin'])) { header("Location: login.php"); exit; }
|
||||
include("../db.php");
|
||||
include("../lib/db.php");
|
||||
include("../config/config.php");
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['name'])) {
|
||||
$name = $_POST['name'];
|
||||
|
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
session_start();
|
||||
// if (!isset($_SESSION['admin'])) { header("Location: login.php"); exit; }
|
||||
include("../db.php");
|
||||
if (!isset($_SESSION['admin'])) { header("Location: login.php"); exit; }
|
||||
include("../lib/db.php");
|
||||
include("../config/config.php");
|
||||
|
||||
// --- Recupera tutte le materie ---
|
||||
$subjects = [];
|
||||
|
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
include("../db.php");
|
||||
include("../lib/db.php");
|
||||
include("../config/config.php");
|
||||
|
||||
if (!isset($_SESSION['admin']) || $_SESSION['auth_type'] != 'local' || $_SESSION['admin'] != 'admin') {
|
||||
header("Location: login.php");
|
||||
|
Reference in New Issue
Block a user