PDA

Bekijk Volledige Versie : Directadmin R1soft plugin



Hostingwalk
28/10/15, 10:46
Beste,

ik vroeg me af of iemand hier (tegen vergoeding) bestanden kan delen/sturen zodat end-users back-ups van R1soft kunnen beheren vanuit Directadmin (een link dus).
Mag ook e.v.t via e-mail besproken worden: billing[at]hostingwalk.com

NibeP
28/10/15, 12:13
Het lijkt er op dat de plugin momenteel niet beschikbaar is (niet geschikt voor huidige versie). R1Soft is hiervan op de hoogte.

Arieh
28/10/15, 12:41
Een simpel script dat de juiste link naar r1soft in je DA zet dmv een plugin:

Op user level komt er rechts onderin 'R1soft backup' als link naar de link die je opgeeft bij het installeren van de plugin.

Installatie:
Script in install.php zetten



chmod 700 install.php
./install.php http://backup.yourdomain.tld/login.zul?cpID=youridhere


Deinstalleren: verwijder /usr/local/directadmin/plugins/r1soft/



#!/usr/local/bin/php -n
<?php

/*
USAGE:
chmod 700 install.php
./install.php http://backup.yourdomain.tld/login.zul?cpID=youridhere
*/


$exec = false;
if (!empty($argv) && !empty($argv[1])) {
$exec = true;

}
else {
print "Usage: ".$argv[0]." http://backup.yourdomain.tld/login.zul?cpID=youridhere\n";
}


// DO NOT MODIFY ANYTHING UNLESS YOU KNOW WHAT UR DOIN

if (!empty($exec)) {
$path = '/usr/local/directadmin/plugins/r1soft/';
exec('rm -rf '.$path);

mkdir($path);
mkdir($path.'/hooks');
mkdir($path.'/user');

$pluginconf =
'name=R1Soft plugin
id=r1softplugin
author=Automated script
version=1.0
update_url=
active=yes
installed=yes';

$usertxt = '<a href="'.$argv[1].'">R1soft backup</a>';

file_put_contents($path.'plugin.conf', $pluginconf);
file_put_contents($path.'hooks/user_txt.html', $usertxt);
file_put_contents($path.'user/index.html', '');


exec('chown -R diradmin:diradmin '.$path);

}

?>


Gebruik op eigen risico.