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

Commit

Permalink
update adminer
Browse files Browse the repository at this point in the history
  • Loading branch information
Branko Wilhelm committed Aug 24, 2020
1 parent 7815802 commit b68487b
Show file tree
Hide file tree
Showing 12 changed files with 2,623 additions and 690 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ["https://www.paypal.me/b2un0/EUR"]
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 'release'

on:
create:
tags:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v2.x

- name: Find and Replace
uses: shitiomatic/str-replace@master
with:
find: "@REVISION@"
replace: "${{ env.GITHUB_REF_SLUG }}"
include: "./*.xml"

- name: Archive Release
uses: thedoctor0/zip-release@master
with:
filename: "${{ github.event.repository.name }}.zip"
exclusions: '*.git* /screenshots/* updatestream.xml'

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ env.GITHUB_REF_SLUG }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.event.repository.name }}.zip
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog

- 2020-08-24
- update: Adminer Hever Theme from 0.2.1 to 0.2.5
- update: Adminer Update from 4.3.1 to 4.7.7

674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Adminer Extension for Joomla

![](https://img.shields.io/static/v1?label=Joomla&message=3.X&style=flat&logo=joomla&logoColor=orange&color=blue)
![](https://img.shields.io/github/release/z-index-net/joomla-plugin-system-adminer.svg)
![](https://img.shields.io/github/downloads/z-index-net/joomla-plugin-system-adminer/total.svg)
![](https://img.shields.io/badge/Maintained%3F-no-red.svg)
![](https://img.shields.io/github/license/z-index-net/joomla-plugin-system-adminer.svg)

Adds [Adminer](https://www.adminer.org) to your Joomla Backend

#### Note
Original developed by [mediahof](https://bitbucket.org/mediahof/joomla-plugin-system-adminer).
4 changes: 2 additions & 2 deletions adminer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
<folder>plugins</folder>
</media>
<updateservers>
<server type="collection" priority="1" name="mediahof">http://extensions.mediahof.de/extensions.xml</server>
<server type="extension" priority="1" name="System - Simple Adminer">https://raw.githubusercontent.com/z-index-net/joomla-plugin-system-adminer/master/updatestream.xml</server>
</updateservers>
</extension>
</extension>
41 changes: 0 additions & 41 deletions build.xml

This file was deleted.

19 changes: 9 additions & 10 deletions media/adminer.css

Large diffs are not rendered by default.

2,471 changes: 1,844 additions & 627 deletions media/adminer.php

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions media/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,30 @@

define('DS', DIRECTORY_SEPARATOR);

define('JPATH_BASE', dirname(__FILE__) . '/../../');
define('JPATH_BASE', __DIR__ . '/../../');

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

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

JFactory::getApplication('administrator');

if (!JFactory::getUser()->authorise('core.admin'))
{
if (!JFactory::getUser()->authorise('core.admin')) {
exit;
}

function adminer_object()
{
JLoader::import('joomla.filesystem.folder');

$files = JFolder::files(dirname(__FILE__) . '/plugins/');
$files = JFolder::files(__DIR__ . '/plugins/');

$plugins = array();
foreach ($files as $file)
{
include_once dirname(__FILE__) . DS . 'plugins' . DS . $file;
$plugins = [];
foreach ($files as $file) {
include_once __DIR__ . DS . 'plugins' . DS . $file;
}

return new AdminerPlugin($plugins);
}

include_once dirname(__FILE__) . '/adminer.php';
include_once __DIR__ . '/adminer.php';
3 changes: 2 additions & 1 deletion media/plugins/joomla.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function AdminerFrames()
function headers()
{
header("X-XSS-Protection: 0");
header("X-Frame-Options: SAMEORIGIN");
return false;
}

Expand All @@ -63,4 +64,4 @@ function navigation()
}
}

$plugins[] = new AdminerJoomla;
$plugins[] = new AdminerJoomla;
17 changes: 17 additions & 0 deletions updatestream.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<updates>
<update>
<name>System - Adminer</name>
<element>adminer</element>
<type>plugin</type>
<client>0</client>
<folder>system</folder>
<version>1.0.0</version>
<infourl>https://github.com/z-index-net/joomla-plugin-system-adminer</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/z-index-net/joomla-plugin-system-adminer/releases/download/1.0.0/joomla-plugin-system-adminer.zip</downloadurl>
</downloads>
<targetplatform name="joomla" version="^3\."/>
</update>
</updates>

0 comments on commit b68487b

Please sign in to comment.