From: Gunnar Wrobel Date: Wed, 29 Apr 2009 07:41:11 +0000 (+0200) Subject: Reorganize the www dir for PEAR. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=88b05c08dd678b65dce242bd7e78a67a3687be7d;p=horde.git Reorganize the www dir for PEAR. --- diff --git a/koward/www/Koward/config/.gitignore b/koward/www/Koward/config/.gitignore new file mode 100644 index 000000000..77eba8a5e --- /dev/null +++ b/koward/www/Koward/config/.gitignore @@ -0,0 +1 @@ +*.local.php diff --git a/koward/www/Koward/config/attributes.php.dist b/koward/www/Koward/config/attributes.php.dist new file mode 100644 index 000000000..3a4908610 --- /dev/null +++ b/koward/www/Koward/config/attributes.php.dist @@ -0,0 +1,26 @@ + _("First Name"), + 'type' => 'text', + 'required' => true, + 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) +); +$attributes['sn'] = array( + 'label' => _("Last Name"), + 'type' => 'text', + 'required' => true, + 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) +); +$attributes['mail'] = array( + 'label' => _("Mail address"), + 'type' => 'text', + 'required' => true, + 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) +); +$attributes['uid'] = array( + 'label' => _("User ID"), + 'type' => 'text', + 'required' => true, + 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) +); diff --git a/koward/www/Koward/config/koward.php.dist b/koward/www/Koward/config/koward.php.dist new file mode 100644 index 000000000..656621cbe --- /dev/null +++ b/koward/www/Koward/config/koward.php.dist @@ -0,0 +1,3 @@ + 'Horde_Kolab_Server_Object', */ +/* 'label' => _("Object"), */ +/* 'list_label' => _("Objects"), */ +/* 'list_attributes' => array( */ +/* 'id' => array( */ +/* 'title' => _("Object id"), */ +/* 'width' => 80, */ +/* 'link_view'=> true, */ +/* ), */ +/* ), */ +/* 'attributes' => array( */ +/* 'override' => true, */ +/* 'fields' => array( */ +/* 'id' => array( */ +/* 'label' => _("Object ID"), */ +/* 'type' => 'text', */ +/* 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) */ +/* ), */ +/* ), */ +/* ), */ +/* ); */ + +/* $objects['person'] = array( */ +/* 'class' => 'Horde_Kolab_Server_Object_Person', */ +/* 'label' => _("Person"), */ +/* 'list_label' => _("Persons"), */ +/* 'list_attributes' => array( */ +/* 'cn' => array( */ +/* 'title' => _("Common name"), */ +/* 'width' => 40, */ +/* 'link_view'=> true, */ +/* ), */ +/* 'sn' => array( */ +/* 'title' => _("Last name"), */ +/* 'width' => 40, */ +/* ), */ +/* ), */ +/* 'attributes' => array( */ +/* 'fields' => array( */ +/* 'cn' => array( */ +/* 'required' => false, */ +/* ), */ +/* 'userPassword' => array( */ +/* 'required' => true, */ +/* ), */ +/* ), */ +/* ), */ +/* ); */ + +/* $objects['organizationalperson'] = array( */ +/* 'class' => 'Horde_Kolab_Server_Object_Organizationalperson', */ +/* 'label' => _("Organizational person"), */ +/* 'list_label' => _("Organizational persons"), */ +/* 'list_attributes' => array( */ +/* 'cn' => array( */ +/* 'title' => _("Common name"), */ +/* 'width' => 40, */ +/* 'link_view'=> true, */ +/* ), */ +/* 'sn' => array( */ +/* 'title' => _("Last name"), */ +/* 'width' => 40, */ +/* ), */ +/* ), */ +/* 'attributes' => array( */ +/* 'fields' => array( */ +/* 'cn' => array( */ +/* 'required' => false, */ +/* ), */ +/* 'userPassword' => array( */ +/* 'required' => true, */ +/* ), */ +/* ), */ +/* ), */ +/* ); */ + +/* $objects['inetperson'] = array( */ +/* 'class' => 'Horde_Kolab_Server_Object_Inetorgperson', */ +/* 'label' => _("Inet person"), */ +/* 'list_label' => _("Inet persons"), */ +/* 'list_attributes' => array( */ +/* 'cn' => array( */ +/* 'title' => _("Common name"), */ +/* 'width' => 40, */ +/* 'link_view'=> true, */ +/* ), */ +/* 'sn' => array( */ +/* 'title' => _("Last name"), */ +/* 'width' => 40, */ +/* ), */ +/* ), */ +/* 'attributes' => array( */ +/* 'fields' => array( */ +/* 'cn' => array( */ +/* 'required' => false, */ +/* ), */ +/* 'userPassword' => array( */ +/* 'required' => true, */ +/* ), */ +/* ), */ +/* ), */ +/* ); */ + +/* $objects['user'] = array( */ +/* 'class' => 'Horde_Kolab_Server_Object_Kolab_User', */ +/* 'label' => _("User"), */ +/* 'list_label' => _("Users"), */ +/* 'list_attributes' => array( */ +/* 'sn' => array( */ +/* 'title' => _("Last name"), */ +/* 'width' => 20, */ +/* ), */ +/* 'givenName' => array( */ +/* 'title' => _("First name"), */ +/* 'width' => 20, */ +/* ), */ +/* 'mail' => array( */ +/* 'title' => _("E-mail"), */ +/* 'width' => 20, */ +/* 'link_view'=> true, */ +/* ), */ +/* 'uid' => array( */ +/* 'title' => _("User ID"), */ +/* 'width' => 20, */ +/* ), */ +/* ), */ +/* ); */ + +/* $objects['admin'] = array( */ +/* 'class' => 'Horde_Kolab_Server_Object_Kolab_Administrator', */ +/* 'label' => _("Administrator"), */ +/* 'list_label' => _("Administrators"), */ +/* 'attributes' => array( */ +/* ), */ +/* ); */ + +/* $objects['kolabuser'] = array( */ +/* 'class' => 'Horde_Kolab_Server_Object_Kolab_User', */ +/* 'preferred' => true, */ +/* 'label' => _("Kolab user"), */ +/* 'list_label' => _("Kolab users"), */ +/* 'list_attributes' => array( */ +/* 'sn' => array( */ +/* 'title' => _("Last name"), */ +/* 'width' => 20, */ +/* ), */ +/* 'givenName' => array( */ +/* 'title' => _("First name"), */ +/* 'width' => 20, */ +/* ), */ +/* 'mail' => array( */ +/* 'title' => _("E-mail"), */ +/* 'width' => 20, */ +/* 'link_view'=> true, */ +/* ), */ +/* 'uid' => array( */ +/* 'title' => _("User ID"), */ +/* 'width' => 20, */ +/* ), */ +/* ), */ +/* 'attributes' => array( */ +/* 'hide' => array( */ +/* 'objectClass', */ +/* 'seeAlso', */ +/* 'x121Address', */ +/* 'registeredAddress', */ +/* 'destinationIndicator', */ +/* 'preferredDeliveryMethod', */ +/* 'telexNumber', */ +/* 'teletexTerminalIdentifier', */ +/* 'internationaliSDNNumber', */ +/* 'kolabEncryptedPassword', */ +/* 'kolabHomeMTA', */ +/* 'kolabDelegate', */ +/* ), */ +/* 'labels' => array( */ +/* 'mail' => _("Account ID"), */ +/* ), */ +/* 'fields' => array( */ +/* 'kolabSalutation' => array( */ +/* 'type' => 'enum', */ +/* 'params' => array('values' => array(_("Mr.") => _("Mr."), */ +/* _("Mrs.") => _("Mrs.")), */ +/* 'prompt' => true), */ +/* ), */ +/* 'gender' => array( */ +/* 'type' => 'enum', */ +/* 'params' => array('values' => array(_("1") => _("male"), */ +/* _("2") => _("female")), */ +/* 'prompt' => true), */ +/* ), */ +/* 'kolabMaritalStatus' => array( */ +/* 'type' => 'enum', */ +/* 'params' => array('values' => array(_("0") => _("single"), */ +/* _("1") => _("married")), */ +/* 'prompt' => true), */ +/* ), */ +/* 'userPassword' => array( */ +/* 'type' => 'passwordconfirm', */ +/* ), */ +/* ), */ +/* ), */ +/* ); */ + +if (file_exists(dirname(__FILE__) . '/objects.local.php')) { + require_once(dirname(__FILE__) . '/objects.local.php'); +} diff --git a/koward/www/Koward/config/order.php.dist b/koward/www/Koward/config/order.php.dist new file mode 100644 index 000000000..74e0a2830 --- /dev/null +++ b/koward/www/Koward/config/order.php.dist @@ -0,0 +1,17 @@ +connect('index', array('controller' => 'index')); +$mapper->connect('index.php', array('controller' => 'index')); + +$mapper->connect('check/:action/:id', array('controller' => 'check', 'action' => 'show')); +$mapper->connect(':controller/:action/:id', array('controller' => 'object')); + +// Local route overrides +if (file_exists(dirname(__FILE__) . '/routes.local.php')) { + include dirname(__FILE__) . '/routes.local.php'; +} diff --git a/koward/www/Koward/config/search.php.dist b/koward/www/Koward/config/search.php.dist new file mode 100644 index 000000000..fb6264f6b --- /dev/null +++ b/koward/www/Koward/config/search.php.dist @@ -0,0 +1,15 @@ + array( + 'givenName' => array( + 'label' => _("First Name"), + 'type' => 'text', + 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) + ), + ) +); + +if (file_exists(dirname(__FILE__) . '/search.local.php')) { + require_once(dirname(__FILE__) . '/search.local.php'); +} diff --git a/koward/www/Koward/config/visible.php b/koward/www/Koward/config/visible.php new file mode 100644 index 000000000..d8699092f --- /dev/null +++ b/koward/www/Koward/config/visible.php @@ -0,0 +1,59 @@ + _("First Name"), - 'type' => 'text', - 'required' => true, - 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) -); -$attributes['sn'] = array( - 'label' => _("Last Name"), - 'type' => 'text', - 'required' => true, - 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) -); -$attributes['mail'] = array( - 'label' => _("Mail address"), - 'type' => 'text', - 'required' => true, - 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) -); -$attributes['uid'] = array( - 'label' => _("User ID"), - 'type' => 'text', - 'required' => true, - 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) -); diff --git a/koward/www/config/conf.php b/koward/www/config/conf.php deleted file mode 100644 index 656621cbe..000000000 --- a/koward/www/config/conf.php +++ /dev/null @@ -1,3 +0,0 @@ - 'Horde_Kolab_Server_Object', */ -/* 'label' => _("Object"), */ -/* 'list_label' => _("Objects"), */ -/* 'list_attributes' => array( */ -/* 'id' => array( */ -/* 'title' => _("Object id"), */ -/* 'width' => 80, */ -/* 'link_view'=> true, */ -/* ), */ -/* ), */ -/* 'attributes' => array( */ -/* 'override' => true, */ -/* 'fields' => array( */ -/* 'id' => array( */ -/* 'label' => _("Object ID"), */ -/* 'type' => 'text', */ -/* 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) */ -/* ), */ -/* ), */ -/* ), */ -/* ); */ - -/* $objects['person'] = array( */ -/* 'class' => 'Horde_Kolab_Server_Object_Person', */ -/* 'label' => _("Person"), */ -/* 'list_label' => _("Persons"), */ -/* 'list_attributes' => array( */ -/* 'cn' => array( */ -/* 'title' => _("Common name"), */ -/* 'width' => 40, */ -/* 'link_view'=> true, */ -/* ), */ -/* 'sn' => array( */ -/* 'title' => _("Last name"), */ -/* 'width' => 40, */ -/* ), */ -/* ), */ -/* 'attributes' => array( */ -/* 'fields' => array( */ -/* 'cn' => array( */ -/* 'required' => false, */ -/* ), */ -/* 'userPassword' => array( */ -/* 'required' => true, */ -/* ), */ -/* ), */ -/* ), */ -/* ); */ - -/* $objects['organizationalperson'] = array( */ -/* 'class' => 'Horde_Kolab_Server_Object_Organizationalperson', */ -/* 'label' => _("Organizational person"), */ -/* 'list_label' => _("Organizational persons"), */ -/* 'list_attributes' => array( */ -/* 'cn' => array( */ -/* 'title' => _("Common name"), */ -/* 'width' => 40, */ -/* 'link_view'=> true, */ -/* ), */ -/* 'sn' => array( */ -/* 'title' => _("Last name"), */ -/* 'width' => 40, */ -/* ), */ -/* ), */ -/* 'attributes' => array( */ -/* 'fields' => array( */ -/* 'cn' => array( */ -/* 'required' => false, */ -/* ), */ -/* 'userPassword' => array( */ -/* 'required' => true, */ -/* ), */ -/* ), */ -/* ), */ -/* ); */ - -/* $objects['inetperson'] = array( */ -/* 'class' => 'Horde_Kolab_Server_Object_Inetorgperson', */ -/* 'label' => _("Inet person"), */ -/* 'list_label' => _("Inet persons"), */ -/* 'list_attributes' => array( */ -/* 'cn' => array( */ -/* 'title' => _("Common name"), */ -/* 'width' => 40, */ -/* 'link_view'=> true, */ -/* ), */ -/* 'sn' => array( */ -/* 'title' => _("Last name"), */ -/* 'width' => 40, */ -/* ), */ -/* ), */ -/* 'attributes' => array( */ -/* 'fields' => array( */ -/* 'cn' => array( */ -/* 'required' => false, */ -/* ), */ -/* 'userPassword' => array( */ -/* 'required' => true, */ -/* ), */ -/* ), */ -/* ), */ -/* ); */ - -/* $objects['user'] = array( */ -/* 'class' => 'Horde_Kolab_Server_Object_Kolab_User', */ -/* 'label' => _("User"), */ -/* 'list_label' => _("Users"), */ -/* 'list_attributes' => array( */ -/* 'sn' => array( */ -/* 'title' => _("Last name"), */ -/* 'width' => 20, */ -/* ), */ -/* 'givenName' => array( */ -/* 'title' => _("First name"), */ -/* 'width' => 20, */ -/* ), */ -/* 'mail' => array( */ -/* 'title' => _("E-mail"), */ -/* 'width' => 20, */ -/* 'link_view'=> true, */ -/* ), */ -/* 'uid' => array( */ -/* 'title' => _("User ID"), */ -/* 'width' => 20, */ -/* ), */ -/* ), */ -/* ); */ - -/* $objects['admin'] = array( */ -/* 'class' => 'Horde_Kolab_Server_Object_Kolab_Administrator', */ -/* 'label' => _("Administrator"), */ -/* 'list_label' => _("Administrators"), */ -/* 'attributes' => array( */ -/* ), */ -/* ); */ - -/* $objects['kolabuser'] = array( */ -/* 'class' => 'Horde_Kolab_Server_Object_Kolab_User', */ -/* 'preferred' => true, */ -/* 'label' => _("Kolab user"), */ -/* 'list_label' => _("Kolab users"), */ -/* 'list_attributes' => array( */ -/* 'sn' => array( */ -/* 'title' => _("Last name"), */ -/* 'width' => 20, */ -/* ), */ -/* 'givenName' => array( */ -/* 'title' => _("First name"), */ -/* 'width' => 20, */ -/* ), */ -/* 'mail' => array( */ -/* 'title' => _("E-mail"), */ -/* 'width' => 20, */ -/* 'link_view'=> true, */ -/* ), */ -/* 'uid' => array( */ -/* 'title' => _("User ID"), */ -/* 'width' => 20, */ -/* ), */ -/* ), */ -/* 'attributes' => array( */ -/* 'hide' => array( */ -/* 'objectClass', */ -/* 'seeAlso', */ -/* 'x121Address', */ -/* 'registeredAddress', */ -/* 'destinationIndicator', */ -/* 'preferredDeliveryMethod', */ -/* 'telexNumber', */ -/* 'teletexTerminalIdentifier', */ -/* 'internationaliSDNNumber', */ -/* 'kolabEncryptedPassword', */ -/* 'kolabHomeMTA', */ -/* 'kolabDelegate', */ -/* ), */ -/* 'labels' => array( */ -/* 'mail' => _("Account ID"), */ -/* ), */ -/* 'fields' => array( */ -/* 'kolabSalutation' => array( */ -/* 'type' => 'enum', */ -/* 'params' => array('values' => array(_("Mr.") => _("Mr."), */ -/* _("Mrs.") => _("Mrs.")), */ -/* 'prompt' => true), */ -/* ), */ -/* 'gender' => array( */ -/* 'type' => 'enum', */ -/* 'params' => array('values' => array(_("1") => _("male"), */ -/* _("2") => _("female")), */ -/* 'prompt' => true), */ -/* ), */ -/* 'kolabMaritalStatus' => array( */ -/* 'type' => 'enum', */ -/* 'params' => array('values' => array(_("0") => _("single"), */ -/* _("1") => _("married")), */ -/* 'prompt' => true), */ -/* ), */ -/* 'userPassword' => array( */ -/* 'type' => 'passwordconfirm', */ -/* ), */ -/* ), */ -/* ), */ -/* ); */ - -if (file_exists(dirname(__FILE__) . '/objects.local.php')) { - require_once(dirname(__FILE__) . '/objects.local.php'); -} diff --git a/koward/www/config/order.php b/koward/www/config/order.php deleted file mode 100644 index 74e0a2830..000000000 --- a/koward/www/config/order.php +++ /dev/null @@ -1,17 +0,0 @@ -connect('index', array('controller' => 'index')); -$mapper->connect('index.php', array('controller' => 'index')); - -$mapper->connect('check/:action/:id', array('controller' => 'check', 'action' => 'show')); -$mapper->connect(':controller/:action/:id', array('controller' => 'object')); - -// Local route overrides -if (file_exists(dirname(__FILE__) . '/routes.local.php')) { - include dirname(__FILE__) . '/routes.local.php'; -} diff --git a/koward/www/config/search.php b/koward/www/config/search.php deleted file mode 100644 index fb6264f6b..000000000 --- a/koward/www/config/search.php +++ /dev/null @@ -1,15 +0,0 @@ - array( - 'givenName' => array( - 'label' => _("First Name"), - 'type' => 'text', - 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255) - ), - ) -); - -if (file_exists(dirname(__FILE__) . '/search.local.php')) { - require_once(dirname(__FILE__) . '/search.local.php'); -} diff --git a/koward/www/config/visible.php b/koward/www/config/visible.php deleted file mode 100644 index d8699092f..000000000 --- a/koward/www/config/visible.php +++ /dev/null @@ -1,59 +0,0 @@ -