Revize 643
Přidáno uživatelem Michal Kliment před více než 14 roky(ů)
freenetis/trunk/kohana/application/controllers/settings.php | ||
---|---|---|
$this->form->input('domain')->label(url_lang::lang('texts.Domain').':')->rules('required|length[3,100]')->value(url::domain());
|
||
$this->form->input('suffix')->label(url_lang::lang('texts.Suffix').':')->rules('required|valid_suffix')->value(url::suffix());
|
||
|
||
$this->form->radio('clean_urls')->
|
||
label(url_lang::lang('texts.Clean URLs').':')->
|
||
options(array('1'=>url_lang::lang('texts.Yes'),'0'=>url_lang::lang('texts.No')))->
|
||
default(!$this->settings->get('index_page'))->
|
||
help(url_lang::lang('texts.URL addresses without index.php.'));
|
||
$this->form->radio('clean_urls')->label(url_lang::lang('texts.Clean URLs').':')->options(array('1'=>url_lang::lang('texts.Yes'),'0'=>url_lang::lang('texts.No')))->default(!$this->settings->get('index_page'))->help(url_lang::lang('texts.URL addresses without index.php.'));
|
||
|
||
// load .htaccess sample file
|
||
$htaccessFile = file('.htaccess-sample');
|
||
... | ... | |
foreach ($htaccessFile as $line)
|
||
$textarea .= htmlentities ($line);
|
||
|
||
$this->form->textarea('htaccess')->
|
||
label(url_lang::lang('texts.Content of file htaccess').':')->
|
||
value($textarea)->
|
||
help(url_lang::lang('texts.It\'s not possible to write your htacess file for clean URLS.').' '.url_lang::lang('texts.You must create it manually and paste the following text into it.'));
|
||
$this->form->textarea('htaccess')->label(url_lang::lang('texts.Content of file htaccess').':')->value($textarea)->help(url_lang::lang('texts.It\'s not possible to write your htacess file for clean URLS.').' '.url_lang::lang('texts.You must create it manually and paste the following text into it.'));
|
||
}
|
||
|
||
$this->form->submit('submit')->value(url_lang::lang('texts.Save'));
|
Také k dispozici: Unified diff
Opravena mensi chybicka - odsazovani nekolikanasobneho pristupovani k objektu na nakolik radku z neznameho duvodu funguje spolehlivě na php 5.3, ale ne na php 5.2...