'local', 'name' => 'kUtRL', 'home' => 'http://kutrl.fr', 'allow_custom_hash' => true ); protected function init() { $protocols = (string) $this->settings->kutrl_srv_local_protocols; $this->config['allow_protocols'] = empty($protocols) ? array() : explode(',',$protocols); $this->config['url_base'] = $this->core->blog->url.$this->core->url->getBase('kutrl').'/'; $this->config['url_min_len'] = strlen($this->url_base) + 2; } public function saveSettings() { $this->settings->put('kutrl_srv_local_protocols',$_POST['kutrl_srv_local_protocols'],'string'); $this->settings->put('kutrl_srv_local_public',isset($_POST['kutrl_srv_local_public']),'boolean'); $this->settings->put('kutrl_srv_local_css',$_POST['kutrl_srv_local_css'],'string'); $this->settings->put('kutrl_srv_local_404_active',isset($_POST['kutrl_srv_local_404_active']),'boolean'); } public function settingsForm() { echo '
'.__('Settings:').'
'. ''. ''. __('Use comma seperated list like: "http:,https:,ftp:"'). '
'. ''. ''. form::textarea('kutrl_srv_local_css',50,3,html::escapeHTML($this->settings->kutrl_srv_local_css),'',2). '
'. ''.__('You can add here special cascading style sheet. Body of page has class "dc-kutrl" and widgets have class "shortenkutrlwidget" and "rankkutrlwidget".').'
'. ''. ''.__('If this is not activated, the default 404 page of the theme will be display.').'
'. ''.__('Note:').'
'. ''.
__('This service use your own Blog to shorten and serve URL.').'
'.
sprintf(__('This means that with this service short links start with "%s".'),$this->url_base).
'
'. __("You can use Dotclear's plugin called myUrlHandlers to change short links prefix on your blog."); if (preg_match('/index\.php/',$this->url_base)) { echo '
'.
__("We recommand that you use a rewrite engine in order to remove 'index.php' from your blog's URL.").
'
'.
__("You can find more about this on the Dotclear's documentation.").
'
'.__('There are two templates delivered with kUtRL, if you do not use default theme, you may adapt them to yours.').'
'.
__('Files are in plugin directory /default-templates, just copy them into your theme and edit them.').'