X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=profileinfo.php;h=bbd5fc8aa8ad877ccfd51576325855eb870ad148;hb=ff2663c3e612b4f9aefa8c40e07c9e753edb8b55;hp=bdc235bdc352ae3b74d0e6e1800e2ac4835cb738;hpb=e7a00df4c920e097b0ff06246ceec2ef693badb3;p=lhc%2Fweb%2Fwiklou.git diff --git a/profileinfo.php b/profileinfo.php index bdc235bdc3..bbd5fc8aa8 100644 --- a/profileinfo.php +++ b/profileinfo.php @@ -1,27 +1,43 @@ - +
Disabled
\n"; + echo ""; + exit( 1 ); } -require_once("./includes/Defines.php"); -require_once("./LocalSettings.php"); -require_once("./AdminSettings.php"); - -if (!$wgEnableProfileInfo) - die("disabled"); +$dbr = wfGetDB( DB_SLAVE ); -foreach (array("wgDBadminuser", "wgDBadminpassword", "wgDBserver", "wgDBname") as $var) - if ($$var === false) - die("AdminSettings.php not correct"); +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 "