Exemple #1
0
 public function register(\Box_App &$app)
 {
     $app->get('/filemanager', 'get_index', array(), get_class($this));
     $app->get('/filemanager/ide', 'get_ide', array(), get_class($this));
     $app->get('/filemanager/editor', 'get_editor', array(), get_class($this));
     $app->get('/filemanager/icons', 'get_icons', array(), get_class($this));
 }
Exemple #2
0
 public function register(\Box_App &$app)
 {
     $app->get('/forum', 'get_index', array(), get_class($this));
     $app->get('/forum/profile/:id', 'get_profile', array('id' => '[0-9]+'), get_class($this));
     $app->get('/forum/:id', 'get_forum', array('id' => '[0-9]+'), get_class($this));
     $app->get('/forum/topic/:id', 'get_topic', array('id' => '[0-9]+'), get_class($this));
 }
Exemple #3
0
 public function register(\Box_App &$app)
 {
     $app->get('', 'get_index', array(), get_class($this));
     $app->get('/', 'get_index', array(), get_class($this));
     $app->get('/index', 'get_index', array(), get_class($this));
     $app->get('/index/', 'get_index', array(), get_class($this));
 }
Exemple #4
0
 public function register(\Box_App &$app)
 {
     $app->get('/system', 'get_index', array(), get_class($this));
     $app->get('/system/', 'get_index', array(), get_class($this));
     $app->get('/system/index', 'get_index', array(), get_class($this));
     $app->get('/system/activity', 'get_activity', array(), get_class($this));
 }
Exemple #5
0
 public function register(\Box_App &$app)
 {
     $app->get('/support', 'get_tickets', array(), get_class($this));
     $app->get('/support/ticket/:id', 'get_ticket', array(), get_class($this));
     $app->get('/support/contact-us', 'get_contact_us', array(), get_class($this));
     $app->get('/support/contact-us/conversation/:hash', 'get_contact_us_conversation', array('hash' => '[a-z0-9]+'), get_class($this));
 }
Exemple #6
0
 /**
  * Methods maps admin areas urls to corresponding methods
  * Always use your module prefix to avoid conflicts with other modules
  * in future
  *
  *
  * @example $app->get('/example/test',      'get_test', null, get_class($this)); // calls get_test method on this class
  * @example $app->get('/example/:id',        'get_index', array('id'=>'[0-9]+'), get_class($this));
  * @param \Box_App $app
  */
 public function register(\Box_App &$app)
 {
     $app->get('/example', 'get_index', array(), get_class($this));
     $app->get('/example/test', 'get_test', array(), get_class($this));
     $app->get('/example/user/:id', 'get_user', array('id' => '[0-9]+'), get_class($this));
     $app->get('/example/api', 'get_api', array(), get_class($this));
 }
Exemple #7
0
 public function register(\Box_App &$app)
 {
     $app->get('/email/history/', 'get_history', array(), get_class($this));
     $app->get('/email/history', 'get_history', array(), get_class($this));
     $app->get('/email/templates', 'get_index', array(), get_class($this));
     $app->get('/email/template/:id', 'get_template', array('id' => '[0-9]+'), get_class($this));
     $app->get('/email/:id', 'get_email', array('id' => '[0-9]+'), get_class($this));
 }
Exemple #8
0
 public function register(\Box_App &$app)
 {
     $app->post('/api/:role/:class/:method', 'post_method', array('role', 'class', 'method'), get_class($this));
     $app->get('/api/:role/:class/:method', 'get_method', array('role', 'class', 'method'), get_class($this));
     //all other requests are error requests
     $app->get('/api/:page', 'show_error', array('page' => '(.?)+'), get_class($this));
     $app->post('/api/:page', 'show_error', array('page' => '(.?)+'), get_class($this));
 }
Exemple #9
0
 public function register(\Box_App &$app)
 {
     $app->get('/order', 'get_products', array(), get_class($this));
     $app->get('/order/service', 'get_orders', array(), get_class($this));
     $app->get('/order/:id', 'get_configure_product', array('id' => '[0-9]+'), get_class($this));
     $app->get('/order/:slug', 'get_configure_product_by_slug', array('slug' => '[a-z0-9-]+'), get_class($this));
     $app->get('/order/service/manage/:id', 'get_order', array('id' => '[0-9]+'), get_class($this));
 }
Exemple #10
0
 public function register(\Box_App &$app)
 {
     $app->get('/news', 'get_index', array(), get_class($this));
     $app->get('/news/', 'get_index', array(), get_class($this));
     $app->get('/news/index', 'get_index', array(), get_class($this));
     $app->get('/news/index/', 'get_index', array(), get_class($this));
     $app->get('/news/post/:id', 'get_post', array('id' => '[0-9]+'), get_class($this));
 }
