diff --git a/www/newimageid.php3 b/www/newimageid.php3 index 50013a8bb3874de03ad6900e01bf34471547157e..737c8d9d36a9bb1a88f67f182a401b08d709b025 100644 --- a/www/newimageid.php3 +++ b/www/newimageid.php3 @@ -715,13 +715,13 @@ $query_result = DBQueryFatal("INSERT INTO images ". "(imagename, imageid, description, loadpart, loadlength, ". " part1_osid, part2_osid, part3_osid, part4_osid, ". - " default_osid, path, pid, shared) ". + " default_osid, path, pid, shared, creator, created) ". "VALUES ". " ('$imagename', '$imageid', '$description', $loadpart, ". " $loadlength, ". " $part1_osid, $part2_osid, $part3_osid, $part4_osid, ". - " '$default_osid', '$path', '$pid', $shared)"); - + " '$default_osid', '$path', '$pid', $shared, ". + " '$uid', now())"); if (!$isadmin || $makedefault) { for ($i = 0; $i < count($mtypes_array); $i++) { diff --git a/www/newimageid_ez.php3 b/www/newimageid_ez.php3 index bd5ffd1ab9894d0b90778e6a23515bf563271156..81c0b497013057b147626802b3152c8017cbdfca 100644 --- a/www/newimageid_ez.php3 +++ b/www/newimageid_ez.php3 @@ -571,17 +571,19 @@ if (TBValidImageID($imageid) || TBValidOSID($imageid)) { DBQueryFatal("INSERT INTO images ". "(imagename, imageid, ezid, description, loadpart, loadlength, ". " part" . "$loadpart" . "_osid, ". - " default_osid, path, pid, shared) ". + " default_osid, path, pid, shared, creator, created) ". "VALUES ". " ('$imagename', '$imageid', 1, '$description', $loadpart, 1, ". - " '$imageid', '$imageid', '$path', '$pid', $shared)"); + " '$imageid', '$imageid', '$path', '$pid', $shared, ". + " '$uid', now())"); DBQueryFatal("INSERT INTO os_info ". "(osname, osid, ezid, description, OS, version, path, magic, ". - " osfeatures, pid) ". + " osfeatures, pid, creator, created) ". "VALUES ". " ('$imagename', '$imageid', 1, '$description', '$os_name', ". - " '$os_version', NULL, NULL, '$os_features', '$pid')"); + " '$os_version', NULL, NULL, '$os_features', '$pid', ". + " '$uid', now())"); for ($i = 0; $i < count($mtypes_array); $i++) { DBQueryFatal("REPLACE INTO osidtoimageid ". diff --git a/www/newosid.php3 b/www/newosid.php3 index 71433ea0526977b33dc080612891c9f04952ce8b..21e0e2ffeabe2d9352661a08096540e0f9585d12 100644 --- a/www/newosid.php3 +++ b/www/newosid.php3 @@ -169,10 +169,11 @@ if (TBValidOSID($osid)) { $query_result = DBQueryFatal("INSERT INTO os_info ". "(osname, osid, description, OS, version, path, magic, ". - " osfeatures, pid, shared) ". + " osfeatures, pid, shared, creator, created) ". "VALUES ('$osname', '$osid', '$description', '$OS', ". " '$os_version', $os_path, '$os_magic', ". - " '$os_features', '$pid', $os_shared)"); + " '$os_features', '$pid', $os_shared, ". + " '$uid', now())"); DBQueryFatal("unlock tables"); diff --git a/www/showimageid_list.php3 b/www/showimageid_list.php3 index 408b029788c8fb87ad597a06060ba16decf65912..4fec1dda6f15148cf2b04b55ab184dee41eeda23 100644 --- a/www/showimageid_list.php3 +++ b/www/showimageid_list.php3 @@ -41,7 +41,18 @@ if (mysql_num_rows($query_result) == 0) { } } -echo "