CLI-protect the usemod importer, remove the old version
[lhc/web/wiklou.git] / maintenance / importUseModWiki.php
index 318483e..720e4ab 100644 (file)
@@ -21,6 +21,9 @@
  * @subpackage Maintenance
  */
 
+if( php_sapi_name() != 'cli' ) {
+       die( "Please customize the settings and run me from the command line." );
+}
 
 /** Set these correctly! */
 $wgImportEncoding = "CP1252"; /* We convert all to UTF-8 */