- // No Revision-File or has no valid Data so read the Revision from the Server.
- $version = GET_URL("check-updates3.php");
+ return $searchFor;
- // Prepare content
- $akt_vers[] = trim($version[10]);
- $akt_vers[] = trim($version[9]);
- $akt_vers[] = trim($version[8]);
+}
- // Write file
- WRITE_FILE($FQFN, implode("\n", $akt_vers));
- // Return requested content
- return trim($akt_vers[$type]);
+function getAkt_vers()
+{
+ $next_dir = '.';
+ $last_changed['path_name'] = '';
+ $last_changed['time'] = 0;
+ $akt_vers = array();
+ searchDirsRecoursive($next_dir, $last_changed); //Searches all Files and there date of the last modifikation and puts the newest File in $last_changed.