00001 <?php
00002
00016
00017
00018
00019 import('handler.Handler');
00020
00021 class GatewayHandler extends Handler {
00025 function GatewayHandler() {
00026 parent::Handler();
00027 }
00028
00029 function index() {
00030 Request::redirect(null, 'index');
00031 }
00032
00036 function plugin($args) {
00037 $this->validate();
00038 $pluginName = array_shift($args);
00039
00040 $plugins =& PluginRegistry::loadCategory('gateways');
00041 if (isset($pluginName) && isset($plugins[$pluginName])) {
00042 $plugin =& $plugins[$pluginName];
00043 if (!$plugin->fetch($args)) {
00044 Request::redirect(null, 'index');
00045 }
00046 }
00047 else Request::redirect(null, 'index');
00048 }
00049 }
00050
00051 ?>