Location: PHPKode > projects > LibraryManager > include/backup.php
<?php
	require "conf/config.php";
	$ok = 1;
	$dirname = "include/backup/";
	$dir = opendir($dirname);
	while($file = readdir($dir)){
		if($file != '.' && $file != '..' && is_file("include/backup/".$file)){
			$baza = explode('.', $file);
			$baza = $baza[0];
			$save_freq = get_config("db_save_freq");
			if(time()-$save_freq < $baza)
				$ok = 0;
			else
				@unlink($dirname.$file);
		}
	}
	if($ok == 1){
		create_db_backup();
	}
?>
Return current item: LibraryManager