diff --git a/controller.php b/controller.php index 7af2230..3147a6b 100644 --- a/controller.php +++ b/controller.php @@ -8,7 +8,7 @@ exit(); } $_SESSION['numevent'] = $_GET['info']; - ini_set("display_errors", 0); + require_once "dbconnect.php"; $polaczenie = mysqli_connect($host, $db_user, $db_password); mysqli_query($polaczenie, "SET CHARSET utf8"); diff --git a/events_arch.php b/events_arch.php index 3d2fc59..7120c14 100644 --- a/events_arch.php +++ b/events_arch.php @@ -68,12 +68,8 @@ } if ($ile>=1) { -if($_SESSION['perm']=='modder' || $_SESSION['perm']=='admin'){ - echo ''; -} -else{ - echo 'ID Eventu'; -} +echo 'ID Eventu'; + echo<<Nazwa Eventu