www/upl_styles.php

changeset 785
aa79acfdf8a9
parent 778
e64fd38c469c
--- a/www/upl_styles.php	Sun Feb 06 20:06:46 2022 +0100
+++ b/www/upl_styles.php	Thu Feb 10 22:15:10 2022 +0100
@@ -51,7 +51,9 @@
 
 foreach ($styles->STYLE as $style) {
 
-	$sql  = "INSERT INTO profile_styles SET name='" . mysqli_real_escape_string($db, $style->NAME);
+	$uuid = str_replace("\n", "", file_get_contents('/proc/sys/kernel/random/uuid'));
+	$sql  = "INSERT INTO profile_styles SET uuid='" . $uuid;
+	$sql .= "',name='" . mysqli_real_escape_string($db, $style->NAME);
 	if ($style->NOTES)
 		$sql .= "', notes='" . mysqli_real_escape_string($db, $style->NOTES);
 	if ($style->CATEGORY)

mercurial