Ejemplo n.º 1
0
 function initAm3Routes(Zend_Controller_Router_Abstract $router)
 {
     $router->addRoute('v3_urls', new Zend_Controller_Router_Route_Regex('(signup|member|login|logout|profile|thanks).php', array('module' => 'default', 'action' => 'index'), array('controller' => 1)));
     $router->addRoute('v3_logout', new Zend_Controller_Router_Route('logout.php', array('module' => 'default', 'controller' => 'login', 'action' => 'logout')));
     $router->addRoute('v3_ipn_scripts', new Zend_Controller_Router_Route_Regex('plugins/payment/([0-9a-z]+)_?r?/(ipn)r?.php', array('module' => 'default', 'controller' => 'direct', 'action' => 'index', 'type' => 'payment'), array('plugin_id' => 1, 'action' => 2)));
     $router->addRoute('v3_ipn_paypal_pro', new Zend_Controller_Router_Route_Regex('plugins/payment/paypal_pro/(ipn).php', array('module' => 'default', 'controller' => 'direct', 'action' => 'index', 'type' => 'payment', 'plugin_id' => 'paypal-pro'), array('action' => 1)));
     $router->addRoute('v3_thanks_scripts', new Zend_Controller_Router_Route_Regex('plugins/payment/([0-9a-z]+)_?r?/(thanks)?.php', array('module' => 'default', 'controller' => 'direct', 'action' => 'index', 'type' => 'payment'), array('plugin_id' => 1, 'action' => 'thanks')));
     $router->addRoute('v3_affgo', new Zend_Controller_Router_Route('go.php', array('module' => 'aff', 'controller' => 'go', 'action' => 'am3go')));
     $router->addRoute('v3_afflinks', new Zend_Controller_Router_Route('aff.php', array('module' => 'aff', 'controller' => 'aff')));
 }
Ejemplo n.º 2
0
 function initAm3Routes(Zend_Controller_Router_Abstract $router)
 {
     $router->addRoute('v3_urls', new Zend_Controller_Router_Route_Regex('(signup|member|login|logout|profile).php', array('module' => 'default', 'action' => 'index'), array('controller' => 1)));
     $router->addRoute('v3_logout', new Zend_Controller_Router_Route('logout.php', array('module' => 'default', 'controller' => 'login', 'action' => 'logout')));
     $router->addRoute('v3_ipn_scripts', new Zend_Controller_Router_Route_Regex('plugins/payment/([a-z]+)_?r?/(ipn)r?.php', array('module' => 'default', 'controller' => 'direct', 'action' => 'index', 'type' => 'payment'), array('plugin_id' => 1, 'action' => 2)));
     /*
      * @todo Do the same for affiliate programm URLs and links. 
      * 
      */
 }