/var/www/komiprop.ru/engine/class/mysql4/database.php [ 34 ]
29
30 function getConnection() {
31 if (!$this->is_connect) {
32 $result = mysql_connect($this->hostName_db, $this->userName_db, $this->password_db);
33 if (!$result) {
34 throw new ErrorException("Ошибка соединения с СУБД. Host=".$this->hostName_db."; user=".$this->userName_db);
35 }
36
37 //Выбираем Базу
38 if ($this->name_db != null) {
39 if (!mysql_select_db($this->name_db)) {
-
/var/www/komiprop.ru/engine/class/mysql4/query.php [ 145 ] » Database->getConnection()
140 } 141 } 142 143 if ($conn == null) { 144 global $database; 145 $conn = @$database->getConnection(); 146 } 147 148 $microtimerInclude = class_exists("Microtimer"); 149 if (DA_DEBUG_DEV > 0 && $microtimerInclude) Microtimer::saveQuery($this->query); 150 $this->result = mysql_query($this->query, $conn);
-
/var/www/komiprop.ru/engine/class/mysql4/query.php [ 66 ] » QuerySql->execute(arguments)
0
NULL
1
bool TRUE
2
string(5) "obj31"
3
integer 0
61 public function setRowStart($i) { 62 $this->rowStart = $i; 63 } 64 65 public function exec($useCashe=false, $cacheName = null, $cacheTimeout = 0) { 66 $this->execute(null, $useCashe, $cacheName, $cacheTimeout); 67 } 68 69 public function getSqlQuery() { 70 $result = ""; 71 $result = "SELECT ".$this->select." FROM ".$this->from;
-
/var/www/komiprop.ru/engine/class/Object.php [ 101 ] » QuerySql->exec(arguments)
0
bool TRUE
1
string(5) "obj31"
96 if ($idObject == null) return null; 97 $query = new QuerySql(); 98 $query->setSelect("id_instance_class, id_object_handler, use_domain_isolation, seq_start_value, id_object, name, sequence, parent_object, id_field_order, order_type, table_name, id_field_caption, object_type, folder_name"); 99 $query->setFrom("da_object"); 100 $query->setWhere("id_object = $idObject"); 101 $query->exec(true, "obj".$idObject); 102 103 $p = null; 104 if ($row = $query->getNextResultObject()) { 105 $p = new Object(); 106 $p->idObject = $row->id_object;
-
/var/www/komiprop.ru/engine/class/Object.php [ 277 ] » Object::loadArray(arguments)
0
integer 31
272 $s = daGetFile($fn); 273 $object = unserialize($s); 274 return $object; 275 } 276 } 277 $object = Object::loadArray($idObject); 278 return $object; 279 } 280 281 } 282 /*
-
/var/www/komiprop.ru/engine/class/InstanceAbstract.php [ 873 ] » Object::getById(arguments)
0
integer 31
868 $instanceQuery->setIdLocale($locale->getLocale()); 869 $instanceQuery->setIdObjectMain($idObject); 870 $instanceQuery->setDirectQuery(false); 871 872 // для совместимости 873 $ob = Object::getById($idObject); 874 if ($ob == null) throw new ErrorException("Объект с id=".$idObject." не существует."); 875 if ($useDomainIsolation && $instanceQuery->getIdDomain() == null) { 876 if ($ob->useDomainIsolation()) { 877 $idDomain = $this->getIdDomainInstance(); 878 $instanceQuery->setIdDomain($idDomain);
-
/var/www/komiprop.ru/engine/class/InstanceAbstract.php [ 861 ] » InstanceAbstract->getDataByInstanceQuery(arguments)
0
object InstanceQuery(18)
{ private select => NULL private from => NULL private where => string(42) "(name='http://komiprop.ru') AND (active=1)" private order => NULL private groupBy => NULL private count => NULL private start => NULL private idObjectMain => integer 31 private loadProperty => bool TRUE private idDomain => NULL private usedObjects => array(0) private useCache => bool FALSE private loadData => bool TRUE private isDirectQuery => bool FALSE private idLocale => integer 1 private localeType => integer 1 private loadClob => bool FALSE private selectFields => array(0) }
856 return $this->getInstancesData($where, $order, $count, $start, $loadData, $useCache, $loadClob, $loadProperty); 857 } 858 859 public function getInstancesData($where=null, $order=null, $count=null, $start=null, $loadData=true, $useCache=false, $loadClob=false, $loadProperty=true, $localeType = 1) { 860 $iq = new InstanceQuery($where, $order, $count, $start, $loadData, $useCache, $loadClob, $loadProperty, $localeType); 861 $data = $this->getDataByInstanceQuery($iq); 862 return $data; 863 } 864 865 public function getDataByInstanceQuery(InstanceQuery $instanceQuery, $useDomainIsolation=true) { 866 global $locale;
-
/var/www/komiprop.ru/engine/class/InstanceAbstract.php [ 856 ] » InstanceAbstract->getInstancesData(arguments)
0
string(42) "(name='http://komiprop.ru') AND (active=1)"
1
NULL
2
NULL
3
NULL
4
bool TRUE
5
bool FALSE
6
bool FALSE
7
bool TRUE
851 } 852 public function getIdInstances($where=null, $order=null, $count=null, $start=null, $useCache=false) { 853 return $this->getInstancesData($where, $order, $count, $start, false, $useCache); 854 } 855 public function getData($where=null, $order=null, $count=null, $start=null, $loadData=true, $useCache=false, $loadClob=false, $loadProperty=true) { 856 return $this->getInstancesData($where, $order, $count, $start, $loadData, $useCache, $loadClob, $loadProperty); 857 } 858 859 public function getInstancesData($where=null, $order=null, $count=null, $start=null, $loadData=true, $useCache=false, $loadClob=false, $loadProperty=true, $localeType = 1) { 860 $iq = new InstanceQuery($where, $order, $count, $start, $loadData, $useCache, $loadClob, $loadProperty, $localeType); 861 $data = $this->getDataByInstanceQuery($iq);
-
/var/www/komiprop.ru/engine/class/Domain.php [ 130 ] » InstanceAbstract->getData(arguments)
0
string(42) "(name='http://komiprop.ru') AND (active=1)"
125 $name = "http://".$name; 126 //$name = mysql_real_escape_string($name); 127 $tmp = new Domain(null); 128 $where = "name='".$name."'"; 129 if ($onlyActive) $where = plAddWhere($where, "active=1"); 130 $data = $tmp->getData($where); 131 if (count($data) == 1) { 132 $d = $data[0]; 133 } 134 } 135 }
-
/var/www/komiprop.ru/engine/init.php [ 185 ] » Domain::loadByHttpHost()
180 181 // define('STAT_METHOD', 1); //1 - статистика наполняется через движок 182 // define('STAT_PATH_PR', 'engine/stat/'); 183 184 global $daDomain; // содержит информацию о текущем домене 185 $daDomain = Domain::loadByHttpHost(); 186 if ($daDomain == null) { 187 // Домен не определён, устанавливаем домен по умолчанию. 188 $daDomain = Domain::loadByIdDomain(getSysParamValue("id_domain_default")); 189 if ($daDomain == null || !$daDomain->isActive()) { 190 echo "Не удалось определить домен";
-
/var/www/komiprop.ru/start.php [ 4 ] » include(arguments)
0
string(36) "/var/www/komiprop.ru/engine/init.php"
1 <?php 2 define("DA_ROOT", realpath("./")."/"); 3 define('INIT_MOD', 1 + 2 + 4 + 8 + 0 + 32 + 256); 4 include DA_ROOT."engine/init.php"; 5 6 include DA_ROOT."project/modules/menu.php"; 7 ?> 8 <!DOCTYPE HTML> 9 <html>
-
/var/www/komiprop.ru/map.php [ 41 ] » include(arguments)
0
string(30) "/var/www/komiprop.ru/start.php"
36 $_GET['url'] = $url; 37 if (preg_match("/\.php$/", $url)) { 38 $_GET['url'] = ''; 39 } 40 $daPage->setTemplateName("start.php"); 41 include './start.php'; 42 } 43 ?>