mirror of
https://github.com/ulfgebhardt/system.git
synced 2025-12-13 09:35:49 +00:00
filemask for img corrected, sql utility
This commit is contained in:
parent
3c55f8e59a
commit
1c1c04dbad
13
dbd/sql/pg/util_copy_api_table_by_groupa.sql
Normal file
13
dbd/sql/pg/util_copy_api_table_by_groupa.sql
Normal file
@ -0,0 +1,13 @@
|
||||
-- delete old entries of group
|
||||
DELETE FROM system.api where "group" = 101;
|
||||
-- get data from group 0 and write it in your group
|
||||
INSERT INTO system.api ( "ID", "group","type","parentID","parentValue","name","verify" )
|
||||
SELECT "ID",
|
||||
'101' as "group", -- target group
|
||||
"type",
|
||||
"parentID",
|
||||
"parentValue",
|
||||
"name",
|
||||
"verify"
|
||||
FROM system.api
|
||||
WHERE "group" = 0; -- pattern group
|
||||
@ -56,7 +56,7 @@ class img {
|
||||
|
||||
private static function getFolder($folder, $mask) {
|
||||
$files = array();
|
||||
foreach (glob($folder . $mask) as $file) {
|
||||
foreach (glob($folder . $mask,GLOB_BRACE) as $file) {
|
||||
$files[] = basename($file);
|
||||
}
|
||||
return $files;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user