Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th July 2013, 21:06
Schnacki Schnacki is offline
Junior Member
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question Define remote calls in interface modules

Hello

I'm currently researching options for an enhancement to ISPConfig.

I'm not 100% clear on the details, but I had the idea, that this might be solved via a combination of an interface module and a remote API.

Unfortunately it seems, that the possible calls for the remote API are hard coded in the file
Code:
interface/lib/classes/remote.inc.php
Did I miss something, or is it currently not possible to extend the remote api without hacking (at least) this file?

Regards,
Jan
Reply With Quote
Sponsored Links
  #2  
Old 29th July 2013, 09:04
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 927
Thanks: 16
Thanked 261 Times in 208 Posts
Default

I don't really get your point

All remote api functions are in the remoting library and that's how it is intended. Why would you want to mix remote API with other interface things? It's a completely different thing.
__________________
Marius Cramer

pixcept KG
Reply With Quote
  #3  
Old 29th July 2013, 12:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,975
Thanks: 825
Thanked 5,368 Times in 4,215 Posts
Default

Combining interface modules with remote api call does not make much sense as Crouydon pointed out.

The remote api is a normal php class, so you can extend it like any other calls:

- create a new file in the remote folder.
- include the current remote class.
extend the curent remote class like this:

class custom_remote extends remoting {
....

}

then create soap server socket for it and call this new endboint in your remote client script.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 30th July 2013, 21:35
Schnacki Schnacki is offline
Junior Member
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I do not plan to use the remote API in my module. I was thinking about providing functionality within ISPConfig that can then be accessed via the remote API.

Maybe I'm on the wrong path here, but currently this looks like a good path for me.

I'll try to understand what Till wrote (or better: what he implied because it's obvious for him) now.

Thanks for the hints.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
haproxy with stunnel problem abubin Server Operation 6 10th April 2012 15:08
[Info] Remote Desktop Solutions for Linux mar.and65 Desktop Operation 0 27th April 2011 07:05
change email password with remote interface cusaro General 2 23rd January 2011 12:09
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
IPtables rule to let PPTP access LAN brianwebb01 Installation/Configuration 0 1st May 2008 21:23


All times are GMT +2. The time now is 15:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.