Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
wehowski authored Sep 21, 2023
1 parent c75114e commit de15fdd
Show file tree
Hide file tree
Showing 8 changed files with 1,158 additions and 0 deletions.
1,030 changes: 1,030 additions & 0 deletions OIDplusPagePublicIO4.class.php

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions autoloader.php
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 added index.html
Empty file.
8 changes: 8 additions & 0 deletions io4.attributes.xsd
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" />
9 changes: 9 additions & 0 deletions io4.log.xsd
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" />
11 changes: 11 additions & 0 deletions io4.pki.xsd
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" />
6 changes: 6 additions & 0 deletions io4.xsd
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" />
28 changes: 28 additions & 0 deletions manifest.xml
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>

0 comments on commit de15fdd

Please sign in to comment.