Ejemplo n.º 1
0
 public function actionIndex()
 {
     XenForo_Application::autoload('Shorten_URL');
     $methods = Shorten_URL::getMethodList();
     $methodDetails = array();
     $default = XenForo_Application::get('options')->suDefaultShortener;
     foreach ($methods as $method) {
         $class = 'Shorten_URL_' . $method;
         XenForo_Application::autoload($class);
         $methodDetails[$method] = call_user_func(array($class, 'about'));
     }
     return $this->responseView('XenForo_ViewAdmin_Su_Method_List', 'su_method_list', array('methods' => $methodDetails, 'default' => $default, 'suEnabled' => XenForo_Application::get('options')->suEnabled));
 }