dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix regression in ICU-mode UTF-8 verification: U+FFFF is forbidden
[lhc/web/wiklou.git]
/
includes
/
killthread.php
diff --git
a/includes/killthread.php
b/includes/killthread.php
index
66d4fda
..
669a7ce
100644
(file)
--- a/
includes/killthread.php
+++ b/
includes/killthread.php
@@
-1,24
+1,30
@@
<?php
/**
* Script to kill a MySQL thread after a specified timeout
<?php
/**
* Script to kill a MySQL thread after a specified timeout
+ * @package MediaWiki
*/
/**
*
*/
*/
/**
*
*/
+if( php_sapi_name() != 'cli' ) {
+ die('');
+}
+
+define( 'MEDIAWIKI', 1 );
$wgCommandLineMode = true;
unset( $IP );
ini_set( 'allow_url_fopen', 0 ); # For security...
$wgCommandLineMode = true;
unset( $IP );
ini_set( 'allow_url_fopen', 0 ); # For security...
-require_once( './LocalSettings.php' );
+require_once( '.
.
/LocalSettings.php' );
-# Windows requires ';' as separator, ':' for Unix
-
$sep = strchr( $include_path = ini_get( 'include_path' ), ';' ) ? ';' : ':'
;
-ini_set( 'include_path', "$IP$sep$include_path" );
+if( !$wgAllowSysopQueries ) {
+
die( "Queries disabled.\n" )
;
+}
require_once( 'Setup.php' );
require_once( 'Setup.php' );
-$wgTitle = Title::newFromText( wfMsg( 'badtitle' ) );
+$wgTitle = Title::newFromText( wfMsg
ForContent
( 'badtitle' ) );
$wgArticle = new Article($wgTitle);
if ( !$argv[1] || !$argv[2] ) {
$wgArticle = new Article($wgTitle);
if ( !$argv[1] || !$argv[2] ) {