]> git.wh0rd.org - tt-rss.git/blobdiff - register.php
daemon: fallback automatically when pcntl_signal() is not present
[tt-rss.git] / register.php
index edd2893754b435fd5c5261a1024184871e50c337..9969d83ba8e2c369d3d83c91d80f0fa349d7cb9c 100644 (file)
@@ -59,8 +59,8 @@
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <link rel="stylesheet" type="text/css" href="utility.css">
 <script type="text/javascript" src="functions.js"></script>
-<script type="text/javascript" src="prototype.js"></script>
-<script type="text/javascript" src="scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script>
+<script type="text/javascript" src="lib/prototype.js"></script>
+<script type="text/javascript" src="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script>
 </head>
 
 <script type="text/javascript">
                $num_users = db_fetch_result($result, 0, "cu");
 } ?>
 
-<? if (!REG_MAX_USERS || $num_users < REG_MAX_USERS) { ?>
+<?php if (!REG_MAX_USERS || $num_users < REG_MAX_USERS) { ?>
 
        <!-- If you have any rules or ToS you'd like to display, enter them here -->
 
                        require_once "templates/register_notice.txt";
        } ?>
 
-       <? if (!$action) { ?>
+       <?php if (!$action) { ?>
        
        <p><?php echo __('Your temporary password will be sent to the specified email. Accounts, which were not logged in once, are erased automatically 24 hours after temporary password is sent.') ?></p> 
        
        <td><?php echo __('How much is two plus two:') ?></td><td>
                <input name="turing_test"></td></tr>
        <tr><td colspan="2" align="right">
-       <input type="submit" name="sub_btn" value="<?php echo __('Submit registration"') ?>"
+       <input type="submit" name="sub_btn" value="<?php echo __('Submit registration') ?>"
                        disabled="true" onclick='return validateRegForm()'>
        </td></tr>
        </table>
                                <input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">
                                </form>"; ?>
 
-       <? } else if ($action == "do_register") { ?>
+       <?php } else if ($action == "do_register") { ?>
        
-       <?
+       <?php
                $login = mb_strtolower(trim(db_escape_string($_REQUEST["login"])));
                $email = trim(db_escape_string($_REQUEST["email"]));
                $test = trim(db_escape_string($_REQUEST["turing_test"]));
                        
                                        $mail = new PHPMailer();
                        
-                                       $mail->PluginDir = "phpmailer/";
-                                       $mail->SetLanguage("en", "phpmailer/language/");
+                                       $mail->PluginDir = "lib/phpmailer/";
+                                       $mail->SetLanguage("en", "lib/phpmailer/language/");
                        
                                        $mail->CharSet = "UTF-8";
                        
                        
                                        $mail = new PHPMailer();
                        
-                                       $mail->PluginDir = "phpmailer/";
-                                       $mail->SetLanguage("en", "phpmailer/language/");
+                                       $mail->PluginDir = "lib/phpmailer/";
+                                       $mail->SetLanguage("en", "lib/phpmailer/language/");
                        
                                        $mail->CharSet = "UTF-8";
                        
                }
        ?>
 
-<? } else { ?>
+<?php } else { ?>
 
        <?php print_notice(__('New user registrations are currently closed.')) ?>
 
                                <input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">
                                </form>"; ?>
 
-<? } ?>
+<?php } ?>
 
 </body>
 </html>