| <?php |
| /******************************************************************************* |
| * Copyright (c) 2009-2012 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 |
| *******************************************************************************/ |
| |
| $theme = "solstice"; |
| $Nav->addCustomNav("Friends of Eclipse", "http://www.eclipse.org/donate/", "_self", 0); |
| $Nav->addCustomNav("Bugzilla", "https://bugs.eclipse.org/bugs/", "_self", 0); |
| |
| $email_regexp = "/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/"; |
| |
| $xss_patterns = array('/<script[^>]*?>.*?<\/script>/si', '/<[\/\!]*?[^<>]*?>/si', '/<style[^>]*?>.*?<\/style>/siU', '/<![\s\S]*?–[ \t\n\r]*>/'); |
| $name_regexp = '/[^\p{L}\p{N}\-\.\' ]/u'; |
| |
| $spacer = "   |   "; |
| |
| $jumpToHTML = <<<EOHTML |
| <ul> |
| Jump to: |
| <li><a href="https://bugs.eclipse.org/bugs/">Bugzilla</a></li> |
| <li><a href="http://git.eclipse.org/c/">Git source repositories</a></li> |
| <li><a href="http://www.eclipse.org/forums/">Forums</a></li> |
| <li><a href="http://marketplace.eclipse.org/">Eclipse Marketplace</a></li> |
| </ul> |
| EOHTML; |
| |
| function generateBugzillaSHA256Password($_password) { |
| $cp = 0; |
| global $App; |
| |
| if($_password != "") { |
| # Generate random salt |
| $hash = "{SHA-256}"; |
| $salt = $App->getAlphaCode(8); |
| $cp = str_replace("=", "", $salt . base64_encode(hash("sha256", $_password . $salt, true))) . $hash; |
| } |
| return $cp; |
| } |
| $App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="sitelogin.css" media="screen" />'); |
| ?> |