Exemple #11
0
 public function register(\Box_App &$app)
 {
     $app->get('/staff/login', 'get_login', array(), get_class($this));
     $app->get('/staff/manage/:id', 'get_manage', array('id' => '[0-9]+'), get_class($this));
     $app->get('/staff/group/:id', 'get_group', array('id' => '[0-9]+'), get_class($this));
     $app->get('/staff/profile', 'get_profile', array(), get_class($this));
     $app->get('/staff/logins', 'get_history', array(), get_class($this));
 }
Exemple #12
0
 public function register(\Box_App &$app)
 {
     $app->get('/forum', 'get_index', array(), get_class($this));
     $app->get('/forum/members-list', 'get_members', array(), get_class($this));
     $app->get('/forum/topics.rss', 'get_rss', array(), get_class($this));
     $app->get('/forum/:forum', 'get_forum', array('forum' => '[a-z0-9-]+'), get_class($this));
     $app->get('/forum/:forum/:topic', 'get_forum_topic', array('forum' => '[a-z0-9-]+', 'topic' => '[a-z0-9-]+'), get_class($this));
 }
Exemple #13
0
 public function register(\Box_App &$app)
 {
     $app->get('/order', 'get_index', array(), get_class($this));
     $app->get('/order/', 'get_index', array(), get_class($this));
     $app->get('/order/index', 'get_index', array(), get_class($this));
     $app->get('/order/manage/:id', 'get_order', array('id' => '[0-9]+'), get_class($this));
     $app->post('/order/new', 'get_new', array(), get_class($this));
 }
Exemple #14
0
 public function register(\Box_App &$app)
 {
     $app->get('/client', 'get_index', array(), get_class($this));
     $app->get('/client/', 'get_index', array(), get_class($this));
     $app->get('/client/index', 'get_index', array(), get_class($this));
     $app->get('/client/login/:id', 'get_login', array('id' => '[0-9]+'), get_class($this));
     $app->get('/client/manage/:id', 'get_manage', array('id' => '[0-9]+'), get_class($this));
     $app->get('/client/group/:id', 'get_group', array('id' => '[0-9]+'), get_class($this));
     $app->get('/client/create', 'get_create', array(), get_class($this));
     $app->get('/client/logins', 'get_history', array(), get_class($this));
 }
Exemple #15
0
 public function register(\Box_App &$app)
 {
     $app->get('/product', 'get_index', array(), get_class($this));
     $app->get('/product/promos', 'get_promos', array(), get_class($this));
     $app->get('/product/promo/:id', 'get_promo', array('id' => '[0-9]+'), get_class($this));
     $app->get('/product/manage/:id', 'get_manage', array('id' => '[0-9]+'), get_class($this));
     $app->get('/product/addons', 'get_addons', array(), get_class($this));
     $app->get('/product/addon/:id', 'get_addon_manage', array('id' => '[0-9]+'), get_class($this));
     $app->get('/product/category/:id', 'get_cat_manage', array('id' => '[0-9]+'), get_class($this));
 }
Exemple #16
0
 public function register(\Box_App &$app)
 {
     //@deprecated
     $app->get('/client/me', 'get_profile', array(), get_class($this));
     $app->get('/client/reset-password-confirm/:hash', 'get_reset_password_confirm', array('hash' => '[a-z0-9]+'), get_class($this));
     $app->get('/client', 'get_client_index', array(), get_class($this));
     $app->get('/client/logout', 'get_client_logout', array(), get_class($this));
     $app->get('/client/:page', 'get_client_page', array('page' => '[a-z0-9-]+'), get_class($this));
     $app->get('/client/confirm-email/:hash', 'get_client_confirmation', array('page' => '[a-z0-9-]+'), get_class($this));
 }
Exemple #17
0
 public function register(\Box_App &$app)
 {
     $app->get('/invoice', 'get_invoices', array(), get_class($this));
     $app->post('/invoice', 'get_invoices', array(), get_class($this));
     $app->get('/invoice/:hash', 'get_invoice', array('hash' => '[a-z0-9]+'), get_class($this));
     $app->post('/invoice/:hash', 'get_invoice', array('hash' => '[a-z0-9]+'), get_class($this));
     $app->get('/invoice/print/:hash', 'get_invoice_print', array('hash' => '[a-z0-9]+'), get_class($this));
     $app->post('/invoice/print/:hash', 'get_invoice_print', array('hash' => '[a-z0-9]+'), get_class($this));
     $app->get('/invoice/banklink/:hash/:id', 'get_banklink', array('id' => '[0-9]+', 'hash' => '[a-z0-9]+'), get_class($this));
     $app->get('/invoice/thank-you/:hash', 'get_thankyoupage', array('hash' => '[a-z0-9]+'), get_class($this));
     $app->get('/invoice/pdf/:hash', 'get_pdf', array('hash' => '[a-z0-9]+'), get_class($this));
 }
Exemple #18
0
 public function register(\Box_App &$app)
 {
     $app->get('/massmailer', 'get_index', array(), get_class($this));
     $app->get('/massmailer/message/:id', 'get_edit', array('id' => '[0-9]+'), get_class($this));
 }
