unlimitup is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

unlimitup

/trunkadmin
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
$title = "Unlimitup - Gestion des fichiers";
include 'partials/header.php';

//On récupčre toutes les catégories parent
$categoryList=Categories::listing(' WHERE ref_id_ca = 0 AND status_ca = 1 ORDER BY name_ca ASC ');


if(isset($_GET['filetodelete'])){
    $filetodelete = Files::read($_GET['filetodelete']);
    $filetodelete->setStatus_fi(0);
    unlink("../".FILE_PATH.$filetodelete->getUrl_fi());
    $filetodelete->save();
}

function getListSubCategory($category){
    $SubCategoryList=Categories::listing('WHERE ref_id_ca = "'.$category->getId_ca().
                    '" AND status_ca = 1 ORDER BY name_ca ASC;');
    return $SubCategoryList;
}

function getListFiles(){
    $filesList = Files::listing('WHERE id_ca = "'.$_GET['id_ca'].
        '" AND status_fi = 1 ORDER BY name_fi ASC;');
    return $filesList;
}

function formatDate($date){
    return $lastFormat=date('d/m/Y',strtotime($date));
}

$slug="library";
include 'partials/library.php';
?>
Ajax-loader Loading, please wait...