7421b83f35fd5f9ead66eee66241c9f2d409fcd2
bernd webinterface => /webinterface

bernd authored 17 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

5) Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
10) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
14) 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.
15) */
bernd webinterface => /webinterface

bernd authored 17 years ago

16) 
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

17) require_once('class/database.php');
bernd add a function to handle re...

bernd authored 14 years ago

18) require_once('inc/debug.php');
bernd sql-abfragen abstrahiert

bernd authored 16 years ago

19) 
schokokeks.org web services Ermögliche Socket-Angabe fü...

schokokeks.org web services authored 10 years ago

20) function config($key, $localonly = false)
bernd Mehr config-optionen und co...

bernd authored 14 years ago

21) {
22)   global $config;
bernd Erlaube subusers, die nur Z...

bernd authored 13 years ago

23) 
Bernd Wurst Lizenzinfos in eigenes Modu...

Bernd Wurst authored 10 years ago

24)   if ($key == "modules") {
25)     // Stelle sicher, dass das "index"-Modul immer aktiv ist!
26)     if (! in_array("index", $config['modules'])) {
27)       $config['modules'][] = "index";
28)     }
29)     // Stelle sicher, dass das "about"-Modul immer aktiv ist!
30)     if (! in_array("about", $config['modules'])) {
31)       $config['modules'][] = "about";
32)     }
33)   }
34) 
bernd Erlaube subusers, die nur Z...

bernd authored 13 years ago

35)   if ($key == 'modules' && isset($_SESSION['restrict_modules']))
36)   {
37)     $modules = array();
38)     foreach ($config['modules'] as $mod)
39)     {
40)       if (in_array($mod, $_SESSION['restrict_modules']))
41)         $modules[] = $mod;
42)     }
43)     return $modules;
44)   }
45) 
bernd config() liest die Datenban...

bernd authored 14 years ago

46)   if (array_key_exists($key, $config))
47)     return $config[$key];
48)   
schokokeks.org web services Ermögliche Socket-Angabe fü...

schokokeks.org web services authored 10 years ago

49)   if ($localonly) {
50)     return NULL;
51)   }  
52) 
bernd config() liest die Datenban...

bernd authored 14 years ago

53)   /* read configuration from database */
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

54)   $result = db_query( "SELECT `key`, value FROM misc.config" );
bernd config() liest die Datenban...

bernd authored 14 years ago

55)   
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

56)   while( $object = $result->fetch() ) {
schokokeks.org web services Config-File-Optionen werden...

schokokeks.org web services authored 10 years ago

57)     if (!array_key_exists($object['key'], $config)) {
Bernd Wurst Revert "Umstellung auf mysqli"

Bernd Wurst authored 10 years ago

58) 	    $config[$object['key']]=$object['value'];
schokokeks.org web services Config-File-Optionen werden...

schokokeks.org web services authored 10 years ago

59)     }
bernd config() liest die Datenban...

bernd authored 14 years ago

60)   }
bernd Passwort-Ändern geht jetzt...

bernd authored 13 years ago

61)   // Sonst wird das Passwort des webadmin-Users mit ausgegeben
62)   $debug_config = $config;
63)   unset($debug_config['db_pass']);
64)   DEBUG($debug_config);
bernd Mehr config-optionen und co...

bernd authored 14 years ago

65)   if (array_key_exists($key, $config))
66)     return $config[$key];
67)   else
bernd Logger mit Logleveln

bernd authored 14 years ago

68)     logger(LOG_ERR, "inc/base", "config", "Request to read nonexistant config option »{$key}«.");
bernd Einige Dummheiten repariert...

bernd authored 14 years ago

69)     return NULL;
bernd Mehr config-optionen und co...

bernd authored 14 years ago

70) }
71) 
bernd Info-Seite über Mail-Login-...

bernd authored 13 years ago

72) function get_server_by_id($id) {
73)   $id = (int) $id;
Bernd Wurst Weitere Prepared-Statement-...

