Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

19
modules/EcmCalls/mysql.php Executable file
View File

@@ -0,0 +1,19 @@
<?php
// $query = "CREATE TRIGGER id_create BEFORE INSERT ON cdr FOR EACH ROW SET NEW.id = UUID();";
// $result = $GLOBALS['db']->query($query);
$query = "SELECT COUNT(*) FROM `cdr` WHERE `id`=''";
$result = $GLOBALS['db']->query($query);
if($result) {
$row = $GLOBALS['db']->fetchByAssoc($result);
if($row) {
for($i=0; $i<$row["COUNT(*)"]; $i++) {
$query = "UPDATE `cdr` SET `id`='".create_guid()."' WHERE `id`='' LIMIT 1";
$GLOBALS['db']->query($query);
}
}
}
?>