Page 1 of 1

Errors of the version 1.30.1

PostPosted: 30 Aug 2019, 20:58
by support
Errors of the version 1.30.1

Re: Errors of the version 1.30.1

PostPosted: 12 Sep 2019, 13:50
by support
Improvements for system security

1) Open the file
protected / modules / apartments / controllers / backend / MainController.php.
In the method actionUpdate instead:
Code: Select all
HApartment::saveOther($this->_model); 


insert:
Code: Select all

if 
($this->_model->validate()) {
HApartment::saveOther($this->_model);


Open the file
protected / modules / userads / controllers / MainController.php.
In the method actionUpdate instead:
Code: Select all
HApartment::saveOther($model); 


insert:
Code: Select all

if 
($model->validate()) {
HApartment::saveOther($model);
}
 


2) Open the file protected / helpers / HSite.php
In the method allowUploadAndResizeImage
after the line:
Code: Select all
if ($imagePath && file_exists($imagePath)) 


insert:
Code: Select all
$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;


3) If you use the apache, place the .htaccess file with the following contents in the uploads directory:
Code: Select all
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


if you use nginx, in the config file add the following lines
Code: Select all
location ~ ^/uploads/.*\.(php|pl|py|pyc|pyo|cgi|phtml|inc|pcgi)$ {
deny all;
}


note: don't forget to run the command:

service nginx reload

Re: Errors of the version 1.30.1

PostPosted: 16 Oct 2019, 21:43
by MihaiMihai111
Hello,

I have the following problem. The problem is only on the first page (on the home page - the root of the site).
I cannot change the values of these meta goals => titles and description:

<title>Welcome!</title>
<meta name="description" content="Open Real Estate offers real estate agencies and realtors the technology they need to connect with today&amp;rsquo;s real estate owners, prospective buyers and tenants and Internet surfers.
According to your wish we can add, remove product&amp;#39;s features" />

I searched the entire database and there is nothing in all the application files and there is nothing. I also tried to change the admin as I was told: Translations -> seo. It changes on all pages except this one (home page)
How can i modify it from the code, because it looks like something hardcoded somewhere through the files.

Please help,

Thank you,
Mihai

Re: Errors of the version 1.30.1

PostPosted: 17 Oct 2019, 00:09
by andipas
Hello, “description” for home page you can edit in Translations, section “module_seo”.
Please ask the questions in the corresponding branch - viewforum.php?f=17

Re: Errors of the version 1.30.1

PostPosted: 17 Oct 2019, 20:46
by MihaiMihai111
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

Re: Errors of the version 1.30.1

PostPosted: 17 Oct 2019, 22:30
by MihaiMihai111
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


Resolved