'; $res = mysql_query("select * from kreatin_updates where update_status='0';"); if (mysql_num_rows($res)>0) { while ($row = mysql_fetch_array($res)) { $xml.= '' . ''.$row['update_file'].'' . ''.$row['update_version'].'' . ''; } $fname = 'kreatin_core_updates_'.time().".xml"; file_put_contents($fname,$xml); return 'http://kreatin.kreatio.hu/'.$fname; } else { return 'no updates'; } } static function generateUpdateXML() { } static function sendXML() { } static function serverFiles() { } }