mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-10-25 13:30:16 +00:00
Moved php from cgi-bin to backend
This commit is contained in:
1 parent
aac9da9d45
commit
1576a1c6e4
24 files changed
+100
-100
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
$tempFilename = "../tmp/pluginsList.txt";
|
||||
|
||||
if (isset($_GET["reset"]))
|
||||
{
|
||||
unlink($tempFilename);
|
||||
}
|
||||
|
||||
$res = "";
|
||||
if (!file_exists($tempFilename))
|
||||
{
|
||||
$jsScripts = glob("../script/plugins/*.js");
|
||||
$res = json_encode($jsScripts);
|
||||
file_put_contents ($tempFilename, $res);
|
||||
}
|
||||
else
|
||||
{
|
||||
$res = file_get_contents($tempFilename);
|
||||
}
|
||||
|
||||
|
||||
echo $res;
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user