S
S
Sergey Nizhny Novgorod2015-04-28 02:40:36
CMS
Sergey Nizhny Novgorod, 2015-04-28 02:40:36

How to find out from which file the script is loaded?

Good afternoon.
On the site at the end of each article there is a social sharing button: Example: lieman.ru/articles/lubov/?idnews=168 - The buttons themselves: take.ms/11f11
I can't find the file through which the script's friend goes. Can you tell me, at least by what principle to look for them? Non-standard CMS Farpost.cms is used.
All sources look like this:
//
static function getList($id_user) {
$pid = getID('exshelp');
if (empty($pid)) return false;
$sql = 'idcat = '.$pid.' and id_user='.$id_user.' and public = 1';
$cnt = docs()->count($sql);
$mode = 'COMMON';
$nav = pager::getObj($cnt, self::$pageSize);
$limit = $nav->
$docs = new doc_template();
$retObj = $docs->getContentContainer($pid);
$retObj->tag = 'MYEXSHELP';
if ($cnt || $cnt === -1) {
$docsFromSql = $docs->fetch($pid, 'gmtdate DESC', ' and '.$sql, $limit,false,$mode);
if ($docs->lastFetchCount < 0) $docs->lastFetchCount = sizeof($docsFromSql);
$docs->lastFetchFiles = $docsFiles = $docs->getFiles($docsFromSql,true);
foreach ($docsFromSql as &$item) {
$doc = $docs->getContentObj($item, $docsFiles, $mode);
if (!$doc) continue;
$doc->tag = $docs->shortName.'_'.$mode;
$retObj->addChild($doc);
//

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danil Sysoev, 2015-04-28
@YoungOldMan

getContentObj, getObj are the functions that get called. Look for it in a file something like function
In general, you can take the name of the function and search the contents of the files on the server, what files it will find, see where these functions are registered. But most likely in cms there should be a file with a set of these functions. Or a folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question