// Fix on htaccess generation
This commit is contained in:
+12
-12
@@ -1570,18 +1570,18 @@ class ToolsCore
|
|||||||
fwrite($write_fd, $domain_rewrite_cond);
|
fwrite($write_fd, $domain_rewrite_cond);
|
||||||
fwrite($write_fd, 'RewriteRule ^c/([a-zA-Z-]+)(-[0-9]+)?/.+\.jpg$ img/c/$1$2.jpg [L]'."\n");
|
fwrite($write_fd, 'RewriteRule ^c/([a-zA-Z-]+)(-[0-9]+)?/.+\.jpg$ img/c/$1$2.jpg [L]'."\n");
|
||||||
}
|
}
|
||||||
// Redirections to dispatcher
|
}
|
||||||
if ($rewrite_settings)
|
// Redirections to dispatcher
|
||||||
{
|
if ($rewrite_settings)
|
||||||
fwrite($write_fd, "\n# Dispatcher\n");
|
{
|
||||||
fwrite($write_fd, "RewriteCond %{REQUEST_FILENAME} -s [OR]\n");
|
fwrite($write_fd, "\n# Dispatcher\n");
|
||||||
fwrite($write_fd, "RewriteCond %{REQUEST_FILENAME} -l [OR]\n");
|
fwrite($write_fd, "RewriteCond %{REQUEST_FILENAME} -s [OR]\n");
|
||||||
fwrite($write_fd, "RewriteCond %{REQUEST_FILENAME} -d\n");
|
fwrite($write_fd, "RewriteCond %{REQUEST_FILENAME} -l [OR]\n");
|
||||||
fwrite($write_fd, $domain_rewrite_cond);
|
fwrite($write_fd, "RewriteCond %{REQUEST_FILENAME} -d\n");
|
||||||
fwrite($write_fd, "RewriteRule ^.*$ - [NC,L]\n");
|
fwrite($write_fd, $domain_rewrite_cond);
|
||||||
fwrite($write_fd, $domain_rewrite_cond);
|
fwrite($write_fd, "RewriteRule ^.*$ - [NC,L]\n");
|
||||||
fwrite($write_fd, "RewriteRule ^.*\$ index.php [NC,L]\n");
|
fwrite($write_fd, $domain_rewrite_cond);
|
||||||
}
|
fwrite($write_fd, "RewriteRule ^.*\$ index.php [NC,L]\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ class ShopUrlCore extends ObjectModel
|
|||||||
'fields' => array(
|
'fields' => array(
|
||||||
'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||||
'main' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
'main' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||||
'domain' => array('type' => self::TYPE_STRING, 'required' => true, 'size' => 255),
|
'domain' => array('type' => self::TYPE_STRING, 'required' => true, 'size' => 255, 'validate' => 'isCleanHtml'),
|
||||||
'domain_ssl' => array('type' => self::TYPE_STRING, 'size' => 255),
|
'domain_ssl' => array('type' => self::TYPE_STRING, 'size' => 255, 'validate' => 'isCleanHtml'),
|
||||||
'id_shop' => array('type' => self::TYPE_INT, 'required' => true),
|
'id_shop' => array('type' => self::TYPE_INT, 'required' => true),
|
||||||
'physical_uri' => array('type' => self::TYPE_STRING, 'size' => 64),
|
'physical_uri' => array('type' => self::TYPE_STRING, 'size' => 64),
|
||||||
'virtual_uri' => array('type' => self::TYPE_STRING, 'size' => 64),
|
'virtual_uri' => array('type' => self::TYPE_STRING, 'size' => 64),
|
||||||
|
|||||||
@@ -73,10 +73,10 @@ class Blockcontact extends Module
|
|||||||
<form action="'.Tools::htmlentitiesutf8($_SERVER['REQUEST_URI']).'" method="post">
|
<form action="'.Tools::htmlentitiesutf8($_SERVER['REQUEST_URI']).'" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label for="telnumber">'.$this->l('Telephone number:').'</label>
|
<label for="telnumber">'.$this->l('Telephone number:').'</label>
|
||||||
<input type="text" id="telnumber" name="telnumber" value="'.((Configuration::get('blockcontact_telnumber') != '') ? Configuration::get('blockcontact_telnumber') : '').'" />
|
<input type="text" id="telnumber" name="telnumber" value="'.((Configuration::get('blockcontact_telnumber') != '') ? Tools::safeOutput(Configuration::get('blockcontact_telnumber')) : '').'" />
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
<label for="email">'.$this->l('Email:').'</label>
|
<label for="email">'.$this->l('Email:').'</label>
|
||||||
<input type="text" id="email" name="email" value="'.((Configuration::get('blockcontact_email') != '') ? Configuration::get('blockcontact_email') : '').'" />
|
<input type="text" id="email" name="email" value="'.((Configuration::get('blockcontact_email') != '') ? Tools::safeOutput(Configuration::get('blockcontact_email')) : '').'" />
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
<div class="margin-form">
|
<div class="margin-form">
|
||||||
<input type="submit" name="submitModule" value="'.$this->l('Update settings').'" class="button" /></center>
|
<input type="submit" name="submitModule" value="'.$this->l('Update settings').'" class="button" /></center>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ countriesNeedZipCode = new Array();
|
|||||||
{if isset($country.states) && $country.contains_states}
|
{if isset($country.states) && $country.contains_states}
|
||||||
countries[{$country.id_country|intval}] = new Array();
|
countries[{$country.id_country|intval}] = new Array();
|
||||||
{foreach from=$country.states item='state' name='states'}
|
{foreach from=$country.states item='state' name='states'}
|
||||||
countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state}', 'name' : '{$state.name|addslashes}'{rdelim});
|
countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state|intval}', 'name' : '{$state.name|addslashes}'{rdelim});
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{/if}
|
{/if}
|
||||||
{if $country.need_identification_number}
|
{if $country.need_identification_number}
|
||||||
@@ -50,7 +50,7 @@ countriesNeedZipCode = new Array();
|
|||||||
{/foreach}
|
{/foreach}
|
||||||
{/if}
|
{/if}
|
||||||
$(function(){ldelim}
|
$(function(){ldelim}
|
||||||
$('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state}{else}{if isset($address)}{$address->id_state|intval}{/if}{/if}]').attr('selected', true);
|
$('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}{if isset($address)}{$address->id_state|intval}{/if}{/if}]').attr('selected', true);
|
||||||
{rdelim});
|
{rdelim});
|
||||||
//]]>
|
//]]>
|
||||||
{if $vat_management}
|
{if $vat_management}
|
||||||
|
|||||||
Reference in New Issue
Block a user