Bernd Wurst authored 10 years ago

74)   $result = db_query("SELECT hostname FROM system.servers WHERE id=?", array($id));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

75)   $ret = $result->fetch();
76)   return $ret['hostname'];
bernd Info-Seite über Mail-Login-...

bernd authored 13 years ago

77) }
78) 
bernd Mehr config-optionen und co...

bernd authored 14 years ago

79) 
bernd add a function to handle re...

bernd authored 14 years ago

80) function redirect($target)
81) {
82)   global $debugmode;
83)   if (! $debugmode)
84)     header("Location: {$target}");
85)   die();
86) }
87) 
88) 
bernd Hilfsfunktionen bzgl. mehre...

bernd authored 14 years ago

89) function my_server_id()
90) {
91)   $uid = (int) $_SESSION['userinfo']['uid'];
Bernd Wurst Einige Statements auf Prepa...

Bernd Wurst authored 10 years ago

92)   $result = db_query("SELECT server FROM system.useraccounts WHERE uid=?", array($uid));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

93)   $r = $result->fetch();
bernd Hilfsfunktionen bzgl. mehre...

bernd authored 14 years ago

94)   DEBUG($r);
95)   return $r['server'];
96) }
97) 
98) 
99) function additional_servers()
100) {
101)   $uid = (int) $_SESSION['userinfo']['uid'];
Bernd Wurst Einige Statements auf Prepa...

Bernd Wurst authored 10 years ago

102)   $result = db_query("SELECT server FROM system.user_server WHERE uid=?", array($uid));
bernd Hilfsfunktionen bzgl. mehre...

bernd authored 14 years ago

103)   $servers = array();
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

104)   while ($s = $result->fetch())
bernd Hilfsfunktionen bzgl. mehre...

bernd authored 14 years ago

105)     $servers[] = $s['server'];
106)   DEBUG($servers);
107)   return $servers;
108) }
109) 
110) 
111) function server_names()
112) {
Bernd Wurst Revert "Umstellung auf mysqli"

Bernd Wurst authored 10 years ago

113)   $result = db_query("SELECT id, hostname FROM system.servers");
bernd Hilfsfunktionen bzgl. mehre...

bernd authored 14 years ago

114)   $servers = array();
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

115)   while ($s = $result->fetch())
bernd Hilfsfunktionen bzgl. mehre...

bernd authored 14 years ago

116)     $servers[$s['id']] = $s['hostname'];
117)   DEBUG($servers);
118)   return $servers;
119) }
120) 
121) 
bernd Neues Modul für "Kunde werden"

bernd authored 16 years ago

122) function maybe_null($value)
123) {
Bernd Wurst Funktion maybe_null() umdef...

Bernd Wurst authored 6 years ago

124)   if (! $value)
125)     return NULL;
bernd maybe_null behandelt jetzt...

bernd authored 15 years ago

126) 
bernd Neues Modul für "Kunde werden"

bernd authored 16 years ago

127)   if (strlen( (string) $value ) > 0)
Bernd Wurst Funktion maybe_null() umdef...

Bernd Wurst authored 6 years ago

128)     return (string) $value;
bernd Neues Modul für "Kunde werden"

bernd authored 16 years ago

129)   else
Bernd Wurst Funktion maybe_null() umdef...

Bernd Wurst authored 6 years ago

130)     return NULL;
bernd Neues Modul für "Kunde werden"

bernd authored 16 years ago

131) }
132) 
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

133) 
bernd Logger mit Logleveln

bernd authored 14 years ago

134) #define('LOG_ERR', 3);
135) #define('LOG_WARNING', 4);
136) #define('LOG_INFO', 6);
bernd Neues Modul für "Kunde werden"

bernd authored 16 years ago

137) 
bernd Logger mit Logleveln

bernd authored 14 years ago

138) function logger($severity, $scriptname, $scope, $message)
bernd Logging aktiviert

bernd authored 16 years ago

