PHP Classes

File: uploady/admin/logic/homeLogic.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Uploady PHP Upload File to MySQL   uploady/admin/logic/homeLogic.php   Download  
File: uploady/admin/logic/homeLogic.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: Update of uploady/admin/logic/homeLogic.php
Date: 4 months ago
Size: 514 bytes
 

Contents

Class file image Download
<?php

$upload
= new \Uploady\Handler\UploadHandler($db);

$mailer = new Uploady\Mailer($db);

$user = new Uploady\User($db, $utils);

$page = new Uploady\Page($db, $utils);

$count_user = $user->countAll();

$count_files = $upload->countFiles();

$count_downloads = $upload->getDownloadsTotal();

$count_pages = $page->countAll();

$files_info = [];

$latest = $upload->getLatestFiles();

foreach (
$latest as $file) {
   
array_push($files_info, json_decode($file->file_data, true));
}

$users = $user->getAll();