$this->hash = $output;
}
+ /**
+ * Populates $this->message
+ *
+ * @return void
+ */
public function loadMessage()
{
$rev = (isset($this->hash)) ? $this->hash : 'HEAD';
session_destroy();
$redirect = 'http://' . $_SERVER['HTTP_HOST'];
header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL));
- exit;
+ exit;
}
if (!count($_GET) && !count($_POST)) {
exit;
}
-if (!empty($_POST['disable_associations'])
- || !empty($_SESSION['disable_associations'])) {
-
+if (!empty($_POST['disable_associations']) || !empty($_SESSION['disable_associations'])) {
$o->disableAssociations();
$_SESSION['disable_associations'] = true;
}
$mode = $message->get('openid.mode');
try {
- $result = $o->verify(new Net_URL2($returnTo . '?' . $queryString),
- $message);
+ $result = $o->verify(new Net_URL2($returnTo . '?' . $queryString), $message);
if ($result->success()) {
$status = "<tr><td>Status:</td><td><font color='green'>SUCCESS!";
$openid = $message->getArrayFormat();
- $email = (isset($openid['openid.ext1.value.email'])) ? $openid['openid.ext1.value.email'] : null;
+ $email = (isset($openid['openid.ext1.value.email'])) ? $openid['openid.ext1.value.email'] : null;
$email = (isset($openid['openid.ext2.value.email']) && !isset($email)) ? $openid['openid.ext2.value.email'] : $email;
$email = (isset($openid['openid.sreg.email']) && !isset($email)) ? $openid['openid.sreg.email'] : $email;
$email = (isset($openid['openid.ax.value.email']) && !isset($email)) ? $openid['openid.ax.value.email'] : $email;
*/
require_once 'www-header.php';
if ($GLOBALS['phorkie']['auth']['secure'] > 0) {
- require_once 'secure.php';
+ include_once 'secure.php';
}
$repo = new Repository();
*/
require_once 'www-header.php';
if ($GLOBALS['phorkie']['auth']['secure'] == 2) {
- require_once 'secure.php';
+ include_once 'secure.php';
}
$repo = new Repository();
*/
require_once 'www-header.php';
if ($GLOBALS['phorkie']['auth']['secure'] > 0) {
- require_once 'secure.php';
+ include_once 'secure.php';
}
$repo = new Repository();
<?php
/**
- * Access Denied
+ * Access Denied page
*/
namespace phorkie;
require_once 'www-header.php';
namespace phorkie;
require_once 'www-header.php';
if ($GLOBALS['phorkie']['auth']['secure'] > 0) {
- require_once 'secure.php';
+ include_once 'secure.php';
}
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
//FIXME: where to put fork source link?
redirect($new->getLink('display'));
-?>
\ No newline at end of file
+?>
namespace phorkie;
require_once 'www-header.php';
if ($GLOBALS['phorkie']['auth']['secure'] == 2) {
- require_once 'secure.php';
+ include_once 'secure.php';
}
$rs = new Repositories();
*/
require_once 'www-header.php';
if ($GLOBALS['phorkie']['auth']['secure'] > 0) {
- require_once 'secure.php';
+ include_once 'secure.php';
}
$repopo = new Repository_Post();
namespace phorkie;
require_once 'www-header.php';
if ($GLOBALS['phorkie']['auth']['secure'] == 2) {
- require_once 'secure.php';
+ include_once 'secure.php';
}
$repo = new Repository();
$repo->loadFromRequest();
namespace phorkie;
require_once 'www-header.php';
if (!isset($_SESSION['identity'])) {
- require_once 'secure.php';
+ include_once 'secure.php';
}
if (isset($_POST['name'])) {
// Set/Get git commit session variables
$_SESSION['ipaddr'] = $_SERVER['REMOTE_ADDR'];
-if (!isset($_SESSION['name'])) { $_SESSION['name'] = $GLOBALS['phorkie']['auth']['anonymousName']; }
-if (!isset($_SESSION['email'])) { $_SESSION['email'] = $GLOBALS['phorkie']['auth']['anonymousEmail']; }
+if (!isset($_SESSION['name'])) {
+ $_SESSION['name'] = $GLOBALS['phorkie']['auth']['anonymousName'];
+}
+if (!isset($_SESSION['email'])) {
+ $_SESSION['email'] = $GLOBALS['phorkie']['auth']['anonymousEmail'];
+}
\Twig_Autoloader::register();