* (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ list($controller, $service, $modul) = $IN; $lang =& $controller->framework['i18n']->messages; $prov = $controller->friend('provider', $modul); $tmpl = $prov->template->get("footer.tpl"); $starttime = tmf_starttime(); $mtime = microtime(); $mtime = explode(" ", $mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $gentime = round($endtime - $starttime, 3) . 's'; /** * replace vars - footer.tpl */ $tmpl = preg_replace("/<#L_FOOTER#>/", stripslashes($config['copyright']), $tmpl); $tmpl = preg_replace("/<#GENERATED_IN#>/", $lang['generated'] . ' ' . $gentime, $tmpl); $tmpl = preg_replace("/<#GNOPASTE_VERSION#>/", $config['gnopaste_version'], $tmpl); /** * output - footer.tpl */ $OUT = $tmpl;
# translations /** * generation time */ function tmf_starttime() { static $starttime; if ($starttime) { return $starttime; } $mtime = microtime(); $mtime = explode(" ", $mtime); $mtime = $mtime[1] + $mtime[0]; $starttime = $mtime; } tmf_starttime(); /* for modules which use that stuff */ if (defined("IMPORT_TOOLS")) { require_once "core/tools.php"; } class tmf_util { function subdirs($dir, $skip = array()) { $subdirs = array(); $dh = @opendir($dir); if ($dh) { while (FALSE !== ($e = readdir($dh))) { if ($e == '.' || $e == '..' || in_array($e, $skip)) { continue; }