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
ad8e1a4a
Commit
ad8e1a4a
authored
Jan 18, 2007
by
Richard Mansfield
Browse files
Merge with
git+ssh://git.catalyst.net.nz/var/git/mahara.git
parents
da42551f
ac4db857
Changes
12
Hide whitespace changes
Inline
Side-by-side
htdocs/about.php
View file @
ad8e1a4a
...
...
@@ -26,8 +26,8 @@
define
(
'INTERNAL'
,
1
);
define
(
'PUBLIC'
,
1
);
require
(
'init.php'
);
define
(
'TITLE'
,
get_string
(
'about'
));
$smarty
=
smarty
();
$smarty
->
assign
(
'page_content'
,
get_site_page_content
(
'about'
));
...
...
htdocs/contact.php
View file @
ad8e1a4a
...
...
@@ -26,9 +26,9 @@
define
(
'INTERNAL'
,
1
);
define
(
'PUBLIC'
,
1
);
require
(
'init.php'
);
require_once
(
'pieforms/pieform.php'
);
define
(
'TITLE'
,
get_string
(
'contactus'
));
if
(
$USER
->
is_logged_in
())
{
$userid
=
$USER
->
get
(
'id'
);
...
...
htdocs/forgotpass.php
View file @
ad8e1a4a
...
...
@@ -28,6 +28,7 @@ define('INTERNAL', 1);
define
(
'PUBLIC'
,
1
);
require
(
'init.php'
);
require_once
(
'pieforms/pieform.php'
);
define
(
'TITLE'
,
get_string
(
'forgotpassword'
));
if
(
!
session_id
())
{
session_start
();
...
...
htdocs/index.php
View file @
ad8e1a4a
...
...
@@ -27,8 +27,8 @@
define
(
'INTERNAL'
,
1
);
define
(
'PUBLIC'
,
1
);
define
(
'MENUITEM'
,
'home'
);
require
(
'init.php'
);
define
(
'TITLE'
,
get_string
(
'home'
));
// 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.
...
...
htdocs/js/tablerenderer.js
View file @
ad8e1a4a
...
...
@@ -54,6 +54,12 @@ function TableRenderer(target, source, columns, options) {
}
if
(
!
self
.
pager
||
self
.
pager
.
options
.
lastPage
!=
Math
.
floor
(
(
count
-
1
)
/
limit
)
+
1
)
{
if
(
self
.
pager
)
{
if
(
self
.
headRow
)
{
removeElement
(
self
.
headRow
);
}
if
(
self
.
footRow
)
{
removeElement
(
self
.
footRow
);
}
self
.
pager
.
removeAllInstances
();
}
self
.
pager
=
new
Pager
(
count
,
limit
,
{
...
...
@@ -65,16 +71,22 @@ function TableRenderer(target, source, columns, options) {
'
firstPageString
'
:
get_string
(
'
firstpage
'
)
});
var
headRow
=
TR
(
null
,
TD
({
'
colspan
'
:
self
.
linkspan
},
self
.
pager
.
newDisplayInstance
()));
var
footRow
=
TR
(
null
,
TD
({
'
colspan
'
:
self
.
linkspan
},
self
.
pager
.
newDisplayInstance
()));
if
(
self
.
pager
.
options
.
lastPage
==
1
)
{
self
.
headRow
=
null
;
self
.
footRow
=
null
;
return
;
}
self
.
headRow
=
TR
(
null
,
TD
({
'
colspan
'
:
self
.
linkspan
},
self
.
pager
.
newDisplayInstance
()));
self
.
footRow
=
TR
(
null
,
TD
({
'
colspan
'
:
self
.
linkspan
},
self
.
pager
.
newDisplayInstance
()));
if
(
self
.
thead
.
firstChild
)
{
insertSiblingNodesBefore
(
self
.
thead
.
firstChild
,
headRow
);
insertSiblingNodesBefore
(
self
.
thead
.
firstChild
,
self
.
headRow
);
}
else
{
appendChildNodes
(
self
.
thead
,
headRow
);
appendChildNodes
(
self
.
thead
,
self
.
headRow
);
}
appendChildNodes
(
self
.
tfoot
,
footRow
);
appendChildNodes
(
self
.
tfoot
,
self
.
footRow
);
}
}
...
...
htdocs/lib/web.php
View file @
ad8e1a4a
...
...
@@ -180,6 +180,13 @@ EOF;
$smarty
->
assign
(
'THEMEURL'
,
get_config
(
'themeurl'
));
$smarty
->
assign
(
'WWWROOT'
,
$wwwroot
);
if
(
defined
(
'TITLE'
))
{
$smarty
->
assign
(
'PAGETITLE'
,
TITLE
.
' - '
.
get_config
(
'sitename'
));
}
else
{
$smarty
->
assign
(
'PAGETITLE'
,
get_config
(
'sitename'
));
}
$sitename
=
get_config
(
'sitename'
);
$smarty
->
assign
(
'title'
,
$sitename
);
...
...
htdocs/privacy.php
View file @
ad8e1a4a
...
...
@@ -26,8 +26,8 @@
define
(
'INTERNAL'
,
1
);
define
(
'PUBLIC'
,
1
);
require
(
'init.php'
);
define
(
'TITLE'
,
get_string
(
'privacystatement'
));
$smarty
=
smarty
();
$smarty
->
assign
(
'page_content'
,
get_site_page_content
(
'privacy'
));
...
...
htdocs/register.php
View file @
ad8e1a4a
...
...
@@ -28,6 +28,7 @@ define('INTERNAL', 1);
define
(
'PUBLIC'
,
1
);
define
(
'MENUITEM'
,
'home'
);
require
(
'init.php'
);
define
(
'TITLE'
,
get_string
(
'register'
));
/*
* This page handles three different tasks:
...
...
htdocs/terms.php
View file @
ad8e1a4a
...
...
@@ -26,8 +26,8 @@
define
(
'INTERNAL'
,
1
);
define
(
'PUBLIC'
,
1
);
require
(
'init.php'
);
define
(
'TITLE'
,
get_string
(
'termsandconditions'
));
$smarty
=
smarty
();
$smarty
->
assign
(
'page_content'
,
get_site_page_content
(
'termsandconditions'
));
...
...
htdocs/theme/default/templates/header.tpl
View file @
ad8e1a4a
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
{
$
title
|
default
:
"Mahara"
|
escape
}
</title>
<title>
{
$
PAGETITLE
|
escape
}
</title>
<script
type=
"text/javascript"
>
var
config
=
{
literal
}{{/
literal
}
'themeurl'
:
'{$THEMEURL}'
,
...
...
htdocs/thumb.php
View file @
ad8e1a4a
...
...
@@ -26,7 +26,6 @@
define
(
'INTERNAL'
,
1
);
define
(
'PUBLIC'
,
1
);
require
(
'init.php'
);
require_once
(
'file.php'
);
...
...
test/file_content_check.pl
View file @
ad8e1a4a
...
...
@@ -157,7 +157,10 @@ sub process {
print
"
(
$author
)
",
$directory
,
$filename
,
"
has call to get_string that doesn't exist: get_string('
$tag
', '
$section
')
\n
";
}
}
}
print
"
\n
";
# check for page titles
if
(
$file_data
=~
m{define.*\(.*INTERNAL.*1.*\)}
and
$file_data
!~
m{define.*\(.*JSON.*1.*\)}
and
$file_data
!~
m{define.*\(.*TITLE.*\)}
)
{
print
"
(
$author
)
",
$directory
,
$filename
,
"
is missing page title [ define('TITLE', get_string(...)); ]
\n
";
}
}
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