Changeset 2266 in subversion for branches/devel-api/index.php


Ignore:
Timestamp:
Feb 1, 2009 10:27:12 AM (4 years ago)
Author:
thomasb
Message:

Allow plugins to add client scripts and handle HTTP requests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-api/index.php

    r2209 r2266  
    33 +-------------------------------------------------------------------------+ 
    44 | RoundCube Webmail IMAP Client                                           | 
    5  | Version 0.2-20090101                                                    | 
     5 | Version 0.3-20090201                                                    | 
    66 |                                                                         | 
    77 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland                   | 
     
    214214  $stepfile = !empty($action_map[$RCMAIL->task][$RCMAIL->action]) ? 
    215215    $action_map[$RCMAIL->task][$RCMAIL->action] : strtr($RCMAIL->action, '-', '_') . '.inc'; 
    216      
     216 
     217  // execute a plugin action 
     218  if (eregi('^plugin.', $RCMAIL->action)) { 
     219    $RCMAIL->plugins->exec_action($RCMAIL->action); 
     220    break; 
     221  } 
    217222  // try to include the step file 
    218   if (is_file(($incfile = 'program/steps/'.$RCMAIL->task.'/'.$stepfile))) { 
     223  else if (is_file(($incfile = 'program/steps/'.$RCMAIL->task.'/'.$stepfile))) { 
    219224    include($incfile); 
    220225    $redirects++; 
Note: See TracChangeset for help on using the changeset viewer.