-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdevdoc.txt
executable file
·66 lines (46 loc) · 2.04 KB
/
devdoc.txt
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Fileman has a lot of jargon, and heavy abbreviation. Here's what they
mean:
d [think 'directory']
- The current directory, relative to the current user's root
id
- ID of a file, in the form of a string, in Filelist. Format of
either 'f#' or 'c#'
i
- Number of a file in Filelist. 0 or positive corresponds with ID
'f<i>', negative corresponds with ID 'c<-1-i>'
s
- Session ID. Only appears in GET strings because of PHP's worst
"feature" ever - register_globals.
fli reference:
// The name of the file - 'example.gif'
n 'name' => $file,
// The ID of the file - 'file_example.gif'
id 'id' => ((filetype($path.$file) == 'dir')?'fold_'.substr($file,0,-1):'file_'.$file),
// Is it a directory? - FALSE
d 'isdir' => (filetype($path.$file) == 'dir'),
// File size - 1024
s 'size' => $size,
// Text file size - '1 KB'
ts 'tsize' => textfilesize($size),
// Modified (Unix timestamp) - 0
m 'modified' => $modified,
// Modified - 'Jan 1, 1970 12:00:00 AM'
tm 'tmodified' => date("F j, Y g:i:s A",$modified),
// Perms - 0777
p 'perms' => substr(sprintf('%o', fileperms($path.$file)), -4),
// Extension - 'gif'
e 'ext' => $ext,
// File icon - 'gif'
i 'img' => textfileimg($ext),
// File type - 'GIF Image'
t 'type' => textfiletype($ext),
// File type ID - '0'
ft 'ft' => ft($ext),
// Extension acronym - 'Graphics Interchange Format'
ea 'extac' => textfileextac($ext),
// Is it a viewable image (an image that can be displayed in a browser)? - TRUE
vi 'isvimg' => isvimg($ext),
// Image size data - {$width, $height, 1, 'height="$height" width="$width"'}
// ['imgsize'][2]: 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF(intel byte order), 8 = TIFF(motorola byte
order), 9 = JPC, 10 = JP2, 11 = JPX, 12 = JB2, 13 = SWC, 14 = IFF, 15 = WBMP, 16 = XBM
is 'imgsize' => ((isvimg($ext)||$ext=='psd'||$ext=='bmp') && $size<=5242880)?$imgsize = @getimagesize($path.$file):FALSE);