<table cellspacing="2" cellpadding="2" border="0" align="center" width="95%">
<tr>
<th class="<?php echo ($tab == 'contacts') ? 'generaltabselected' : 'generaltab' ?>">
- <a href="<?php echo $ME ?>?tab=contacts">contacts</a>
+ <a href="<?php echo $CFG->wwwroot.'/message/index.php' ?>?tab=contacts">contacts</a>
</th>
<th class="<?php echo ($tab == 'search') ? 'generaltabselected' : 'generaltab' ?>">
- <a href="<?php echo $ME ?>?tab=search">search</a>
+ <a href="<?php echo $CFG->wwwroot.'/message/index.php' ?>?tab=search">search</a>
</th>
<th class="<?php echo ($tab == 'settings') ? 'generaltabselected' : 'generaltab' ?>">
- <a href="<?php echo $ME ?>?tab=settings">settings</a>
+ <a href="<?php echo $CFG->wwwroot.'/message/index.php' ?>?tab=settings">settings</a>
</th>
</tr>
<tr>
function message_print_search() {
- global $ME, $USER;
+ global $USER;
if ($frm = data_submitted()) {
}
function message_print_settings() {
- global $ME, $USER;
+ global $USER;
if ($frm = data_submitted()) {
$pref = array();
set_user_preferences($pref);
- redirect($ME, get_string('settingssaved', 'message'), 1);
+ redirect('index.php', get_string('settingssaved', 'message'), 1);
}
$cbshowmessagewindow = (get_user_preferences('message_showmessagewindow', 1) == '1') ? 'checked="checked"' : '';
function message_print_search_results($frm) {
- global $ME, $USER, $CFG;
+ global $USER, $CFG;
echo '<div align="center">';
}
echo '<br />';
- print_single_button($ME, array( 'tab' => 'search'), get_string('newsearch', 'message') );
+ print_single_button('index.php', array( 'tab' => 'search'), get_string('newsearch', 'message') );
echo '</div>';
}
-<form name="personsearch" action="<?php echo $ME ?>" method="post">
+<form name="personsearch" action="index.php" method="post">
<input type="hidden" name="tab" value="search" />
-<form name="message_settings" action="<?php echo $ME ?>" method="post">
+<form name="message_settings" action="index.php" method="post">
<input type="hidden" name="tab" value="settings" />