]> git.mjollnir.org Git - moodle.git/commitdiff
Some fixes for links on admin page, and release notes now a link to Moodle Docs
authormoodler <moodler>
Wed, 5 Apr 2006 02:46:05 +0000 (02:46 +0000)
committermoodler <moodler>
Wed, 5 Apr 2006 02:46:05 +0000 (02:46 +0000)
admin/environment.php
admin/index.php

index 29ab5ac07fc2a8fbd80e6e53cd0b04daac704b8a..a8e6aed341b817e94ef11ec628632a0cdc50558a 100644 (file)
 /// Gather and show results
     $status = check_moodle_environment($version, $environment_results);
 
+/// Other links
+    echo '<div align="center">';
+    print_single_button('phpinfo.php', NULL, get_string('phpinfo'));
+    echo '</div>';
+
 /// Print footer
     print_footer();
 ?>
index 3fd665dd64b5ec3aaa179f7ff3efdf7141c7fd2a..0e1a2b7f88420fed21afae477c8f7e589c488cb5 100644 (file)
         if (!set_config("release", $release)) {
             notify("ERROR: Could not update release version in database!!");
         }
-        print_continue("index.php");
-        print_simple_box_start("center", '80%');
-        if (file_exists("$CFG->dirroot/lang/en_utf8/docs/release.html")) {
-            include("$CFG->dirroot/lang/en_utf8/docs/release.html");
-        }
-        print_simple_box_end();
-        print_continue("index.php");
+        notice(get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes'), 'index.php');
         exit;
     }
 
 
     if (file_exists("$CFG->dirroot/$CFG->admin/$CFG->dbtype")) {
         $table->data[] = array("<strong><a href=\"$CFG->dbtype/frame.php\">".get_string('managedatabase').'</a></strong>',
-                               get_string('adminhelpmanagedatabase'));
+                               '<div class="explanation">'.get_string('adminhelpmanagedatabase').'</div>');
     }
 
 
     //////////////////////////////////////////////////////////////////////////////////////////////////
 
 
-    echo '<table width="100%" cellspacing="0"><tr>';
-    echo '<td align="center" width="33%">';
-    print_single_button($CFG->wwwroot.'/doc/', NULL, get_string('documentation'));
-    echo '</td>';
-
-    echo '<td align="center" width="33%">';
-    print_single_button('phpinfo.php', NULL, get_string('phpinfo'));
-    echo '</td>';
-
-    echo '<td align="center" width="33%">';
+    echo '<div align="center">';
     $options = array();
     $options['sesskey'] = $USER->sesskey;
     print_single_button('register.php', $options, get_string('registration'));
-    echo '</td></tr></table>';
+    echo '</div>';
+
 
     print_simple_box_end();