2014-05-28 17:19:57 +02:00
|
|
|
othervalues -> Added Column SValue
|
|
|
|
othervalues -> Added Key "AdminPassword"
|
2014-06-08 15:32:00 +02:00
|
|
|
othervalues -> Added Keys "egg_*"
|
|
|
|
|
2014-05-28 17:19:57 +02:00
|
|
|
programme -> Added Column ThumbnailName
|
2014-06-03 14:24:37 +02:00
|
|
|
programme -> Added Column programming_lang
|
2014-06-02 19:31:14 +02:00
|
|
|
programme -> Changed Sieb_des_Erasthothenes -> Sieb des Erasthothenes (also ren Imagefiles)
|
2014-06-03 14:24:37 +02:00
|
|
|
programme -> Adjusted Star Ratings
|
2014-06-04 18:06:38 +02:00
|
|
|
programme -> Niripsa[visible] = 0
|
2014-06-06 12:02:56 +02:00
|
|
|
programme -> ms4_programs
|
2014-06-12 14:36:34 +02:00
|
|
|
programme -> Removed Column viewable_code
|
|
|
|
programme -> update_identifier is no VARCHAR(64)
|
2014-06-06 12:02:56 +02:00
|
|
|
|
|
|
|
idx_info -> ms4_log
|
2014-06-06 19:31:05 +02:00
|
|
|
idx_info -> new columns + full content change
|
|
|
|
|
2014-06-12 14:36:34 +02:00
|
|
|
othervalues -> ms4_othervalues
|
|
|
|
|
|
|
|
updates -> ms4_updates
|
|
|
|
updates -> 'Name' is primary key
|
|
|
|
updates -> Adjust 'Link'
|
2014-06-12 15:37:03 +02:00
|
|
|
updates -> 'Name' Type is VARCHAR(64)
|
|
|
|
updates -> Removed col 'Log'
|
|
|
|
|
2014-07-11 19:29:19 +02:00
|
|
|
ms4_log -> Added
|
|
|
|
|
2014-07-20 16:18:05 +02:00
|
|
|
entrys -> ms4_highscoreentries
|
|
|
|
games -> ms4_highscoregames
|
|
|
|
ms4_highscoreentries.IP -> length = 41
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-12 15:37:03 +02:00
|
|
|
updateslog -> new table
|
|
|
|
<?php
|
|
|
|
$rows=Yii::app()->db->createCommand('SELECT * FROM {{updates}}')->queryAll();
|
|
|
|
$transaction=Yii::app()->db->beginTransaction();
|
|
|
|
foreach($rows as $row) {
|
|
|
|
$prog = $row['Name'];
|
|
|
|
$log = $row['Log'];
|
|
|
|
$lines = explode('<br>', $log);
|
|
|
|
|
|
|
|
foreach ($lines as $line) {
|
|
|
|
$result = array();
|
|
|
|
preg_match('/([^ ]+)[^0-9]*([0-9\.]+)[^\(]*\((.*?)\)/', $line, $result);
|
|
|
|
|
|
|
|
if (count($result) == 4) {
|
|
|
|
$ip = trim($result[1]);
|
|
|
|
$version = trim($result[2]);
|
|
|
|
$date = DateTime::createFromFormat('d.m.Y - H:i:s', trim($result[3]));
|
|
|
|
|
|
|
|
echo $prog . ' | ' . $ip . ' | ' . $version . ' | ' . $date->format('Y-m-d H:i:s') . '<br>';
|
|
|
|
|
|
|
|
Yii::app()->db->createCommand("INSERT INTO {{updateslog}} (programname, ip, version, date) VALUES ('$prog', '$ip', '$version', '" . $date->format('Y-m-d H:i:s') . "')")->execute();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo '<hr>';
|
|
|
|
}
|
|
|
|
$transaction->commit();
|
|
|
|
?>
|