标签:WHMCS

WHMCS autocancel_invoices_of_terminated_products

vim includes/hooks/autocancel_invoices_of_terminated_products.php

<?php

function hook_autocancel_invoices_of_terminated_products() {
$query = mysql_query(‘SELECT id FROM tblinvoices WHERE status=\’Unpaid\’ AND id IN (SELECT invoiceid FROM
tblinvoiceitems WHERE relid IN (SELECT id FROM tblhosting
WHERE domainstatus=\’Terminated\’));’);
$message = ‘
Invoices Canceled List :

‘;
while ($result = mysql_fetch_array($query)) {
$message .= ‘Invoice ID : ‘ . $result[id] . ‘
‘;
logactivity(‘Invoice ID : ‘ . $result[id] . ‘ Cancelled Automatically By WebSoftSolus AutoCancel Invoices Of Terminated
Products Cron Job’);
}
sendadminnotification($to = ‘system’, ‘AutoCancel Invoices Cron Job Activity’, $message, $deptid = ”);
$query = ‘UPDATE tblinvoices SET status=\’Cancelled\’,notes=\’Cancelled Automatically By WebSoftSolus
AutoCancel Invoices Of Terminated Products Cron Job\’ WHERE
status=\’Unpaid\’ AND id IN (SELECT invoiceid FROM
tblinvoiceitems WHERE relid IN (SELECT id FROM tblhosting
WHERE domainstatus=\’Terminated\’));’;
mysql_query($query); } add_hook(‘DailyCronJob’, 1, ‘hook_autocancel_invoices_of_terminated_products’);

WHMCS 隐藏版权

只需在jquery.js最底部 加一行代码

$(function(){$('p:has(a[href*=whmcs])').hide()});

WHMCS:6.0 优化加速/Alipay接口

以模板Six为例,打开\templates\six\css\overrides.css,注释掉:

@import url(“//fonts.useso.com/css?family=Open+Sans:400,600|Raleway:400,700”);

whmcs后台主题blend,会有一个问题,480像数宽的手机访问时页面太窄导致内容乱得一塌糊涂,所以打开\admin\templates\blend\style.css找到:

body {
background-color: #1A4D80;
}

修改为:

body {
min-width: 640px;
background-color: #1A4D80;
}

同时注释掉这一行:

@import url(“//fonts.useso.com/css?family=Open+Sans:400,600”);

支付宝接口来自@tension,亲测可用
下载:Alipay-For-WHMCS-6 双功能接口
下载:Alipay-For-WHMCS-6