Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 202

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 205

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 314

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 454

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/auth.php on line 146

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web535/html/dokuwiki/inc/parserutils.php:202) in /home/www/web535/html/dokuwiki/inc/auth.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web535/html/dokuwiki/inc/parserutils.php:202) in /home/www/web535/html/dokuwiki/inc/actions.php on line 128
wiki_anpassung [wiki.BerndLux.de]
 

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/parser.php on line 66

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 292

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 44

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 208

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 236

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 290

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 323

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 560

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 510

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 510

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 510

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/xhtml.php on line 980

Anpassen des Wikis an diese Seite

Das hier laufende Wiki wurde so angepasst, dass es die Wiki Benutzer über die auch von Xoops verwendete Datenbank authoriesiert werden. Ein Benutzer des Xoops kann sich mit seinen Anmeldedaten auch hier im Wiki anmelden. Umgekehrt wir ein Benutzer der sich im Wiki Registriert auch im Xoops Angelegt und kann dieses mit seien Anmeldedaten verwenden.

  <?php
  /*
  This is an example of how a local.php could look like.
  Simply copy the options you want to change from dokuwiki.php
  to this file and change them
  */
  
  $conf['passcrypt'] = 'md5';
  $conf['authtype'] = 'mysql';
  $conf['defaultgroup'] = 'registered_users';
  
  $conf['auth']['mysql']['server']   = 'localhost';
  $conf['auth']['mysql']['user']     = 'lalal';
  $conf['auth']['mysql']['password'] = 'secret';
  
  $conf['auth']['mysql']['database'] = 'databasname';
  $conf['auth']['mysql']['getpass']= "SELECT pass
                                        FROM xoops_users
                                       WHERE uname='%u'";
  
  $conf['auth']['mysql']['userinfo'] = "SELECT name, email AS mail
                                        FROM xoops_users 
                                       WHERE uname='%u'";
  
  $conf['auth']['mysql']['groups']   = "SELECT a.name AS `group`
                                        FROM xoops_groups a,
					     xoops_users b,
					     xoops_groups_users_link c
                                       WHERE a.groupid = c.groupid
                                         AND c.uid = b.uid
                                         AND b.uname='%u'";
   
  $conf['auth']['mysql']['adduser'] = "INSERT INTO xoops_users
                                             SET uname = '%u',
                                                 pass = '%p',
                                                 name = '%n',
                                                 email = '%e',
						 url = '',
						 user_avatar = 'blank.gif',
						 user_regdate = '',
						 user_icq = '',
						 user_from = 'wikiUser',
                                                 user_sig = '',
						 user_viewemail = '0',
						 user_aim = '',
						 user_yim = '',
						 user_msnm = '',
						 posts = '0',
						 attachsig = '0',
						 rank = '0',
						 level= '1',
						 theme = '',
						 timezone_offset = '0.0',
						 umode = 'flat',
						 last_login = '',
						 uorder = '0',
						 notify_method = '1',
						 notify_mode = '0',
						 user_occ = '',
						 bio = '',
						 user_intrest = '',
						 user_mailok = '1'";
  
  
  
  
  // $conf['auth']['mysql']['addusergroup']= "INSERT INTO flyspray_users_in_groups
  //                                                (user_id,group_id) VALUES ('%uid', '%gid')";
  
  $conf['auth']['mysql']['getgroupid']  = "SELECT groupid as `gid`
                                           FROM xoops_groups
                                          WHERE name='%g'";
  
  $conf['auth']['mysql']['addusergroup']= "INSERT INTO xoops_groups_users_link
                                          SET groupid = '2',
					      uid = '%uid'";
  ?>

Bernd 2005/10/27 13:02

 
wiki_anpassung.txt · Zuletzt geändert: 2006/04/01 14:27
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki