Hi,
I was wondering if it was possible to add a feature where I could place my own unique functions for the ISPConfig API.
Code:
public function dns_zone_get_all($session_id, $primary_id)
{
global $app;
if(!$this->checkPerm($session_id, 'dns_zone_get')) {
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
return false;
}
$sql = "SELECT origin FROM dns_soa WHERE xfer = 'linode'";
$all = $app->db->queryAllRecords($sql);
return $all;
}
Currently I have the above function added to the remoting.inc.php file, naturally everytime I update to a new version of ISPConfig my changes are lost. And due to the uniqueness of the SQL query, I doubt anyone else would want this added permanently to the ISPConfig API. Would it be possible to have a separate file for API functions that would be untouched by updates?
Recent comments
1 day 7 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 14 hours ago
1 day 15 hours ago
1 day 17 hours ago
2 days 9 hours ago
2 days 9 hours ago
2 days 13 hours ago