git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
28667e9
Branches
Tags
master
ticket
webinterface.git
inc
javascript.php
Fix not operator (!) spaces
Hanno Böck
commited
28667e9
at 2023-10-28 19:16:53
javascript.php
Blame
History
Raw
<?php /* This file belongs to the Webinterface of schokokeks.org Hosting Written by schokokeks.org Hosting, namely Bernd Wurst <bernd@schokokeks.org> Hanno Böck <hanno@schokokeks.org> This code is published under a 0BSD license. Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code. */ require_once('inc/base.php'); if (!defined('__JAVASCRIPT_INCLUDED')) { define('__JAVASCRIPT_INCLUDED', '1'); global $prefix; html_header(' <script type="text/javascript" src="'.$prefix.'js/common.js" ></script> '); } function javascript($file = null, $module = null) { global $go, $prefix; [$mod, $page] = explode('/', $go, 2); if (!$file) { $file = $page.'.js'; } if (!$module) { $module = $mod; } if (file_exists('modules/'.$module.'/'.$file)) { html_header(' <script type="text/javascript" src="'.$prefix.'modules/'.$module.'/'.$file.'"></script> '); } else { DEBUG('Missing JS file: '.'modules/'.$module.'/'.$file); warning('Interner Fehler: Dieses Modul wollte JavaScript laden, das hat aber nicht geklappt.'); } }