PHP Classes

File: application/modules/helpers.php

Recommend this page to a friend!
  Classes of Tran Tuan   Pretty PHP S3 Files Manager   application/modules/helpers.php   Download  
File: application/modules/helpers.php
Role: Auxiliary script
Content type: text/plain
Description: Initial
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 8 years ago
Size: 597 bytes
 

Contents

Class file image Download
<?php

function is_check_grant($permissions, $user, $permission){
    if (
in_array($permission, $permissions[$user])) {
        return
true;
    }
    else return
false;
}

function
array_orderby()
{
   
$args = func_get_args();
   
$data = array_shift($args);
    foreach (
$args as $n => $field) {
        if (
is_string($field)) {
           
$tmp = array();
            foreach (
$data as $key => $row)
               
$tmp[$key] = $row[$field];
           
$args[$n] = $tmp;
        }
    }
   
$args[] = &$data;
   
call_user_func_array('array_multisort', $args);
    return
array_pop($args);
}