require_once('path/to/owncloud/lib/base.php'); $version = OC_Util::getVersion(); echo "The current version of ownCloud is: " . $version;
if (OC_Util::getVersion() < 10.0) { echo "Please update your version of ownCloud."; exit(); } else { echo "Your version of ownCloud is up-to-date."; }This code uses the "getVersion" function to determine if the current version of ownCloud being used is less than 10.0. If it is, a message is displayed telling the user to update their version. If it is up-to-date, a message is displayed to confirm this. Package Library: The "OC_Util" class is a part of the ownCloud core library, which is included as a part of the ownCloud package. Thus, the package library in this case would be ownCloud.