139) {
bernd Logger mit Logleveln

bernd authored 14 years ago

140)   if (config('logging') <= $severity)
bernd Logging konfigurierbar

bernd authored 16 years ago

141)     return;
142) 
Bernd Wurst * Weitere Module auf prepar...

Bernd Wurst authored 10 years ago

143)   $user = NULL;
bernd Bugfix: Logger zeigt wieder...

bernd authored 16 years ago

144)   if ($_SESSION['role'] & ROLE_SYSTEMUSER)
Bernd Wurst * Weitere Module auf prepar...

Bernd Wurst authored 10 years ago

145)     $user = $_SESSION['userinfo']['username'];
bernd Bugfix: Logger zeigt wieder...

bernd authored 16 years ago

146)   elseif ($_SESSION['role'] & ROLE_CUSTOMER)
Bernd Wurst * Weitere Module auf prepar...

Bernd Wurst authored 10 years ago

147)     $user = $_SESSION['customerinfo']['customerno'];
bernd Logging aktiviert

bernd authored 16 years ago

148)   
Bernd Wurst * Weitere Module auf prepar...

Bernd Wurst authored 10 years ago

149)   $args = array(":user" => $user,
150)                 ":remote" => $_SERVER['REMOTE_ADDR'],
151)                 ":scriptname" => $scriptname,
152)                 ":scope" => $scope,
153)                 ":message" => $message);
bernd Logging aktiviert

bernd authored 16 years ago

154) 
Bernd Wurst * Weitere Module auf prepar...

Bernd Wurst authored 10 years ago

155)   db_query("INSERT INTO misc.scriptlog (remote, user,scriptname,scope,message) VALUES (:remote, :user, :scriptname, :scope, :message)", $args);
bernd Logging aktiviert

bernd authored 16 years ago

156) }
157) 
bernd Allow Header entries and AJAX

bernd authored 15 years ago

158) function html_header($arg)
159) {
160)   global $html_header;
161)   $html_header .= $arg;
162) }
bernd Logging aktiviert

bernd authored 16 years ago

163) 
bernd Umstellung auf Theme-Suppor...

bernd authored 13 years ago

164) function title($arg)
165) {
166)   global $title;
167)   $title = $arg;
168) }
169) 
170) function headline($arg)
171) {
172)   global $headline;
173)   $headline = $arg;
174) }
175) 
bernd webinterface => /webinterface

bernd authored 17 years ago

176) function output($arg)
177) {
178)   global $output;
179)   $output .= $arg;
180) }
181) 
Bernd Wurst Funktion für Fußnoten einge...

Bernd Wurst authored 6 years ago

182) function footnote($explaination)
183) {
184)     global $footnotes;
185)     if (!isset($footnotes) || !is_array($footnotes)) {
186)         $footnotes = array();
187)     }
188)     $fnid = array_search($explaination, $footnotes);
Bernd Wurst Bugfix für Fußnoten

Bernd Wurst authored 6 years ago

189)     DEBUG($footnotes);
190)     if ($fnid === FALSE) {
191)         DEBUG("Footnote »{$explaination}« is not in footnotes!");
Bernd Wurst Funktion für Fußnoten einge...

Bernd Wurst authored 6 years ago

192)         $footnotes[] = $explaination;
193)     }
194)     $fnid = array_search($explaination, $footnotes);
195)     return str_repeat('*', ($fnid+1));
196) }
bernd webinterface => /webinterface

bernd authored 17 years ago

197) 
Bernd Wurst random_string korrigiert, s...

Bernd Wurst authored 7 years ago

198) function random_string($len) 
Bernd Wurst random_string() verwendet u...

Bernd Wurst authored 7 years ago

199) {
Bernd Wurst random_string korrigiert, s...

Bernd Wurst authored 7 years ago

200)   $s = str_replace('+', '.', base64_encode(random_bytes(ceil($len*3/4))));
201)   return substr($s, 0, $len);
Bernd Wurst random_string() verwendet u...

