<?php include "model.php"; $model = new model(); $title = $model->security($_POST['title']); $value = $model->security($_POST['value-articles']); session_start(); $auth = $_SESSION['username']; echo $model->post($title, $value, $auth);
<?php include "model.php"; $model = new model(); $username = $model->security($_POST['username']); $password = $model->security($_POST['password']); echo $model->register($username, $password);
<?php include "model.php"; $model = new model(); $photo = $model->security($_FILE['file']); $firstname = $model->security($_POST['firstname']); $lastname = $model->security($_POST['lastname']); $email = $model->security($_POST['email']); session_start(); $username = $_SESSION['username']; echo $model->update_profile($firstname, $lastname, $email, $username);
<?php include "model.php"; $model = new model(); $to = $model->security($_POST['receiver']); $message = $model->security($_POST['message-value']); session_start(); $username = $_SESSION['username']; echo $model->send_message($message, $to, $username);