Commit bc2f9375 authored by Stijn Holzhauer's avatar Stijn Holzhauer

include naar require_once

parent ac9627ef
<?php
session_start();
include 'modules/backend/authentication.php';
include 'modules/backend/load_activiteiten.php';
include 'modules/backend/caretaker.php';
require_once ('modules/backend/authentication.php');
require_once ('modules/backend/load_activiteiten.php');
require_once ('modules/backend/caretaker.php');
$the_title = 'Activiteiten';
?>
<!--
......
<?php
session_start();
include 'modules/backend/authentication.php';
include 'modules/backend/load_messages.php';
include 'modules/backend/load_notifications.php';
require_once ('modules/backend/authentication.php');
require_once ('modules/backend/load_messages.php');
require_once ('modules/backend/load_notifications.php');
$MessageCount = GetMessageCount(0);
$NotificationCount = GetNotificationCount(0);
......
<?php
session_start();
include 'modules/backend/authentication.php';
require_once ('modules/backend/authentication.php');
if($_SESSION['Role'] != "Child")
{
header("location: index.php");
......
<?php
session_start();
include 'modules/backend/dbconnection.php';
require_once ('modules/backend/dbconnection.php');
if(isset($_SESSION['AccountID']) && isset( $_REQUEST['id'] )){
$MessageID = $_REQUEST['id'];
......
<?php
//session_start() so the $_SESSION variables can be used
session_start();
include '../backend/dbconnection.php';
include ('../functions.php');
require_once ('../backend/dbconnection.php');
require_once ('../functions.php');
$OuderID = $_SESSION['OuderID'];
......
<?php
include './backend/dbconnection.php';
require_once ('./backend/dbconnection.php');
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
......
<?php
include './modules/sec_components/dbconnection.php';
require_once ('./modules/sec_components/dbconnection.php');
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
......
<?php
include 'modules/backend/dbconnection.php';
require_once ('modules/backend/dbconnection.php');
function getinitials($AccountID){
global $conn;
......
<?php
session_start();
include('../backend/dbconnection.php');
require_once ('../backend/dbconnection.php');
global $conn;
$AccountID = $_SESSION['AccountID'];
$username = $_POST['username'];
......
<?php
include('accountdetails.php');
require_once ('accountdetails.php');
?>
<div class="col-lg-4">
<div class="panel panel-default">
......
<?php
session_start();
include('../backend/dbconnection.php');
global $conn;
$AccountID = $_SESSION['AccountID'];
$initials = $_POST['initials'];
$lastname = $_POST['lastname'];
$phonenumber = $_POST['phonenumber'];
$mail = $_POST['mail'];
$date = date("Y-m-d");
$setstatement = "";
if (($initials != NULL) || ($lastname != NULL) || ($phonenumber != NULL) || ($mail != NULL)){
if ($initials != NULL){
$setstatement = $setstatement . ",Voorletters='$initials' ";
}
if($lastname != NULL){
$setstatement = $setstatement . ",Achternaam='$lastname' ";
}
if ($phonenumber != NULL){
$setstatement = $setstatement . ",Telefoonnummer='$phonenumber' ";
}
if ($mail != NULL){
$setstatement = $setstatement . ",Emailadres='$mail' ";
}
$setstatement = $setstatement . ", LastModified='$date'";
$setstatement = substr( $setstatement,1);
$sql = "UPDATE Account SET $setstatement WHERE AccountID='$AccountID';";
$conn->query($sql);
}
header("location: ../../settings.php");
<?php
session_start();
require_once ('../backend/dbconnection.php');
global $conn;
$AccountID = $_SESSION['AccountID'];
$initials = $_POST['initials'];
$lastname = $_POST['lastname'];
$phonenumber = $_POST['phonenumber'];
$mail = $_POST['mail'];
$date = date("Y-m-d");
$setstatement = "";
if (($initials != NULL) || ($lastname != NULL) || ($phonenumber != NULL) || ($mail != NULL)){
if ($initials != NULL){
$setstatement = $setstatement . ",Voorletters='$initials' ";
}
if($lastname != NULL){
$setstatement = $setstatement . ",Achternaam='$lastname' ";
}
if ($phonenumber != NULL){
$setstatement = $setstatement . ",Telefoonnummer='$phonenumber' ";
}
if ($mail != NULL){
$setstatement = $setstatement . ",Emailadres='$mail' ";
}
$setstatement = $setstatement . ", LastModified='$date'";
$setstatement = substr( $setstatement,1);
$sql = "UPDATE Account SET $setstatement WHERE AccountID='$AccountID';";
$conn->query($sql);
}
header("location: ../../settings.php");
?>
\ No newline at end of file
<?php
include 'dbconnection.php';
require_once ('dbconnection.php');
//Unread Messages
function GetElders($AccountID){
global $conn;
......
<?php
include ('dbconnection.php');
require_once ('dbconnection.php');
//Unread Messages
function GetActivities( $status = 0 ){
global $conn;
......
<!-- All functions for the mail/messages -->
<?php
include 'dbconnection.php';
require_once ('dbconnection.php');
//Unread Messages
function GetMessages( $status = 0 ){
global $conn;
......
<!-- All functions for the notification side -->
<?php
include 'dbconnection.php';
require_once ('dbconnection.php');
//Unread Messages
function GetNotifications( $status = 0 ){
global $conn;
......
......@@ -4,7 +4,7 @@ Dit bestand hoort op iedere pagina geladen te worden.
-->
<?php
include('modules/functions.php');
require_once ('modules/functions.php');
?>
<head>
......
<?php
include 'Settings/accountdetails.php';
require_once ('Settings/accountdetails.php');
?>
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
......
......@@ -5,7 +5,7 @@ Momenteel statisch voor de show, zal in de toekomst dynamisch gemaakt worden wan
<?php
session_start();
include 'modules/backend/authentication.php';
require_once ('modules/backend/authentication.php');
$the_title = 'Status';
?>
<!DOCTYPE html>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment