HApartment::saveOther($this->_model);
if ($this->_model->validate()) {
HApartment::saveOther($this->_model);
}
HApartment::saveOther($model);
if ($model->validate()) {
HApartment::saveOther($model);
}
if ($imagePath && file_exists($imagePath)) {
$allowedExtensions = param('allowedImgExtensions', array('jpg', 'jpeg', 'gif', 'png'));
$allowMimeTypes = param('allowedImgMimeTypes', array('image/gif', 'image/jpeg', 'image/png'));
$pathInfo = pathinfo($imagePath);
if (!in_array(strtolower($pathInfo['extension']), $allowedExtensions)) {
return $return;
}
$fileInfo = (function_exists('finfo_open')) ? finfo_open(FILEINFO_MIME_TYPE) : null;
if ($fileInfo && !in_array(finfo_file($fileInfo, $imagePath), $allowMimeTypes)) {
return $return;
}
RemoveHandler .cgi .pl .py .pyc .pyo .phtml .php .php3 .php4 .php5 .php6 .pcgi .pcgi3 .pcgi4 .pcgi5 .pchi6 .inc
RemoveType .cgi .pl .py .pyc .pyo .phtml .php .php3 .php4 .php5 .php6 .pcgi .pcgi3 .pcgi4 .pcgi5 .pchi6 .inc
Sethandler none
Sethandler default-handler
location ~ ^/uploads/.*\.(php|pl|py|pyc|pyo|cgi|phtml|inc|pcgi)$ {
deny all;
}
MihaiMihai111 wrote:Hello,
As I said, the changes made in the admin interface are not valid for the first page. From the code where should I change?
Please help,
Thank you,
Mihai
Users browsing this forum: No registered users and 1 guest