Skip to content

Commit

Permalink
Rename Log identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
chetcuti committed Jun 30, 2017
1 parent da1eacb commit 623cfe1
Show file tree
Hide file tree
Showing 35 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion admin/debug-log/index.php
Expand Up @@ -27,7 +27,7 @@

$system = new DomainMOD\System();
$layout = new DomainMOD\Layout();
$log = new DomainMOD\Log('admin.debuglog');
$log = new DomainMOD\Log('/admin/debug-log/index.php');
$time = new DomainMOD\Time();

require_once DIR_INC . '/head.inc.php';
Expand Down
2 changes: 1 addition & 1 deletion admin/domain-fields/edit.php
Expand Up @@ -28,7 +28,7 @@
$system = new DomainMOD\System();
$time = new DomainMOD\Time();
$form = new DomainMOD\Form();
$log = new DomainMOD\Log('admin.domainfields.edit');
$log = new DomainMOD\Log('/admin/domain-fields/edit.php');

require_once DIR_INC . '/head.inc.php';
require_once DIR_INC . '/config.inc.php';
Expand Down
2 changes: 1 addition & 1 deletion admin/dw/add-server.php
Expand Up @@ -35,6 +35,7 @@
require_once DIR_INC . '/debug.inc.php';
require_once DIR_INC . '/settings/dw-add-server.inc.php';

$pdo = $system->db();
$system->authCheck();
$system->checkAdminUser($_SESSION['s_is_admin']);

