From 031054bc8b599d02e810901b929b73ce1fb7b3d6 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 1 Aug 2011 13:17:09 +0000
Subject: [PATCH] Changed functions from "private" to "protected" in remote
 library. Changed onClick function in DNS resync temlate.

---
 interface/lib/classes/remoting.inc.php       | 14 +++++++-------
 interface/web/tools/templates/dns_resync.htm |  2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php
index 53ee957055..2ff7a4117a 100644
--- a/interface/lib/classes/remoting.inc.php
+++ b/interface/lib/classes/remoting.inc.php
@@ -2107,12 +2107,12 @@ class remoting {
         
 
 
-	//** private functions -----------------------------------------------------------------------------------
+	//** protected functions -----------------------------------------------------------------------------------
 	
 	
 
 
-	private function klientadd($formdef_file, $reseller_id, $params)
+	protected function klientadd($formdef_file, $reseller_id, $params)
     {
 		global $app, $tform, $remoting_lib;
 		$app->uses('remoting_lib');
@@ -2167,7 +2167,7 @@ class remoting {
 		return $insert_id;
 	}
 
-	private function insertQuery($formdef_file, $client_id, $params,$event_identifier = '')
+	protected function insertQuery($formdef_file, $client_id, $params,$event_identifier = '')
     {
 		global $app, $tform, $remoting_lib;
 		
@@ -2211,7 +2211,7 @@ class remoting {
 	}
 	
 	
-	private function updateQuery($formdef_file, $client_id, $primary_id, $params, $event_identifier = '')
+	protected function updateQuery($formdef_file, $client_id, $primary_id, $params, $event_identifier = '')
     {
 		global $app;
 		
@@ -2257,7 +2257,7 @@ class remoting {
 		return $affected_rows;
 	}
 	
-	private function deleteQuery($formdef_file, $primary_id, $event_identifier = '')
+	protected function deleteQuery($formdef_file, $primary_id, $event_identifier = '')
     {
 		global $app;
 		
@@ -2301,7 +2301,7 @@ class remoting {
 	}
 	
 	
-	private function checkPerm($session_id, $function_name)
+	protected function checkPerm($session_id, $function_name)
     {
 	$dobre=array();
 	$session = $this->getSession($session_id);
@@ -2314,7 +2314,7 @@ class remoting {
 	}
 	
 	
-	private function getSession($session_id)
+	protected function getSession($session_id)
     {	
 		global $app;
 		
diff --git a/interface/web/tools/templates/dns_resync.htm b/interface/web/tools/templates/dns_resync.htm
index 2c2320815c..990e948490 100644
--- a/interface/web/tools/templates/dns_resync.htm
+++ b/interface/web/tools/templates/dns_resync.htm
@@ -23,7 +23,7 @@
     <input type="hidden" name="id" value="{tmpl_var name='id'}">
 
     <div class="buttonHolder buttons">
-      <button class="positive iconstxt icoPositive" type="button" value="Import" onClick="submitUploadForm('pageForm','tools/dns_resync.php');"><span>Start</span></button>
+      <button class="positive iconstxt icoPositive" type="button" value="Import" onClick="submitForm('pageForm','tools/dns_resync.php');"><span>Start</span></button>
       <button class="negative iconstxt icoNegative" type="button" value="Cancel" onClick="loadContent('tools/index.php');"><span>Cancel</span></button>
     </div>
   </div>
-- 
GitLab