(09-17-2017, 12:56 AM)TGates Wrote: @[betatester3.0], if the module makes DB entries, you can do something like below in the remove.run file:
PHP Code:<?php
// Sentastico Open Source Script Installer for Sentora CP
// Updated By : TGates for Sentora
// Additional Work : Durandle, Mudasir Mirza
// Contact Email : tgates@sentora.org
// Original Author : Bobby Allen
require_once('cnf/db.php');
require_once('dryden/db/driver.class.php');
require_once('dryden/debug/logger.class.php');
require_once('dryden/runtime/dataobject.class.php');
require_once('dryden/sys/versions.class.php');
require_once('dryden/ctrl/options.class.php');
require_once('dryden/ctrl/auth.class.php');
require_once('dryden/ctrl/users.class.php');
require_once('dryden/fs/director.class.php');
require_once('inc/dbc.inc.php');
function removeModule(){
global $zdbh;
//delete table
$stmt = $zdbh->prepare("DROP TABLE `x_sentastico`");
$stmt->execute();
}
removeModule();
?>
Thanks TGates, i will use that one my other module. Although Net2FTP does not need db entries, unless the owner of the panel would like to log the users logging's and details they can have the option to store it in the db but if they do not want to log it will not upload any db entries.
You could give the module a test and see if it works both ways with db and without db on your Linux system
need someone to find them bugs lol
-BetaTester3.0 || Just Another Sentora User.
Did you know, Sentora has a full Support Documentation ?
If I helped +rep & Thanks is appreciated.
BTC: 1Bps3ZerDFDDnXJ9XdWtHhdhwsV4MVGLkw
If I helped +rep & Thanks is appreciated.
BTC: 1Bps3ZerDFDDnXJ9XdWtHhdhwsV4MVGLkw