Exemple #19
0
 public function register(\Box_App &$app)
 {
     $app->get('/servicedomain', 'get_index', null, get_class($this));
     $app->get('/servicedomain/tld/:tld', 'get_tld', array('tld' => '[/.a-z0-9]+'), get_class($this));
     $app->get('/servicedomain/registrar/:id', 'get_registrar', array('id' => '[0-9]+'), get_class($this));
 }
Exemple #20
0
 /**
  * Methods maps client areas urls to corresponding methods
  * Always use your module prefix to avoid conflicts with other modules
  * in future
  *
  * @param \Box_App $app - returned by reference
  */
 public function register(\Box_App &$app)
 {
     $app->get('/example', 'get_index', array(), get_class($this));
     $app->get('/example/protected', 'get_protected', array(), get_class($this));
 }
Exemple #21
0
 public function register(\Box_App &$app)
 {
     $app->get('/servicedownloadable/get-file/:id', 'get_download', array('id' => '[0-9]+'), get_class($this));
 }
Exemple #22
0
 public function register(\Box_App &$app)
 {
     $app->get('/kb', 'get_kb', array(), get_class($this));
     $app->get('/kb/:category', 'get_kb_category', array('category' => '[a-z0-9-]+'), get_class($this));
     $app->get('/kb/:category/:slug', 'get_kb_article', array('category' => '[a-z0-9-]+', 'slug' => '[a-z0-9-]+'), get_class($this));
 }
Exemple #23
0
 public function register(\Box_App &$app)
 {
     $app->get('/me', 'get_profile', array(), '\\Box\\Mod\\Client\\Controller\\Client');
     $app->get('/balance', 'get_balance', array(), '\\Box\\Mod\\Client\\Controller\\Client');
     $app->get('/reset-password-confirm/:hash', 'get_reset_password_confirm', array('hash' => '[a-z0-9]+'), '\\Box\\Mod\\Client\\Controller\\Client');
     $app->get('/emails', 'get_emails', array(), '\\Box\\Mod\\Email\\Controller\\Client');
     $app->get('/banklink/:hash/:id', 'get_banklink', array('id' => '[0-9]+', 'hash' => '[a-z0-9]+'), '\\Box\\Mod\\Invoice\\Controller\\Client');
     $app->get('/blog', 'get_news', array(), '\\Box\\Mod\\News\\Controller\\Client');
     $app->get('/blog/:slug', 'get_news_item', array('slug' => '[a-z0-9-]+'), '\\Box\\Mod\\News\\Controller\\Client');
     $app->get('/service', 'get_orders', array(), '\\Box\\Mod\\Order\\Controller\\Client');
     $app->get('/service/manage/:id', 'get_order', array('id' => '[0-9]+'), '\\Box\\Mod\\Order\\Controller\\Client');
     $app->get('/contact-us', 'get_contact_us', array(), '\\Box\\Mod\\Support\\Controller\\Client');
     $app->get('/contact-us/conversation/:hash', 'get_contact_us_conversation', array('hash' => '[a-z0-9]+'), '\\Box\\Mod\\Support\\Controller\\Client');
     $service = $this->di['mod_service']('redirect');
     $redirects = $service->getRedirects();
     foreach ($redirects as $redirect) {
         $app->get('/' . $redirect['path'], 'do_redirect', array(), get_class($this));
     }
 }
Exemple #24
0
 /**
  * Methods maps client areas urls to corresponding methods
  * Always use your module prefix to avoid conflicts with other modules
  * in future
  *
  * @param \Box_App $app - returned by reference
  */
 public function register(\Box_App &$app)
 {
     $app->get('/embed/:what', 'get_object', array('what' => '[a-z0-9-]+'), get_class($this));
 }
 public function register(Box_App &$app)
 {
     $app->get('/embed', 'get_index', array(), get_class($this));
 }
Exemple #26
0
 public function register(\Box_App &$app)
 {
     $app->get('/currency/manage/:code', 'get_manage', array('code' => '[a-zA-Z]+'), get_class($this));
 }
Exemple #27
0
 public function register(\Box_App &$app)
 {
     $app->get('/servicesolusvm', 'get_index', array(), get_class($this));
     $app->get('/servicesolusvm/import/clients', 'get_import_clients', array(), get_class($this));
     $app->get('/servicesolusvm/import/servers', 'get_import_servers', array(), get_class($this));
 }
Exemple #28
0
 public function register(\Box_App &$app)
 {
     $app->get('/kb', 'get_index', array(), get_class($this));
     $app->get('/kb/article/:id', 'get_post', array('id' => '[0-9]+'), get_class($this));
     $app->get('/kb/category/:id', 'get_cat', array('id' => '[0-9]+'), get_class($this));
 }
Exemple #29
0
 public function register(\Box_App &$app)
 {
     $app->get('/notification', 'get_index', array(), get_class($this));
 }
Exemple #30
0
 public function register(\Box_App &$app)
 {
     $app->get('/formbuilder/:id', 'get_form', array('id' => '[0-9]+'), get_class($this));
 }