$logger = new FullLog('Add New Customer Form'); $logger->serverData(); $checkAuth = new CheckAuth($logger); $redis = new RedisSingleton(); $blackList = new BlackLister($redis); $error = error_get_last(); $errors = []; $files = null; if ($numFiles) { for ($i = 0; $i < intval($numFiles); $i += 1) { $files = $_FILES; } } $username = !empty($username) ? $auth->cleanString($username) : null; $password = !empty($password) ? $password : null; $email = !empty($email) ? $auth->vEmail($email) : null; $address = !empty($address) ? $auth->cleanString($address) : null; $phone = !empty($phone) ? $auth->vPhone($phone) : null; $stop = !empty($stop) ? true : false; $potentialAbuse = isset($potentialAbuse) ? $auth->cInt($potentialAbuse) : null; if ($stop) { return false; } $instructions = !empty(trim($instructions)) ? $auth->cleanString($instructions) : null; $action = !empty($action) ? $auth->cleanString($action) : null; $username || ($errors[] = "No username was sent over."); $email || ($errors[] = "No email was sent over or an invalid Email was sent."); $address || ($errors[] = "No address was sent over."); $phone || ($errors[] = "No phone number was sent over."); $action || ($errors[] = "No action was sent over, do not have enough information."); $password || ($errors[] = "No password was sent over.");