Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • awit-whmcs/whmcs-coza-epp
  • weheartwebsites/whmcs-coza-epp
  • qbitza/whmcs-coza-epp
  • wyrie/whmcs-coza-epp
  • Woklet/whmcs-coza-epp
  • jaymcc/whmcs-coza-epp
  • cmcawood/whmcs-coza-epp
7 results
Show changes
Showing
with 223 additions and 116 deletions
......@@ -40,10 +40,10 @@
# This file brings in a few constants we need
require_once dirname(__FILE__) . '/../../../dbconnect.php';
# Setup include dir
$include_path = ROOTDIR . '/modules/registrars/cozaepp';
$include_path = ROOTDIR . '/modules/registrars/zacr';
set_include_path($include_path . PATH_SEPARATOR . get_include_path());
# Include EPP stuff we need
require_once 'cozaepp.php';
require_once 'zacr.php';
# Additional functions we need
require_once ROOTDIR . '/includes/functions.php';
# Include registrar functions aswell
......@@ -54,14 +54,14 @@ require_once 'Net/EPP/Frame/Command.php';
require_once 'Net/EPP/ObjectSpec.php';
# Grab module parameters
$params = getregistrarconfigoptions('cozaepp');
$params = getregistrarconfigoptions('zacr');
echo("COZA-EPP Poll Report\n");
echo("ZACR Poll Report\n");
echo("---------------------------------------------------\n");
# Request balance from registrar
try {
$client = _cozaepp_Client();
$client = _zacr_Client();
# Loop with message queue
while (!$last) {
......@@ -95,7 +95,7 @@ try {
if (!in_array(trim($msgs->item($m)->textContent), $ignored)) {
$message = mysql_real_escape_string(trim($msgs->item($m)->textContent));
$result = mysql_query("
INSERT INTO mod_awit_cozaepp_messages
INSERT INTO mod_awit_zacr_messages
(
created,
code,
......@@ -123,7 +123,7 @@ try {
if ($msgq) {
$msgid = $doc->getElementsByTagName('msgQ')->item(0)->getAttribute('id');
try {
$res = _cozaepp_ackpoll($client,$msgid);
$res = _zacr_ackpoll($client,$msgid);
} catch (Exception $e) {
echo("ERROR: ".$e->getMessage()."\n");
}
......
<?php
# Copyright (c) 2012, AllWorldIT
#
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
......@@ -18,49 +18,49 @@
# Official Website:
# http://devlabs.linuxassist.net/projects/whmcs-coza-epp
# Lead developer:
# Lead developer:
# Nigel Kukard <nkukard@lbsd.net>
# ! ! P L E A S E N O T E ! !
# * If you make changes to this file, please consider contributing
# * If you make changes to this file, please consider contributing
# anything useful back to the community. Don't be a sour prick.
# * If you find this module useful please consider making a
# * If you find this module useful please consider making a
# donation to support modules like this.
# WHMCS hosting, theming, module development, payment gateway
# integration, customizations and consulting all available from
# WHMCS hosting, theming, module development, payment gateway
# integration, customizations and consulting all available from
# http://allworldit.com
# Function to implement the cozaepp balance widget
function widget_cozaepp_balance($vars) {
# Function to implement the zacr balance widget
function widget_zacr_balance($vars) {
# Setup include dir
$include_path = ROOTDIR . '/modules/registrars/cozaepp';
$include_path = ROOTDIR . '/modules/registrars/zacr';
set_include_path($include_path . PATH_SEPARATOR . get_include_path());
# Include EPP stuff we need
require_once 'cozaepp.php';
require_once 'zacr.php';
# Include registrar functions aswell
require_once ROOTDIR . '/includes/registrarfunctions.php';
# Grab module parameters
$params = getregistrarconfigoptions('cozaepp');
$params = getregistrarconfigoptions('zacr');
# Set widget contents
$title = "COZA EPP Balance";
$title = "ZACR Balance";
$template = '<p align = "center" class="textblack"><strong>%s</strong></p>';
# Request balance from registrar
try {
$client = _cozaepp_Client();
$client = _zacr_Client();
$output = $client->request('
<epp:epp xmlns:epp="urn:ietf:params:xml:ns:epp-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0"
<epp:epp xmlns:epp="urn:ietf:params:xml:ns:epp-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0"
xmlns:cozacontact="http://co.za/epp/extensions/cozacontact-1-0">
<epp:command>
<epp:info>
......@@ -94,6 +94,6 @@ function widget_cozaepp_balance($vars) {
return array('title'=>$title,'content'=>sprintf($template,$balancestr));
}
add_hook("AdminHomeWidgets",1,"widget_cozaepp_balance");
add_hook("AdminHomeWidgets",1,"widget_zacr_balance");
?>