    <?php

        include("library/conn.php");
        
        $fetchSystemSettings = mysqli_query($conn, "SELECT * FROM system_configurations WHERE systemID = 'SYS2-2022'");
        
		if ($fetchSystemSettings) {

            if (mysqli_num_rows($fetchSystemSettings) > 0) {

				$system_settings_rs = mysqli_fetch_array($fetchSystemSettings);
				
                $_SESSION["systemID"] = $system_settings_rs[0];
			    $_SESSION["systemFavIcon"] = $system_settings_rs[1];
			    $_SESSION["systemName"] = $system_settings_rs[2];
			    $_SESSION["loginPageImage"] = $system_settings_rs[3];
			    $_SESSION["headerLogo"] = $system_settings_rs[4];
			    $_SESSION["dashboardHeader"] = $system_settings_rs[5];
			    $_SESSION["reportsHeaderImage"] = $system_settings_rs[6];
			    $_SESSION["footerCaption"] = $system_settings_rs[7];
			    $_SESSION["systemVersion"] = $system_settings_rs[8];
			    
			} else {
				echo "<script>alert('Sorry, system was not found..!') </script>";
			}
		} else {
			echo "Database Error: ". mysqli_error($conn);
		}
	?>
    
    <meta name="description" content="African Daafi & Pizza">
    <!-- Twitter meta-->
    <meta property="twitter:card" content="summary_large_image">
    <meta property="twitter:site" content="@pratikborsadiya">
    <meta property="twitter:creator" content="@pratikborsadiya">
    <!-- Open Graph Meta-->
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="African Daafi & Pizza">
    <meta property="og:description" content="African Daafi & Pizza">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Main CSS-->
    <link rel="stylesheet" type="text/css" href="css/main.css">
    <link rel="stylesheet" type="text/css" href="css/bs4pop.css">
    <link rel="stylesheet" type="text/css" href="css/venobox.css">


    <!-- Font-icon css-->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
    <link href="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.6.1/css/bootstrap4-toggle.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <link rel="stylesheet" type="text/css" href="css/image-with-checkbox.css">

    <link rel="icon" href="<?php echo $_SESSION["systemFavIcon"]; ?>" type="img/icon">