Expand All @@ -52,7 +53,6 @@
if ($new_name != "" && $new_host != "" && $new_protocol != "" && $new_port != "" && $new_username != "" && ($new_api_token != "" || $new_hash != "")
) {

$pdo = $system->db();
$stmt = $pdo->prepare("
INSERT INTO dw_servers
(`name`, `host`, protocol, `port`, username, `api_token`, `hash`, notes, created_by, insert_time)
Expand Down
2 changes: 1 addition & 1 deletion admin/scheduler/run.php
Expand Up @@ -30,7 +30,7 @@
$conversion = new DomainMOD\Conversion();
$schedule = new DomainMOD\Scheduler();
$time = new DomainMOD\Time();
$log = new DomainMOD\Log('admin.scheduler.run');
$log = new DomainMOD\Log('/admin/scheduler/run.php');

require_once DIR_INC . '/head.inc.php';
require_once DIR_INC . '/config.inc.php';
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/AboveCom.php
Expand Up @@ -30,7 +30,7 @@ class AboveCom
public function __construct()
{
$this->format = new Format();
$this->log = new Log('abovecom.class');
$this->log = new Log('class.abovecom');
$this->system = new System();
}

Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Api.php
Expand Up @@ -31,7 +31,7 @@ class Api
public function __construct()
{
$this->assets = new Assets();
$this->log = new Log('api.class');
$this->log = new Log('class.api');
$this->system = new System();
}

Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Assets.php
Expand Up @@ -30,7 +30,7 @@ class Assets
public function __construct()
{
$this->system = new System();
$this->log = new Log('assets.class');
$this->log = new Log('class.assets');
}

public function getRegistrar($registrar_id)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Conversion.php
Expand Up @@ -29,7 +29,7 @@ class Conversion

public function __construct()
{
$this->log = new Log('conversion.class');
$this->log = new Log('class.conversion');
$this->system = new System();
$this->time = new Time();
}
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Currency.php
Expand Up @@ -29,7 +29,7 @@ class Currency
public function __construct()
{
$this->system = new System();
$this->log = new Log('currency.class');
$this->log = new Log('class.currency');
}

public function format($amount, $symbol, $order, $space)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/DnSimple.php
Expand Up @@ -29,7 +29,7 @@ class DnSimple
public function __construct()
{
$this->format = new Format();
$this->log = new Log('dnsimple.class');
$this->log = new Log('class.dnsimple');
}

public function getApiUrl($account_id, $command, $domain)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Domain.php
Expand Up @@ -29,7 +29,7 @@ class Domain

public function __construct()
{
$this->log = new Log('domain.class');
$this->log = new Log('class.domain');
$this->system = new System();
$this->time = new Time();
}
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/DomainQueue.php
Expand Up @@ -35,7 +35,7 @@ public function __construct()
{
$this->api = new Api();
$this->domain = new Domain();
$this->log = new Log('domainqueue.class');
$this->log = new Log('class.domainqueue');
$this->maint = new Maintenance();
$this->queryB = new QueryBuild();
$this->system = new System();
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/DreamHost.php
Expand Up @@ -30,7 +30,7 @@ class DreamHost
public function __construct()
{
$this->format = new Format();
$this->log = new Log('dreamhost.class');
$this->log = new Log('class.dreamhost');
$this->system = new System();
}

Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/DwAccounts.php
Expand Up @@ -31,7 +31,7 @@ class DwAccounts
public function __construct()
{
$this->system = new System();
$this->log = new Log('dwaccounts.class');
$this->log = new Log('class.dwaccounts');
$this->time = new Time();
$this->dwbuild = new DwBuild();
}
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/DwBuild.php
Expand Up @@ -28,7 +28,7 @@ class DwBuild

public function __construct()
{
$this->log = new Log('dwbuild.class');
$this->log = new Log('class.dwbuild');
$this->system = new System();
}

Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/DwRecords.php
Expand Up @@ -31,7 +31,7 @@ class DwRecords
public function __construct()
{
$this->system = new System();
$this->log = new Log('dwrecords.class');
$this->log = new Log('class.dwrecords');
$this->time = new Time();
$this->dwbuild = new DwBuild();
}
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/DwZones.php
Expand Up @@ -31,7 +31,7 @@ class DwZones
public function __construct()
{
$this->system = new System();
$this->log = new Log('dwzones.class');
$this->log = new Log('class.dwzones');
$this->time = new Time();
$this->dwbuild = new DwBuild();
}
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Dynadot.php
Expand Up @@ -29,7 +29,7 @@ class Dynadot
public function __construct()
{
$this->format = new Format();
$this->log = new Log('dynadot.class');
$this->log = new Log('class.dynadot');
}

public function getApiUrl($api_key, $command, $domain)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Email.php
Expand Up @@ -29,7 +29,7 @@ class Email

public function __construct()
{
$this->log = new Log('email.class');
$this->log = new Log('class.email');
$this->system = new System();
$this->time = new Time();
}
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Enom.php
Expand Up @@ -29,7 +29,7 @@ class Enom
public function __construct()
{
$this->format = new Format();
$this->log = new Log('enom.class');
$this->log = new Log('class.enom');
}

public function getApiUrl($account_username, $account_password, $domain, $command)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Fabulous.php
Expand Up @@ -29,7 +29,7 @@ class Fabulous
public function __construct()
{
$this->format = new Format();
$this->log = new Log('fabulous.class');
$this->log = new Log('class.fabulous');
}

public function getApiUrl($account_username, $account_password, $domain, $command)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Freenom.php
Expand Up @@ -29,7 +29,7 @@ class Freenom
public function __construct()
{
$this->format = new Format();
$this->log = new Log('freenom.class');
$this->log = new Log('class.freenom');
}

public function getApiUrl($account_username, $account_password, $domain, $command)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/GoDaddy.php
Expand Up @@ -29,7 +29,7 @@ class GoDaddy
public function __construct()
{
$this->format = new Format();
$this->log = new Log('godaddy.class');
$this->log = new Log('class.godaddy');
}

public function getApiUrl($domain, $command)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/InternetBs.php
Expand Up @@ -29,7 +29,7 @@ class InternetBs
public function __construct()
{
$this->format = new Format();
$this->log = new Log('internetbs.class');
$this->log = new Log('class.internetbs');
}

public function getApiUrl($api_key, $api_secret, $command, $domain)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Maintenance.php
Expand Up @@ -29,7 +29,7 @@ class Maintenance

public function __construct()
{
$this->log = new Log('maintenance.class');
$this->log = new Log('class.maintenance');
$this->system = new System();
$this->time = new Time();
}
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/NameBright.php
Expand Up @@ -29,7 +29,7 @@ class NameBright
public function __construct()
{
$this->format = new Format();
$this->log = new Log('namebright.class');
$this->log = new Log('class.namebright');
}

public function getApiUrl($account_username, $api_app_name, $api_secret, $command, $domain)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/NameCom.php
Expand Up @@ -29,7 +29,7 @@ class NameCom
public function __construct()
{
$this->format = new Format();
$this->log = new Log('namecom.class');
$this->log = new Log('class.namecom');
}

public function getApiUrl($command, $domain)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/NameSilo.php
Expand Up @@ -29,7 +29,7 @@ class NameSilo
public function __construct()
{
$this->format = new Format();
$this->log = new Log('namesilo.class');
$this->log = new Log('class.namesilo');
}

public function getApiUrl($api_key, $domain, $command)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Namecheap.php
Expand Up @@ -29,7 +29,7 @@ class Namecheap
public function __construct()
{
$this->format = new Format();
$this->log = new Log('namecheap.class');
$this->log = new Log('class.namecheap');
}

public function getApiUrl($api_key, $command, $domain, $account_username, $api_ip_address)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/OpenSrs.php
Expand Up @@ -29,7 +29,7 @@ class OpenSrs
public function __construct()
{
$this->format = new Format();
$this->log = new Log('opensrs.class');
$this->log = new Log('class.opensrs');
}

public function domainList()
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/ResellerClub.php
Expand Up @@ -29,7 +29,7 @@ class ResellerClub
public function __construct()
{
$this->format = new Format();
$this->log = new Log('resellerclub.class');
$this->log = new Log('class.resellerclub');
}

public function getApiUrl($reseller_id, $api_key, $command, $domain)
Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Segment.php
Expand Up @@ -29,7 +29,7 @@ class Segment

public function __construct()
{
$this->log = new Log('segment.class');
$this->log = new Log('class.segment');
$this->system = new System();
}

Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/Smtp.php
Expand Up @@ -28,7 +28,7 @@ class Smtp

public function __construct()
{
$this->log = new Log('smtp.class');
$this->log = new Log('class.smtp');
$this->system = new System();
}

Expand Down
2 changes: 1 addition & 1 deletion classes/DomainMOD/System.php
Expand Up @@ -27,7 +27,7 @@ class System

public function __construct()
{
$this->log = new Log('system.class');
$this->log = new Log('class.system');
}

public function db()
Expand Down
2 changes: 1 addition & 1 deletion cron.php
Expand Up @@ -29,7 +29,7 @@
$conversion = new DomainMOD\Conversion();
$schedule = new DomainMOD\Scheduler();
$time = new DomainMOD\Time();
$log = new DomainMOD\Log('cron');
$log = new DomainMOD\Log('/cron.php');

require_once DIR_INC . '/head.inc.php';
require_once DIR_INC . '/config.inc.php';
Expand Down

0 comments on commit 623cfe1

Please sign in to comment.