diff --git a/app/menu/1.json b/app/menu/1.json
index 22b8212..4f073dd 100644
--- a/app/menu/1.json
+++ b/app/menu/1.json
@@ -6,6 +6,7 @@
"Пользователи": "users",
"Группы":"groupuser",
"Авторы":"authors",
+ "Персоны":"persons",
"Контроль":"control"
},
diff --git a/app/menu/44.json b/app/menu/44.json
index b8f3c73..be18f0d 100644
--- a/app/menu/44.json
+++ b/app/menu/44.json
@@ -1,5 +1,6 @@
{
"Контент": {
- "Новости Cпб": "anonline_spb_plus"
+ "Новости Cпб": "anonline_spb_plus",
+ "Ленобласть": "anonline_lenobl"
}
}
\ No newline at end of file
diff --git a/app/xml/lentaredaktor.xml b/app/xml/lentaredaktor.xml
index 951a4bb..aac4232 100644
--- a/app/xml/lentaredaktor.xml
+++ b/app/xml/lentaredaktor.xml
@@ -378,6 +378,22 @@
False
+-
+ person_id
+ Персона
+ lookup
+
+
+ person_id
+ personname
+ personname
+
+
+
+
+
+ False
+
-
date_insert
Дата / Время
diff --git a/app/xml/persons.xml b/app/xml/persons.xml
index 85fcaff..65060a5 100644
--- a/app/xml/persons.xml
+++ b/app/xml/persons.xml
@@ -1,9 +1,10 @@
-
+
person_id
- Контент. Герои пресс-конференций
+ personname
+ Контент. Персоны
-
person_id
@@ -13,52 +14,51 @@
- Порядковый номер новости
-
personname
Имя
+ 100
text
- 120
- 75
- Заголовок
-
- persondescript
- Описание
+ personslug
+ slug
text
- 120
- Заголовок
-
personbio
- Досье
+ Био
textarea
-
20
- 120
+ 100
+ 10
+ 15000
- 75
- Заголовок
+ 1
-
personphoto
- Фото
+ Фото
+ file
+ True
-
+
- file
pub/images/persons
-
\ No newline at end of file
+
+
+
+
diff --git a/vendor/akdelf/akdmin/lib/akdmin.php b/vendor/akdelf/akdmin/lib/akdmin.php
index f4e223b..39aa46a 100644
--- a/vendor/akdelf/akdmin/lib/akdmin.php
+++ b/vendor/akdelf/akdmin/lib/akdmin.php
@@ -33,6 +33,8 @@ function copy_sql( $sql ){
function history_db( $table, $data, $conn = '' ){
+ return false;
+
end($data); // Перемещаем указатель массива на последний элемент
$inc = key($data); // Получаем ключ последнего элемента
$inc_value = current($data); // Получаем значение последнего элемента
@@ -2191,18 +2193,18 @@ $order = (isset($_GET['order'])) ? strip_tags(trim($_GET['order'])) : '';
//$actupdate = 'UPDATE '.$maintable.' SET '.$actupdate.' WHERE '.separ($increment).' = '."'".$increment_value."'".' AND '.separ($item[$i]->fieldate).' = '.quote('0000-00-00 00:00:00').' OR '.separ($item[$i]->fieldate).' IS NULL';
$actupdate = 'UPDATE '.$maintable.' SET '.$actupdate.' WHERE '.separ($increment).' = '."'".$increment_value."'".' AND '.separ($item[$i]->fieldate).' IS NULL';
mysqli_query($this->link, $actupdate) or write_log('Ошибка mysqli: '.mysqli_error().' SQL:'.$actupdate);
- db_get( $actupdate, 'db2'); //временно вместо history db
+ //db_get( $actupdate, 'db2'); //временно вместо history db
# дата
$actupdate = 'UPDATE '.$maintable.' SET '.$actupdate.' WHERE '.separ($increment).' = '."'".$increment_value."'".' AND '.separ($item[$i]->fieldate).'='.quote('0000-00-00 00:00:00');
mysqli_query($this->link, $actupdate) or write_log('Ошибка mysqli: '.mysqli_error().' SQL:'.$actupdate);
- db_get( $actupdate, 'db2'); //временно вместо history db
+ //db_get( $actupdate, 'db2'); //временно вместо history db
# user activate
if (isset($item[$i]->curruser)) {
$usersql = 'UPDATE '.$maintable.' SET '.separ($item[$i]->curruser).'='.$this->userid.' WHERE '.separ($increment).' = '."'".$increment_value."'";
mysqli_query($this->link, $usersql) or write_log('Ошибка mysqli: '.mysqli_error().' SQL:'.$usersql);
- db_get( $usersql, 'db2'); //временно вместо history db
+ //db_get( $usersql, 'db2'); //временно вместо history db
}
}
}
@@ -2285,7 +2287,8 @@ $order = (isset($_GET['order'])) ? strip_tags(trim($_GET['order'])) : '';
if (!$upd_result) {
write_log('Ошибка mysqli: '.mysqli_error().' SQL:'.$upd_sql);
} else {
- db_get( $upd_sql, 'db2'); //временно вместо history db
+ //db_get( $upd_sql, 'db2'); //временно вместо history db
+ $t = 1;
}
}
}
@@ -2318,7 +2321,7 @@ $order = (isset($_GET['order'])) ? strip_tags(trim($_GET['order'])) : '';
if (copy($_FILES[$column]["tmp_name"], $newfilename)){
$sql_add_file = 'UPDATE '.$maintable.' SET '.$column.' = '."'".$newfname."'".' WHERE '.$increment.' = '.$inc_indx;
$file_update = mysqli_query($this->link, 'UPDATE '.$maintable.' SET '.$column.' = '."'".$newfname."'".' WHERE '.$increment.' = '.$inc_indx);
- db_get( $sql_add_file, 'db2'); //временно вместо history db
+ //db_get( $sql_add_file, 'db2'); //временно вместо history db
}
else
echo 'не удалось скопировать '.$newfilename;