[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api class.auth.php, 1.1.1.1, 1.1.1.1.2.1 class.lang.p
From: |
Dan Kuykendall <address@hidden> |
Subject: |
[Phpgroupware-cvs] api class.auth.php, 1.1.1.1, 1.1.1.1.2.1 class.lang.php, 1.1.2.9, 1.1.2.10 class.phpgw.php, 1.1.1.1.2.18, 1.1.1.1.2.19 class.prefs.php, 1.1.1.1.2.4, 1.1.1.1.2.5 |
Date: |
Sat, 01 Nov 2003 19:01:03 +0000 |
Update of /cvsroot/phpgroupware/api
In directory subversions:/tmp/cvs-serv28561/api
Modified Files:
Tag: proposal-branch
class.auth.php class.lang.php class.phpgw.php class.prefs.php
Log Message:
moved loading of docs into the main class so that it will be avaible to
anything that wants to use it
Index: class.lang.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/Attic/class.lang.php,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -C2 -d -r1.1.2.9 -r1.1.2.10
*** class.lang.php 29 Oct 2003 11:09:26 -0000 1.1.2.9
--- class.lang.php 1 Nov 2003 19:01:00 -0000 1.1.2.10
***************
*** 313,318 ****
/* cheater shortcut version */
! function lang()
{
! return $GLOBALS['phpgw']->lang->get(func_get_args());
}
--- 313,321 ----
/* cheater shortcut version */
! if(!function_exists('lang'))
{
! function lang()
! {
! return $GLOBALS['phpgw']->lang->get(func_get_args());
! }
}
Index: class.auth.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/class.auth.php,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -C2 -d -r1.1.1.1 -r1.1.1.1.2.1
*** class.auth.php 23 Oct 2003 07:25:01 -0000 1.1.1.1
--- class.auth.php 1 Nov 2003 19:00:59 -0000 1.1.1.1.2.1
***************
*** 1,3 ****
--- 1,30 ----
<?php
+ $functions = array();
+ $functions['authenticate'] = array(
+ 'type'=>'public',
+ 'abstract'=>'Authenticate user against the selected data store',
+ 'discussion'=>'The data store is determined by the driver being
used such as SQL or LDAP.',
+ 'params'=>array(
+ 'username'=>array('type'=>'string',
'default'=>'##REQUIRD##', 'desc'=>'users username'),
+ 'passwd'=>array('type'=>'any',
'default'=>'##REQUIRD##', 'desc'=>'users password')
+ )
+ );
+
+ $functions['change_password'] = array(
+ 'type'=>'public',
+ 'abstract'=>'Change the users password',
+ 'discussion'=>'With some data stores this may not be possible.',
+ 'params'=>array(
+ 'current_passwd'=>array('type'=>'any',
'default'=>'##REQUIRD##', 'desc'=>'users current password'),
+ 'new_passwd'=>array('type'=>'any',
'default'=>'##REQUIRD##', 'desc'=>'users new password'),
+ 'username'=>array('type'=>'string',
'default'=>'##REQUIRD##', 'desc'=>'users username')
+ )
+ );
+
+ $GLOBALS['docs']['classes']['api_auth'] = array(
+ 'abstract'=>'Authentication system',
+ 'functions'=>$functions
+ );
+
if (empty($GLOBALS['phpgw_data']['server']['auth_type']))
{
Index: class.prefs.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/class.prefs.php,v
retrieving revision 1.1.1.1.2.4
retrieving revision 1.1.1.1.2.5
diff -C2 -d -r1.1.1.1.2.4 -r1.1.1.1.2.5
*** class.prefs.php 29 Oct 2003 11:09:26 -0000 1.1.1.1.2.4
--- class.prefs.php 1 Nov 2003 19:01:00 -0000 1.1.1.1.2.5
***************
*** 183,186 ****
}
}
-
-
--- 183,184 ----
Index: class.phpgw.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/class.phpgw.php,v
retrieving revision 1.1.1.1.2.18
retrieving revision 1.1.1.1.2.19
diff -C2 -d -r1.1.1.1.2.18 -r1.1.1.1.2.19
*** class.phpgw.php 31 Oct 2003 19:00:43 -0000 1.1.1.1.2.18
--- class.phpgw.php 1 Nov 2003 19:01:00 -0000 1.1.1.1.2.19
***************
*** 411,414 ****
--- 411,446 ----
}
+
+ function load_docs()
+ {
+ if (is_dir(PHPGW_ROOT))
+ {
+ if ($maindh = opendir(PHPGW_ROOT))
+ {
+ while (($dir = readdir($maindh)) !==
false)
+ {
+
if(filetype(PHPGW_ROOT.SEP.$dir) == 'dir' && $dir != '.' && $dir != '..' &&
$dir != 'CVS')
+ {
+ if
(is_dir(PHPGW_ROOT.SEP.$dir))
+ {
+ if ($dh =
opendir(PHPGW_ROOT.SEP.$dir))
+ {
+ while
(($file = readdir($dh)) !== false)
+ {
+
if(substr($file, 0, 6) == 'class.')
+
{
+
$classname = substr($file, 6, strlen($file)-10);
+
include_once(PHPGW_ROOT.SEP.$dir.SEP.$file);
+
}
+ }
+
closedir($dh);
+ }
+ }
+ }
+ }
+ closedir($maindh);
+ }
+ }
+ }
}
//register_shutdown_function(array($GLOBALS['phpgw'], 'phpgw_final'));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api class.auth.php, 1.1.1.1, 1.1.1.1.2.1 class.lang.php, 1.1.2.9, 1.1.2.10 class.phpgw.php, 1.1.1.1.2.18, 1.1.1.1.2.19 class.prefs.php, 1.1.1.1.2.4, 1.1.1.1.2.5,
Dan Kuykendall <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] phpsysinfo/templates/aq aq.css, NONE, 1.1.2.1 box.tpl, NONE, 1.1.2.1 form.tpl, NONE, 1.1.2.1
- Next by Date:
[Phpgroupware-cvs] phpsysinfo/templates/aq/images - New directory
- Previous by thread:
[Phpgroupware-cvs] phpsysinfo/templates/aq aq.css, NONE, 1.1.2.1 box.tpl, NONE, 1.1.2.1 form.tpl, NONE, 1.1.2.1
- Next by thread:
[Phpgroupware-cvs] phpsysinfo/templates/aq/images - New directory
- Index(es):