Username must exist

This commit is contained in:
pepa65 committed 2022-09-17 12:12:56 +07:00
1 parent 6bc25889b8
commit 67be8d8863
1 file changed
+2 -2
+2 -2
View File
@@ -1,7 +1,8 @@
<?php // Encode page <?php // Encode page
session_start(); session_start();
require "check.php"; require "check.php";
if(!isset($_POST['schedule'])){ // If not post: start again $user=$_SESSION['user'];
if(!isset($_POST['schedule']) || empty($user)){ // If not post: start again
header('Location: index.php'); header('Location: index.php');
} }
@@ -26,7 +27,6 @@ $key=$_POST['streamkey'];
$date=$_POST['date']; $date=$_POST['date'];
$time=$_POST['time']; $time=$_POST['time'];
$email=$_POST['email']; $email=$_POST['email'];
$user=$_SESSION['user'];
$target=$_POST['target']; $target=$_POST['target'];
if($email){ if($email){
$to=$email; $to=$email;