Update users.php 26/head
authorPatrick McGuire <insidenothing@gmail.com>
Thu, 21 May 2020 19:05:37 +0000 (15:05 -0400)
committerGitHub <noreply@github.com>
Thu, 21 May 2020 19:05:37 +0000 (15:05 -0400)
admin/users.php

index 7ea1066..8aa1114 100644 (file)
@@ -1,7 +1,10 @@
 <?PHP 
-
+include_once('../slack.php');
 include_once('security.php');
-
+if ($_COOKIE['level'] == 'user'){
+  slack_general('ADMIN: Redirect User Home ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition');
+  header('Location: user_home.php');
+}
 include_once('header.php');
 slack_general('ADMIN: user manager Loaded ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition');
 ?>