<?php

session_start();
if (!isset($_SESSION["logged"])) {
    header('Location: logout.php');
}
include "functions.php";
$db = connectToDb();
$users = listAllUsers($db);
echo $users;
Esempio n. 2
0
        echo "<div id='ribbits' class='panel left'>";
        echo "<h1>no user selected - pick a user</h1>";
        //get profiles of all users
        listAllUsers($db);
        echo "</div>";
        echo "</div>";
        echo "</div>";
    }
}
//list all users on viewAllUsers.php
if ($currentPage == "/ribbit/viewAllUsers.php") {
    echo "<div class='wrapper'>";
    echo "<div id='ribbits' class='panel left'>";
    echo "<h1>all users</h1>";
    //get profiles of all users
    listAllUsers($db);
    echo "</div>";
    echo "</div>";
    echo "</div>";
}
//list search results on searchResults.php
if ($currentPage == "/ribbit/searchResults.php") {
    //if there is a search query
    if (isset($_GET["query"]) && isset($_GET["searchParam"])) {
        //if the query is not empty
        if ($_GET["query"] != "") {
            //setting up initial variables
            $searchUsernames = "";
            $searchRibbits = "";
            $numProfileRows = 0;
            $numRibbitRows = 0;
Esempio n. 3
0
     slide2();
     break;
 case 'search':
     search();
     break;
 case 'searchTechDetails':
     searchTechDetails();
     break;
 case 'fPassword':
     fPassword();
     break;
 case 'loginCheck':
     loginCheck();
     break;
 case 'listAllUsers':
     listAllUsers();
     break;
 case 'showadminUsers':
     showadminUsers();
     break;
 case 'showproductTypes':
     showproductTypes();
     break;
 case 'showDealers':
     showDealers();
     break;
 case 'showProductCategory':
     showProductCategory();
     break;
 case 'showASC':
     showASC();