This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
/
manifest.xml
88 lines (72 loc) · 3.6 KB
/
manifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="UTF-8"?>
<ajxp_plugin id="action.timestamp" enabled="false" label="CONF_MESSAGE[timestamp]" description="CONF_MESSAGE[Allow timestamp files with Universign.]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
<plugin_info>
<core_relation packaged="false" tested_version="4.3.3"/>
<plugin_author>FDecourt</plugin_author>
<plugin_version>1.0</plugin_version>
</plugin_info>
<class_definition filename="plugins/action.timestamp/class.TimestampCreator.php" classname="TimestampCreator"/>
<client_settings>
<resources>
<img_library alias="timestamp_images" path="plugins/action.timestamp/images"/>
<i18n path="plugins/action.timestamp/i18n" namespace="timestamp"/>
</resources>
</client_settings>
<server_settings>
<global_param name="TIMESTAMP_URL" type="string" label="CONF_MESSAGE[Timestamp provider API URL]" description="CONF_MESSAGE[URL]" mandatory="true"/>
<global_param name="USER" type="string" label="CONF_MESSAGE[User Mail]" description="CONF_MESSAGE[User account]" mandatory="true"/>
<global_param name="PASS" type="password" label="CONF_MESSAGE[Password]" description="CONF_MESSAGE[User Password]" mandatory="true"/>
</server_settings>
<registry_contributions>
<actions>
<action name="get_timestamp">
<gui text="443" title="443" src="timestamp_images/actions/ICON_SIZE/horo.png" hasAccessKey="false">
<context selection="true" dir="" recycle="hidden"
actionBar="true" contextMenu="true" infoPanel="false"
actionBarGroup="change" inZip="false">
</context>
<selectionContext dir="false" file="true" recycle="false" unique="true" image="true" editable="true"></selectionContext>
</gui>
<processing>
<clientCallback prepareModal="true"><![CDATA[
var onLoad = function(oForm){
$(oForm).getElementsBySelector('span[id="timestamp_message"]')[0].innerHTML = "CONF_MESSAGE[msgBox1]";
};
var onok = function(){
var oForm = modal.getForm();
var userSelection = ajaxplorer.getUserSelection();
var selected = userSelection.getFileNames()
var conn = new Connexion();
conn.addParameter('get_action', 'get_timestamp');
conn.addParameter('file', selected);
conn.addParameter('dir', userSelection.getContextNode().getPath());
conn.onComplete = function(transport){
this.parseXmlMessage(transport.responseXML);
};
conn.sendSync();
hideLightBox(true);
ajaxplorer.fireContextRefresh()
return false;
};
var closeFunc = function(){
hideLightBox();
return false;
};
modal.showDialogForm('Horodater', 'timestamp_form', onLoad, onok);
]]></clientCallback>
<clientForm id="timestamp_form"><![CDATA[
<div id="timestamp_form" action="get_timestamp" box_width="200">
<span id="timestamp_message"></span>
</div> ]]></clientForm>
<serverCallback methodName="switchAction"></serverCallback>
</processing>
</action>
</actions>
<extensions>
<extension icon="timestamp_images/mimes/ICON_SIZE/horo.png" font="timer" messageId="CONF_MESSAGE[timestamp]" mime="ers"/>
</extensions>
</registry_contributions>
<dependencies>
<activePlugin pluginName="access.AJXP_STREAM_PROVIDER"/>
</dependencies>
</ajxp_plugin>