+<?php
+
+ class mw_data_versions extends mw_data{
+
+ function version($application_name){
+ if(
+ $version = $this->data_read(
+ array(
+ "table_name" => "versions",
+ "index_name" => "application",
+ "index_value" => $application_name
+ )
+ )
+ ) return $version["version"];
+ return false;
+ }
+
+ }