| <?php |
| /******************************************************************************* |
| * Copyright (c) 2012-2015 Eclipse Foundation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Denis Roy (Eclipse Foundation)- initial API and implementation |
| * Christopher Guindon (Eclipse Foundation) - Bug 432355 - Update l&f of the Eclipse site login |
| *******************************************************************************/ |
| |
| //if name of the file requested is the same as the current file, the script will exit directly. |
| if(basename(__FILE__) == basename($_SERVER['PHP_SELF'])){exit();} |
| |
| $var_login = $Sitelogin->getVariables('login'); |
| $var_create = $Sitelogin->getVariables('create'); |
| ?> |
| <div class="container padding-bottom" style="padding-top:2em;"> |
| <div class="col-md-24"> |
| <?php print $Sitelogin->getSystemMessage();?> |
| </div> |
| <div class="col-md-12"> |
| <h1>Eclipse Login</h1> |
| <p><a href="http://eclipse.org/friends">Friends of Eclipse</a> must log in to receive friendship benefits.</p><br/> |
| <form class="form-horizontal" name="login" method="post" action="index.php" id="frm_login"> |
| |
| <div class="form-group"> |
| <label class="col-sm-6 control-label">Email address</label> |
| <div class="col-sm-16"> |
| <input class="form-control" type="text" name="username" value="<?php print $var_login['username'] ?>" size="42" maxlength="255" tabindex="1" placeholder="Enter email" /> |
| </div> |
| </div> |
| <div class="form-group"> |
| <label class="col-sm-6 control-label">Password</label> |
| <div class="col-sm-16"> |
| <input class="form-control" type="password" name="password" value="<?php print $var_login['password'] ?>" size="42" maxlength="255" tabindex="2" placeholder="Password" /> |
| </div> |
| </div> |
| <div class="col-md-9"> |
| <input type="checkbox" name="remember" value="1" <?php print $var_login['remember'] ?> tabindex="3"/> Remember me |
| </div> |
| <div class="col-md-15"> |
| <a href="password_recovery.php">Reset my password</a> |
| </div> |
| <div> |
| <br/> |
| <br/> |
| <button type="submit" name="btn-submit" tabindex="4" class="btn btn-primary">Login</button> |
| <input type="hidden" name="stage" value="login" /> |
| <input type="hidden" name="takemeback" value="<?php print $var_login['takemeback']; ?>" /> |
| <input type="hidden" name="token-login" value="<?php print $Sitelogin->FormToken->getToken();?>" /> |
| <input type="hidden" name="login-username" value="" /> |
| </div> |
| </form> |
| </div> |
| <div class="col-md-12 border-left-column border-left-col"> |
| <h2>New to Eclipse? Create an account</h2> |
| <p>Welcome to the Eclipse.org community. Use the form below to create a new account to access our <a href="http://www.eclipse.org/forums">forums</a>, <a href="https://bugs.eclipse.org/bugs">Bugzilla</a>, <a href="http://wiki.eclipse.org">Wiki</a> and other Eclipse sites.</p> |
| <p><b>Please note:</b> Eclipse is an open and transparent community. Most of what you submit on our site will be visible to everyone, |
| and your email address may be visible to users who use Bugzilla, Gerrit, Git, and our mailing lists. You may prefer to use an email account specifically for this purpose.</p> |
| |
| <h3>Create a New Account</h3> |
| <form name="login" class="form-horizontal" action="index.php" method="post" id="frm_create_account"> |
| |
| <div class="form-group clearfix"> |
| <label class="col-sm-7 control-label">Email address <span class="required">*</span></label> |
| <div class="col-sm-16"> |
| <input type="text" class="form-control" tabindex="5" name="username" value="<?php print $var_create['username'] ?>" size="32" maxlength="255" placeholder="Enter email" /> |
| </div> |
| </div> |
| |
| <div class="form-group clearfix"> |
| <label class="col-sm-7 control-label">First name <span class="required">*</span></label> |
| <div class="col-sm-16"> |
| <input class="form-control" type="text" tabindex="6" name="fname" value="<?php print $var_create['fname'] ?>" size="32" maxlength="255" placeholder="First name" /> |
| </div> |
| </div> |
| |
| <div class="form-group clearfix"> |
| <label class="col-sm-7 control-label">Last name <span class="required">*</span></label> |
| <div class="col-sm-16"> |
| <input class="form-control" type="text" tabindex="6" name="lname" value="<?php print $var_create['lname'] ?>" size="32" maxlength="255" placeholder="Last name" /> |
| </div> |
| </div> |
| |
| <div class="form-group clearfix"> |
| <label class="col-sm-7 control-label">Password <span class="required">*</span></label> |
| <div class="col-sm-16"> |
| <input class="form-control" tabindex="7" type="password" name="password1" value="<?php print $var_create['password1'] ?>" size="16" maxlength="255" placeholder="Password" /> |
| </div> |
| </div> |
| |
| <div class="form-group clearfix"> |
| <label class="col-sm-7 control-label">Password (again) <span class="required">*</span></label> |
| <div class="col-sm-16"> |
| <input class="form-control" type="password" tabindex="8" name="password2" value="<?php print $var_create['password2'] ?>" size="16" maxlength="255" placeholder="Password (again)" /> |
| </div> |
| </div> |
| |
| <div class="form-group clearfix"> |
| <label class="col-sm-7 control-label">Country of residence <span class="required">*</span></label> |
| <div class="col-sm-16"> |
| <select name="country" class="form-control"> |
| <option value="">Choose a country</option> |
| <?php print $Sitelogin->showCountries(); ?> |
| </select> |
| </div> |
| </div> |
| |
| <div class="form-group clearfix"> |
| <label class="col-sm-7 control-label">Organization</label> |
| <div class="col-sm-16"> |
| <input class="form-control" type="text" name="organization" value="<?php print $var_create['organization'] ?>" size="32" maxlength="255"/> |
| </div> |
| </div> |
| |
| <div class="form-group clearfix"> |
| <label class="col-sm-7 control-label">Verification<span class="required">*</span></label> |
| <div class="col-sm-16"> |
| <?php print $Captcha->get_html();?> |
| </div> |
| </div> |
| |
| <div class="form-group clearfix"> |
| <div class="col-sm-24"> |
| <div class="checkbox"> |
| <label> |
| <input type="checkbox" name="newsletter_status" value="subscribe" tabindex="10" /> |
| <span class="col-sm-24">I would like to subscribe to the Eclipse newsletter</span> |
| </label> |
| </div> |
| </div> |
| </div> |
| |
| <div class="form-group clearfix"> |
| <div class="col-sm-24"> |
| <div class="checkbox"> |
| <label> |
| <input type="checkbox" name="agree" <?php print $var_create['agree']; ?> value="1" tabindex="10" /> |
| <span class="col-sm-24">I agree not to post SPAM on this account. I also agree to the Eclipse.org <a href="http://www.eclipse.org/legal/termsofuse.php">Terms of Use</a> and <a href="http://www.eclipse.org/legal/privacy.php">Privacy Policy</a>.<span color="red">*</span></span> |
| </label> |
| </div> |
| </div> |
| </div> |
| |
| <div class="form-group clearfix"> |
| <div class="col-sm-24"> |
| <button type="submit" name="btn-submit" tabindex="4" class="btn btn-primary">Create account!</button> |
| <input type="hidden" name="stage" value="create" /> |
| <input type="hidden" name="token-create-account" value="<?php print $Sitelogin->FormToken->getToken();?>" /> |
| <input type="hidden" name="create-account-email-req" value="" /> |
| </div> |
| </div> |
| </form><br/> |
| </div> |
| </div> |
| |