Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 08:01:31

Author Topic: /script/fixdomainkey --client=clientname not working  (Read 1942 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Can you add such functionality ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: /script/fixdomainkey --client=clientname not working
« Reply #1 on: 2013-09-12, 00:15:58 »
In '/usr/local/lxlabs/kloxo/pscript/fixdomainkey' and '/script/fixdomainkey', change content to:
Code: [Select]
#!/bin/sh
. /script/directory
lxphp.exe ../bin/fix/domainkey.php  $*

In '/usr/local/lxlabs/kloxo/bin/fix/domainkey.php', change content to:
Code: [Select]
<?php 

include_once "htmllib/lib/include.php"
initProgram('admin');

$server = (isset($list['server'])) ? $list['server'] : 'localhost';
$client = (isset($list['client'])) ? $list['client'] : null;
$domain = (isset($list['domain'])) ? $list['domain'] : null;
$nolog  = (isset($list['nolog'])) ? $list['nolog'] : null;


$login->loadAllObjects('client');
$list $login->getList('client');

foreach(
$list as $c) {
if ($client) {
$ca explode(","$client);
if (!in_array($c->nname$ca)) { continue; }
$server 'all';
}

if ($server !== 'all') {
$sa explode(","$server);
if (!in_array($c->syncserver$sa)) { continue; }
}

$dlist $c->getList('domaina');

foreach((array) $dlist as $l) {
if ($domain) {
$da explode(","$domain);
if (!in_array($web->nname$da)) { continue; }
}

$l->generateDomainKey(false);
}
}

- it's work for certain servers, clients and domains
- for multiple select, you can set as 'sh /script/fixdomainkeys --client=admin,client1'
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.056 seconds with 18 queries.

web stats analysis