-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,158 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
namespace IO4; | ||
/** | ||
* Please set your scope!!! | ||
* See: https://github.com/frdlweb/webfat/blob/7b1fe168cc9328a65d66d5d147ffd39064e4cbf1/public/index.php#L4351 | ||
* recommended for production: | ||
* putenv('IO4_WORKSPACE_SCOPE="@www@parent"'); | ||
* recommended for global: | ||
* putenv('IO4_WORKSPACE_SCOPE="@global"'); | ||
*/ | ||
putenv('IO4_WORKSPACE_SCOPE="@www@parent"'); | ||
//putenv('IO4_WORKSPACE_SCOPE="@cwd"'); | ||
/** | ||
* Usage: | ||
require_once __DIR__.\DIRECTORY_SEPARATOR.'autoloader.php'; | ||
$webfatFile =__DIR__.\DIRECTORY_SEPARATOR.'webfat.php'; | ||
// OE e.g..: $webfatFile =getcwd().\DIRECTORY_SEPARATOR.'webfat.php'; | ||
$StubRunner = (new \IO4\Webfat)->getWebfat($webfatFile, | ||
true, //register autoloaders | ||
false //runAsIndex / run as "main app" | ||
); | ||
*/ | ||
|
||
function _installClass($class){ | ||
$plugin_root = __DIR__; | ||
$p = explode('\\', $class); | ||
$_f = implode(\DIRECTORY_SEPARATOR, $p); | ||
$classFile = "{$plugin_root}/classes/{$_f}.php"; | ||
|
||
if (!file_exists($classFile) || filemtime($classFile)<30*24*60*60) { | ||
// check if composer dependencies are distributed with the plugin | ||
if(!is_dir(dirname($classFile))){ | ||
mkdir(dirname($classFile), 0755, true); | ||
} | ||
file_put_contents( | ||
$classFile, | ||
file_get_contents('https://webfan.de/install/?source='.urlencode($class)) | ||
); | ||
} | ||
|
||
if ( !class_exists($class ) ) { | ||
require_once $classFile; | ||
} | ||
} | ||
|
||
|
||
$plugin_root = __DIR__; | ||
$traitFile = "{$plugin_root}/classes/Webfan/Webfat/getWebfatTrait.php"; | ||
|
||
if (!file_exists($traitFile) || filemtime($traitFile)<30*24*60*60) { | ||
// check if composer dependencies are distributed with the plugin | ||
if(!is_dir(dirname($traitFile))){ | ||
mkdir(dirname($traitFile), 0755, true); | ||
} | ||
file_put_contents( | ||
$traitFile, | ||
file_get_contents('https://webfan.de/install/?source=Webfan\Webfat\getWebfatTrait') | ||
); | ||
} | ||
|
||
|
||
if ( !trait_exists( \Webfan\Webfat\getWebfatTrait::class ) ) { | ||
require_once $traitFile; | ||
} | ||
|
||
_installClass(\IO4\Webfat::class); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0"?> | ||
<xs:schema targetNamespace="urn:oid:1.3.6.1.4.1.37553.8.1.8.8.53354196964.24196.1714020422" | ||
attributeFormDefault="unqualified" | ||
elementFormDefault="qualified" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:element type="xs:string" name="attribute-name" /> | ||
<xs:element type="xs:string" name="attribute-type" /> | ||
<xs:element type="xs:string" name="attribute-value" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0"?> | ||
<xs:schema targetNamespace="urn:oid:1.3.6.1.4.1.37553.8.1.8.8.53354196964.24196.1714020422" | ||
attributeFormDefault="unqualified" | ||
elementFormDefault="qualified" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:element type="xs:string" name="log-subject" /> | ||
<xs:element type="xs:string" name="log-verb" /> | ||
<xs:element type="xs:string" name="log-object" /> | ||
<xs:element type="xs:string" name="log-value" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<xs:schema targetNamespace="urn:oid:1.3.6.1.4.1.37553.8.1.8.8.53354196964.24196.1714020422" | ||
attributeFormDefault="unqualified" | ||
elementFormDefault="qualified" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:element type="xs:string" name="pki-public" /> | ||
<xs:element type="xs:string" name="pki-id" /> | ||
<xs:element type="xs:string" name="pki-private" /> | ||
<xs:element type="xs:string" name="pki-cert" /> | ||
<xs:element type="xs:string" name="pki-iss" /> | ||
<xs:element type="xs:string" name="pki-sub" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0"?> | ||
<xs:schema targetNamespace="urn:oid:1.3.6.1.4.1.37553.8.1.8.8.53354196964.24196.1714020422" | ||
attributeFormDefault="unqualified" | ||
elementFormDefault="qualified" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:element type="xs:anyType" name="json-schema" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<manifest | ||
xmlns="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.2.1" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.2.1 https://oidplus.viathinksoft.com/oidplus/plugins/manifest_plugin_page.xsd"> | ||
|
||
<type>ViaThinkSoft\OIDplus\OIDplusPagePluginAdmin</type> | ||
|
||
<info> | ||
<name>IO4</name> | ||
<author>Frdlweb</author> | ||
<license>MIT</license> | ||
<version /> | ||
<descriptionHTML /> | ||
<oid>1.3.6.1.4.1.37476.9000.108.19361.24196</oid> | ||
</info> | ||
|
||
<php> | ||
<mainclass>Frdlweb\OIDplus\OIDplusPagePublicIO4</mainclass> | ||
</php> | ||
|
||
<css> | ||
</css> | ||
|
||
<js> | ||
</js> | ||
|
||
</manifest> |