Skip to content
GitLab
Menu
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
5449ecd1
Commit
5449ecd1
authored
Nov 24, 2006
by
Nigel McNie
Committed by
Nigel McNie
Nov 24, 2006
Browse files
Merge with
git+ssh://git.catalyst.net.nz/var/git/mahara.git#master
parents
09f24963
9a74322a
Changes
11
Hide whitespace changes
Inline
Side-by-side
htdocs/about.php
View file @
5449ecd1
...
...
@@ -28,12 +28,11 @@ define('INTERNAL', 1);
define
(
'PUBLIC'
,
1
);
require
(
'init.php'
);
require_once
(
'pieforms/pieform.php'
);
$smarty
=
smarty
();
$smarty
->
assign
(
'page_content'
,
get_site_page_content
(
'about'
));
$smarty
->
assign
(
'site_menu'
,
site_menu
());
$smarty
->
assign
(
'searchform'
,
pieform
(
searchform
())
)
;
$smarty
->
assign
(
'searchform'
,
searchform
());
$smarty
->
display
(
'sitepage.tpl'
);
?>
htdocs/artefact/internal/profile/validate.php
View file @
5449ecd1
...
...
@@ -28,7 +28,7 @@ define('INTERNAL', 1);
define
(
'PUBLIC'
,
1
);
require
(
dirname
(
dirname
(
dirname
(
dirname
(
__FILE__
))))
.
'/init.php'
);
require_once
(
'form.php'
);
require_once
(
'
pieforms/pie
form.php'
);
safe_require
(
'artefact'
,
'internal'
);
$email
=
param_variable
(
'email'
);
...
...
htdocs/contact.php
View file @
5449ecd1
...
...
@@ -118,7 +118,7 @@ function contactus_submit($values) {
$smarty
=
smarty
();
$smarty
->
assign
(
'page_content'
,
$contactform
);
$smarty
->
assign
(
'site_menu'
,
site_menu
());
$smarty
->
assign
(
'searchform'
,
pieform
(
searchform
())
)
;
$smarty
->
assign
(
'searchform'
,
searchform
());
$smarty
->
display
(
'sitepage.tpl'
);
?>
htdocs/index.php
View file @
5449ecd1
...
...
@@ -29,11 +29,11 @@ define('PUBLIC', 1);
define
(
'MENUITEM'
,
'home'
);
require
(
'init.php'
);
require_once
(
'pieforms/pieform.php'
);
// Check for whether the user is logged in, before processing the page. After
// this, we can guarantee whether the user is logged in or not for this page.
if
(
!
$USER
->
is_logged_in
())
{
require_once
(
'pieforms/pieform.php'
);
$institutions
=
get_records_menu
(
'institution'
,
''
,
''
,
'name, displayname'
);
$loginform
=
get_login_form_js
(
pieform
(
array
(
'name'
=>
'login'
,
...
...
@@ -97,7 +97,7 @@ if (!$USER->is_logged_in()) {
$smarty
->
assign
(
'login_form'
,
$loginform
);
}
else
{
$smarty
->
assign
(
'searchform'
,
pieform
(
searchform
())
)
;
$smarty
->
assign
(
'searchform'
,
searchform
());
}
$smarty
->
assign
(
'page_content'
,
get_site_page_content
(
$pagename
));
$smarty
->
assign
(
'site_menu'
,
site_menu
());
...
...
htdocs/lang/en.utf8/mahara.php
View file @
5449ecd1
...
...
@@ -207,6 +207,7 @@ $string['description'] = 'Description';
$string
[
'editaccess'
]
=
'Edit Access'
;
$string
[
'editview'
]
=
'Edit View'
;
$string
[
'editviewinformation'
]
=
'Edit View Information'
;
$string
[
'myviews'
]
=
'My Views'
;
$string
[
'submitview'
]
=
'Submit View'
;
$string
[
'viewdeleted'
]
=
'View deleted'
;
...
...
htdocs/lib/mahara.php
View file @
5449ecd1
...
...
@@ -944,6 +944,11 @@ function main_nav() {
),
),
);
$menu
[]
=
array
(
'name'
=>
'myviews'
,
'link'
=>
$wwwroot
.
'view/'
,
'section'
=>
'mahara'
,
);
$menu
[]
=
array
(
'name'
=>
'account'
,
'link'
=>
$wwwroot
.
'account/'
,
...
...
@@ -1307,7 +1312,8 @@ function pieform_configure() {
}
function
searchform
()
{
return
array
(
require_once
(
'pieforms/pieform.php'
);
return
pieform
(
array
(
'name'
=>
'searchform'
,
'action'
=>
get_config
(
'wwwroot'
)
.
'user/search.php'
,
'elements'
=>
array
(
...
...
@@ -1316,7 +1322,7 @@ function searchform() {
'defaultvalue'
=>
''
,
),
)
);
)
);
}
?>
htdocs/privacy.php
View file @
5449ecd1
...
...
@@ -28,12 +28,11 @@ define('INTERNAL', 1);
define
(
'PUBLIC'
,
1
);
require
(
'init.php'
);
require_once
(
'pieforms/pieform.php'
);
$smarty
=
smarty
();
$smarty
->
assign
(
'page_content'
,
get_site_page_content
(
'privacy'
));
$smarty
->
assign
(
'site_menu'
,
site_menu
());
$smarty
->
assign
(
'searchform'
,
pieform
(
searchform
())
)
;
$smarty
->
assign
(
'searchform'
,
searchform
());
$smarty
->
display
(
'sitepage.tpl'
);
?>
htdocs/terms.php
View file @
5449ecd1
...
...
@@ -28,12 +28,11 @@ define('INTERNAL', 1);
define
(
'PUBLIC'
,
1
);
require
(
'init.php'
);
require_once
(
'pieforms/pieform.php'
);
$smarty
=
smarty
();
$smarty
->
assign
(
'page_content'
,
get_site_page_content
(
'termsandconditions'
));
$smarty
->
assign
(
'site_menu'
,
site_menu
());
$smarty
->
assign
(
'searchform'
,
pieform
(
searchform
())
)
;
$smarty
->
assign
(
'searchform'
,
searchform
());
$smarty
->
display
(
'sitepage.tpl'
);
?>
htdocs/theme/default/templates/user/view.tpl
View file @
5449ecd1
{
include
file
=
"header.tpl"
}
{
include
file
=
"searchbox.tpl"
}
{
include
file
=
"adminmenu.tpl"
}
<div
class=
"content"
>
...
...
htdocs/user/view.php
View file @
5449ecd1
...
...
@@ -57,6 +57,7 @@ else {
}
$smarty
=
smarty
();
$smarty
->
assign
(
'searchform'
,
searchform
());
$smarty
->
assign
(
'NAME'
,
$name
);
$smarty
->
assign
(
'PROFILE'
,
$profile
);
$smarty
->
display
(
'user/view.tpl'
);
...
...
htdocs/view/index.php
View file @
5449ecd1
...
...
@@ -26,7 +26,6 @@
define
(
'INTERNAL'
,
1
);
require
(
dirname
(
dirname
(
__FILE__
))
.
'/init.php'
);
require_once
(
'pieforms/pieform.php'
);
$wwwroot
=
get_config
(
'wwwroot'
);
...
...
@@ -48,7 +47,7 @@ $javascript = <<<JAVASCRIPT
var viewlist = new TableRenderer(
'viewlist',
'myviews.json.php',
[]
[
null,null
]
);
viewlist.rowfunction = function(r, n, data) {
...
...
@@ -177,7 +176,7 @@ JAVASCRIPT;
$smarty
=
smarty
(
array
(
'tablerenderer'
));
$smarty
->
assign
(
'site_menu'
,
site_menu
());
$smarty
->
assign
(
'searchform'
,
pieform
(
searchform
())
)
;
$smarty
->
assign
(
'searchform'
,
searchform
());
$smarty
->
assign
(
'INLINEJAVASCRIPT'
,
$javascript
);
$smarty
->
display
(
'view/index.tpl'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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