Beispiel #1
0
<?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);
Beispiel #2
0
<?php

include "model.php";
$model = new model();
$username = $model->security($_POST['username']);
$password = $model->security($_POST['password']);
echo $model->register($username, $password);
Beispiel #3
0
<?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);
Beispiel #4
0
<?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);