<?php // Copyright 2015 - NINETY-DEGREES require_once "JentiConfig.php"; require_once "JentiSession.php"; $session = new JentiSession($config); if ($session->error) { echo $session->error; exit; } $catalog = $session->catalog; $session->save_user_start(); ?> <!DOCTYPE html> <html> <head> <title> J E N T I </title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" href="./favicon.png" /> <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.css"> <link rel="stylesheet" href="css/themes/<?php echo $session->skin; ?> .css" /> <link rel="stylesheet" href="css/themes/jquery.mobile.icons.min.css" /> <link rel="stylesheet" href="jenti.css"> <!--
<?php require_once 'JentiConfig.php'; require_once 'JentiSession.php'; $session = new JentiSession($config); if ($session->error) { echo $session->error; } $session->validate_session(); if ($session->error) { echo 'RESUME: ' . $session->error; } else { echo "USER AUTHENTICATED"; }
<?php require_once '../JentiConfig.php'; require_once '../JentiSession.php'; require_once "../JentiAjax.php"; set_error_handler("ajax_error_handler"); $session = new JentiSession($config); if ($session->error) { echo ajax_json_response_error($session->error); exit; } $user_array["EMAIL"] = $_REQUEST["EMAIL"]; $user_array["PASSWORD"] = $_REQUEST["CITY"]; $user_array["NAME"] = $_REQUEST["NAME"]; $user_array["BIRTHDATE"] = $_REQUEST["BIRTHDATE"]; $session->save_user_info($user_array); if ($session->error) { echo ajax_json_response_error($session->error); exit; } echo ajax_json_response(""); restore_error_handler();
<?php require_once "../JentiConfig.php"; require_once "../JentiSession.php"; require_once "../JentiWord.php"; require_once "../JentiAjax.php"; set_error_handler("ajax_error_handler"); $session = new JentiSession($config); if ($session->error) { echo ajax_json_response_error($session->error); exit; } $session->save_guess($_REQUEST); echo ajax_json_response(""); restore_error_handler();
<?php require_once "../JentiConfig.php"; require_once "../JentiSession.php"; require_once "TestSupport.php"; ob_start(); //ini_set('error_reporting', 0); $session = new JentiSession($config); if ($session->error) { test_echobr($session->error); } $session->login("gigi", "gigi"); if ($session->error) { test_echobr($session->error); } else { $session->logout(); if ($session->error) { test_echobr($session->error); } } //test_print_r($session); //test_print_r($_COOKIE); //test_print_r($catalog); ob_end_flush(); //echo json_encode($session);
<?php require_once '../JentiConfig.php'; require_once '../JentiSession.php'; require_once "../JentiAjax.php"; set_error_handler("ajax_error_handler"); $session = new JentiSession($config); if ($session->error) { echo ajax_json_response_error($session->error); exit; } $email = $_REQUEST["BERGAMO"]; $pwd = $_REQUEST["ENDINE"]; $session->login($email, $pwd); if ($session->error) { echo ajax_json_response_error($session->error); exit; } echo ajax_json_response(""); restore_error_handler();
<?php require_once "../JentiConfig.php"; require_once "../JentiSession.php"; require_once "../JentiWord.php"; require_once "../JentiAjax.php"; set_error_handler("ajax_error_handler"); $session = new JentiSession($config); if ($session->error) { echo ajax_json_response_error($session->error); exit; } $activity_info["WORD_ID"] = $_REQUEST["WORD_ID"]; $activity_info["DEFINITION_ID"] = $_REQUEST["DEFINITION_ID"]; if (isset($_REQUEST["FEEDBACK"])) { $activity_info["FEEDBACK"] = trim($_REQUEST["FEEDBACK"]); } if (isset($_REQUEST["LIKE"])) { $activity_info["LIKE"] = $_REQUEST["LIKE"]; } if (isset($activity_info["LIKE"]) && $activity_info["LIKE"] || isset($activity_info["FEEDBACK"])) { $session->save_user_feedback($activity_info); if ($session->error) { echo ajax_json_response_error($session->error); exit; } } echo ajax_json_response(""); restore_error_handler();
<?php require_once 'JentiConfig.php'; require_once 'JentiSession.php'; set_error_handler("ajax_error_handler"); $session = new JentiSession($config); if ($session->error) { echo 'LOGOUT: ' . $session->error; } $session->logout(); if ($session->error) { echo 'LOGOUT: ' . $session->error; } else { echo "LOGGED OUT"; } restore_error_handler();
<?php require_once "../JentiConfig.php"; require_once "../JentiSession.php"; require_once "../JentiAjax.php"; set_error_handler("ajax_error_handler"); $session = new JentiSession($config); if ($session->error) { echo ajax_json_response_error($session->error); exit; } $session->change_skin(); echo ajax_json_response(""); restore_error_handler();