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 20th August 2011, 00:47
nveid nveid is offline
Member
 
Join Date: Jan 2006
Location: Daytona Beach, FL
Posts: 87
Thanks: 7
Thanked 17 Times in 14 Posts
Send a message via Yahoo to nveid Send a message via Skype™ to nveid
Default How are server components called?

I'm digging around trying to find out exactly how the server module/plugins components are called. So anyone that has some expertise in the manner please lend me a hand, how exactly per-say does a particular code piece call a specific plugin in the server code?

I'll give a specific example for one spot I'm looking at.. from shell_user_edit.php, where is the actual call it sends to to ADD users? I can modify how its adding, but to better understand I'd like to know what exact piece of code tells its to call method insert in the class shelluser_base_plugin


Thank you, for who can point me in the right direction.
__________________
-- RLB
Reply With Quote
Sponsored Links
  #2  
Old 20th August 2011, 01:19
nveid nveid is offline
Member
 
Join Date: Jan 2006
Location: Daytona Beach, FL
Posts: 87
Thanks: 7
Thanked 17 Times in 14 Posts
Send a message via Yahoo to nveid Send a message via Skype™ to nveid
Default

nevermind.. found my answer after some more digging around, I'd delete the thread if I could.. Seem to have a habit of answering questions & finding my own answers.
__________________
-- RLB
Reply With Quote
  #3  
Old 20th August 2011, 01:38
nveid nveid is offline
Member
 
Join Date: Jan 2006
Location: Daytona Beach, FL
Posts: 87
Thanks: 7
Thanked 17 Times in 14 Posts
Send a message via Yahoo to nveid Send a message via Skype™ to nveid
Default

got another one though..


done a bit of gripping & checked the ISPConfig manual.. nothing explains how/when "advanced" part of the form['tab'] is used? I understand it gets added by checking if someone is an admin, but what part of the code actually reads it?
__________________
-- RLB
Reply With Quote
  #4  
Old 20th August 2011, 15:53
nveid nveid is offline
Member
 
Join Date: Jan 2006
Location: Daytona Beach, FL
Posts: 87
Thanks: 7
Thanked 17 Times in 14 Posts
Send a message via Yahoo to nveid Send a message via Skype™ to nveid
 
Default

Another one before I goto sleep.. I'm working on the support module as well, trying to make it a little better.. How do I access the form data record when I'm doing a delete?

I'm trying something to this affect but its not working..

Code:
class support_delete extends tform_actions {
        function onDelete() {
                error_log("datarecord -> " . print_r($this->dataRecord,1)); 
                $user_id = $_SESSION['s']['user']['userid'];
                if($this->dataRecord['recipient_id'] != $user_id) {
                        // In this case just delete in the view table for this guy..
                        $sql = "INSERT INTO support_views (support_message_id, sys_userid, deleted) VALUES ( $this->id, $user_id, '1')";
                        $app->db->query($sql);
                                error_log("Executed: ".$sql);
                } else {
                        parent::onDelete();
                }
        }
}

$deletion = new support_delete;
$deletion->onDelete();
__________________
-- RLB
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
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
SSL don't work please help me walner8080 Installation/Configuration 8 26th September 2010 12:07
amavis & ispconfig 3 yalex2000 Installation/Configuration 20 18th February 2010 17:02
I don't recieve mail. privir Installation/Configuration 2 3rd June 2009 22:08
What can be wrong martin_rudowicz Installation/Configuration 9 11th May 2008 19:42


All times are GMT +2. The time now is 08:17.


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