コード例 #1
0
ファイル: post.php プロジェクト: billxcode/simple_lite_cms
<?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);
コード例 #2
0
ファイル: register.php プロジェクト: billxcode/ok_jek
<?php

include "model.php";
$model = new model();
$username = $model->security($_POST['username']);
$password = $model->security($_POST['password']);
echo $model->register($username, $password);
コード例 #3
0
ファイル: update-profile.php プロジェクト: billxcode/ok_jek
<?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);
コード例 #4
0
ファイル: send-message.php プロジェクト: billxcode/ok_jek
<?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);