<commit_before><?php
    $header_tag_extras = "";
    $header_section_styles = "";
    $header_section_metas = "";
    $header_section_scripts = "";
    $header_section_extras = "";
    $body_tag_extras = "";

    $body_section_styles = "";
    $body_section_scripts = "";
    $body_section_content = "";

    $navbar_content = array(
        array("#", "Home"),
        array("login.php", "Login."),
        array("signup.php", "Sign up."),
        array("about.php", "About us."),
        array("contact.php", "contact us.")
    );

    include ("templates/base.php");
?><commit_msg>update index page according to user<commit_after><?php
    session_start();

    $header_tag_extras = "";
    $header_section_styles = "";
    $header_section_metas = "";
    $header_section_scripts = "";
    $header_section_extras = "";
    $body_tag_extras = "";

    $body_section_styles = "";
    $body_section_scripts = "";
    $body_section_content = '<p> Welcome to the QA website for Cairo University, Faculty of Engineering</p>
    <p>Use the navigation bar to the left to go through the website</p>';

    if (isset($_SESSION['user_id']))
    {
        // check user type
        switch ($_SESSION['type']) {
            case 'qa_member':
                break;

            case 'admin':
                $navbar_content = array(
                    array("#", "Home"),
                    array("admin/index.php", "DashBoard."),
                    array("about.php", "About us."),
                    array("contact.php", "contact us."),
                    array("logout.php", "Sign out.")
                );
                break;

            case 'instractor':
                // TODO: add in Sunday build
                break;

            case 'department_manager':
                // TODO: add in Sunday build
                break;

            case 'waiting user':
                $navbar_content = array(
                    array("#", "Home"),
                    array("about.php", "About us."),
                    array("contact.php", "contact us."),
                    array("logout.php", "Sign out.")
                );
                break;

            default:
                die('unregisterd user managed to get here dfuck!');
                break;
        }
    }
    else
    {// anonymous user
        $navbar_content = array(
            array("#", "Home"),
            array("login.php", "Login."),
            array("signup.php", "Sign up."),
            array("about.php", "About us."),
            array("contact.php", "contact us.")
        );
    }


    include ("templates/base.php");
?>
{'fraction_non_alphanumeric': 0.15070583746661578, 'fraction_numerical': 0.0, 'mean_word_length': 1.6538461538461537, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1710909', 'n_tokens_mistral': 747, 'n_tokens_neox': 707, 'n_words': 157}