Bernd Wurst authored 7 years ago

202) }
bernd webinterface => /webinterface

bernd authored 17 years ago

203) 
204) 
205) function are_you_sure($query_string, $question)
206) {
bernd * alle internen Links sinnv...

bernd authored 15 years ago

207)   $query_string = encode_querystring($query_string);
bernd webinterface => /webinterface

bernd authored 17 years ago

208)   $token = random_string(20);
bernd XSRF-kram fixed

bernd authored 16 years ago

209)   $_SESSION['are_you_sure_token'] = $token;
bernd Benutze überall title() sta...

bernd authored 13 years ago

210)   title('Sicherheitsabfrage');
211)   output("
bernd * alle internen Links sinnv...

bernd authored 15 years ago

212)     <form action=\"{$query_string}\" method=\"post\">
bernd Umfangreiche Code-Aufräumar...

bernd authored 16 years ago

213)     <div class=\"confirmation\">
214)       <div class=\"question\">{$question}</div>
215)       <p class=\"buttons\">
216)         <input type=\"hidden\" name=\"random_token\" value=\"{$token}\" />
217)         <input type=\"submit\" name=\"really\" value=\"Ja\" />
bernd Entities repariert

bernd authored 16 years ago

218)         &#160; &#160;
bernd Umfangreiche Code-Aufräumar...

bernd authored 16 years ago

219)         <input type=\"submit\" name=\"not_really\" value=\"Nein\" />
220)       </p>
221)     </div>");
bernd </form>

bernd authored 16 years ago

222)   output("</form>\n");
bernd webinterface => /webinterface

bernd authored 17 years ago

223) }
224) 
225) 
226) function user_is_sure()
227) {
228)   if (isset($_POST['really']))
229)   {
bernd XSRF-kram fixed

bernd authored 16 years ago

230)     if ($_POST['random_token'] == $_SESSION['are_you_sure_token'])
bernd webinterface => /webinterface

bernd authored 17 years ago

231)       return true;
232)     else
233)       system_failure("Possible Cross-site-request-forgery detected!");
234)   }
235)   elseif (isset($_POST['not_really']))
236)     return false;
237)   else
238)     return NULL;
239) }
240) 
241) 
242) 
bernd XSRF-kram fixed

bernd authored 16 years ago

243) function generate_form_token($form_id)
244) {
245)   require_once("inc/debug.php");
246)   $sessid = session_id();
247)   if ($sessid == "") 
248)   {
249)     DEBUG("Uh? Session not running? Wtf?");
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

250)     system_failure("Internal error!");
bernd XSRF-kram fixed

bernd authored 16 years ago

251)   }
Bernd Wurst random_string() verwendet u...

Bernd Wurst authored 7 years ago

252)   if (! isset($_SESSION['session_token'])) {
bernd XSRF-kram fixed

bernd authored 16 years ago

253)     $_SESSION['session_token'] = random_string(10);
Bernd Wurst random_string() verwendet u...

Bernd Wurst authored 7 years ago

254)   }
bernd Umfangreiche Code-Aufräumar...

bernd authored 16 years ago

255)   return hash('sha256', $sessid.$form_id.$_SESSION['session_token']);
bernd XSRF-kram fixed

bernd authored 16 years ago

256) }
257) 
258) 
bernd Umfangreiche Code-Aufräumar...

bernd authored 16 years ago

259) function check_form_token($form_id, $formtoken = NULL)
bernd XSRF-kram fixed

bernd authored 16 years ago

260) {
bernd Umfangreiche Code-Aufräumar...

bernd authored 16 years ago

261)   if ($formtoken == NULL)
Bernd Wurst Neue MySQL-Verwaltung

Bernd Wurst authored 11 years ago

262)     $formtoken = $_REQUEST['formtoken'];
bernd XSRF-kram fixed

bernd authored 16 years ago

263)   $sessid = session_id();
264)   if ($sessid == "") 
265)   {
266)     DEBUG("Uh? Session not running? Wtf?");
bernd Umfangreiche Code-Aufräumar...

