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 15th August 2012, 21:02
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 264 Times in 208 Posts
 
Default One more remoting question

If I want to create a remoting function matching an existing interface function, is it correct that I have to insert all the things into the remoting.inc.php that are in the onBeforeUpdate and onBeforeInsert and onAfterXXXX?

So if I add an update to the database insert/update function like I did on svn rev 3358 (automatically add website server ip to remote_ips) in the onBeforeUpdate and onBeforeInsert functions of the interface/web/sites/database_edit.php - do I have to make those changes here too?

PHP Code:
    public function sites_database_add($session_id$client_id$params)
    {
        if(!
$this->checkPerm($session_id'sites_database_add')) {
            
$this->server->fault('permission_denied''You do not have the permissions to access this function.');
            return 
false;
        }
        return 
$this->insertQuery('../sites/form/database.tform.php',$client_id,$params);
    } 
__________________
Marius Cramer

pixcept KG
Reply With Quote
Sponsored Links
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
autosignup remoting framework howto detailed kextra1 Tips/Tricks/Mods 21 1st March 2012 07:59
Hostname question, and DNS question andrewfashion General 1 20th April 2009 14:30
Traffic Quota Problem Remoting Framework 4.2.1 kextra1 Tips/Tricks/Mods 1 7th January 2009 03:38
Keep Remoting User On Upgrade kextra1 Feature Requests 0 29th December 2008 02:07
IspConfig Remoting Framework Installation geoffmerritt Installation/Configuration 1 27th October 2008 09:26


All times are GMT +2. The time now is 13:31.


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