This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | /*! |
||
2 | * function.js for EC-CUBE admin |
||
3 | */ |
||
4 | |||
5 | jQuery(document).ready(function($){ |
||
6 | |||
7 | /* |
||
8 | * Brake point Check |
||
9 | */ |
||
10 | |||
11 | |||
12 | $(window).on('load , resize', function(){ |
||
13 | if(window.innerWidth < 768){ |
||
14 | $('body').addClass('sp_view'); |
||
15 | $('body').removeClass('md_view'); |
||
16 | $('body').removeClass('pc_view'); |
||
17 | $('#wrapper').removeClass('sidebar-open'); // for Drawer menu |
||
18 | } else if (window.innerWidth < 992) { |
||
19 | $('body').removeClass('sp_view'); |
||
20 | $('body').addClass('md_view'); |
||
21 | $('body').removeClass('pc_view'); |
||
22 | $('#wrapper').addClass('sidebar-open'); // for Drawer menu |
||
23 | } else { |
||
24 | $('body').removeClass('sp_view'); |
||
25 | $('body').removeClass('md_view'); |
||
26 | $('body').addClass('pc_view'); |
||
27 | $('#wrapper').addClass('sidebar-open'); // for Drawer menu |
||
28 | // $(window).on('scroll',fix_scroll); |
||
29 | } |
||
30 | return false; |
||
31 | }); |
||
32 | |||
33 | |||
34 | |||
35 | /////////// accordion |
||
36 | |||
37 | $(".accordion .toggle").click(function(){ |
||
38 | if($("+.accpanel",this).css("display")=="none"){ |
||
39 | $(this).addClass("active"); |
||
40 | $("+.accpanel",this).slideDown(300); |
||
41 | }else{ |
||
42 | $(this).removeClass("active"); |
||
43 | $("+.accpanel",this).slideUp(300); |
||
44 | } |
||
45 | return false; |
||
46 | }); |
||
47 | |||
48 | |||
49 | /////////// dropdownの中をクリックしても閉じないようにする |
||
50 | |||
51 | $(".dropdown-menu").click(function(e) { |
||
52 | e.stopPropagation(); |
||
53 | }); |
||
54 | |||
55 | /////////// database choice |
||
56 | var hideParameters = function() { |
||
57 | $(".required").hide(); |
||
58 | $("#install_step4_database_host, " |
||
59 | + "#install_step4_database_port, " |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
60 | + "#install_step4_database_name, " |
||
0 ignored issues
–
show
|
|||
61 | + "#install_step4_database_user, " |
||
0 ignored issues
–
show
|
|||
62 | + "#install_step4_database_password").attr("disabled", "disabled"); |
||
0 ignored issues
–
show
|
|||
63 | } |
||
0 ignored issues
–
show
|
|||
64 | , |
||
0 ignored issues
–
show
|
|||
65 | showParameters = function() { |
||
66 | $(".required").show(); |
||
67 | $("#install_step4_database_host, " |
||
68 | + "#install_step4_database_port, " |
||
0 ignored issues
–
show
|
|||
69 | + "#install_step4_database_name, " |
||
0 ignored issues
–
show
|
|||
70 | + "#install_step4_database_user, " |
||
0 ignored issues
–
show
|
|||
71 | + "#install_step4_database_password").removeAttr("disabled"); |
||
0 ignored issues
–
show
|
|||
72 | }; |
||
73 | var database = $("#install_step4_database").val(); |
||
74 | if (database == 'pdo_sqlite') { |
||
75 | hideParameters(); |
||
76 | } else { |
||
77 | showParameters(); |
||
78 | } |
||
79 | $("#install_step4_database").change(function() { |
||
80 | var database = $(this).val(); |
||
81 | if (database == 'pdo_sqlite') { |
||
82 | hideParameters(); |
||
83 | } else { |
||
84 | showParameters(); |
||
85 | } |
||
86 | }); |
||
87 | |||
88 | /////////// 特定の条件下でのみ入力を許可する |
||
89 | // ロードバランサー、プロキシ設定 |
||
90 | $("[name*='[trusted_proxies_connection_only]']").change(function() { |
||
91 | if ($(this).prop("checked")) { |
||
92 | $("[name*='[trusted_proxies]']").prop("readonly", "readonly"); |
||
93 | } else { |
||
94 | $("[name*='[trusted_proxies]']").prop("readonly", null); |
||
95 | } |
||
96 | }); |
||
97 | |||
98 | |||
99 | |||
100 | }); |
||
101 |