本文整理汇总了PHP中DataValidator::is_uinteger方法的典型用法代码示例。如果您正苦于以下问题:PHP DataValidator::is_uinteger方法的具体用法?PHP DataValidator::is_uinteger怎么用?PHP DataValidator::is_uinteger使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataValidator
的用法示例。
在下文中一共展示了DataValidator::is_uinteger方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: today_dateFN
require_once ROOT_DIR . '/include/module_init.inc.php';
require_once ROOT_DIR . '/browsing/include/browsing_functions.inc.php';
//require_once ROOT_DIR . '/include/CourseInstance.inc.php';
/*
* INCLUSIONE SPECIFICA PER PAYPAL
*/
if (file_exists(ROOT_DIR . '/browsing/paypal/paypal_conf.inc.php')) {
require_once ROOT_DIR . '/browsing/paypal/paypal_conf.inc.php';
$paypal_allowed = TRUE;
}
$today_date = today_dateFN();
//$id_course_instance = $_REQUEST['id_instance'];
//$id_studente = $_REQUEST['id_student'];
$providerId = DataValidator::is_uinteger($_GET['provider']);
$courseId = DataValidator::is_uinteger($_GET['course']);
$instanceId = DataValidator::is_uinteger($_GET['instance']);
$testerInfoAr = $common_dh->get_tester_info_from_id($providerId, 'AMA_FETCH_ASSOC');
if (!AMA_Common_DataHandler::isError($testerInfoAr)) {
$provider_name = $testerInfoAr[1];
$tester = $testerInfoAr[10];
$tester_dh = AMA_DataHandler::instance(MultiPort::getDSN($tester));
$currentTesterId = $newTesterId;
$GLOBALS['dh'] = $tester_dh;
/*
* Instance Object
*/
$instanceObj = new course_instance($instanceId);
// print_r($instanceObj);
$price = $instanceObj->getPrice();
$id_course = $instanceObj->getCourseId();
$course = $dh->get_course($courseId);
示例2: __construct
public function __construct($user_dataHa = array())
{
/*
* $user_dataHa is an associative array with the following keys:
* nome, cognome, tipo, e_mail, telefono, username, layout, indirizzo, citta,
* provincia, nazione, codice_fiscale, sesso,
* telefono, stato
*/
if (isset($user_dataHa['id']) && DataValidator::is_uinteger($user_dataHa['id'])) {
$this->id_user = $user_dataHa['id'];
} else {
$this->id_user = 0;
}
$this->nome = isset($user_dataHa['nome']) ? $user_dataHa['nome'] : null;
$this->cognome = isset($user_dataHa['cognome']) ? $user_dataHa['cognome'] : null;
$this->tipo = isset($user_dataHa['tipo']) ? $user_dataHa['tipo'] : null;
$this->email = isset($user_dataHa['email']) ? $user_dataHa['email'] : null;
$this->username = isset($user_dataHa['username']) ? $user_dataHa['username'] : null;
$this->template_family = isset($user_dataHa['layout']) ? $user_dataHa['layout'] : null;
$this->indirizzo = isset($user_dataHa['indirizzo']) ? $user_dataHa['indirizzo'] : null;
$this->citta = isset($user_dataHa['citta']) ? $user_dataHa['citta'] : null;
$this->provincia = isset($user_dataHa['provincia']) ? $user_dataHa['provincia'] : null;
$this->nazione = isset($user_dataHa['nazione']) ? $user_dataHa['nazione'] : null;
$this->codice_fiscale = isset($user_dataHa['codice_fiscale']) ? $user_dataHa['codice_fiscale'] : null;
$this->birthdate = isset($user_dataHa['birthdate']) ? $user_dataHa['birthdate'] : null;
$this->sesso = isset($user_dataHa['sesso']) ? $user_dataHa['sesso'] : null;
$this->telefono = isset($user_dataHa['telefono']) ? $user_dataHa['telefono'] : null;
$this->stato = isset($user_dataHa['stato']) ? $user_dataHa['stato'] : null;
$this->lingua = isset($user_dataHa['lingua']) ? $user_dataHa['lingua'] : null;
$this->timezone = isset($user_dataHa['timezone']) ? $user_dataHa['timezone'] : null;
$this->cap = isset($user_dataHa['cap']) ? $user_dataHa['cap'] : null;
$this->SerialNumber = isset($user_dataHa['matricola']) ? $user_dataHa['matricola'] : null;
$this->avatar = isset($user_dataHa['avatar']) ? $user_dataHa['avatar'] : null;
$this->birthcity = isset($user_dataHa['birthcity']) ? $user_dataHa['birthcity'] : null;
$this->birthprovince = isset($user_dataHa['birthprovince']) ? $user_dataHa['birthprovince'] : null;
}
示例3: whoami
require_once ROOT_DIR . '/browsing/include/browsing_functions.inc.php';
//require_once ROOT_DIR . '/include/CourseInstance.inc.php';
$self = whoami();
// to select the right template
/*
* INCLUSIONE SPECIFICA PER PAYPAL
*/
if (file_exists(ROOT_DIR . '/browsing/paypal/paypal_conf.inc.php')) {
require_once ROOT_DIR . '/browsing/paypal/paypal_conf.inc.php';
$paypal_allowed = TRUE;
}
$today_date = today_dateFN();
$providerId = DataValidator::is_uinteger($_GET['provider']);
$courseId = DataValidator::is_uinteger($_GET['course']);
$instanceId = DataValidator::is_uinteger($_GET['instance']);
$studentId = DataValidator::is_uinteger($_GET['student']);
$testerInfoAr = $common_dh->get_tester_info_from_id($providerId, 'AMA_FETCH_ASSOC');
if (!AMA_Common_DataHandler::isError($testerInfoAr)) {
$provider_name = $testerInfoAr[1];
$tester = $testerInfoAr[10];
$tester_dh = AMA_DataHandler::instance(MultiPort::getDSN($tester));
$currentTesterId = $newTesterId;
$GLOBALS['dh'] = $tester_dh;
$dh = $tester_dh;
/*
* GESTIONE LOG
*/
$logStr = "";
$log_file = ROOT_DIR . '/browsing/paypal/' . PAYPAL_IPN_LOG;
$logFd = fopen($log_file, "a");
$fpx = fopen($log_file, 'a');
示例4: array
* Users (types) allowed to access this module.
*/
$allowedUsersAr = array(AMA_TYPE_SWITCHER);
/**
* Performs basic controls before entering this module
*/
$neededObjAr = array(AMA_TYPE_SWITCHER => array('layout'));
require_once ROOT_DIR . '/include/module_init.inc.php';
$self = 'switcher';
// = switcher!
include_once 'include/' . $self . '_functions.inc.php';
/*
* YOUR CODE HERE
*/
include_once ROOT_DIR . '/include/HtmlLibrary/BaseHtmlLib.inc.php';
$tutor_id = DataValidator::is_uinteger($_GET['id']);
if ($tutor_id == false) {
header('Location: ' . $userObj->getHomePage());
exit;
}
$tutor_ha = $dh->get_tutor($tutor_id);
if (AMA_DataHandler::isError($tutor_ha)) {
$errObj = new ADA_Error($tutor_ha, translateFN('An error occurred while reading tutor data.'));
}
//$tutored_users_number = $dh->get_number_of_tutored_users($id);
$tutored_user_ids = $dh->get_tutored_user_ids($id);
if (AMA_DataHandler::isError($tutored_user_ids)) {
$errObj = new ADA_Error($tutored_user_ids, translateFN('An error occurred while reading tutored user ids'));
}
$number_of_active_tutored_users = $common_dh->get_number_of_users_with_status($tutored_user_ids, ADA_STATUS_REGISTERED);
if (AMA_Common_DataHandler::isError($number_of_active_tutored_users)) {
示例5: array
* Performs basic controls before entering this module
*/
$neededObjAr = array(AMA_TYPE_ADMIN => array('layout'));
require_once ROOT_DIR . '/include/module_init.inc.php';
$self = whoami();
// = admin!
include_once 'include/admin_functions.inc.php';
/*
* YOUR CODE HERE
*/
/*
* 1. dati del tester (con link modifica)
* 2. elenco servizi erogati dal tester (con link modifica)
* 3. link a lista utenti presenti sul tester
*/
$id_tester = DataValidator::is_uinteger($_GET['id_tester']);
if ($id_tester !== FALSE) {
$tester_infoAr = $common_dh->get_tester_info_from_id($id_tester);
if (AMA_Common_DataHandler::isError($tester_infoAr)) {
$errObj = new ADA_Error($tester_infoAr);
} else {
$testersAr = array();
$tester_dataAr = array(array(translateFN('id'), $tester_infoAr[0]), array(translateFN('Nome'), $tester_infoAr[1]), array(translateFN('Ragione Sociale'), $tester_infoAr[2]), array(translateFN('Indirizzo'), $tester_infoAr[3]), array(translateFN('Città'), $tester_infoAr[4]), array(translateFN('Provincia'), $tester_infoAr[5]), array(translateFN('Nazione'), $tester_infoAr[6]), array(translateFN('Telefono'), $tester_infoAr[7]), array(translateFN('E-mail'), $tester_infoAr[8]), array(translateFN('Descrizione'), $tester_infoAr[11]), array(translateFN('Responsabile'), $tester_infoAr[9]), array(translateFN('Puntatore al database'), $tester_infoAr[10]));
//$tester_data = BaseHtmlLib::tableElement('',array(),$tester_dataAr);
$tester_data = AdminModuleHtmlLib::displayTesterInfo($id_tester, $tester_dataAr);
$services_dataAr = $common_dh->get_info_for_tester_services($id_tester);
if (AMA_Common_DataHandler::isError($services_dataAr)) {
$errObj = new ADA_Error($services_dataAr);
} else {
$tester_services = AdminModuleHtmlLib::displayServicesOnThisTester($id_tester, $services_dataAr);
}
示例6: fopen
* GESTIONE LOG
*/
$logStr = "";
$log_file = ROOT_DIR . '/browsing/paypal/' . PAYPAL_IPN_LOG;
$logFd = fopen($log_file, "a");
$fpx = fopen($log_file, 'a');
$debug = 1;
if ($debug == 1) {
fwrite($fpx, "INIZIO processo IPN\n");
fwrite($fpx, "Prima di init \n");
}
$today_date = today_dateFN();
$providerId = DataValidator::is_uinteger($_REQUEST['provider']);
$courseId = DataValidator::is_uinteger($_REQUEST['course']);
$instanceId = DataValidator::is_uinteger($_REQUEST['instance']);
$studentId = DataValidator::is_uinteger($_REQUEST['student']);
$testerInfoAr = $common_dh->get_tester_info_from_id($providerId, 'AMA_FETCH_ASSOC');
$buyerObj = read_user($studentId);
if (is_object($buyerObj) && !AMA_dataHandler::isError($buyerObj)) {
if (!AMA_Common_DataHandler::isError($testerInfoAr)) {
$provider_name = $testerInfoAr[1];
$tester = $testerInfoAr[10];
$tester_dh = AMA_DataHandler::instance(MultiPort::getDSN($tester));
$currentTesterId = $newTesterId;
$GLOBALS['dh'] = $tester_dh;
$dh = $tester_dh;
// id dello studente
if (!isset($instanceId)) {
$instanceId = $sess_id_user;
// ??????
}
示例7: array
*/
$neededObjAr = array(AMA_TYPE_ADMIN => array('layout'));
require_once ROOT_DIR . '/include/module_init.inc.php';
$self = whoami();
// = admin!
include_once 'include/admin_functions.inc.php';
/*
* YOUR CODE HERE
*/
$id_tester = DataValidator::is_uinteger($_GET['id_tester']);
if (!isset($_GET['page']) || DataValidator::is_uinteger($_GET['page']) === FALSE) {
$page = 1;
} else {
$page = $_GET['page'];
}
$userTypeToFilter = isset($_GET['user_type']) ? DataValidator::is_uinteger($_GET['user_type']) : false;
$users_per_page = 20;
if ($id_tester !== FALSE) {
$tester_info = $common_dh->get_tester_info_from_id($id_tester);
$tester_dsn = MultiPort::getDSN($tester_info[10]);
if ($tester_dsn != NULL) {
$tester_dh = AMA_DataHandler::instance($tester_dsn);
if ($userTypeToFilter !== FALSE) {
$user_typesAr = array($userTypeToFilter);
} else {
$user_typesAr = array(AMA_TYPE_STUDENT, AMA_TYPE_AUTHOR, AMA_TYPE_TUTOR, AMA_TYPE_SWITCHER, AMA_TYPE_ADMIN);
}
$users_count = $tester_dh->count_users_by_type($user_typesAr);
if (AMA_DataHandler::isError($users_count)) {
$errObj = new ADA_Error($users_count);
} else {
示例8: unset
} else {
unset($_POST['submit']);
$service_dataAr = $_POST;
$result = $common_dh->set_service($_POST['service_id'], $service_dataAr);
if (AMA_Common_DataHandler::isError($result)) {
$errObj = new ADA_Error($result);
} else {
header('Location: ' . $userObj->getHomePage());
exit;
}
}
} else {
/*
* Display the add user form
*/
$id_service = DataValidator::is_uinteger($_GET['id_service']);
if ($id_service !== FALSE) {
$service_infoAr = $common_dh->get_service_info($id_service);
if (AMA_Common_DataHandler::isError($service_infoAr)) {
$errObj = new ADA_Error($service_infoAr);
} else {
$testersAr = array();
$service_dataAr = array('service_id' => $service_infoAr[0], 'service_name' => $service_infoAr[1], 'service_description' => $service_infoAr[2], 'service_level' => $service_infoAr[3], 'service_duration' => $service_infoAr[4], 'service_min_meetings' => $service_infoAr[5], 'service_max_meetings' => $service_infoAr[6], 'service_meeting_duration' => $service_infoAr[7]);
$form = AdminModuleHtmlLib::getEditServiceForm($testersAr, $service_dataAr);
}
} else {
$form = new CText('');
}
}
$label = translateFN("Modifica servizio");
$help = translateFN("Da qui l'amministratore puo' apportare modifiche ad un servizio esistente");
示例9: read_course_instance_from_DB
/**
* @param int $id_course_instance - a valid ADA
* @return a Course_instance object on success, on failure raises a ADA_Error
*/
function read_course_instance_from_DB($id_course_instance)
{
if (DataValidator::is_uinteger($id_course_instance) !== FALSE) {
$read_id_course_instance = $id_course_instance;
} else {
$read_id_course_instance = $_SESSION['sess_id_course_instance'];
}
if (isset($read_id_course_instance)) {
$courseInstanceObj = new Course_instance($read_id_course_instance);
if ($courseInstanceObj->full == 0) {
/*
* Return a ADA_Error object with delayedErrorHandling set to TRUE.
*/
return new ADA_Error(NULL, translateFN('Errore in lettura oggetto istanza corso'), 'read_course_instance_from_DB', NULL, NULL, NULL, TRUE);
}
return $courseInstanceObj;
} else {
/*
* Return a ADA_Error object with delayedErrorHandling set to TRUE.
*/
return new ADA_Error(NULL, translateFN('Errore in lettura oggetto istanza corso'), 'read_course_instance_from_DB', NULL, NULL, NULL, TRUE);
}
}
示例10: array
$userToEditObj->setBirthCity($_POST['user_birthcity']);
$userToEditObj->setBirthProvince($_POST['user_birthprovince']);
if ($userToEditObj instanceof ADAPractitioner) {
$userToEditObj->setProfile($_POST['user_profile']);
}
MultiPort::setUser($userToEditObj, array(), true);
$navigationHistoryObj = $_SESSION['sess_navigation_history'];
$location = $navigationHistoryObj->lastModule();
header('Location: ' . $location);
exit;
}
} else {
/*
* Display the add user form
*/
if (DataValidator::is_uinteger($_GET['id_user']) === FALSE) {
$form = new CText('');
} else {
$userToEditObj = MultiPort::findUser($_GET['id_user']);
$user_dataAr = $userToEditObj->toArray();
$testers_for_userAr = $common_dh->get_testers_for_user($_GET['id_user']);
/*
* FIXME: selects just one tester. if the user is of type ADAUser
* we have to display all the associated testers.
*/
if (!AMA_Common_DataHandler::isError($testers_for_userAr) && count($testers_for_userAr) > 0) {
$tester = $testers_for_userAr[0];
} else {
$tester = NULL;
}
$dataAr = array('user_id' => $user_dataAr['id_utente'], 'user_firstname' => $user_dataAr['nome'], 'user_lastname' => $user_dataAr['cognome'], 'user_type' => $user_dataAr['tipo'], 'user_email' => $user_dataAr['e_mail'], 'user_username' => $user_dataAr['username'], 'user_layout' => $user_dataAr['layout'], 'user_address' => $user_dataAr['indirizzo'], 'user_city' => $user_dataAr['citta'], 'user_province' => $user_dataAr['provincia'], 'user_country' => $user_dataAr['nazione'], 'user_fiscal_code' => $user_dataAr['codice_fiscale'], 'user_birthdate' => $user_dataAr['birthdate'], 'user_sex' => $user_dataAr['sesso'], 'user_phone' => $user_dataAr['telefono'], 'user_tester' => $tester, 'user_profile' => isset($user_dataAr['profilo']) ? $user_dataAr['profilo'] : null, 'user_birthcity' => $user_dataAr['birthcity'], 'user_birthprovince' => $user_dataAr['birthprovince']);
示例11: unset
if (DataValidator::validate_not_empty_string($_POST['service_description']) === FALSE) {
$errorsAr['service_description'] = true;
}
if (DataValidator::is_uinteger($_POST['service_level']) === FALSE) {
$errorsAr['service_level'] = true;
}
if (DataValidator::is_uinteger($_POST['service_duration']) === FALSE) {
$errorsAr['service_duration'] = true;
}
if (DataValidator::is_uinteger($_POST['service_min_meetings']) === FALSE) {
$errorsAr['service_min_meetings'] = true;
}
if (DataValidator::is_uinteger($_POST['service_max_meetings']) === FALSE) {
$errorsAr['service_max_meetings'] = true;
}
if (DataValidator::is_uinteger($_POST['service_meeting_duration']) === FALSE) {
$errorsAr['service_meeting_duration'] = true;
}
if (count($errorsAr) > 0) {
$service_dataAr = $_POST;
$form = AdminModuleHtmlLib::getAddServiceForm($testersAr, $service_dataAr, $errorsAr);
} else {
unset($_POST['submit']);
$service_dataAr = $_POST;
if ($common_dh->add_service($service_dataAr)) {
header('Location: ' . $userObj->getHomePage());
exit;
} else {
$errObj = new ADA_Error();
}
}
示例12: sprintf
// $title = translateFN('Registration confirmed');
$dati = sprintf(translateFN('Hai confermato la tua registrazione a %s. %s Puoi accedere a %s inserendo il tuo username (%s) e la tua password nella pagina di login di %s.'), PORTAL_NAME, '<br />', PORTAL_NAME, $userObj->getUserName(), PORTAL_NAME);
// $dati = sprintf(translateFN('You have successfully confirmed your registration to ICON. %s You can access ICON by entering your username (%s) and your password in the ADA login page.'),'<br />', $userObj->getUserName());
$login_page_link = CDOMElement::create('a', 'href:' . HTTP_ROOT_DIR);
$login_page_link->addChild(new CText(translateFN('Pagina di login')));
$dati .= '<br />' . $login_page_link->getHtml();
break;
case 'set_new_password':
/*
* first time here: we show only the password and passwordcheck fields
*/
/*
* Data validation
*/
$token = DataValidator::validate_action_token($_GET['tok']);
$userid = DataValidator::is_uinteger($_GET['uid']);
if ($token == false || $userid == false) {
/*
* Token or userid not valid, do not proceed.
*/
header('Location: ' . HTTP_ROOT_DIR);
exit;
}
$tokenObj = TokenFinder::findTokenForUserRegistration($userid, $token);
if ($tokenObj == false) {
/*
* There isn't a token corresponding to input data, do not proceed.
*/
$message = translateFN('Did not find a token that matches your request');
header('Location: ' . HTTP_ROOT_DIR . '/index.php?message=' . urlencode($message));
exit;
示例13: array
* Users (types) allowed to access this module.
*/
$allowedUsersAr = array(AMA_TYPE_SWITCHER);
/**
* Performs basic controls before entering this module
*/
$neededObjAr = array(AMA_TYPE_SWITCHER => array('layout'));
require_once ROOT_DIR . '/include/module_init.inc.php';
$self = 'switcher';
// = switcher!
include_once 'include/' . $self . '_functions.inc.php';
/*
* YOUR CODE HERE
*/
include_once ROOT_DIR . '/include/HtmlLibrary/BaseHtmlLib.inc.php';
if (DataValidator::is_uinteger($id) !== FALSE) {
/*
* Aggiungere un controllo per verificare che l'utente di cui si vuole vedere
* il profilo sia un utente seguito da questo switcher?
*/
$tutoredUserObj = MultiPort::findUser($id);
$user_dataAr = array(translateFN('Id utente') => $tutoredUserObj->getId(), translateFN('Nome') => $tutoredUserObj->getFirstName(), translateFN('Cognome') => $tutoredUserObj->getLastName(), translateFN('E-mail') => $tutoredUserObj->getEmail(), translateFN('Username') => $tutoredUserObj->getUserName(), translateFN('Indirizzo') => $tutoredUserObj->getAddress(), translateFN('Città') => $tutoredUserObj->getCity(), translateFN('Provincia') => $tutoredUserObj->getProvince(), translateFN('Nazione') => $tutoredUserObj->getCountry(), translateFN('Codice fiscale') => $tutoredUserObj->getFiscalCode(), translateFN('Data di Nascita') => $tutoredUserObj->getBirthDate(), translateFN('Comune o stato estero di nascita') => $tutoredUserObj->getBirthCity(), translateFN('Provincia di nascita') => $tutoredUserObj->getBirthProvince(), translateFN('Sesso') => $tutoredUserObj->getGender(), translateFN('Telefono') => $tutoredUserObj->getPhoneNumber(), translateFN('Status') => $tutoredUserObj->getStatus());
$data = BaseHtmlLib::plainListElement('', $user_dataAr);
} else {
$data = new CText(translateFN("Id dell'utente non valido"));
}
$banner = (include ROOT_DIR . '/include/banner.inc.php');
$status = translateFN("Caratteristiche dell'utente");
// preparazione output HTML e print dell' output
$title = translateFN('ADA - dati epractitioner');
$content_dataAr = array('menu' => $menu, 'banner' => $banner, 'dati' => $data->getHtml(), 'help' => $help, 'status' => $status, 'user_name' => $user_name, 'user_type' => $user_type, 'messages' => $user_messages->getHtml(), 'agenda' => $user_agenda->getHtml());
示例14: ADA_Error
* If id course instance is not set or is not valid,
* return to user's home page
*/
$id_course_instance = DataValidator::is_uinteger($_GET['id_course_instance']);
if ($id_course_instance === FALSE) {
$errObj = new ADA_Error(NULL, translateFN('Impossibile accedere al modulo'), NULL, NULL, NULL, $userObj->getHomePage());
}
/*
* If id user is not set or is not valid,
* return to user's home page
*/
$id_user = DataValidator::is_uinteger($_GET['id_user']);
if ($id_user === FALSE) {
$errObj = new ADA_Error(NULL, translateFN('Impossibile accedere al modulo'), NULL, NULL, NULL, $userObj->getHomePage());
}
$page = DataValidator::is_uinteger($_GET['page']);
if ($page === FALSE) {
$page = 1;
}
$tutoredUserObj = MultiPort::findUser($id_user);
/*
* Obtain service information and eguidance data for the given id_course_instance
*/
$id_course = $dh->get_course_id_for_course_instance($id_course_instance);
if (AMA_DataHandler::isError($id_course)) {
$errObj = new ADA_Error(NULL, translateFN("Errore nell'ottenimento dell'id del servzio"), NULL, NULL, NULL, $userObj->getHomePage());
}
$service_infoAr = $common_dh->get_service_info_from_course($id_course);
if (AMA_Common_DataHandler::isError($service_infoAr)) {
$errObj = new ADA_Error(NULL, translateFN("Errore nell'ottenimento delle informazioni sul servizio"), NULL, NULL, NULL, $userObj->getHomePage());
}
示例15: array
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'POST') {
/*
* Handle data from $_POST:
* 1. validate user submitted data
* 2. if there are errors, display the add user form updated with error messages
* 3. if there aren't errors, add this user to the common database and to
* the tester databases associated with this user.
*/
/*
* Validazione dati
*/
$errorsAr = array();
if ($_POST['user_tester'] == 'none') {
$errorsAr['user_tester'] = true;
}
if (DataValidator::is_uinteger($_POST['user_type']) === FALSE) {
$errorsAr['user_type'] = true;
}
if (DataValidator::validate_firstname($_POST['user_firstname']) === FALSE) {
$errorsAr['user_firstname'] = true;
}
if (DataValidator::validate_lastname($_POST['user_lastname']) === FALSE) {
$errorsAr['user_lastname'] = true;
}
if (DataValidator::validate_email($_POST['user_email']) === FALSE) {
$errorsAr['user_email'] = true;
}
if (DataValidator::validate_username($_POST['user_username']) === FALSE) {
$errorsAr['user_username'] = true;
}
if (DataValidator::validate_password($_POST['user_password'], $_POST['user_passwordcheck']) === FALSE) {