Deprecated: Return type of ActiveRecord::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admin/web/mr-profipol.ru/public_html/cms/mod_orm/orm.func.php on line 1477

Deprecated: Return type of ActiveRecord::offsetGet($index) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admin/web/mr-profipol.ru/public_html/cms/mod_orm/orm.func.php on line 1467

Deprecated: Return type of ActiveRecord::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admin/web/mr-profipol.ru/public_html/cms/mod_orm/orm.func.php on line 1484

Deprecated: Return type of ActiveRecord::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admin/web/mr-profipol.ru/public_html/cms/mod_orm/orm.func.php on line 1496

Deprecated: Return type of ActiveRecord::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admin/web/mr-profipol.ru/public_html/cms/mod_orm/orm.func.php on line 1405

Deprecated: Return type of ActiveRecord::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admin/web/mr-profipol.ru/public_html/cms/mod_orm/orm.func.php on line 1410

Deprecated: Return type of ActiveRecord::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admin/web/mr-profipol.ru/public_html/cms/mod_orm/orm.func.php on line 1448

Deprecated: Return type of ActiveRecord::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admin/web/mr-profipol.ru/public_html/cms/mod_orm/orm.func.php on line 1426

Deprecated: Return type of ActiveRecord::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admin/web/mr-profipol.ru/public_html/cms/mod_orm/orm.func.php on line 1452

