mirror of
https://github.com/ellite/Wallos.git
synced 2026-04-17 21:50:11 -04:00
19 lines
509 B
PHP
19 lines
509 B
PHP
<?php
|
|
|
|
require_once '../../includes/connect_endpoint.php';
|
|
require_once '../../includes/validate_endpoint.php';
|
|
|
|
$stmt = $db->prepare('DELETE FROM custom_colors WHERE user_id = :userId');
|
|
$stmt->bindParam(':userId', $userId, SQLITE3_INTEGER);
|
|
|
|
if ($stmt->execute()) {
|
|
die(json_encode([
|
|
"success" => true,
|
|
"message" => translate("success", $i18n)
|
|
]));
|
|
} else {
|
|
die(json_encode([
|
|
"success" => false,
|
|
"message" => translate("error", $i18n)
|
|
]));
|
|
} |