forked from TheSusort/Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetadata.php
More file actions
65 lines (55 loc) · 993 Bytes
/
Metadata.php
File metadata and controls
65 lines (55 loc) · 993 Bytes
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
<?php
$data;
// Kjøres når programmet starter.
function LastInnMetadata()
{
$teller = 0;
// Setter opp en todimensjonal array til meatadata.
$data = array(array());
foreach (glob("Bilder/*.jpg") as $bilder)
{
$data[$teller][0] = "Legg til filnavn her";
$data[$teller][1] = "Legg til karakter her";
$data[$teller][2] = "Legg til tagg her";
$data[$teller][3] = "Legg til kommentarer her";
$teller++;
}
return;
}
function HentKarakter($filnavn)
{
$teller = 0;
while (true)
{
if ($filnavn == $data[$teller][0])
{
return $data[$teller][1];
}
$teller++;
}
}
function HentTagg($filnavn)
{
$teller = 0;
while (true)
{
if ($filnavn == $data[$teller][0])
{
return $data[$teller][2];
}
$teller++;
}
}
function HentKommentar($filnavn)
{
$teller = 0;
while (true)
{
if ($filnavn == $data[$teller][0])
{
return $data[$teller][3];
}
$teller++;
}
}
?>