No change, only fixed settings.php files to fix options, added
plugin.info.txt, cleaned up some files
This commit is contained in:
Simon DELAGE 2014-08-30 17:03:56 +02:00
parent 9fa81cafef
commit fa3793216f
7 changed files with 69 additions and 43 deletions

View file

@ -1,6 +1,7 @@
<?php
//AUTHOR James Lin
//Version 3.0.4
// AUTHOR James Lin
// Version 3.0.4
// FIXED by Simon Delage <simon.geekitude@gmail.com> on 2014-08-30
if (!defined('DOKU_INC')) die();
if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/');
@ -146,11 +147,11 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin
return array
(
'name' => 'User Home Page',
'email' => 'guanfenglin@gmail.com',
'date' => '04/12/2008',
'author' => 'James GuanFeng Lin, Mikhail I. Izmestev, Daniel Stonier',
'email' => 'simon.geekitude@gmail.com',
'date' => '2009-05-28',
'author' => 'Simon Delage (previously James GuanFeng Lin, Mikhail I. Izmestev & Daniel Stonier)',
'desc' => 'auto redirects users to <create> their homepage',
'url' => ''
'url' => 'https://www.dokuwiki.org/plugin:userhomepage'
);
}
@ -160,4 +161,3 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin
$controller->register_hook('HTML_PAGE_FROMTEMPLATE', 'BEFORE', $this, 'page_template',array());
}
}
?>

View file

@ -1,10 +1,14 @@
<?php
$conf['set_permissions'] = true; // configure acl's
/*
* Userhomepage plugin, configuration defaults
* FIXED by Simon Delage <simon.geekitude@gmail.com> on 2014-08-30
*/
$conf['use_name_string'] = 0; // use name string instead of login string for the user's ns
$conf['use_start_page'] = 1; // use state page instead of namespace string for home page
$conf['set_permissions'] = 1; // configure acl's
$conf['set_permissions_others'] = '0';
$conf['use_name_string'] = false; // use name string instead of login string for the user's ns
$conf['use_start_page'] = true; // use state page instead of namespace string for home page
$conf['templatepath'] = 'lib/plugins/userhomepage/_template.txt'; // the location of the template file
$conf['users_namespace'] = 'people'; // namespace storing the user namespaces
$conf['group_by_name'] = true; // use the first character of name to group people
$conf['edit_before_create'] = true; // allow users to edit their home pages before create
?>
$conf['group_by_name'] = 1; // use the first character of name to group people
$conf['edit_before_create'] = 1; // allow users to edit their home pages before create

View file

@ -1,4 +1,9 @@
<?php
/*
* Userhomepage plugin, configuration metadata
* FIXED by Simon Delage <simon.geekitude@gmail.com> on 2014-08-30
*/
$meta['use_name_string'] = array('onoff'); // use name string instead of login string for the user's namespace
$meta['use_start_page'] = array('onoff'); // use start page instead of namespace string for home page
$meta['set_permissions'] = array('onoff'); // configure permissions
@ -7,4 +12,3 @@ $meta['templatepath'] = array('string','_pattern' => '/^(|[a-zA-Z\-]+)$/'); /
$meta['users_namespace'] = array('string','_pattern' => '/^(|[a-zA-Z\-:]+)$/'); // the namespace containing user directories
$meta['group_by_name'] = array('onoff'); // group people by the first character of name
$meta['edit_before_create'] = array('onoff'); // allow users to edit their home page before create.
?>

View file

@ -1,21 +1,21 @@
<?php
/**
* English language file for the configuration manager
*
* @author: Daniel Stonier <d.stonier@gmail.com>
* English language file for config of Userhomepage plugin
* @author: Daniel Stonier <d.stonier@gmail.com>
* FIXED by Simon Delage <simon.geekitude@gmail.com> on 2014-08-30
*/
$lang['set_permissions'] = "Configure acl's to permit user full access to their home namespace.";
$lang['use_name_string'] = "Use names strings for the user's namespace (alt. login strings).";
$lang['use_start_page'] = "Use the wiki's start page string instead of the user's namespace string for the home page.";
$lang['templatepath'] = "Doku relative path to the template file.";
$lang['users_namespace'] = "Namespace under which user namespaces are created.";
$lang['set_permissions_others'] = "If set permission enabled, what permission for other people?";
$lang['use_name_string'] = 'Use names strings for the user\'s namespace (alt. login strings).';
$lang['use_start_page'] = 'Use the wiki\'s start page string instead of the user\'s namespace string for the home page.';
$lang['set_permissions'] = 'Configure acl\'s to permit user full access to their home namespace.';
$lang['set_permissions_others'] = 'If set permission enabled, what permission for other people?';
$lang['set_permissions_others_o_0'] = 'None';
$lang['set_permissions_others_o_1'] = 'Read';
$lang['set_permissions_others_o_2'] = 'Edit';
$lang['set_permissions_others_o_4'] = 'Create';
$lang['set_permissions_others_o_8'] = 'Upload';
$lang['set_permissions_others_o_16'] = 'Delete';
$lang['group_by_name'] = "Group home pages by the first character of user name?";
$lang['edit_before_create'] = "Allow users to edit their home pages before create";
?>
$lang['templatepath'] = 'Doku relative path to the template file.';
$lang['users_namespace'] = 'Namespace under which user namespaces are created.';
$lang['group_by_name'] = 'Group home pages by the first character of user name?';
$lang['edit_before_create'] = 'Allow users to edit their home pages before create';

