Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit b68487b

Browse files
author
Branko Wilhelm
committed
update adminer
1 parent 7815802 commit b68487b

File tree

12 files changed

+2623
-690
lines changed

12 files changed

+2623
-690
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: ["https://www.paypal.me/b2un0/EUR"]

.github/workflows/release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: 'release'
2+
3+
on:
4+
create:
5+
tags:
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v1
13+
14+
- name: Inject slug/short variables
15+
uses: rlespinasse/github-slug-action@v2.x
16+
17+
- name: Find and Replace
18+
uses: shitiomatic/str-replace@master
19+
with:
20+
find: "@REVISION@"
21+
replace: "${{ env.GITHUB_REF_SLUG }}"
22+
include: "./*.xml"
23+
24+
- name: Archive Release
25+
uses: thedoctor0/zip-release@master
26+
with:
27+
filename: "${{ github.event.repository.name }}.zip"
28+
exclusions: '*.git* /screenshots/* updatestream.xml'
29+
30+
- name: Create Release
31+
id: create_release
32+
uses: actions/create-release@v1
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
tag_name: ${{ github.ref }}
37+
release_name: ${{ env.GITHUB_REF_SLUG }}
38+
draft: false
39+
prerelease: false
40+
41+
- name: Upload Release Asset
42+
uses: actions/upload-release-asset@v1
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
with:
46+
upload_url: ${{ steps.create_release.outputs.upload_url }}
47+
asset_path: ${{ github.event.repository.name }}.zip
48+
asset_name: ${{ github.event.repository.name }}.zip
49+
asset_content_type: application/zip

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Changelog
2+
3+
- 2020-08-24
4+
- update: Adminer Hever Theme from 0.2.1 to 0.2.5
5+
- update: Adminer Update from 4.3.1 to 4.7.7
6+

LICENSE

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

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Adminer Extension for Joomla
2+
3+
![](https://img.shields.io/static/v1?label=Joomla&message=3.X&style=flat&logo=joomla&logoColor=orange&color=blue)
4+
![](https://img.shields.io/github/release/z-index-net/joomla-plugin-system-adminer.svg)
5+
![](https://img.shields.io/github/downloads/z-index-net/joomla-plugin-system-adminer/total.svg)
6+
![](https://img.shields.io/badge/Maintained%3F-no-red.svg)
7+
![](https://img.shields.io/github/license/z-index-net/joomla-plugin-system-adminer.svg)
8+
9+
Adds [Adminer](https://www.adminer.org) to your Joomla Backend
10+
11+
#### Note
12+
Original developed by [mediahof](https://bitbucket.org/mediahof/joomla-plugin-system-adminer).

adminer.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
<folder>plugins</folder>
2121
</media>
2222
<updateservers>
23-
<server type="collection" priority="1" name="mediahof">http://extensions.mediahof.de/extensions.xml</server>
23+
<server type="extension" priority="1" name="System - Simple Adminer">https://raw.githubusercontent.com/z-index-net/joomla-plugin-system-adminer/master/updatestream.xml</server>
2424
</updateservers>
25-
</extension>
25+
</extension>

build.xml

Lines changed: 0 additions & 41 deletions
This file was deleted.

media/adminer.css

Lines changed: 9 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

media/adminer.php

Lines changed: 1844 additions & 627 deletions
Large diffs are not rendered by default.

media/loader.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,30 @@
1010

1111
define('DS', DIRECTORY_SEPARATOR);
1212

13-
define('JPATH_BASE', dirname(__FILE__) . '/../../');
13+
define('JPATH_BASE', __DIR__ . '/../../');
1414

1515
require_once JPATH_BASE . '/includes/defines.php';
1616

1717
require_once JPATH_BASE . '/includes/framework.php';
1818

1919
JFactory::getApplication('administrator');
2020

21-
if (!JFactory::getUser()->authorise('core.admin'))
22-
{
21+
if (!JFactory::getUser()->authorise('core.admin')) {
2322
exit;
2423
}
2524

2625
function adminer_object()
2726
{
2827
JLoader::import('joomla.filesystem.folder');
2928

30-
$files = JFolder::files(dirname(__FILE__) . '/plugins/');
29+
$files = JFolder::files(__DIR__ . '/plugins/');
3130

32-
$plugins = array();
33-
foreach ($files as $file)
34-
{
35-
include_once dirname(__FILE__) . DS . 'plugins' . DS . $file;
31+
$plugins = [];
32+
foreach ($files as $file) {
33+
include_once __DIR__ . DS . 'plugins' . DS . $file;
3634
}
3735

3836
return new AdminerPlugin($plugins);
3937
}
4038

41-
include_once dirname(__FILE__) . '/adminer.php';
39+
include_once __DIR__ . '/adminer.php';

0 commit comments

Comments
 (0)