X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=profileinfo.php;h=bbd5fc8aa8ad877ccfd51576325855eb870ad148;hb=ff2663c3e612b4f9aefa8c40e07c9e753edb8b55;hp=032df3f20f7f1cc92897b43b7e3dd1d685920aee;hpb=d59abb95f76cb59ba747adb2ff2bd9fd348245d9;p=lhc%2Fweb%2Fwiklou.git
diff --git a/profileinfo.php b/profileinfo.php
index 032df3f20f..bbd5fc8aa8 100644
--- a/profileinfo.php
+++ b/profileinfo.php
@@ -1,27 +1,43 @@
-
+
Profiling data
@@ -40,44 +56,46 @@
text-align: right;
}
td.timep, td.tpc, td.tpr {
- background-color: #fffff0;
+ background-color: #ffff80;
}
td.memoryp, td.mpc, td.mpr {
- background-color: #f0f8ff;
+ background-color: #80f8ff;
}
td.count, td,cpr {
- background-color: #f0fff0;
+ background-color: #80ff80;
}
td.name {
- background-color: #f9f9f9;
+ background-color: #89f9f9;
+ }
+
+ tr:hover {
+ font-weight: bold;
}
Disabled\n";
+ echo "";
exit( 1 );
}
-foreach (array("wgDBadminuser", "wgDBadminpassword", "wgDBserver", "wgDBname") as $var)
- if ($$var === false) {
- echo "AdminSettings.php not correct\n";
- exit( 1 );
- }
+$dbr = wfGetDB( DB_SLAVE );
+if( !$dbr->tableExists( 'profiling' ) ) {
+ echo "No 'profiling' table exists, so we can't show you anything.
\n";
+ echo "If you want to log profiling data, create the table using "
+ . "maintenance/archives/patch-profiling.sql and enable "
+ . "\$wgProfileToDatabase.
\n";
+ echo "