PHP Classes

File: uploady/admin/users/actions/new.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Uploady PHP Upload File to MySQL   uploady/admin/users/actions/new.php   Download  
File: uploady/admin/users/actions/new.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Uploady PHP Upload File to MySQL
Store file upload details in a MySQL database
Author: By
Last change: Fixing the bug in the report abuse logic
Date: 2 months ago
Size: 795 bytes


Class file image Download

include_once '../../session.php';

$utility = new \Farisc0de\PhpFileUploading\Utility();

$upload = new \Farisc0de\PhpFileUploading\Upload($utility);


$user_id = $upload->getUserID();

if (

    if (!
$auth->checkToken($_POST['csrf'], $_SESSION['csrf'])) {


$password = $utils->sanitize($_POST['password']);
$_POST['password'] = password_hash($password, PASSWORD_BCRYPT);
$_POST['user_id'] = $user_id;

    if (
$user->add($utils->esc($_POST))) {
$msg = 'user_created';
    } else {
$msg = 'error';