Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
VEP
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Дмитрий Берестнев
VEP
Commits
610aa5ff
Commit
610aa5ff
authored
Mar 10, 2021
by
Brotiger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blank
parents
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
208 additions
and
0 deletions
+208
-0
.description.php
local/components/zk/vep/.description.php
+10
-0
.parameters.php
local/components/zk/vep/.parameters.php
+2
-0
component.php
local/components/zk/vep/component.php
+4
-0
template.php
local/components/zk/vep/templates/.default/template.php
+20
-0
include.php
local/modules/zk.vep/include.php
+4
-0
.description.php
...modules/zk.vep/install/components/zk/vep/.description.php
+10
-0
.parameters.php
.../modules/zk.vep/install/components/zk/vep/.parameters.php
+2
-0
component.php
local/modules/zk.vep/install/components/zk/vep/component.php
+4
-0
template.php
...install/components/zk/vep/templates/.default/template.php
+4
-0
index.php
local/modules/zk.vep/install/index.php
+79
-0
step.php
local/modules/zk.vep/install/step.php
+21
-0
unstep.php
local/modules/zk.vep/install/unstep.php
+17
-0
version.php
local/modules/zk.vep/install/version.php
+7
-0
index.php
local/modules/zk.vep/lang/ru/install/index.php
+10
-0
step.php
local/modules/zk.vep/lang/ru/install/step.php
+6
-0
unstep.php
local/modules/zk.vep/lang/ru/install/unstep.php
+6
-0
options.php
local/modules/zk.vep/options.php
+2
-0
No files found.
local/components/zk/vep/.description.php
0 → 100644
View file @
610aa5ff
<?php
if
(
!
defined
(
"B_PROLOG_INCLUDED"
)
||
B_PROLOG_INCLUDED
!==
true
)
die
();
$arComponentDescription
=
array
(
"NAME"
=>
"Блок отчета по звонкам"
,
"DESCRIPTION"
=>
"Компонент для вывода отчета по звонкам"
,
"PATH"
=>
array
(
"ID"
=>
"ВЭП"
)
);
\ No newline at end of file
local/components/zk/vep/.parameters.php
0 → 100644
View file @
610aa5ff
<?php
if
(
!
defined
(
"B_PROLOG_INCLUDED"
)
||
B_PROLOG_INCLUDED
!==
true
)
die
();
?>
\ No newline at end of file
local/components/zk/vep/component.php
0 → 100644
View file @
610aa5ff
<?php
if
(
!
defined
(
"B_PROLOG_INCLUDED"
)
||
B_PROLOG_INCLUDED
!==
true
)
die
();
$this
->
includeComponentTemplate
();
\ No newline at end of file
local/components/zk/vep/templates/.default/template.php
0 → 100644
View file @
610aa5ff
<?php
use
Bitrix\Main\Localization\Loc
;
Loc
::
LoadMessages
(
__FILE__
);
if
(
!
defined
(
"B_PROLOG_INCLUDED"
)
||
B_PROLOG_INCLUDED
!==
true
)
die
();
global
$APPLICATION
;
if
(
CModule
::
includeModule
(
"zk.tribunaldoc"
))
:
?>
<div>
VEP
</div>
<?php
endif
;
?>
\ No newline at end of file
local/modules/zk.vep/include.php
0 → 100644
View file @
610aa5ff
<?php
?>
\ No newline at end of file
local/modules/zk.vep/install/components/zk/vep/.description.php
0 → 100644
View file @
610aa5ff
<?php
if
(
!
defined
(
"B_PROLOG_INCLUDED"
)
||
B_PROLOG_INCLUDED
!==
true
)
die
();
$arComponentDescription
=
array
(
"NAME"
=>
"Блок отчета по звонкам"
,
"DESCRIPTION"
=>
"Компонент для вывода отчета по звонкам"
,
"PATH"
=>
array
(
"ID"
=>
"ВЭП"
)
);
\ No newline at end of file
local/modules/zk.vep/install/components/zk/vep/.parameters.php
0 → 100644
View file @
610aa5ff
<?php
if
(
!
defined
(
"B_PROLOG_INCLUDED"
)
||
B_PROLOG_INCLUDED
!==
true
)
die
();
?>
\ No newline at end of file
local/modules/zk.vep/install/components/zk/vep/component.php
0 → 100644
View file @
610aa5ff
<?php
if
(
!
defined
(
"B_PROLOG_INCLUDED"
)
||
B_PROLOG_INCLUDED
!==
true
)
die
();
$this
->
includeComponentTemplate
();
\ No newline at end of file
local/modules/zk.vep/install/components/zk/vep/templates/.default/template.php
0 → 100644
View file @
610aa5ff
<div>
VEP
</div>
\ No newline at end of file
local/modules/zk.vep/install/index.php
0 → 100644
View file @
610aa5ff
<?php
use
Bitrix\Main\Localization\Loc
;
use
Bitrix\Main\ModuleManager
;
use
Bitrix\Main\Config\Option
;
use
Bitrix\Main\EventManager
;
use
Bitrix\Main\Application
;
use
Bitrix\Main\IO\Directory
;
Loc
::
loadMessages
(
__FILE__
);
class
zk_vep
extends
CModule
{
public
function
__construct
(){
if
(
file_exists
(
__DIR__
.
"/version.php"
)){
$arModuleVersion
=
array
();
include_once
(
__DIR__
.
"/version.php"
);
$this
->
MODULE_ID
=
str_replace
(
"_"
,
"."
,
get_class
(
$this
));
$this
->
MODULE_VERSION
=
$arModuleVersion
[
"VERSION"
];
$this
->
MODULE_VERSION_DATE
=
$arModuleVersion
[
"VERSION_DATE"
];
$this
->
MODULE_NAME
=
Loc
::
getMessage
(
"ZK_VEP_MODULE_NAME"
);
$this
->
MODULE_DESCRIPTION
=
Loc
::
getMessage
(
"ZK_VEP_MODULE_DESCRIPTION"
);
$this
->
PARTNER_NAME
=
Loc
::
getMessage
(
"ZK_VEP_PARTNER_NAME"
);
$this
->
PARTNER_URI
=
Loc
::
getMessage
(
"ZK_VEP_PARTNER_URI"
);
return
false
;
}
}
public
function
DoInstall
(){
global
$APPLICATION
;
if
(
CheckVersion
(
ModuleManager
::
getVersion
(
"main"
),
"14.00.00"
)){
$this
->
InstallFiles
();;
ModuleManager
::
registerModule
(
$this
->
MODULE_ID
);
}
else
{
$APPLICATION
->
ThrowException
(
Loc
::
getMessage
(
"ZK_VEP_BITRIX_VERSION_ERROR"
)
);
}
$APPLICATION
->
IncludeAdminFile
(
Loc
::
getMessage
(
"ZK_VEP_INSTALL_TITLE"
)
.
"
\"
"
.
Loc
::
getMessage
(
"ZK_VEP_MODULE_NAME"
)
.
"
\"
"
,
__DIR__
.
"/step.php"
);
return
false
;
}
public
function
InstallFiles
(){
$result
=
CopyDirFiles
(
$_SERVER
[
"DOCUMENT_ROOT"
]
.
"/local/modules/"
.
$this
->
MODULE_ID
.
"/install/components"
,
$_SERVER
[
"DOCUMENT_ROOT"
]
.
"/local/components"
,
true
,
true
);
return
!
$result
;
}
public
function
DoUninstall
(){
global
$APPLICATION
;
$this
->
UnInstallFiles
();
ModuleManager
::
unRegisterModule
(
$this
->
MODULE_ID
);
$APPLICATION
->
IncludeAdminFile
(
Loc
::
getMessage
(
"ZK_VEP_UNINSTALL_TITLE"
)
.
"
\"
"
.
Loc
::
getMessage
(
"ZK_VEP_MODULE_NAME"
)
.
"
\"
"
,
__DIR__
.
"/unstep.php"
);
return
false
;
}
public
function
UnInstallFiles
(){
$dirName
=
str_replace
(
"."
,
"/"
,
$this
->
MODULE_ID
);
DeleteDirFilesEx
(
"/local/components/"
.
$dirName
);
return
false
;
}
}
?>
\ No newline at end of file
local/modules/zk.vep/install/step.php
0 → 100644
View file @
610aa5ff
<?php
use
Bitrix\Main\Localization\Loc
;
Loc
::
LoadMessages
(
__FILE__
);
if
(
!
check_bitrix_sessid
()){
return
;
}
if
(
$errorException
=
$APPLICATION
->
GetException
()){
echo
(
CAdminMessage
::
ShowMessage
(
$errorException
->
GetString
()));
}
else
{
echo
(
CAdminMessage
::
ShowNote
(
Loc
::
getMessage
(
"ZK_VEP_STEP_BEFORE"
)
.
" "
.
Loc
::
getMessage
(
"ZK_VEP_STEP_AFTER"
)));
}
?>
<form
action=
"
<?php
echo
(
$APPLICATION
->
GetCurPage
());
?>
"
>
<input
type=
"hidden"
name=
"lang"
value=
"
<?php
echo
(
LANG
);
?>
"
/>
<input
type=
"submit"
value=
"
<?php
echo
(
Loc
::
getMessage
(
"ZK_VEP_STEP_SUBMIT_BACK"
));
?>
"
>
</form>
\ No newline at end of file
local/modules/zk.vep/install/unstep.php
0 → 100644
View file @
610aa5ff
<?php
use
Bitrix\Main\Localization\Loc
;
Loc
::
loadMessages
(
__FILE__
);
if
(
!
check_bitrix_sessid
()){
return
;
}
echo
(
CAdminMessage
::
ShowNote
(
Loc
::
getMessage
(
"ZK_VEP_UNSTEP_BEFORE"
)
.
" "
.
Loc
::
getMessage
(
"ZK_VEP_UNSTEP_AFTER"
)));
?>
<form
action=
"
<?php
echo
(
$APPLICATION
->
GetCurPage
());
?>
"
>
<input
type=
"hidden"
name=
"lang"
value=
"
<?php
echo
(
LANG
);
?>
"
>
<input
type=
"submit"
value=
"
<?php
echo
(
Loc
::
getMessage
(
"ZK_VEP_UNSTEP_SUBMIT_BACK"
));
?>
"
>
</form>
\ No newline at end of file
local/modules/zk.vep/install/version.php
0 → 100644
View file @
610aa5ff
<?php
$arModuleVersion
=
array
(
"VERSION"
=>
"1.0.0"
,
"VERSION_DATE"
=>
"0000-00-00 00:00:00"
);
?>
\ No newline at end of file
local/modules/zk.vep/lang/ru/install/index.php
0 → 100644
View file @
610aa5ff
<?php
$MESS
[
"ZK_VEP_MODULE_NAME"
]
=
"Отчеты по звонкам"
;
$MESS
[
"ZK_VEP_MODULE_DESCRIPTION"
]
=
"Добавляет возможность получения сведений о истории звонков в портале"
;
$MESS
[
"ZK_VEP_PARTNER_NAME"
]
=
"Дмитрий Берестнев"
;
$MESS
[
"ZK_VEP_PARTNER_URI"
]
=
"https://vk.com/brotiger63"
;
$MESS
[
"ZK_VEP_BITRIX_VERSION_ERROR"
]
=
"Версия главного модуля ниже 14"
;
$MESS
[
"ZK_VEP_INSTALL_TITLE"
]
=
"Установка модуля"
;
$MESS
[
"ZK_VEP_UNINSTALL_TITLE"
]
=
"Деинсталяция модуля"
;
?>
\ No newline at end of file
local/modules/zk.vep/lang/ru/install/step.php
0 → 100644
View file @
610aa5ff
<?php
$MESS
[
"ZK_VEP_STEP_BEFORE"
]
=
"Модуль"
;
$MESS
[
"ZK_VEP_STEP_AFTER"
]
=
"установлен"
;
$MESS
[
"ZK_VEP_STEP_SUBMIT_BACK"
]
=
"Вернуться к списку модулей"
;
?>
\ No newline at end of file
local/modules/zk.vep/lang/ru/install/unstep.php
0 → 100644
View file @
610aa5ff
<?php
$MESS
[
"ZK_VEP_UNSTEP_BEFORE"
]
=
"Модуль"
;
$MESS
[
"ZK_VEP_UNSTEP_AFTER"
]
=
"удален"
;
$MESS
[
"ZK_VEP_UNSTEP_SUBMIT_BACK"
]
=
"Вернуться к списку модулей"
;
?>
\ No newline at end of file
local/modules/zk.vep/options.php
0 → 100644
View file @
610aa5ff
<?php
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment