foreach ($plugins as $p) if (is_file("plugins/$p/functions.php"))
require "plugins/$p/functions.php";
+function plugins_include($phpFile)
+{
+ foreach ($GLOBALS['plugins'] as $p) if (is_file("plugins/$p/$phpFile"))
+ require "plugins/$p/$phpFile";
+}
+
if (! function_exists('getThumbTarget')) {
function getThumbTarget($imageSimplePath)
{
{
$ext = strtolower(substr($file, -4));
if ($ext == ".jpg" or $ext == ".png") {
- $link = dirname($scriptUrlPath)."/$realDir/$file";
- $link = getThumbTarget("$shortPath/$file");
-
- $imageFiles[] = array( "name" => $file, "url" => getPreview("$realDir/$file"), "link" => $link );
-
+ $imageFiles[] = array( "name" => $file, "url" => getPreview("$realDir/$file"), "link" => getThumbTarget("$shortPath/$file") );
} else {
$otherFiles[] = array( "name" => $file, "link" => dirname($scriptUrlPath)."/$realDir/$file" );
}
left: 0;
}
</style>
+<?php foreach ($plugins as $p) if (is_file("plugins/$p/style.css")) { ?>
+ <link rel="stylesheet" type="text/css" href="<?php echo dirname($scriptUrlPath)."/plugins/$p/style.css" ?>" />
+<?php } ?>
</head>
<body>
<div id="parentfolder"><a href="<?php echo $parentLink ?>">^</a></div>
<?php } ?>
+<?php plugins_include("before_content.php") ?>
+
<?php foreach($folders as $folder) { ?>
<div class="folder">
<?php if ($folder["preview"] === "") { ?>