X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/mediawiki.git/blobdiff_plain/c33ba33ef28344d64266b8b588460a301750fad5..83d871ca0d985c6d586b323bf96161afb510ebf6:/profileinfo.php
diff --git a/profileinfo.php b/profileinfo.php
index 4e2a3d76..83ae1935 100644
--- a/profileinfo.php
+++ b/profileinfo.php
@@ -1,247 +1,464 @@
-
+
+
-Profiling data
-
+ p, ul, ol, table {
+ margin: 0.5em 0;
+ }
+
+ a {
+ color: #0645AD;
+ text-decoration: none;
+ }
+
+ a:hover {
+ text-decoration: underline;
+ }
+
+ /*!
+ * Bootstrap v2.1.1
+ *
+ * Copyright 2012 Twitter, Inc
+ * Licensed under the Apache License v2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
+ */
+
+ table {
+ max-width: 100%;
+ background-color: transparent;
+ border-collapse: collapse;
+ border-spacing: 0;
+ }
+
+ .table {
+ width: 100%;
+ margin-bottom: 20px;
+ }
+
+ .table th,
+ .table td {
+ padding: 0.1em;
+ text-align: left;
+ vertical-align: top;
+ border-top: 1px solid #ddd;
+ }
+
+ .table th {
+ font-weight: bold;
+ }
+
+ .table thead th {
+ vertical-align: bottom;
+ }
+
+ .table thead:first-child tr:first-child th,
+ .table thead:first-child tr:first-child td {
+ border-top: 0;
+ }
+
+ .table tbody + tbody {
+ border-top: 2px solid #ddd;
+ }
+
+ .table-condensed th,
+ .table-condensed td {
+ padding: 4px 5px;
+ }
+
+ .table-striped tbody tr:nth-child(odd) td,
+ .table-striped tbody tr:nth-child(odd) th {
+ background-color: #f9f9f9;
+ }
+
+ .table-hover tbody tr:hover td,
+ .table-hover tbody tr:hover th {
+ background-color: #f5f5f5;
+ }
+
+ hr {
+ margin: 20px 0;
+ border: 0;
+ border-top: 1px solid #eee;
+ border-bottom: 1px solid #fff;
+ }
+
Disabled'
+ . '';
+ exit( 1 );
+}
-define( 'MW_NO_SETUP', 1 );
-require_once( './includes/WebStart.php' );
-require_once("./AdminSettings.php");
+$dbr = wfGetDB( DB_REPLICA );
-if (!$wgEnableProfileInfo) {
- echo "disabled\n";
+if ( !$dbr->tableExists( 'profiling' ) ) {
+ echo 'No profiling
table exists, so we can\'t show you anything.
'
+ . 'If you want to log profiling data, enable $wgProfiler[\'output\'] = \'db\'
'
+ . ' in your StartProfiler.php and run maintenance/update.php
to'
+ . ' create the profiling table.'
+ . '