Ignore:
Timestamp:
May 2, 2008, 11:56:21 PM (16 years ago)
Author:
rub
Message:

Resolved issue 0000823: Enhance upload functionalities

First commit, others will be follow.
Not hesitate to change my translations.

Add upload configuration tabsheet (move and add configuration)
Change and add define for access level
Can show upload link every time
Can restrict access upload.class.php
Can choice category on upload page
Add upload class not use for the moment
Review quickly and temporary style of upload.tpl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r2324 r2325  
    18381838  return $query;
    18391839}
     1840
     1841/**
     1842 * Returns array use on template with html_options method
     1843 * @param Min and Max access to use
     1844 * @return array of user access level
     1845 */
     1846function get_user_access_level_html_options($MinLevelAccess = ACCESS_FREE, $MaxLevelAccess = ACCESS_CLOSED)
     1847{
     1848  $tpl_options = array();
     1849  for ($level = $MinLevelAccess; $level <= $MaxLevelAccess; $level++)
     1850  {
     1851    $tpl_options[$level] = l10n(sprintf('ACCESS_%d', $level));
     1852  }
     1853  return $tpl_options;
     1854}
     1855
    18401856?>
Note: See TracChangeset for help on using the changeset viewer.