function getJavascript() { if ($this->disabled) { return ''; } $js = ''; if (strlen($this->javascript)) { $js .= kfm_parse_template($this->javascript); } if (file_exists($this->path . 'plugin.js')) { $js .= file_get_contents($this->path . 'plugin.js'); } return $js; }
?> /css.php"; </style> <style type="text/css">@import "plugins/css.php"; </style> <title>KFM - Kae's File Manager</title> </head> <body> <div id="removeme"> <p>Please Wait - loading...</p> <noscript>KFM relies on JavaScript. Please either turn on JavaScript in your browser, or <a href="http://www.getfirefox.com/">get Firefox</a> if your browser does not support JavaScript.</noscript> </div> <?php // { if there's a template, show it here $templated = 0; if (file_exists('themes/' . $kfm->setting('theme') . '/template.html')) { $template = file_get_contents('themes/' . $kfm->setting('theme') . '/template.html'); $template = '<div id="templateWrapper" style="display:none">' . kfm_parse_template($template) . '</div>'; $templated = 1; } // } // { daily tasks $today = date('Y-m-d'); $last_registration = isset($kfm_parameters['last_registration']) ? $kfm_parameters['last_registration'] : ''; if ($last_registration != $today) { // { database maintenance echo '<iframe style="display:none" src="maintenance.php"></iframe>'; // } // { once per day, tell the kfm website a few simple details about usage if (!$kfm_dont_send_metrics) { echo '<img src="http://kfm.verens.com/extras/register.php?version=' . urlencode(KFM_VERSION) . '&domain_name=' . urlencode($_SERVER['SERVER_NAME']) . '&db_type=' . $kfm_db_type . '" />'; } // }