Ejemplo n.º 1
0
    along with Cybermin; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

 2006 Namont Nicolas
 2012 florence DAUVERGNE

 include/user_accueil.php V0.1
*/
// Page d'accueil sur le compte animateur ou administrateur
// admin --- Utilisateur
include "post_reservation-rapide.php";
include "fonction_stat.php";
$term = $_POST["term"];
$mesno = $_GET["mesno"];
//Tous les utilisateurs, inscription de la connexion dans la tab_connexion(user,date,type=1=login,MACADRESS,Navigateur, System)
$exploitation = operating_system_detection();
$ua = getBrowser();
$navig = $ua['name'] . " " . $ua['version'];
$macadress = "inconnue pour l\\'instant";
$cx = enterConnexionstatus($_SESSION['iduser'], date('Y-m-d H:i:s'), 1, $macadress, $navig, $exploitation);
//***** -------------fonctions pour administrateur & animateurs
if ($_SESSION["status"] == "3" or $_SESSION["status"] == "4") {
    //liste des ateliers/evenements de la journee
    $listeWeekAtelier = getWeekAteliers(date('Y-m-d'), $_SESSION["idepn"]);
    $nbTA = mysqli_num_rows($listeWeekAtelier);
    // verifier les abonnements des adherent et mettre a jour le statut actif
    $majadh = getLogUser('adh');
    if (mysqli_num_rows($majadh) == 0) {
        $listAdhinactifs = getAdhInactif(date('Y-m-d'));
        $updateA = updateUserStatut();
        // les usagers dont la date de renouvellement est du jour.
Ejemplo n.º 2
0
<!DOCTYPE html>
<?php 
if (session_status() == PHP_SESSION_NONE) {
    session_start();
}
include_once './osutilities.php';
include "./pdo.php";
$db_file = "./restaurant.sqlite3";
PDO_Connect("sqlite:{$db_file}");
$operatingSystem = operating_system_detection();
if (strpos($operatingSystem, "Linux")) {
    include_once './password.php';
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    // check if the user is coming from signup or sign-in
    if (isset($_POST['signupsubmitbutton'])) {
        /*
         * this is a signup request, because user clicked the signup submit button echo "singup";
         */
        handleSignup();
    } else {
        if (isset($_POST['signinbutton'])) {
            // this is a signin request.
            // handle Signin();
            // echo "sigin <br/>";
            SignIn();
        } else {
            if (isset($_POST['logout'])) {
                SignOut();
            } else {
                // Do not let the user access this script directly like by typing www.ourPOS.com/email.php