Skip to content

Instantly share code, notes, and snippets.

@Roy-Orbison
Roy-Orbison / index.php
Last active September 1, 2021 00:56
Adminer wrapper template for externally authenticated installations
<?php
function adminer_object() {
class YourClass extends Adminer {
protected $externals;
function __construct($externals) {
$this->externals = $externals;
}
@Roy-Orbison
Roy-Orbison / userChrome.css
Created November 23, 2017 03:09
A simple replacement for the "No Close Buttons" Firefox extension that stopped working in 57 (Quantum)
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
tab.tabbrowser-tab .tab-close-button {
display: none;
}
@Roy-Orbison
Roy-Orbison / delete-from-all-lists.php
Created September 13, 2017 08:03
Sendy bulk delete (tested with v3.0.3 and PHP v5.3.29)
<?php
#ini_set('error_reporting', E_ALL & ~E_NOTICE);
#ini_set('display_errors', 1);
if (isset($_POST['del'])) {
include('includes/functions.php');
include('includes/login/auth.php');
$emails_del_all = array();
@Roy-Orbison
Roy-Orbison / duplicate-subscriptions.php
Last active October 22, 2018 23:08
Sendy duplicate subscription removal (tested with v3.0.3 and PHP v5.3.29)
<?php
include('includes/header.php');
include('includes/login/auth.php');
include('includes/subscribers/main.php');
include('includes/helpers/short.php');
#ini_set('error_reporting', E_ALL & ~E_NOTICE);
#ini_set('display_errors', 1);
$subscribers = $lists = array();