Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
679d8980
Commit
679d8980
authored
Dec 08, 2006
by
Nigel McNie
Committed by
Nigel McNie
Dec 08, 2006
Browse files
Configure pieforms to use a custom directory path for stuff.
parent
dcb4910c
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/mahara.php
View file @
679d8980
...
...
@@ -554,15 +554,6 @@ function check_dir_exists($dir, $create=true, $recursive=true) {
return
$status
;
}
/**
* Checks that a username is in valid form
*
* @todo need such a function for password too.
*/
//function validate_username($username) {
// return preg_match('/^[a-zA-Z0-9_\.@]+$/', $username);
//}
/**
* Function to require a plugin file. This is to avoid doing
* require and include directly with variables.
...
...
@@ -691,7 +682,7 @@ function mixed_array_to_field_array($array, $field) {
/**
* Adds stuff to the log
* @todo write this functi
n
o
* @todo write this functio
n
*
* @param string $plugintype plugin type or core
* @param string $pluginname plugin name or core component (eg 'view')
...
...
@@ -820,15 +811,16 @@ function password_validate(Pieform $form, $values, $username, $institution) {
function
pieform_configure
()
{
global
$USER
;
return
array
(
'method'
=>
'post'
,
'action'
=>
''
,
'method'
=>
'post'
,
'action'
=>
''
,
'autofocus'
=>
true
,
'renderer'
=>
'maharatable'
,
'preajaxsubmitcallback'
=>
'processingStart'
,
'renderer'
=>
'maharatable'
,
'preajaxsubmitcallback'
=>
'processingStart'
,
'postajaxsubmitcallback'
=>
'processingStop'
,
'elements'
=>
array
(
'configdirs'
=>
get_config
(
'libroot'
)
.
'form/'
,
'elements'
=>
array
(
'sesskey'
=>
array
(
'type'
=>
'hidden'
,
'type'
=>
'hidden'
,
'value'
=>
$USER
->
get
(
'sesskey'
)
)
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment