This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 293
/
manifest.xml
149 lines (143 loc) · 7.85 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?xml version="1.0" encoding="UTF-8"?>
<ajxp_plugin id="gui.user" enabled="true" description="User access point" label="User access point"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
<client_settings>
<resources>
<js className="UserGuiController" file="plugins/gui.user/class.UserGuiController.js" autoload="true"/>
<i18n namespace="gui.user" path="plugins/gui.user/i18n"/>
</resources>
</client_settings>
<class_definition classname="UserGuiController" filename="plugins/gui.user/class.UserGuiController.php"/>
<registry_contributions>
<actions>
<action name="user_access_point" skipSecureToken="true">
<processing>
<serverCallback methodName="processUserAccessPoint"/>
</processing>
</action>
<action name="reset-password-ask">
<gui src="reset.png" iconClass="icon-terminal" text="gui.user.1" title="gui.user.2">
<context dir="true" recycle="true" selection="false"/>
</gui>
<processing>
<clientCallback prepareModal="false" dialogOpenForm="reset-password-ask" dialogOkButtonOnly="false">
<dialogOnOpen><![CDATA[
$(oForm).up('.dialogContent').previous('.dialogTitle').select('span').invoke('remove');
$(oForm).down('.dialogButtons').insert({bottom:$(oForm).down('.dialogButtons').down('input')});
]]></dialogOnOpen>
<dialogOnCancel><![CDATA[
ajaxplorer.actionBar.fireAction('login');
]]></dialogOnCancel>
<dialogOnComplete><![CDATA[
if(!oForm.BUTTON_CLICKED){
var conn = new Connexion();
conn.addParameter('email', oForm.down('#reset-by-email').getValue());
conn.addParameter('get_action', 'reset-password-ask');
conn.onComplete = function(){
oForm.BUTTON_CLICKED = true;
Effect.Fade(oForm.down('#reset-by-email'), {
duration:0.5,
afterFinish: function(){
oForm.down('#reset-password-ask').update(MessageHash['gui.user.5']);
}
});
};
conn.sendAsync();
}
]]></dialogOnComplete>
</clientCallback>
<clientForm id="reset-password-ask"><![CDATA[
<div id="reset-password-ask" box_width="320" style="padding:5px 12px;font-size:15px;">AJXP_MESSAGE[gui.user.3] <input type="text" style="font-size: 17px; width: 97%;margin: 10px 0;" id="reset-by-email" placeholder="AJXP_MESSAGE[gui.user.4]"></div>
]]></clientForm>
<serverCallback methodName="processUserAccessPoint"/>
</processing>
</action>
<action name="reset-password">
<gui src="reset.png" iconClass="icon-terminal" text="gui.user.1" title="gui.user.2">
<context dir="true" recycle="true" selection="false"/>
</gui>
<processing>
<clientCallback prepareModal="false" dialogOpenForm="reset-password" dialogOkButtonOnly="false">
<dialogOnOpen><![CDATA[
new Protopass($('user_change_ownpass1'), {
barContainer:$('pwd_strength_container'),
barPosition:'bottom'
});
]]></dialogOnOpen>
<dialogOnCancel><![CDATA[
ajaxplorer.actionBar.fireAction('login');
]]></dialogOnCancel>
<dialogOnComplete><![CDATA[
var userPass = null;
var passSeed = null;
if($('user_change_ownpass1') && $('user_change_ownpass1').value && $('user_change_ownpass2').value)
{
if($('user_change_ownpass1').value.length < window.ajxpBootstrap.parameters.get("password_min_length")){
alert(MessageHash[378]);
return false;
}
if($('user_change_ownpass1').value != $('user_change_ownpass2').value){
alert(MessageHash[238]);
return false;
}
userPass = $('user_change_ownpass1').value;
var onComplete = function(transport){
if(userPass != null){
if(transport.responseText == 'PASS_ERROR'){
alert(MessageHash[240]);
}else if(transport.responseText == 'SUCCESS'){
ajaxplorer.displayMessage('SUCCESS', MessageHash['gui.user.6']);
oForm.down('#reset-password').update(MessageHash['gui.user.6']);
}
}
};
var conn = new Connexion();
conn.addParameter("get_action", "reset-password");
conn.addParameter("new_pass", userPass);
conn.addParameter("user_id", oForm.down('#user_id').getValue());
conn.addParameter("key", $A(document.location.pathname.trim('/').split('/')).last());
conn.onComplete = onComplete;
conn.sendAsync();
}
]]></dialogOnComplete>
</clientCallback>
<clientForm id="reset-password"><![CDATA[
<div id="reset-password" box_width="320" style="font-size: 15px;">
<div class="SF_element">
<div class="SF_label">Your user ID : </div><input id="user_id" value="" type="text" class="SF_input"/>
</div>
<div class="SF_element">
<div class="SF_label" ajxp_message_id="198">AJXP_MESSAGE[198] : </div><input id="user_change_ownpass1" value="" type="password" class="SF_input"/>
</div>
<div class="SF_element">
<div class="SF_label" ajxp_message_id="199">AJXP_MESSAGE[199] : </div><input id="user_change_ownpass2" value="" type="password" class="SF_input"/>
</div>
<div class="SF_element" id="pwd_strength_container"></div>
</div>
]]></clientForm>
<serverCallback methodName="processUserAccessPoint"/>
</processing>
</action>
<action name="login">
<processing></processing>
</action>
</actions>
<client_configs>
<template element="ajxp_desktop" name="main_vision" position="top"><![CDATA[
<div id="toolbars">
<div id="global_toolbar" ajxpClass="LogoWidget"></div>
</div>
<div id="user-gui-controller" ajxpClass="AjxpPane" ajxpOptions='{"fit":"height", "fitParent": "window"}' style="background:url('plugins/gui.ajax/res/themes/vision/images/grid_t.png')"></div>
<!--
<div id="notifications" ajxpClass="FetchedResultPane" ajxpOptions='{"fit":"height", "fitParent": "window", "fixedDisplayMode":"thumb", "displayMode":"thumb", "selectable":"false", "nodeProviderProperties":{"get_action":"get_my_feed", "format":"xml", "connexion_discrete":true}}'></div>
-->
<script type="text/javascript">
ajaxplorer.disableAllKeyBindings();
</script>
]]></template>
</client_configs>
</registry_contributions>
<dependencies>
<activePlugin pluginName="gui.ajax|gui.mobile|gui.ios"/>
</dependencies>
</ajxp_plugin>