There was a task to raise the site. There is FTP access, but to configure nginx you need to understand which CMS or Framework is being used. Automatic recognition of the site's engine via itrack.ru did not produce results. Here is the code index.php

<?php include('include/head.php'); $TITLE = c_utils::$config['site_name_full']; $KEYWORDS = c_utils::$config['keywords']; $METADESC = c_utils::$config['metadesc']; //--------- Новости --------- require(PATH_CLASS.'news.php'); $ntree = new CDBTree($utils, $utils->DBT['nstruct'], $utils->DBT['ncat'], 'idcat', array('left' => 'cleft', 'right' => 'cright', 'level' => 'clevel')); $nstruct = new c_struct($ntree, $utils->DBT['nstruct'], $utils->DBT['ncat']); $nstruct->sql_connect(); $news = new c_news($utils->DBT['news'], $utils->DBT['ncat'], $utils->DBT['news_media'], $utils->DBT['media'], 'idnews'); $news->sql_connect(); $res_news = $news->news_list( 1, 1, 0, 1, '', date('dmY', c_utils::now()), '', c_utils::$config['npp_main'] ); //--------------------------- include(PATH_TEMPLATES.'index.php'); ?> 

And this is the folder structure inside www

enter image description here

  • 3
    You did not think that this is possible the usual self? - Al Mr
  • one
    With probability close to one, this is not an engine - andreymal
  • Many frameworks use MVC, and there is no such structure here, so most likely this is not a Framework. Most likely samopi. - SOFQ3
  • How to configure nginx in this case? - Nikolay Korotkov
  • @NikolayKorotkov and what exactly is the problem? It seems that all PHP sites are configured the same regardless of the engine - andreymal

1 answer 1

It looks like Magento.

See, for example, the description of the CDBTree class .