|
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | | - * Redirect script |
| 4 | + * Redirect script. |
| 5 | + * |
5 | 6 | * @package chamilo.custompages |
6 | 7 | */ |
7 | | - |
8 | 8 | require_once api_get_path(SYS_PATH).'main/inc/global.inc.php'; |
9 | 9 | require_once __DIR__.'/language.php'; |
10 | 10 |
|
11 | 11 | /** |
12 | | - * Homemade micro-controller |
| 12 | + * Homemade micro-controller. |
13 | 13 | */ |
14 | 14 | if (isset($_GET['loginFailed'])) { |
15 | 15 | if (isset($_GET['error'])) { |
|
37 | 37 | $rootWeb = api_get_path('WEB_PATH'); |
38 | 38 |
|
39 | 39 | /** |
40 | | - * HTML output |
| 40 | + * HTML output. |
41 | 41 | */ |
42 | 42 | ?> |
43 | 43 | <html> |
44 | 44 | <head> |
45 | 45 | <title>Custompage - login</title> |
46 | 46 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
47 | | - <script type="text/javascript" src="<?php echo $rootWeb ?>web/assets/jquery/dist/jquery.min.js"></script> |
| 47 | + <script type="text/javascript" src="<?php echo $rootWeb; ?>web/assets/jquery/dist/jquery.min.js"></script> |
48 | 48 | <script type="text/javascript"> |
49 | 49 | $(document).ready(function() { |
50 | 50 | if (top.location != location) { |
|
62 | 62 | </head> |
63 | 63 | <body> |
64 | 64 | <div id="backgroundimage"> |
65 | | - <img src="<?php echo api_get_path(WEB_PATH)?>/custompages/images/page-background.png" class="backgroundimage" /> |
| 65 | + <img src="<?php echo api_get_path(WEB_PATH); ?>/custompages/images/page-background.png" class="backgroundimage" /> |
66 | 66 | </div> |
67 | 67 | <div id="wrapper"> |
68 | 68 | <div id="header"> |
69 | | - <img src="<?php echo api_get_path(WEB_PATH)?>/custompages/images/header.png" alt="Logo" /> |
| 69 | + <img src="<?php echo api_get_path(WEB_PATH); ?>/custompages/images/header.png" alt="Logo" /> |
70 | 70 | </div> <!-- #header --> |
71 | 71 | <div id="login-form-box" class="form-box"> |
72 | 72 | <div id="login-form-info" class="form-info"> |
|
79 | 79 | echo '<div id="login-form-info" class="form-error">'.$error_message.'</div>'; |
80 | 80 | } |
81 | 81 | ?> |
82 | | - <form id="login-form" class="form" action="<?php echo api_get_path(WEB_PATH)?>index.php" method="post"> |
| 82 | + <form id="login-form" class="form" action="<?php echo api_get_path(WEB_PATH); ?>index.php" method="post"> |
83 | 83 | <div> |
84 | 84 | <label for="login">*<?php echo custompages_get_lang('User'); ?></label> |
85 | 85 | <input name="login" type="text" /><br /> |
|
95 | 95 | <?php if (api_get_setting('allow_registration') === 'true') { |
96 | 96 | ?> |
97 | 97 | <a href="<?php echo api_get_path(WEB_CODE_PATH); ?>auth/inscription.php?language=<?php echo api_get_interface_language(); ?>"> |
98 | | - <?php echo custompages_get_lang('Registration')?> |
| 98 | + <?php echo custompages_get_lang('Registration'); ?> |
99 | 99 | </a><br /> |
100 | 100 | <?php |
101 | 101 | } ?> |
102 | 102 |
|
103 | 103 | <a href="<?php echo api_get_path(WEB_CODE_PATH); ?>auth/lostPassword.php?language=<?php echo api_get_interface_language(); ?>"> |
104 | | - <?php echo custompages_get_lang('LostPassword')?> |
| 104 | + <?php echo custompages_get_lang('LostPassword'); ?> |
105 | 105 | </a> |
106 | 106 | </div> |
107 | 107 | </div> <!-- #form --> |
|
0 commit comments