Skip to content

Commit de15fdd

Browse files
authored
Add files via upload
1 parent c75114e commit de15fdd

File tree

8 files changed

+1158
-0
lines changed

8 files changed

+1158
-0
lines changed

OIDplusPagePublicIO4.class.php

Lines changed: 1030 additions & 0 deletions
Large diffs are not rendered by default.

autoloader.php

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?php
2+
namespace IO4;
3+
/**
4+
* Please set your scope!!!
5+
* See: https://github.com/frdlweb/webfat/blob/7b1fe168cc9328a65d66d5d147ffd39064e4cbf1/public/index.php#L4351
6+
* recommended for production:
7+
* putenv('IO4_WORKSPACE_SCOPE="@www@parent"');
8+
* recommended for global:
9+
* putenv('IO4_WORKSPACE_SCOPE="@global"');
10+
*/
11+
putenv('IO4_WORKSPACE_SCOPE="@www@parent"');
12+
//putenv('IO4_WORKSPACE_SCOPE="@cwd"');
13+
/**
14+
* Usage:
15+
require_once __DIR__.\DIRECTORY_SEPARATOR.'autoloader.php';
16+
$webfatFile =__DIR__.\DIRECTORY_SEPARATOR.'webfat.php';
17+
// OE e.g..: $webfatFile =getcwd().\DIRECTORY_SEPARATOR.'webfat.php';
18+
$StubRunner = (new \IO4\Webfat)->getWebfat($webfatFile,
19+
true, //register autoloaders
20+
false //runAsIndex / run as "main app"
21+
);
22+
*/
23+
24+
function _installClass($class){
25+
$plugin_root = __DIR__;
26+
$p = explode('\\', $class);
27+
$_f = implode(\DIRECTORY_SEPARATOR, $p);
28+
$classFile = "{$plugin_root}/classes/{$_f}.php";
29+
30+
if (!file_exists($classFile) || filemtime($classFile)<30*24*60*60) {
31+
// check if composer dependencies are distributed with the plugin
32+
if(!is_dir(dirname($classFile))){
33+
mkdir(dirname($classFile), 0755, true);
34+
}
35+
file_put_contents(
36+
$classFile,
37+
file_get_contents('https://webfan.de/install/?source='.urlencode($class))
38+
);
39+
}
40+
41+
if ( !class_exists($class ) ) {
42+
require_once $classFile;
43+
}
44+
}
45+
46+
47+
$plugin_root = __DIR__;
48+
$traitFile = "{$plugin_root}/classes/Webfan/Webfat/getWebfatTrait.php";
49+
50+
if (!file_exists($traitFile) || filemtime($traitFile)<30*24*60*60) {
51+
// check if composer dependencies are distributed with the plugin
52+
if(!is_dir(dirname($traitFile))){
53+
mkdir(dirname($traitFile), 0755, true);
54+
}
55+
file_put_contents(
56+
$traitFile,
57+
file_get_contents('https://webfan.de/install/?source=Webfan\Webfat\getWebfatTrait')
58+
);
59+
}
60+
61+
62+
if ( !trait_exists( \Webfan\Webfat\getWebfatTrait::class ) ) {
63+
require_once $traitFile;
64+
}
65+
66+
_installClass(\IO4\Webfat::class);

index.html

Whitespace-only changes.

io4.attributes.xsd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<xs:schema targetNamespace="urn:oid:1.3.6.1.4.1.37553.8.1.8.8.53354196964.24196.1714020422"
3+
attributeFormDefault="unqualified"
4+
elementFormDefault="qualified"
5+
xmlns:xs="http://www.w3.org/2001/XMLSchema">
6+
<xs:element type="xs:string" name="attribute-name" />
7+
<xs:element type="xs:string" name="attribute-type" />
8+
<xs:element type="xs:string" name="attribute-value" />

io4.log.xsd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<xs:schema targetNamespace="urn:oid:1.3.6.1.4.1.37553.8.1.8.8.53354196964.24196.1714020422"
3+
attributeFormDefault="unqualified"
4+
elementFormDefault="qualified"
5+
xmlns:xs="http://www.w3.org/2001/XMLSchema">
6+
<xs:element type="xs:string" name="log-subject" />
7+
<xs:element type="xs:string" name="log-verb" />
8+
<xs:element type="xs:string" name="log-object" />
9+
<xs:element type="xs:string" name="log-value" />

io4.pki.xsd

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<xs:schema targetNamespace="urn:oid:1.3.6.1.4.1.37553.8.1.8.8.53354196964.24196.1714020422"
3+
attributeFormDefault="unqualified"
4+
elementFormDefault="qualified"
5+
xmlns:xs="http://www.w3.org/2001/XMLSchema">
6+
<xs:element type="xs:string" name="pki-public" />
7+
<xs:element type="xs:string" name="pki-id" />
8+
<xs:element type="xs:string" name="pki-private" />
9+
<xs:element type="xs:string" name="pki-cert" />
10+
<xs:element type="xs:string" name="pki-iss" />
11+
<xs:element type="xs:string" name="pki-sub" />

io4.xsd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0"?>
2+
<xs:schema targetNamespace="urn:oid:1.3.6.1.4.1.37553.8.1.8.8.53354196964.24196.1714020422"
3+
attributeFormDefault="unqualified"
4+
elementFormDefault="qualified"
5+
xmlns:xs="http://www.w3.org/2001/XMLSchema">
6+
<xs:element type="xs:anyType" name="json-schema" />

manifest.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<manifest
3+
xmlns="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.2.1"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
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">
6+
7+
<type>ViaThinkSoft\OIDplus\OIDplusPagePluginAdmin</type>
8+
9+
<info>
10+
<name>IO4</name>
11+
<author>Frdlweb</author>
12+
<license>MIT</license>
13+
<version />
14+
<descriptionHTML />
15+
<oid>1.3.6.1.4.1.37476.9000.108.19361.24196</oid>
16+
</info>
17+
18+
<php>
19+
<mainclass>Frdlweb\OIDplus\OIDplusPagePublicIO4</mainclass>
20+
</php>
21+
22+
<css>
23+
</css>
24+
25+
<js>
26+
</js>
27+
28+
</manifest>

0 commit comments

Comments
 (0)