354c05a4ddd678c49bcbba458bffa7d13482139a
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

inc/jquery.php      1) <?php
inc/jquery.php      2) /*
inc/jquery.php      3) This file belongs to the Webinterface of schokokeks.org Hosting
inc/jquery.php      4) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

inc/jquery.php      5) Written by schokokeks.org Hosting, namely
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

inc/jquery.php      6)   Bernd Wurst <bernd@schokokeks.org>
inc/jquery.php      7)   Hanno Böck <hanno@schokokeks.org>
inc/jquery.php      8) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

inc/jquery.php      9) This code is published under a 0BSD license.
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

inc/jquery.php     10) 
inc/jquery.php     11) 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.
inc/jquery.php     12) */
inc/jquery.php     13) 
inc/jquery.php     14) require_once('inc/base.php');
inc/jquery.php     15) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

inc/javascript.php 16) if (!defined('__JAVASCRIPT_INCLUDED')) {
Bernd Wurst removed jquery and jqueryUI...

Bernd Wurst authored 1 year ago

inc/javascript.php 17)     define('__JAVASCRIPT_INCLUDED', '1');
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

inc/jquery.php     18)     global $prefix;
inc/jquery.php     19)     html_header('
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

inc/javascript.php 20) <script type="text/javascript" src="' . $prefix . 'js/common.js" ></script>
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

inc/jquery.php     21) ');
Bernd Wurst JQuery/-UI integriert und V...

Bernd Wurst authored 10 years ago

inc/jquery.php     22) }
inc/jquery.php     23) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

inc/jquery.php     24) function javascript($file = null, $module = null)
inc/jquery.php     25) {
inc/jquery.php     26)     global $go, $prefix;
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

inc/jquery.php     27)     [$mod, $page] = explode('/', $go, 2);
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

inc/javascript.php 28)     if (!$file) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

inc/javascript.php 29)         $file = $page . '.js';
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

inc/jquery.php     30)     }
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

inc/javascript.php 31)     if (!$module) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

inc/jquery.php     32)         $module = $mod;
inc/jquery.php     33)     }
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

inc/javascript.php 34)     if (file_exists('modules/' . $module . '/' . $file)) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

inc/jquery.php     35)         html_header('
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

inc/javascript.php 36) <script type="text/javascript" src="' . $prefix . 'modules/' . $module . '/' . $file . '"></script>
Bernd Wurst JQuery/-UI integriert und V...

Bernd Wurst authored 10 years ago

inc/jquery.php     37) ');
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

inc/jquery.php     38)     } else {
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

inc/javascript.php 39)         DEBUG('Missing JS file: ' . 'modules/' . $module . '/' . $file);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

inc/jquery.php     40)         warning('Interner Fehler: Dieses Modul wollte JavaScript laden, das hat aber nicht geklappt.');
inc/jquery.php     41)     }