View file

@ -1,12 +1,21 @@
<?php
/**
* Korean language file for the configuration manager
*
* @author: 이재영 <jakan2@gmail.com>
* @author: 이재영 <jakan2@gmail.com>
* FIXED by Simon Delage <simon.geekitude@gmail.com> on 2014-08-30
*/
$lang['set_permissions'] = "홈 네임스페이스에 대한 모든 권한을 갖도론 acl을 설정하세요.";
$lang['use_name_string'] = "Use names strings for the user's namespace (alt. login strings).";
$lang['use_start_page'] = "Use the wiki's start page string instead of the user's namespace string for the home page.";
$lang['templatepath'] = "템플릿화일들이 존재하는 Doku 의 경로를 알려주세요.";
$lang['users_namespace'] = "사용자 네임스페이스가 있는 네임스페이스.";
?>
$lang['use_name_string'] = 'Use names strings for the user\'s namespace (alt. login strings).';
$lang['use_start_page'] = 'Use the wiki\'s start page string instead of the user\'s namespace string for the home page.';
$lang['set_permissions'] = '홈 네임스페이스에 대한 모든 권한을 갖도론 acl을 설정하세요.';
$lang['set_permissions_others'] = 'If set permission enabled, what permission for other people?';
$lang['set_permissions_others_o_0'] = 'None';
$lang['set_permissions_others_o_1'] = 'Read';
$lang['set_permissions_others_o_2'] = 'Edit';
$lang['set_permissions_others_o_4'] = 'Create';
$lang['set_permissions_others_o_8'] = 'Upload';
$lang['set_permissions_others_o_16'] = 'Delete';
$lang['templatepath'] = '템플릿화일들이 존재하는 Doku 의 경로를 알려주세요.';
$lang['users_namespace'] = '사용자 네임스페이스가 있는 네임스페이스.';
$lang['group_by_name'] = 'Group home pages by the first character of user name?';
$lang['edit_before_create'] = 'Allow users to edit their home pages before create';

View file

@ -1,20 +1,22 @@
<?php
/**
* Russian language file for the configuration manager
*
* @author: Mikhail I. Izmestev <izmmishao5@gmail.com>
* FIXED by Simon Delage <simon.geekitude@gmail.com> on 2014-08-30
*/
$lang['set_permissions'] = "Устанавливать пользователю полные права доступа к домашней странице.";
$lang['use_name_string'] = "Использовать полное имя для неймспейса пользователя (иначе будет использоваться логин).";
$lang['use_start_page'] = "Использовать имя стартовой страницы вместо имени пользователя для домашней страницы.";
$lang['templatepath'] = "Относительный путь до файла шаблона.";
$lang['users_namespace'] = "Неймспейс где будут создаваться неймспейсы пользователей.";
$lang['set_permissions_others'] = "Какие права доступа устанавливать для остальных пользователей?";
$lang['use_name_string'] = 'Использовать полное имя для неймспейса пользователя (иначе будет использоваться логин).';
$lang['use_start_page'] = 'Использовать имя стартовой страницы вместо имени пользователя для домашней страницы.';
$lang['set_permissions'] = 'Устанавливать пользователю полные права доступа к домашней странице.';
$lang['set_permissions_others'] = 'Какие права доступа устанавливать для остальных пользователей?';
$lang['set_permissions_others_o_0'] = 'Замечание';
$lang['set_permissions_others_o_1'] = 'Чтение';
$lang['set_permissions_others_o_2'] = 'Правка';
$lang['set_permissions_others_o_4'] = 'Создание';
$lang['set_permissions_others_o_8'] = 'Загрузка файлов';
$lang['set_permissions_others_o_16'] = 'Удаление';
$lang['group_by_name'] = "Группировать неймспейсы пользователей по первой букве имени?";
$lang['edit_before_create'] = "Редактировать домашнюю страницу, но не создавать её.";
$lang['templatepath'] = 'Относительный путь до файла шаблона.';
$lang['users_namespace'] = 'Неймспейс где будут создаваться неймспейсы пользователей.';
$lang['group_by_name'] = 'Группировать неймспейсы пользователей по первой букве имени?';
$lang['edit_before_create'] = 'Редактировать домашнюю страницу, но не создавать её.';

7
plugin.info.txt Normal file
View file

@ -0,0 +1,7 @@
base userhomepage
author Simon Delage
email guanfenglin@gmail.com
date 2009-05-28
name User Home Page
desc Auto redirects users to <create> their homepage.
url https://www.dokuwiki.org/plugin:userhomepage