initial commit

This commit is contained in:
lopar
2018-01-28 18:40:49 +02:00
commit 46c75d1542
8193 changed files with 183296 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
$errors = array();
$form_data = array();
if(empty($_POST['user'])) $errors['name'] = 'Вы кто?';
if(empty($_POST['hash'])) $errors['name'] = 'Где потеряли Hash?';
if(empty($_POST['sorted'])) $errors['name'] = 'Не понимаю кого искать ...';
if(!empty($errors)) {
$form_data['success'] = false;
$form_data['errors'] = $errors;
} else {
$form_data['success'] = true;
$form_data['posted'] = 'Great';
}
echo json_encode($form_data);
?>