bernd authored 16 years ago

267)     system_failure("Internal error! (Session not running)");
bernd XSRF-kram fixed

bernd authored 16 years ago

268)   }
269) 
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

270)   $correct_formtoken = hash('sha256', $sessid.$form_id.$_SESSION['session_token']);
bernd XSRF-kram fixed

bernd authored 16 years ago

271) 
272)   if (! ($formtoken == $correct_formtoken))
273)     system_failure("Possible cross-site-request-forgery!");
274) }
275) 
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

276) 
bernd Zeige Links auf dem Startse...

bernd authored 14 years ago

277) function have_module($modname)
278) {
bernd Mehr config-optionen und co...

bernd authored 14 years ago

279)   return in_array($modname, config('modules'));
bernd Zeige Links auf dem Startse...

bernd authored 14 years ago

280) }
281) 
282) 
bernd * alle internen Links sinnv...

bernd authored 15 years ago

283) function encode_querystring($querystring)
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

284) {
285)   global $debugmode;
286)   if ($debugmode)
bernd * alle internen Links sinnv...

bernd authored 15 years ago

287)     $querystring = 'debug&'.$querystring;
bernd Bug im Client-Zertfikat-Man...

bernd authored 15 years ago

288)   DEBUG($querystring);
bernd * alle internen Links sinnv...

bernd authored 15 years ago

289)   $query = explode('&', $querystring);
290)   $new_query = array();
291)   foreach ($query AS $item)
292)     if ($item != '')
293)     {
bernd fix a warning

bernd authored 14 years ago

294)       $split = explode('=', $item, 2);
295)       if (count($split) == 1)
296)         $new_query[] = $split[0];
bernd Bug im Client-Zertfikat-Man...

bernd authored 15 years ago

297)       else
bernd fix a warning

bernd authored 14 years ago

298)         $new_query[] = $split[0].'='.urlencode($split[1]);
bernd * alle internen Links sinnv...

bernd authored 15 years ago

299)     }
300)   $querystring = implode('&amp;', $new_query);
301)   if ($querystring)
302)     $querystring = '?'.$querystring;
bernd Bug im Client-Zertfikat-Man...

bernd authored 15 years ago

303)   DEBUG($querystring);
bernd * alle internen Links sinnv...

bernd authored 15 years ago

304)   return $querystring;
305) }
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

306) 
bernd * alle internen Links sinnv...

bernd authored 15 years ago

307) 
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

308) function addnew($file, $label, $querystring = '', $attribs = '')
bernd addnew() eingeführt

bernd authored 14 years ago

309) {
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

310)   output('<p class="addnew">'.internal_link($file, $label, $querystring, $attribs).'</p>');
bernd addnew() eingeführt

bernd authored 14 years ago

311) }
312) 
bernd * alle internen Links sinnv...

bernd authored 15 years ago

313) 
314) function internal_link($file, $label, $querystring = '', $attribs = '')
315) {
bernd Erlaube absolute Links

bernd authored 15 years ago

316)   global $prefix;
bernd Das böse ==0

bernd authored 15 years ago

317)   if (strpos($file, '/') === 0)
bernd Erlaube absolute Links

bernd authored 15 years ago

318)   {
319)     $file = $prefix.substr($file, 1);
320)   }
bernd * alle internen Links sinnv...

bernd authored 15 years ago

321)   $querystring = encode_querystring($querystring);
322)   return "<a href=\"{$file}{$querystring}\" {$attribs} >{$label}</a>";
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

323) }
324) 
325) 
326) function html_form($form_id, $scriptname, $querystring, $content)
327) {
bernd * alle internen Links sinnv...

bernd authored 15 years ago

328)   $querystring = encode_querystring($querystring);
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

329)   $ret = '';
bernd * alle internen Links sinnv...

bernd authored 15 years ago

