mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-11 21:38:12 +02:00
Small fixes
This commit is contained in:
parent
1087687236
commit
26dca80604
2 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,6 @@ if (!is_dir($cachePath)) {
|
||||||
// Attempt to create the directory
|
// Attempt to create the directory
|
||||||
if (!mkdir($cachePath, 0755, true)) {
|
if (!mkdir($cachePath, 0755, true)) {
|
||||||
$log->error("Unable to create cache directory at $cachePath. Please check permissions.");
|
$log->error("Unable to create cache directory at $cachePath. Please check permissions.");
|
||||||
throw new Exception("Unable to create cache directory at $cachePath. Please check permissions.");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -241,14 +241,15 @@ function processAbuseDetection($pdo, $domain, $clid, $abuseType, $evidenceLink,
|
||||||
|
|
||||||
if ($userData) {
|
if ($userData) {
|
||||||
// Prepare INSERT statement to add a ticket
|
// Prepare INSERT statement to add a ticket
|
||||||
$insertStmt = $pdo->prepare('INSERT INTO support_tickets (id, user_id, category_id, subject, message, status, priority, reported_domain, nature_of_abuse, evidence, relevant_urls, date_of_incident, date_created, last_updated) VALUES (NULL, ?, 8, ?, ?, "Open", "High", ?, "Abuse", ?, ?, ?, CURRENT_TIMESTAMP(3), CURRENT_TIMESTAMP(3))');
|
$insertStmt = $pdo->prepare('INSERT INTO support_tickets (id, user_id, category_id, subject, message, status, priority, reported_domain, nature_of_abuse, evidence, relevant_urls, date_of_incident, date_created, last_updated) VALUES (NULL, ?, 8, ?, ?, "Open", "High", ?, ?, ?, ?, ?, CURRENT_TIMESTAMP(3), CURRENT_TIMESTAMP(3))');
|
||||||
|
|
||||||
// Execute the prepared statement with appropriate values
|
// Execute the prepared statement with appropriate values
|
||||||
$insertStmt->execute([
|
$insertStmt->execute([
|
||||||
$userData['user_id'], // user_id
|
$userData['user_id'], // user_id
|
||||||
"Abuse Report for $domain ($abuseType)", // subject
|
"Abuse Report for $domain", // subject
|
||||||
"Abuse detected for domain $domain via $abuseType.", // message
|
"Abuse detected for domain $domain via $abuseType.", // message
|
||||||
$domain, // reported_domain
|
$domain, // reported_domain
|
||||||
|
$abuseType, // nature_of_abuse
|
||||||
"Link to $abuseType", // evidence
|
"Link to $abuseType", // evidence
|
||||||
$evidenceLink, // relevant_urls
|
$evidenceLink, // relevant_urls
|
||||||
date('Y-m-d H:i:s') // date_of_incident
|
date('Y-m-d H:i:s') // date_of_incident
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue