diff --git a/wordpress/plugins/owark/owark.php b/wordpress/plugins/owark/owark.php index 9a865cd..11c8e7a 100644 --- a/wordpress/plugins/owark/owark.php +++ b/wordpress/plugins/owark/owark.php @@ -128,6 +128,31 @@ if (!class_exists("Owark")) { } } + // Check that we can execute commands + + if ( ini_get('disable_functions') ) { + $not_allowed = ini_get('disable_functions'); + if ( stristr($not_allowed, 'exec') || stristr($not_allowed, 'passthru') ) { + $this->notices = $this->notices . "
The Open Web Archives requires that exec() and passthru() are allowed to run wget and retrieve the pages to archive.
The Open Web Archives is not able to run wget and retrieve the pages to archive. Please check that wget is installed and on the default path.
The Open Web Archives needs wget version 1.12 or higher.
Version read: {$wget_version[0]}