-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopyto_dircaster.php
More file actions
60 lines (55 loc) · 1.76 KB
/
Copy pathcopyto_dircaster.php
File metadata and controls
60 lines (55 loc) · 1.76 KB
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
<?php
echo "// Copy and paste this information ABOVE the main code section of dircaster.<br>";
echo "// replacing all of the default settings in dircaster.<br>";
echo "// <br>";
echo "// dircaster specific variables<br>";
write_item ($feeds, "maxFeeds");
write_item ($sft, "sftypes");
write_item ($id3_lib, "id3LibPath");
echo "<p></p>";
echo "// RSS general tags<br>";
write_item ($title, "titleTAG");
write_item ($desc, "descriptionTAG");
write_item ($link, "linkTAG");
write_item ($copyr, "copyrightTAG");
write_item ($lang, "languageTAG");
write_item ($email, "webMasterTAG");
write_item ($gen, "generatorTAG");
write_item ($ttl, "ttlTAG");
write_item ($rss_img_url, "rssImageUrlTAG");
write_item ($rss_img_title, "rssImageTitleTAG");
write_item ($rss_img_link, "rssImageLinkTAG");
echo "<p></p>";
echo "// iTunes specific tags<br>";
write_item ($xmlns, "nameSpaceTAG");
if ($explicit == "yes" ) {
write_item ($explicit, "explicitTAG");
} else {
write_item ("no", "explicitTAG");
}
write_item ($sum, "summaryTAG");
write_item ($author, "authorTAG");
write_item ($owner_name, "ownerNameTAG");
write_item ($owner_email, "ownerEmailTAG");
write_item ($top_cat, "topCategoryTAG");
write_item ($sub_cat, "subCategoryTAG");
write_item ($key, "keywordTAG");
write_item ($img_url, "imageUrlTAG");
write_item ($img_title, "imageTitleTAG");
write_item ($img_link, "imageLinkTAG");
if ($img_item == "yes" ) {
write_item ($img_item, "imageItemTAG");
} else {
write_item ("no", "imageItemTAG");
}
echo "// <br>";
echo "// end of dircaster variables.";
// functions
function write_item ($input, $desc) {
$fixed = str_replace("&","&", $input);
$fixed = str_replace("<","<",$fixed);
$fixed = str_replace(">",">",$fixed);
$line = "\$".$desc."=\"".$fixed."\";";
echo $line."<br>";
}
?>