Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
entrix
WoWSimpleRegistration
Commits
a69194d2
Commit
a69194d2
authored
Jul 27, 2020
by
Amin.MasterkinG
Browse files
Light template support HCaptcha/Recaptcha v2.
parent
61f808c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
template/light/tpl/header.php
View file @
a69194d2
...
...
@@ -24,6 +24,7 @@
<script
src=
"
<?php
echo
$antiXss
->
xss_clean
(
get_config
(
"baseurl"
));
?>
/template/
<?php
echo
$antiXss
->
xss_clean
(
get_config
(
"template"
));
?>
/js/jquery-3.3.1.min.js"
></script>
<script
src=
"
<?php
echo
$antiXss
->
xss_clean
(
get_config
(
"baseurl"
));
?>
/template/
<?php
echo
$antiXss
->
xss_clean
(
get_config
(
"template"
));
?>
/js/bootstrap.min.js"
></script>
<script
src=
"
<?php
echo
$antiXss
->
xss_clean
(
get_config
(
"baseurl"
));
?>
/template/
<?php
echo
$antiXss
->
xss_clean
(
get_config
(
"template"
));
?>
/js/popper.min.js"
></script>
<?php
echo
getCaptchaJS
();
?>
</head>
<body>
<div
class=
"container"
>
\ No newline at end of file
template/light/tpl/main.php
View file @
a69194d2
...
...
@@ -60,13 +60,7 @@ require_once 'header.php'; ?>
<input
type=
"password"
class=
"form-control"
placeholder=
"Re-Password"
name=
"repassword"
>
</div>
<div
class=
"input-group"
>
<span
class=
"input-group"
>
Captcha
</span>
<input
type=
"text"
class=
"form-control"
placeholder=
"Captcha"
name=
"captcha"
>
</div>
<p
style=
"text-align: center;margin-top: 10px;"
>
<img
src=
"
<?php
echo
user
::
$captcha
->
inline
();
?>
"
style=
"border-radius: 5px;"
/>
</p>
<?php
echo
GetCaptchaHTML
();
?>
<input
name=
"submit"
type=
"hidden"
value=
"register"
>
<div
class=
"text-center"
style=
"margin-top: 10px;"
><input
type=
"submit"
class=
"btn btn-danger"
...
...
@@ -168,16 +162,8 @@ require_once 'header.php'; ?>
placeholder=
"Username"
name=
"username"
>
</div>
<?php
}
?>
<div
class=
"input-group"
>
<span
class=
"input-group"
>
Captcha
</span>
<input
type=
"text"
class=
"form-control"
placeholder=
"Captcha"
name=
"captcha"
>
</div>
<p
style=
"text-align: center;margin-top: 10px;"
>
<img
src=
"
<?php
echo
user
::
$captcha
->
inline
();
?>
"
style=
"border-radius: 5px;"
/>
</p>
<?php
}
echo
GetCaptchaHTML
();
?>
<input
name=
"submit"
type=
"hidden"
value=
"restorepassword"
>
<div
class=
"text-center"
style=
"margin-top: 10px;"
><input
type=
"submit"
...
...
@@ -236,15 +222,7 @@ require_once 'header.php'; ?>
placeholder=
"Re-Password"
name=
"repassword"
>
</div>
<div
class=
"input-group"
>
<span
class=
"input-group"
>
Captcha
</span>
<input
type=
"text"
class=
"form-control"
placeholder=
"Captcha"
name=
"captcha"
>
</div>
<p
style=
"text-align: center;margin-top: 10px;"
>
<img
src=
"
<?php
echo
user
::
$captcha
->
inline
();
?>
"
style=
"border-radius: 5px;"
/>
</p>
<?php
echo
GetCaptchaHTML
();
?>
<input
name=
"submit"
type=
"hidden"
value=
"changepass"
>
<div
class=
"text-center"
style=
"margin-top: 10px;"
><input
type=
"submit"
...
...
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