Commit 33013eec authored by Francois Marier's avatar Francois Marier

Remove closing tags from PHP files

These closing tags are unnecessary and against our coding
guidelines. Let's get rid of them all in one go.

Change-Id: Ia94f103e525185597ee3780a3839d7577cdd0c29
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent e7299ba2
......@@ -33,5 +33,3 @@ define('TITLE', get_string('about'));
$smarty = smarty();
$smarty->assign('page_content', get_site_page_content('about'));
$smarty->display('sitepage.tpl');
?>
......@@ -109,4 +109,3 @@ if ($message) {
}
json_reply(false, (object) array('message' => $message, 'data' => $newhtml));
......@@ -249,4 +249,3 @@ $smarty->assign('PAGEHEADING', TITLE);
$smarty->assign('deleteall', $deleteall);
$smarty->assign('activitylist', $activitylist);
$smarty->display('account/activity/index.tpl');
?>
......@@ -117,6 +117,3 @@ function activityprefs_submit(Pieform $form, $values) {
}
$form->json_reply(PIEFORM_OK, get_string('prefssaved', 'account'));
}
?>
......@@ -60,5 +60,3 @@ function account_delete_submit(Pieform $form, $values) {
$smarty = smarty();
$smarty->assign('form', $deleteform);
$smarty->display('account/delete.tpl');
?>
......@@ -322,6 +322,3 @@ function clearPasswords(form, data) {
");
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('account/index.tpl');
?>
......@@ -248,5 +248,3 @@ $smarty->assign('invitedform', $invitedform);
$smarty->assign('joinform', $joinform);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('account/institutions.tpl');
?>
......@@ -68,5 +68,3 @@ $smarty->assign('newfiltersdescription', get_string('newfiltersdescription', 'ad
$smarty->assign('filters', $filters);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/extensions/filters.tpl');
?>
......@@ -133,4 +133,3 @@ function pluginconfig_validate(PieForm $form, $values) {
call_static_method($classname, 'validate_config_options', $form, $values);
}
}
?>
......@@ -205,5 +205,3 @@ $smarty->assign('plugins', $plugins);
$smarty->assign('installlink', 'installplugin');
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/extensions/plugins.tpl');
?>
......@@ -64,5 +64,3 @@ function admindeletegroup_submit(Pieform $form, $values) {
$SESSION->add_ok_msg(get_string('deletegroup', 'group'));
redirect(get_config('wwwroot').'admin/groups/groups.php');
}
?>
......@@ -50,5 +50,3 @@ if (!delete_records('group_category','id', $itemid)) {
}
json_reply(false, get_string('groupcategorydeleted','admin'));
?>
......@@ -51,4 +51,3 @@ $result['message'] = false;
json_headers();
echo json_encode($result);
?>
......@@ -196,5 +196,3 @@ $smarty->assign('PAGEHEADING', hsc(get_string('groupcategories', 'admin')));
$smarty->assign('INLINEJAVASCRIPT', $ijs);
$smarty->assign('optionform', $optionform);
$smarty->display('admin/groups/groupcategories.tpl');
?>
......@@ -44,5 +44,3 @@ $data['offset'] = $offset;
$data['query'] = $query;
json_reply(false, array('data' => $data));
?>
......@@ -79,4 +79,3 @@ $smarty->display('admin/groups/groups.tpl');
function search_submit(Pieform $form, $values) {
redirect(get_config('wwwroot') . 'admin/groups/groups.php' . (!empty($values['query']) ? '?query=' . urlencode($values['query']) : ''));
}
?>
......@@ -108,5 +108,3 @@ $smarty = smarty();
$smarty->assign('PAGEHEADING', TITLE);
$smarty->assign('managegroupform', $form);
$smarty->display('admin/groups/manage.tpl');
?>
......@@ -66,5 +66,3 @@ else {
}
json_reply(false, null);
?>
......@@ -131,5 +131,3 @@ function close_site_submit(Pieform $form, $values) {
}
redirect(get_config('wwwroot') . 'admin/index.php');
}
?>
......@@ -47,5 +47,3 @@ if (isset($register)) {
}
$smarty->display('admin/registersite.tpl');
?>
......@@ -40,5 +40,3 @@ if (!delete_records('site_menu','id', $itemid)) {
}
json_reply(false, get_string('menuitemdeleted','admin'));
?>
......@@ -44,5 +44,3 @@ $data = array(
'message' => false,
);
json_reply(false, $data);
?>
......@@ -47,4 +47,3 @@ $result['message'] = false;
json_headers();
echo json_encode($result);
?>
......@@ -74,4 +74,3 @@ $result['message'] = false;
json_headers();
echo json_encode($result);
?>
......@@ -319,5 +319,3 @@ $smarty->assign('descriptionstrargs', array('<a href="' . get_config('wwwroot')
$smarty->assign('PAGEHEADING', TITLE);
$smarty->assign('footerform', $footerform);
$smarty->display('admin/site/menu.tpl');
?>
......@@ -160,5 +160,3 @@ $smarty = smarty();
$smarty->assign('networkingform', $networkingform);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/site/networking.tpl');
?>
......@@ -599,5 +599,3 @@ $smarty = smarty(array('adminsiteoptions'));
$smarty->assign('siteoptionform', $siteoptionform);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/site/options.tpl');
?>
......@@ -99,5 +99,3 @@ $smarty = smarty(array('adminsitepages'), array(), array('admin' => array('disca
$smarty->assign('pageeditform', $form);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/site/pages.tpl');
?>
......@@ -81,5 +81,3 @@ else {
}
json_reply(false,get_string('menuitemsaved','admin'));
?>
......@@ -51,4 +51,3 @@ $smarty->assign('pagination', $pagination['html']);
$smarty->assign('searchform', $searchform);
$smarty->assign('createviewform', $createviewform);
$smarty->display('view/index.tpl');
......@@ -54,5 +54,3 @@ default:
}
json_reply(false, (object) array('message' => false, 'data' => $data));
?>
......@@ -74,4 +74,3 @@ $smarty->assign('subpages', $subpages);
$smarty->assign('subpagedata', $data);
$smarty->display('admin/statistics.tpl');
?>
......@@ -45,5 +45,3 @@ switch ($type) {
readfile(get_config('dataroot') . 'images/' . $type . '.png');
exit;
}
?>
......@@ -202,4 +202,3 @@ function check_installed_plugins() {
return $missing;
}
......@@ -355,5 +355,3 @@ $smarty = smarty(array('adminadduser'));
$smarty->assign('form', $form);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/users/add.tpl');
?>
......@@ -201,4 +201,3 @@ EOF;
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->display('admin/users/addauthority.tpl');
?>
......@@ -48,5 +48,3 @@ if (!$USER->get('admin')) {
$institution->addUserAsMember($id);
$SESSION->add_ok_msg(get_string('useradded', 'admin'));
redirect(get_config('wwwroot').'admin/users/edit.php?id='.$id);
?>
......@@ -88,5 +88,3 @@ $smarty = smarty();
$smarty->assign('adminusersform', $form);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/users/admin.tpl');
?>
......@@ -41,5 +41,3 @@ if (param_integer('restore', 0)) {
$id = param_integer('id');
$USER->change_identity_to($id); // Permissions checking is done in here
redirect(get_config('wwwroot'));
?>
......@@ -649,5 +649,3 @@ if ($id != $USER->get('id') || count_records('usr', 'admin', 1, 'deleted', 0) >
}
$smarty->display('admin/users/edit.tpl');
?>
......@@ -108,5 +108,3 @@ $smarty->assign('INLINEJAVASCRIPT', $s['institutionselectorjs']);
$smarty->assign('adminusersform', pieform($form));
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/users/institutionadmins.tpl');
?>
......@@ -53,5 +53,3 @@ $data['offset'] = $offset;
$data['query'] = $query;
json_reply(false, array('data' => $data));
?>
......@@ -649,5 +649,3 @@ function theme_sort($a, $b) {
}
return $a > $b;
}
?>
......@@ -106,5 +106,3 @@ $smarty->assign('INLINEJAVASCRIPT', $s['institutionselectorjs']);
$smarty->assign('staffusersform', pieform($form));
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/users/institutionstaff.tpl');
?>
......@@ -235,5 +235,3 @@ $smarty->assign('instructions', get_string('institutionusersinstructions'.$usert
$smarty->assign('institutionusersform', $userlistform);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/users/institutionusers.tpl');
?>
......@@ -91,6 +91,3 @@ $smarty->assign('users', $users);
$smarty->assign('types', $types);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/users/notifications.tpl');
?>
......@@ -59,5 +59,3 @@ if ($action == 'search') {
echo json_encode($data);
exit;
}
?>
......@@ -61,5 +61,3 @@ $smarty->assign('institutions', $institutions);
$smarty->assign('results', build_admin_user_search_results($search, $offset, $limit, $sortby, $sortdir));
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/users/search.tpl');
?>
......@@ -85,5 +85,3 @@ $smarty = smarty();
$smarty->assign('staffusersform', $form);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/users/staff.tpl');
?>
......@@ -99,5 +99,3 @@ echo json_encode(array(
'offset' => $offset,
'data' => $data
));
?>
......@@ -122,5 +122,3 @@ function get_user_ids_from_post() {
return $ids;
}
?>
......@@ -407,5 +407,3 @@ $smarty->assign('uploadcsvpagedescription', $uploadcsvpagedescription);
$smarty->assign('uploadcsvform', $form);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('admin/users/uploadcsv.tpl');
?>
......@@ -45,5 +45,3 @@ $data['error'] = false;
$data['message'] = null;
echo json_encode($data);
exit;
?>
......@@ -253,4 +253,3 @@ class Client {
return $max_time_difference;
}
}
?>
......@@ -260,5 +260,3 @@ class Dispatcher {
return $this->methodhelp[$methodname[0]];
}
}
?>
......@@ -1445,4 +1445,3 @@ class PublicKey {
return $this->{$name};
}
}
?>
......@@ -157,5 +157,3 @@ if ($xml->getName() == 'methodCall') {
} else {
throw new XmlrpcServerException('Unrecognized XML document form: ' . var_export($xml,1), 6009);
}
?>
......@@ -32,5 +32,3 @@ $string['description'] = 'Display an entire journal';
$string['defaulttitledescription'] = 'If you leave this blank, the title of the journal will be used';
$string['postsperpage'] = 'Entries per page';
?>
......@@ -251,5 +251,3 @@ class PluginBlocktypeBlog extends PluginBlocktype {
}
}
?>
......@@ -30,5 +30,3 @@ defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2008040200;
$config->release = '1.0.0';
?>
......@@ -31,5 +31,3 @@ $string['title'] = 'Journal Entry';
$string['description'] = 'Display one journal entry';
$string['defaulttitledescription'] = 'If you leave this blank, the title of the journal entry will be used';
?>
......@@ -192,5 +192,3 @@ class PluginBlocktypeBlogpost extends PluginBlocktype {
}
}
?>
......@@ -30,5 +30,3 @@ defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2008040200;
$config->release = '1.0.0';
?>
......@@ -32,5 +32,3 @@ $string['description'] = 'Display the most recent journal entries';
$string['itemstoshow'] = 'Items to show';
$string['postedin'] = 'in';
$string['postedon'] = 'on';
?>
......@@ -129,5 +129,3 @@ class PluginBlocktypeRecentposts extends PluginBlocktype {
}
}
?>
......@@ -30,5 +30,3 @@ defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2008040200;
$config->release = '1.0.0';
?>
......@@ -156,5 +156,3 @@ function xmldb_artefact_blog_upgrade($oldversion=0) {
return true;
}
?>
......@@ -84,5 +84,3 @@ class HtmlExportBlog extends HtmlExportArtefactPlugin {
}
}
?>
......@@ -70,5 +70,3 @@ class LeapExportElementBlog extends LeapExportElement {
return 'html';
}
}
?>
......@@ -30,5 +30,3 @@ require(dirname(dirname(dirname(__FILE__))) . '/init.php');
$smarty = smarty_core();
$smarty->display('artefact:blog:image_popup.tpl');
?>
......@@ -365,5 +365,3 @@ class LeapImportBlog extends LeapImportArtefactPlugin {
}
}
?>
......@@ -40,5 +40,3 @@ list($blogs->count, $blogs->data) = ArtefactTypeBlog::get_blog_list($blogs->limi
ArtefactTypeBlog::build_blog_list_html($blogs);
json_reply(false, array('data' => $blogs));
?>
......@@ -143,4 +143,3 @@ $string['feedsnotavailable'] = 'Feeds are not available for this artefact type.'
$string['feedrights'] = 'Copyright %s.';
$string['enablemultipleblogstext'] = 'You have one journal. If you would like to start a second one, ena