X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=profileinfo.php;h=8120599e02f0a879a25df08b980dfa910f30eec9;hb=ec9296e42f2f33842a4ee61b87a0cc5e3c071f1c;hp=6056433786133de71c30a0d31d09b3008e540888;hpb=fe535c030df24db2f280a74e0ff350e27bb1d4d5;p=lhc%2Fweb%2Fwiklou.git
diff --git a/profileinfo.php b/profileinfo.php
index 6056433786..8120599e02 100644
--- a/profileinfo.php
+++ b/profileinfo.php
@@ -1,79 +1,167 @@
-
+
-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 );
+}
+
+$dbr = wfGetDB( DB_SLAVE );
+
+if ( !$dbr->tableExists( 'profiling' ) ) {
+ echo 'No profiling
table exists, so we can\'t show you anything.
'
+ . 'If you want to log profiling data, enable $wgProfileToDatabase
'
+ . ' in your LocalSettings.php and run maintenance/update.php
to'
+ . ' create the profiling table.'
+ . '