Deprecated: Return type of ActiveRecord::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admin/web/mr-profipol.ru/public_html/cms/mod_orm/orm.func.php on line 1388
get_params = array(); foreach($get_params as $get_param){ $par = explode('=', $get_param); d()->get_params[$par[0]] = $par[1]; } $tmp = '_' . $_GET['templ']; print d()->view('appendizi' . $tmp . '_tpl'); }this = d()->Product->find_by_url($url); if (d()->this->is_empty) { d()->message = "Страница не существует" . d()->add(array('products', 'url' => $url)); return d()->error('404'); } $arr = array(); foreach (d()->Product_field->where('product_id = ?', d()->this->id) as $v) { $arr[$v->field_id][] = $v['field_value_id']; } d()->field_arr = $arr; $arr = array(); foreach (d()->Product_field->where('product_id = ?', d()->this->id) as $v) { $arr[$v->field_id][] = $v['field_value_id']; } d()->field_arr = $arr; d()->catalog = d()->Catalog->where('id = ?', d()->this->catalog_id); $mas = array(); $mas[] = array('title' => 'Главная', 'link' => '/'); $mas[] = array('title' => d()->catalog->title, 'link' => '/catalogs/' . d()->catalog->url); $mas[] = array('title' => d()->this->title, 'link' => d()->this->url); d()->breadcrumbs = $mas; d()->product_page = true; } function product_fields($id) { d()->this = d()->Product($id); d()->fields = d()->Field; /* $array = d()->fields->fast_all_of('id'); d()->catalogs_to_fields = d()->Catalogs_to_field->where('catalog_id = ? AND field_id IN (?)', d()->this->catalog_id, $array); foreach (d()->Catalogs_to_field as $item) { if (($key = array_search($item->field_id, $array))) { unset($array[$key]); } } $array1 = d()->Field->where('id IN (?)', $array)->fast_all_of('id'); $array2 = d()->Field->where('id IN (?)', d()->Catalogs_to_field->where('catalog_id = ?', d()->this->catalog_id)->fast_all_of('field_id'))->fast_all_of('id'); $array_all = array_merge($array1, $array2); d()->fields->where('id IN (?)', $array2); */ $field = array(); foreach (d()->fields as $v) { $field[$v->id] = $v->razdel; } $mas = array(); foreach (d()->Product_field->where('product_id = ? AND field_id IN (?)', d()->this->id, d()->fields->fast_all_of('id')) as $v) { if ($field[$v->field_id] == 1) { $mas[$v->field_id] = $v->field_value_id; } elseif ($field[$v->field_id] == 2) { $mas[$v->field_id][] = $v->field_value_id; } elseif ($field[$v->field_id] == 3) { $mas[$v->field_id] = $v->value; } } d()->isset_value = $mas; } function field_values($id) { d()->field_id = $id; d()->this = d()->Field->where('id = ?', $id); } function save_fields() { if (d()->validate('save_fields')) { d()->product_id = d()->params['product_id']; foreach (d()->params['fields'] as $v) { $field = d()->Field->where('id = ?', $v); if ($field->razdel == 1) { $field_product = d()->Product_field->where('product_id = ? AND field_id = ?', d()->product_id, $field->id); if ($field_product->is_empty) { $field_pr = d()->Product_field->new(); $field_pr->product_id = d()->product_id; $field_pr->field_id = $field->id; $field_pr->save(); $field_product = d()->Product_field->where('product_id = ? AND field_id = ?', d()->product_id, $field->id); } if (isset(d()->params['field'][$field->id]) && d()->params['field'][$field->id] != '') { $field_product->field_value_id = d()->params['field'][$field->id]; $field_product->save(); } else { $field_product->delete(); } } elseif ($field->razdel == 2) { $add = array(); $del = array(); $pr_fields = d()->Product_field->where('product_id = ? AND field_id = ?', d()->product_id, $field->id)->fast_all_of('field_value_id'); foreach ($pr_fields as $k) { if (!in_array($k, d()->params['field'][$field->id])) { $del[] = $k; } } foreach (d()->params['field'][$field->id] as $k) { if (!in_array($k, $pr_fields)) { $add[] = $k; } } foreach ($del as $key => $value) { d()->Product_field->where('product_id = ? AND field_id = ? AND field_value_id = ?', d()->product_id, $field->id, $value)->delete; } foreach ($add as $key => $value) { $row = d()->Product_field->where('product_id = ? AND field_id = ? AND field_value_id = ?', d()->product_id, $field->id, $value); if ($row->is_empty) { $new_row = d()->Product_field->new(); $new_row->product_id = d()->product_id; $new_row->field_id = $field->id; $new_row->field_value_id = $value; $new_row->save(); } } } elseif ($field->razdel == 3) { $field_product = d()->Product_field->where('product_id = ? AND field_id = ?', d()->product_id, $field->id); if ($field_product->is_empty) { $field_pr = d()->Product_field->new(); $field_pr->product_id = d()->product_id; $field_pr->field_id = $field->id; $field_pr->save(); $field_product = d()->Product_field->where('product_id = ? AND field_id = ?', d()->product_id, $field->id); } if (isset(d()->params['field'][$field->id]) && d()->params['field'][$field->id] != '') { $field_product->value = d()->params['field'][$field->id]; $field_product->save(); } else { $field_product->delete(); } } } print "alert('Данные сохранены');"; exit; } } }words = d()->Words->order_by('sort desc'); // $result = d()->db->exec("CREATE TABLE `words` ( // `id` int(11) NOT NULL AUTO_INCREMENT , // `url` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL , // `text` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL , // `text_replace` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL , // `title` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL , // `template` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL , // `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL , // `multi_domain` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL , // `created_at` datetime NULL, // `updated_at` datetime NULL, // `sort` int(11) NULL DEFAULT NULL , // PRIMARY KEY (`id`) // ) // ENGINE=MyISAM // DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci // ;"); // print $result; // } function show($url){ d()->this = d()->Words->find_by_url($url); if (d()->this->is_empty) { d()->message = "Страница не существует" . d()->add(array('products', 'url' => $url)); return d()->error('404'); } $arr = array(); foreach (d()->Word_field->where('product_id = ?', d()->this->id) as $v) { $arr[$v->field_id][] = $v['field_value_id']; } d()->field_arr = $arr; $arr = array(); foreach (d()->Word_field->where('product_id = ?', d()->this->id) as $v) { $arr[$v->field_id][] = $v['field_value_id']; } d()->field_arr = $arr; d()->catalog = d()->Catalog->where('id = ?', d()->this->catalog_id); $mas = array(); $mas[] = array('title' => 'Главная', 'link' => '/'); $mas[] = array('title' => d()->catalog->title, 'link' => '/catalogs/' . d()->catalog->url); $mas[] = array('title' => d()->this->title, 'link' => d()->this->url); d()->breadcrumbs = $mas; d()->product_page = true; } function product_fields($id) { d()->this = d()->Words($id); d()->fields = d()->Field; /* $array = d()->fields->fast_all_of('id'); d()->catalogs_to_fields = d()->Catalogs_to_field->where('catalog_id = ? AND field_id IN (?)', d()->this->catalog_id, $array); foreach (d()->Catalogs_to_field as $item) { if (($key = array_search($item->field_id, $array))) { unset($array[$key]); } } $array1 = d()->Field->where('id IN (?)', $array)->fast_all_of('id'); $array2 = d()->Field->where('id IN (?)', d()->Catalogs_to_field->where('catalog_id = ?', d()->this->catalog_id)->fast_all_of('field_id'))->fast_all_of('id'); $array_all = array_merge($array1, $array2); d()->fields->where('id IN (?)', $array2); */ $field = array(); foreach (d()->fields as $v) { $field[$v->id] = $v->razdel; } $mas = array(); foreach (d()->Word_field->where('product_id = ? AND field_id IN (?)', d()->this->id, d()->fields->fast_all_of('id')) as $v) { if ($field[$v->field_id] == 1) { $mas[$v->field_id] = $v->field_value_id; } elseif ($field[$v->field_id] == 2) { $mas[$v->field_id][] = $v->field_value_id; } elseif ($field[$v->field_id] == 3) { $mas[$v->field_id] = $v->value; } } d()->isset_value = $mas; } function field_values($id) { d()->field_id = $id; d()->this = d()->Field->where('id = ?', $id); } function save_fields() { if (d()->validate('save_fields')) { d()->product_id = d()->params['product_id']; foreach (d()->params['fields'] as $v) { $field = d()->Field->where('id = ?', $v); if ($field->razdel == 1) { $field_product = d()->Word_field->where('product_id = ? AND field_id = ?', d()->product_id, $field->id); if ($field_product->is_empty) { $field_pr = d()->Word_field->new(); $field_pr->product_id = d()->product_id; $field_pr->field_id = $field->id; $field_pr->save(); $field_product = d()->Word_field->where('product_id = ? AND field_id = ?', d()->product_id, $field->id); } if (isset(d()->params['field'][$field->id]) && d()->params['field'][$field->id] != '') { $field_product->field_value_id = d()->params['field'][$field->id]; $field_product->save(); } else { $field_product->delete(); } } elseif ($field->razdel == 2) { $add = array(); $del = array(); $pr_fields = d()->Word_field->where('product_id = ? AND field_id = ?', d()->product_id, $field->id)->fast_all_of('field_value_id'); foreach ($pr_fields as $k) { if (!in_array($k, d()->params['field'][$field->id])) { $del[] = $k; } } foreach (d()->params['field'][$field->id] as $k) { if (!in_array($k, $pr_fields)) { $add[] = $k; } } foreach ($del as $key => $value) { d()->Word_field->where('product_id = ? AND field_id = ? AND field_value_id = ?', d()->product_id, $field->id, $value)->delete; } foreach ($add as $key => $value) { $row = d()->Word_field->where('product_id = ? AND field_id = ? AND field_value_id = ?', d()->product_id, $field->id, $value); if ($row->is_empty) { $new_row = d()->Word_field->new(); $new_row->product_id = d()->product_id; $new_row->field_id = $field->id; $new_row->field_value_id = $value; $new_row->save(); } } } elseif ($field->razdel == 3) { $field_product = d()->Word_field->where('product_id = ? AND field_id = ?', d()->product_id, $field->id); if ($field_product->is_empty) { $field_pr = d()->Word_field->new(); $field_pr->product_id = d()->product_id; $field_pr->field_id = $field->id; $field_pr->save(); $field_product = d()->Word_field->where('product_id = ? AND field_id = ?', d()->product_id, $field->id); } if (isset(d()->params['field'][$field->id]) && d()->params['field'][$field->id] != '') { $field_product->value = d()->params['field'][$field->id]; $field_product->save(); } else { $field_product->delete(); } } } print "alert('Данные сохранены');"; exit; } } }
Warning: Cannot modify header information - headers already sent by (output started at /home/admin/web/mr-profipol.ru/public_html/app/mod_products/products.func.php:1) in /home/admin/web/mr-profipol.ru/public_html/index.php on line 6
<? if(d()->Seo->title != ''){?>Главная страница<? }else{ if(iam()){?> Страница не заполнена в SEO - <? }?>Главная<? }?><? if($_GET['page']) {?> - страница № <br /> <b>Warning</b>: Undefined array key "page" in <b>/home/admin/web/mr-profipol.ru/public_html/cms/cms.php(1621) : eval()'d code</b> on line <b>6</b><br /> 1<? }?> /home/admin/web/mr-profipol.ru/public_html/cms/cms.php(1621) : eval()'d code on line 7
1"/>
Warning: Undefined array key "mtime" in /home/admin/web/mr-profipol.ru/public_html/cms/assets_manager/asset.php on line 17

Warning: Undefined array key "concat" in /home/admin/web/mr-profipol.ru/public_html/cms/assets_manager/asset.php on line 24

Warning: Undefined array key "optimise" in /home/admin/web/mr-profipol.ru/public_html/cms/assets_manager/asset.php on line 24

Warning: Undefined array key "optimize" in /home/admin/web/mr-profipol.ru/public_html/cms/assets_manager/asset.php on line 24

Warning: file_get_contents(/home/admin/web/mr-profipol.ru/public_html/images/css/fontawesome.min.css): Failed to open stream: No such file or directory in /home/admin/web/mr-profipol.ru/public_html/cms/assets_manager/asset.php on line 95

Warning: Undefined variable $sourcePath in /home/admin/web/mr-profipol.ru/public_html/cms/assets_manager/Assets.php on line 49
Исключение: implode(): Argument #2 ($array) must be of type ?array, string given
Файл , строка
Выброшено исключение