Skip to content

Commit b4d02df

Browse files
committed
initial commit
0 parents  commit b4d02df

4 files changed

Lines changed: 85 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# MyAdmin Licenses Licensing Plugin
2+
3+
This plugin adds support for selling Licenses licenses to the MyAdmin system
4+
5+
[![Latest Stable Version](https://poser.pugx.org/detain/myadmin-licenses-licensing/version)](https://packagist.org/packages/detain/myadmin-licenses-licensing)
6+
[![Total Downloads](https://poser.pugx.org/detain/myadmin-licenses-licensing/downloads)](https://packagist.org/packages/detain/myadmin-licenses-licensing)
7+
[![Latest Unstable Version](https://poser.pugx.org/detain/myadmin-licenses-licensing/v/unstable)](//packagist.org/packages/detain/myadmin-licenses-licensing)
8+
[![License](https://poser.pugx.org/detain/myadmin-licenses-licensing/license)](https://packagist.org/packages/detain/myadmin-licenses-licensing)
9+
[![Monthly Downloads](https://poser.pugx.org/detain/myadmin-licenses-licensing/d/monthly)](https://packagist.org/packages/detain/myadmin-licenses-licensing)
10+
[![Daily Downloads](https://poser.pugx.org/detain/myadmin-licenses-licensing/d/daily)](https://packagist.org/packages/detain/myadmin-licenses-licensing)
11+
[![Reference Status](https://www.versioneye.com/php/detain:myadmin-licenses-licensing/reference_badge.svg?style=flat)](https://www.versioneye.com/php/detain:myadmin-licenses-licensing/references)
12+
[![Build Status](https://travis-ci.org/detain/myadmin-licenses-licensing.svg?branch=master)](https://travis-ci.org/detain/myadmin-licenses-licensing)
13+
[![Code Climate](https://codeclimate.com/github/detain/myadmin-licenses-licensing/badges/gpa.svg)](https://codeclimate.com/github/detain/myadmin-licenses-licensing)
14+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/detain/myadmin-licenses-licensing/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/detain/myadmin-licenses-licensing/?branch=master)
15+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/dcfdb555bf234afabceb40728959280b)](https://www.codacy.com/app/detain/myadmin-licenses-licensing)

composer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "detain/myadmin-licenses-vps-addon",
3+
"type": "myadmin-plugin",
4+
"description": "Licenses Addon for VPS Module in MyAdmin",
5+
"keywords": ["licenses","administration","license"],
6+
"license": "LGPL-2.1",
7+
"authors": [
8+
{
9+
"name": "Joe Huss",
10+
"homepage": "https://my.interserver.net/"
11+
}
12+
],
13+
"repositories": [
14+
{
15+
"type": "git",
16+
"url": "https://github.com/detain/myadmin-plugin-installer"
17+
}
18+
],
19+
"require": {
20+
"php": ">=5.0.0",
21+
"ext-soap": "*",
22+
"symfony/event-dispatcher": "*",
23+
"detain/myadmin-plugin-installer": "dev-master",
24+
"detain/licenses-licensing": "*"
25+
},
26+
"autoload": {
27+
"psr-4": {"Detain\\MyAdminVpsLicenses\": "src/"}
28+
}
29+
}

myadmin.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/* TODO:
3+
- service type, category, and services adding
4+
- dealing with the SERVICE_TYPES_licenses define
5+
- add way to call/hook into install/uninstall
6+
*/
7+
return [
8+
'name' => 'Licenses Licensing VPS Addon',
9+
'description' => 'Allows selling of Licenses Server and VPS License Types. More info at https://www.netenberg.com/licenses.php',
10+
'help' => 'It provides more than one million end users the ability to quickly install dozens of the leading open source content management systems into their web space. Must have a pre-existing cPanel license with cPanelDirect to purchase a licenses license. Allow 10 minutes for activation.',
11+
'module' => 'vps',
12+
'author' => 'detain@interserver.net',
13+
'home' => 'https://github.com/detain/myadmin-licenses-vps-addon',
14+
'repo' => 'https://github.com/detain/myadmin-licenses-vps-addon',
15+
'version' => '1.0.0',
16+
'type' => 'addon',
17+
'hooks' => [
18+
'vps.load_addons' => ['Detain\MyAdminVpsLicenses', 'Load'],
19+
/* 'function.requirements' => ['Detain\MyAdminVpsLicenses\Plugin', 'Requirements'],
20+
'licenses.settings' => ['Detain\MyAdminVpsLicenses\Plugin', 'Settings'],
21+
'licenses.activate' => ['Detain\MyAdminVpsLicenses\Plugin', 'Activate'],
22+
'licenses.change_ip' => ['Detain\MyAdminVpsLicenses\Plugin', 'ChangeIp'],
23+
'ui.menu' => ['Detain\MyAdminVpsLicenses\Plugin', 'Menu'] */
24+
],
25+
];

src/Plugin.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Detain\MyAdminVpsLicenses;
4+
5+
use Symfony\Component\EventDispatcher\GenericEvent;
6+
7+
class Plugin {
8+
9+
public function __construct() {
10+
}
11+
12+
public static function Load(GenericEvent $event) {
13+
14+
}
15+
16+
}

0 commit comments

Comments
 (0)