static int checkQuota(
int
$error, string
$image
)
|
|
Checks if upload should be allowed
Parameters:
int |
$error: |
|
string |
$image: |
|
static string edit_admin(
string
$html, $userobj
$userobj, string
$i, string
$background, bool
$current,
$local_alterrights
)
|
|
Returns table row(s) for edit of an admin user's custom data
Parameters:
string |
$html: |
always empty |
string |
$i: |
prefix for the admin |
string |
$background: |
background color for the admin row |
bool |
$current: |
true if this admin row is the logged in admin |
$userobj |
$userobj: |
Admin user object |
|
$local_alterrights: |
|
static int getCurrentUse(
$userobj
$userobj
)
|
|
Returns current image useage
Parameters:
$userobj |
$userobj: |
Admin user object |
static int getUploadLimit(
int
$uploadlimit
)
|
|
Returns the upload limit
Parameters:
static int getUploadQuota(
int
$quota
)
|
|
Returns the user's quota
Parameters:
static string get_header(
string
$default
)
|
|
Returns quota text for header, etc.
Parameters:
static object image_refresh(
unknown_type
$image
)
|
|
checks to see if the filesize is set and sets it if not
Parameters:
static object new_image(
string
$image
)
|
|
Assigns owner to new image
Parameters:
static bool save_admin(
string
$updated, object
$userobj, string
$i, bool
$alter
)
|
|
Saves admin custom data Called when an admin is saved
Parameters:
string |
$updated: |
true if data has changed |
object |
$userobj: |
admin user object |
string |
$i: |
prefix for the admin |
bool |
$alter: |
will be true if critical admin data may be altered |
static array upload_filetypes(
array
$types
)
|
|
Removes ZIP from list of upload suffixes
Parameters:
static string upload_helper_js(
string
$defaultJS
)
|
|
Returns Javascript needed to support quota system
Parameters:
filter_zenphoto_seo __construct(
)
|
|
class instantiation function
array getOptionsSupported(
)
|
|
Reports the supported options
void handleOption(
$option,
$currentValue
)
|
|
Parameters: