diff --git a/src/mibew/captcha.php b/src/mibew/captcha.php deleted file mode 100644 index f2527f04..00000000 --- a/src/mibew/captcha.php +++ /dev/null @@ -1,22 +0,0 @@ - 'image/jpeg') + ); + + return $response; + } +} diff --git a/src/mibew/libs/routing.yml b/src/mibew/libs/routing.yml index 40212c09..7b31e0dd 100644 --- a/src/mibew/libs/routing.yml +++ b/src/mibew/libs/routing.yml @@ -3,6 +3,10 @@ button: path: /b defaults: { _controller: Mibew\Controller\ButtonController::indexAction } +captcha: + path: /captcha + defaults: { _controller: Mibew\Controller\CaptchaController::drawAction } + license: path: /license defaults: { _controller: Mibew\Controller\LicenseController::indexAction } diff --git a/src/mibew/styles/dialogs/default/templates_compiled/client_side/templates.js b/src/mibew/styles/dialogs/default/templates_compiled/client_side/templates.js index 2d22a950..fcfce9fe 100644 --- a/src/mibew/styles/dialogs/default/templates_compiled/client_side/templates.js +++ b/src/mibew/styles/dialogs/default/templates_compiled/client_side/templates.js @@ -6,7 +6,7 @@ */ (function(){var u=Handlebars.template,v=Handlebars.templates=Handlebars.templates||{};v._logo=u(function(c,a,e,d,b){function g(a,e){var c,f;return c=""+("\n \n \n \n ')}function k(a,e){var c,f;return c=""+('\n \n ')}function l(a,e){var c,f;return c=""+("\n \n \n \n ')}function t(a,e){var c,f;return c=""+('\n \n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var n, +!1===f?f:f.mibewHost),typeof f===m?f.apply(a):f))+'">\n \n \n ')}function t(a,e){var c,f;return c=""+('\n \n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var n, m="function",h=this.escapeExpression,s=this;c='\n
\n \n
'});v.chat_avatar=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g=this.escapeExpression; return(c=e["if"].call(a,a&&a.imageLink,{hash:{},inverse:this.program(3,function(a,e){return'
'},b),fn:this.program(1,function(a,c){var b,d;b=''},b),data:b}))||0===c?c:""});v.chat_controls_close=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing; @@ -39,7 +39,7 @@ g,c),data:c}))||0===d?d:""},b),data:b}))||0===m)c+=m;c+='\n\n
\n \n \n '+r((d=e.l10n||a&&a.l10n,h={hash:{},data:b},d?d.call(a,"form.field.name",h):q.call(a,"l10n","form.field.name",h)))+':\n \n \n ';if((m=e["if"].call(a,a&&a.groups,{hash:{},inverse:p.noop, fn:p.program(4,function(a,d){var c,b,h,g;c=""+('\n \n '+r((h=e.l10n||a&&a.l10n,g={hash:{},data:d},h?h.call(a,"form.field.department",g):q.call(a,"l10n","form.field.department",g)))+'\n \n \n \n \n \n '+ r((h=e.l10n||a&&a.l10n,g={hash:{},data:d},h?h.call(a,"form.field.department.description",g):q.call(a,"l10n","form.field.department.description",g)))+'\n \n ';if((b=e.each.call(a,a&&a.groups,{hash:{},inverse:p.noop,fn:p.program(8,t,d),data:d}))||0===b)c+=b;return c+"\n \n \n "},b),data:b}))||0===m)c+=m;c+="\n \n "+r((d=e.l10n||a&&a.l10n,h={hash:{},data:b}, -d?d.call(a,"form.field.message",h):q.call(a,"l10n","form.field.message",h)))+':\n \n \n \n \n ";if((m=e["if"].call(a,a&&a.showCaptcha,{hash:{},inverse:p.noop,fn:p.program(11,function(a,c){return'\n \n \n \n \n '}, +d?d.call(a,"form.field.message",h):q.call(a,"l10n","form.field.message",h)))+':\n \n \n \n \n ";if((m=e["if"].call(a,a&&a.showCaptcha,{hash:{},inverse:p.noop,fn:p.program(11,function(a,c){return'\n \n \n \n \n '}, b),data:b}))||0===m)c+=m;return c+='\n \n '+r((d=e.l10n||a&&a.l10n,h={hash:{},data:b},d?d.call(a,"mailthread.perform",h):q.call(a,"l10n","mailthread.perform",h)))+'\n
 
\n\n
Loading...
'});v.leave_message_layout=u(function(c,a,e,d,b){this.compilerInfo= [4,">= 1.0.0"];e=this.merge(e,c.helpers);d=this.merge(d,c.partials);b=b||{};c="\n";if((a=this.invokePartial(d._logo,"_logo",a,e,d,b))||0===a)c+=a;return c+'\n\n\n
\n
\n
\n
\n\n\n
'});v.leave_message_sent_description=u(function(c, a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l;c=e.helperMissing;d=this.escapeExpression;return a=""+('
\n \n '+
diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/form.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/form.handlebars
index c41e3fcd..af1af50c 100644
--- a/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/form.handlebars
+++ b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/form.handlebars
@@ -41,7 +41,7 @@
         </tr>
     {{#if showCaptcha}}
         <tr>
-            <td><img id= + {{/if}}