Esempio n. 1
0
    if (!key_exists('mail', $asserted_attrs)) {
        relative_redirect('kmnoemail.php');
    }
}
// Avoid double registration by checking if this is a valid
// user before displaying the page. If this user is already
// registered, redirect to the home page.
$ma_url = get_first_service_of_type(SR_SERVICE_TYPE::MEMBER_AUTHORITY);
$member = ma_lookup_member_by_eppn($ma_url, Portal::getInstance(), $eppn);
//$attrs = array('eppn' => $eppn);
//$ma_members = ma_lookup_members($ma_url, Portal::getInstance(), $attrs);
//$count = count($ma_members);
//if ($count !== 0) {
if (!is_null($member)) {
    // Existing account, go to home page or to referer
    redirect_referer("kmhome.php");
}
include "kmheader.php";
print "<h2> GENI Account Activation Page </h2>\n";
include "tool-showmessage.php";
?>

<br/>
In order to activate your GENI account, you must first agree to GENI
policies:<br/>
<ul>
  <li><a href="http://groups.geni.net/geni/attachment/wiki/RUP/RUP.pdf">GENI resource Recommended Use Policy</a>: GENI participants must follow these guidelines in using resources.</li>
   <li>Ethics: Be respectful of other GENI experimenters - these are shared resources.</li>
   <li><a href="../policy/privacy.html">Privacy</a>: Some personal information, including that provided from InCommon, may be shared among GENI operators.</li>
   <li>Cite GENI: If you use GENI in your research or classroom, you must say so in your published papers or other documents. You may make this acknowledgement by citing the following paper:<br/>
 <a href="http://www.sciencedirect.com/science/article/pii/S1389128613004507">GENI: A federated testbed for innovative network experiments</a>.<br/>
Esempio n. 2
0
    if (file_exists($partial)) {
        include $partial;
    } else {
        echo '<h1>Mmm... no encontrado</h1><p>A ver si te vale algo de esto:</p>';
        include_partial("inicio.html");
    }
}
if ($_GET['log'] == 'in') {
    login();
}
if ($_GET['log'] == 'out') {
    logout();
}
if ($_GET['setcookie']) {
    $cookie_name = $_GET['setcookie'];
    setcookie($cookie_name, true);
    redirect_referer();
}
if ($_GET['delcookie']) {
    $cookie_name = $_GET['delcookie'];
    setcookie($cookie_name, false);
    redirect_referer();
}
$string = str_replace("&log=in", "", $_SERVER['QUERY_STRING']);
$string = str_replace("&log=out", "", $_SERVER['QUERY_STRING']);
$qs = $_SERVER['QUERY_STRING'];
$qs = str_replace('q=', '', $qs);
$body_class = explode('_', $qs);
$body_class = $body_class[0];
$menu = explode('/', $qs);
$menu = $menu[0];
Esempio n. 3
0
// THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS
// IN THE WORK.
//----------------------------------------------------------------------
require_once "settings.php";
require_once "user.php";
$user = geni_loadUser();
if (!isset($user) || is_null($user) || !$user->isActive()) {
    relative_redirect('home.php');
}
$rspec_id = NULL;
if (array_key_exists('id', $_GET)) {
    $rspec_id = $_GET['id'];
}
if (is_null($rspec_id)) {
    $_SESSION['lasterror'] = "Resource Specification (RSpec) delete failed: no id specified.";
    redirect_referer('profile.php');
}
$result = deleteRSpecById($rspec_id, $user);
if ($result) {
    $_SESSION['lastmessage'] = "Deleted Resource Specification (RSpec).";
} else {
    $_SESSION['lasterror'] = "Resource Specification (RSpec) delete failed.";
}
redirect_referer('profile.php#rspecs');