330)   $ret .= '<form action="'.$scriptname.$querystring.'" method="post">'."\n";
bernd Umfangreiche Code-Aufräumar...

bernd authored 16 years ago

331)   $ret .= '<p style="display: none;"><input type="hidden" name="formtoken" value="'.generate_form_token($form_id).'" /></p>'."\n";
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

332)   $ret .= $content;
333)   $ret .= '</form>';
334)   return $ret;  
335) }
336) 
337) 
bernd * wie viele Reihen wurden a...

bernd authored 15 years ago

338) function html_select($name, $options, $default='', $free='')
bernd Neues Modul für "Kunde werden"

bernd authored 16 years ago

339) {
340)   require_once('inc/security.php');
bernd * wie viele Reihen wurden a...

bernd authored 15 years ago

341)   $ret = "<select name=\"{$name}\" id=\"{$name}\" size=\"1\" {$free} >\n";
bernd Neues Modul für "Kunde werden"

bernd authored 16 years ago

342)   foreach ($options as $key => $value)
343)   {
344)     $selected = '';
345)     if ($default == $key)
346)       $selected = ' selected="selected" ';
347)     $key = filter_input_general($key);
348)     $value = filter_input_general($value);
349)     $ret .= "  <option value=\"{$key}\"{$selected}>{$value}</option>\n";
350)   }
351)   $ret .= '</select>';
352)   return $ret;
353) }
354) 
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

355) 
bernd Neue Funktion zur Anzeige e...

bernd authored 12 years ago

356) function html_datepicker($nameprefix, $timestamp)
357) {
358)   $valid_days = array( 1 =>  1,  2 =>  2,  3 =>  3,  4 =>  4,  5 =>  5,
359)                        6 =>  6,  7 =>  7,  8 =>  8,  9 =>  9, 10 => 10,
360)                       11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 15,
361)                       16 => 16, 17 => 17, 18 => 18, 19 => 19, 20 => 20,
362)                       21 => 21, 22 => 22, 23 => 23, 24 => 24, 25 => 25,
363)                       26 => 26, 27 => 27, 28 => 28, 29 => 29, 30 => 30,
364)                       31 => 31);
365)   $valid_months = array( 1 =>  1,  2 =>  2,  3 =>  3,  4 =>  4,  5 =>  5,
366)                          6 =>  6,  7 =>  7,  8 =>  8,  9 =>  9, 10 => 10,
367)                         11 => 11, 12 => 12);
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

368)   $current_year = (int) date('Y');
369)   $valid_years = array($current_year => $current_year, 
370)                        $current_year+1 => $current_year+1,
371)                        $current_year+2 => $current_year+2,
372)                        $current_year+3 => $current_year+3,
373)                        $current_year+4 => $current_year+4);
374)               
bernd Neue Funktion zur Anzeige e...

bernd authored 12 years ago

375)   $selected_day = date('d', $timestamp);
376)   $selected_month = date('m', $timestamp);
377)   $selected_year = date('Y', $timestamp);
378)   $ret = '';
379)   $ret .= html_select($nameprefix.'_day', $valid_days, $selected_day, 'style="text-align: right;"').". ";
380)   $ret .= html_select($nameprefix.'_month', $valid_months, $selected_month, 'style="text-align: right;"').". ";
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

381)   $ret .= html_select($nameprefix.'_year', $valid_years, $selected_year);
bernd Neue Funktion zur Anzeige e...

bernd authored 12 years ago

382)   return $ret;
383) }
384) 
bernd Index-Blöcke werden jetzt v...

bernd authored 12 years ago

385) function get_modules_info() 
386) {
387)   $modules = config('modules');
388)   $modconfig = array();
389)   foreach ($modules AS $name) {
390)     $modconfig[$name] = NULL;
391)     if (file_exists('modules/'.$name.'/module.info')) {
392)       $modconfig[$name] = parse_ini_file('modules/'.$name.'/module.info');
393)     }
394)   }
395)   return $modconfig;
396) }
397) 
398) 
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

399)