<?php foreach ($this->data['idplist'] as $tab => $slist) { echo '<div id="' . $tab . '">'; if (!empty($slist)) { echo ' <div class="inlinesearch">'; echo ' <p>Incremental search...</p>'; echo ' <form id="idpselectform" action="?" method="get"><input class="inlinesearchf" type="text" value="" name="query_' . $tab . '" id="query_' . $tab . '" /></form>'; echo ' </div>'; echo ' <div class="metalist" id="list_' . $tab . '">'; if (!empty($this->data['preferredidp']) && array_key_exists($this->data['preferredidp'], $slist)) { $idpentry = $slist[$this->data['preferredidp']]; echo showEntry($this, $idpentry, TRUE); } foreach ($slist as $idpentry) { if ($idpentry['entityid'] != $this->data['preferredidp']) { echo showEntry($this, $idpentry); } } echo ' </div>'; } echo '</div>'; } ?> </div> <?php $this->includeAtTemplateBase('includes/footer.php');
function showOverview($blogpage, $entriesPerPage) { $numEntriesCounted = 0; $numEntriesPrinted = 0; /* YEARS */ $arrayYears = scanDirectory("entries/", TRUE); foreach ($arrayYears as $currentYear) { $yearPath = "entries/{$currentYear}/"; /* MONTHS */ $arrayMonths = scanDirectory($yearPath, TRUE); foreach ($arrayMonths as $currentMonth) { $monthPath = $yearPath . "{$currentMonth}/"; /* DAYS */ $arrayDays = scanDirectory($monthPath, TRUE); foreach ($arrayDays as $currentDay) { $dayPath = $monthPath . "{$currentDay}/"; /* ENTRIES */ $arrayEntries = scanDirectory($dayPath, FALSE); foreach ($arrayEntries as $currentEntry) { if (is_dir($dayPath . $currentEntry)) { continue; } preg_match("/\\.([^\\.]+)\$/", $currentEntry, $matches); if ($matches[1] != "txt") { continue; } if ($numEntriesCounted < ($blogpage - 1) * $entriesPerPage) { $numEntriesCounted += 1; continue; } $blogentry = array("year" => $currentYear, "month" => $currentMonth, "day" => $currentDay, "id" => substr($currentEntry, 0, -4)); showEntry($blogentry, TRUE); $numEntriesPrinted += 1; if ($numEntriesPrinted >= $entriesPerPage) { return $numEntriesPrinted; } } } } } if ($numEntriesPrinted == 0) { echo "[no content]"; } return $numEntriesPrinted; }
<? // LDAP - PHP interface for Wagtail // v0.2 include("config.php"); include("functions.php"); // Login dn and password set as cookies $login_dn = (isset( $_COOKIE['login_dn'] ) and $_COOKIE['login_dn']!="" )? $_COOKIE['login_dn'] : "anon"; $login_pass = isset( $_COOKIE['login_pass'] ) ? $_COOKIE['login_pass'] : null; $Command=$_REQUEST['Command']; $region=$_REQUEST['region']; // Need to set new cookies before any text sent if($_REQUEST['Command']=='Log In'){ $uid=$_REQUEST['uid']; $ldapuser=getUserFromUID($uid); $login_pass=$_REQUEST['pw']; // See if can bind with those values $ldapConn = ldap_connect($ldapServer); ldap_set_option( $ldapConn, LDAP_OPT_PROTOCOL_VERSION, 3 ); $ldapBind = ldap_bind($ldapConn,$ldapuser,$login_pass); if ($ldapBind){ setcookie('login_dn', $ldapuser); setcookie('login_pass', $login_pass); $login_dn=$ldapuser; $login_pass=$_REQUEST['pw']; } else{ print "Unable to connect to $ldapServer as $ldapuser with that password<p>"; }
<?php include_once "header.php"; include_once "db.php"; include_once "sourlib.php"; $id = $_GET['id']; $id = mysql_real_escape_string($id); $action = $_GET['action']; $action = mysql_real_escape_string($action); $catid = $_GET['catid']; $catid = mysql_real_escape_string($catid); if (checkCookie()) { if (preg_match("/^save\$/", $action)) { saveEntry($id); } elseif (preg_match("/^unread\$/", $action)) { markEntryUnread($id); } else { markEntryRead($id); } printEntrybar($id, $catid); } showEntry($id); ?> </body> </html>
showEntry('SAML 2.0 Service Provider (Remote)', $this->data['metadata.saml20-sp-remote'], $this->data['baseurlpath']); } if (array_key_exists('metadata.saml20-idp-hosted', $this->data)) { showEntry('SAML 2.0 Identity Provider (Hosted)', $this->data['metadata.saml20-idp-hosted'], $this->data['baseurlpath']); } if (array_key_exists('metadata.saml20-idp-remote', $this->data)) { showEntry('SAML 2.0 Identity Provider (Remote)', $this->data['metadata.saml20-idp-remote'], $this->data['baseurlpath']); } if (array_key_exists('metadata.shib13-sp-hosted', $this->data)) { showEntry('Shib 1.3 Service Provider (Hosted)', $this->data['metadata.shib13-sp-hosted'], $this->data['baseurlpath']); } if (array_key_exists('metadata.shib13-sp-remote', $this->data)) { showEntry('Shib 1.3 Service Provider (Remote)', $this->data['metadata.shib13-sp-remote'], $this->data['baseurlpath']); } if (array_key_exists('metadata.shib13-idp-hosted', $this->data)) { showEntry('Shib 1.3 Identity Provider (Hosted)', $this->data['metadata.shib13-idp-hosted'], $this->data['baseurlpath']); } if (array_key_exists('metadata.shib13-idp-remote', $this->data)) { showEntry('Shib 1.3 Identity Provider (Remote)', $this->data['metadata.shib13-idp-remote'], $this->data['baseurlpath']); } if (array_key_exists('metadata.wsfed-sp-hosted', $this->data)) { showEntry('WS-Federation Service Provider (Hosted)', $this->data['metadata.wsfed-sp-hosted'], $this->data['baseurlpath']); } if (array_key_exists('metadata.wsfed-idp-remote', $this->data)) { showEntry('WS-Federation Identity Provider (Remote)', $this->data['metadata.wsfed-idp-remote'], $this->data['baseurlpath']); } ?> <?php $this->includeAtTemplateBase('includes/footer.php');
echo '<li>' . htmlspecialchars($key) . '</li>'; } echo '</ul>'; } if (count($entity['leftovers']) > 0) { echo '</div><div class="efieldlist warning">'; echo '<h5>' . $t->t('metaover_unknown_found') . '</h5><ul>'; foreach ($entity['leftovers'] as $key => $value) { echo '<li>' . htmlspecialchars($key) . '</li>'; } echo '</ul>'; } echo '</div></div>'; echo '</div>' . "\n\n"; } } showEntry($this, 'metadata.saml20-sp-hosted'); showEntry($this, 'metadata.saml20-sp-remote'); showEntry($this, 'metadata.saml20-idp-hosted'); showEntry($this, 'metadata.saml20-idp-remote'); showEntry($this, 'metadata.shib13-sp-hosted'); showEntry($this, 'metadata.shib13-sp-remote'); showEntry($this, 'metadata.shib13-idp-hosted'); showEntry($this, 'metadata.shib13-idp-remote'); showEntry($this, 'metadata.wsfed-sp-hosted'); showEntry($this, 'metadata.wsfed-idp-remote'); ?> <?php $this->includeAtTemplateBase('includes/footer.php');
$title = _("Excluded Modules"); } elseif ($type == "load") { $title = _("Manually Loaded Modules"); } else { $title = _("Unknown Entry") . " '{$type}'"; } print "<th colspan=2>{$title}</th>\n"; print "<input type='hidden' name='area' value='{$type}'>\n"; if (isset($pc[$type])) { $files = $pc[$type]; if (is_array($files)) { foreach ($files as $file) { showEntry($type, $file); } } else { showEntry($type, $files); } } print "<tr><td><input class='txt' name='new-{$type}' data-submit='add-{$type}' type='text' size=35 style='font-family: monospace'></td>\n"; print "<td><input type='submit' id='add-{$type}' name='add-{$type}' value='" . _("Add") . "' /></td></tr>\n"; } print "</table>\n"; print "</form>\n"; function showEntry($type, $file) { print "<tr><td><span style='font-family: monospace'>{$file}</span></td>\n"; print "<td><input type='submit' name='delete-{$type}-" . base64_encode($file) . "' value='" . _("Delete") . "' /></td></tr>\n"; } ?> <script type="text/javascript">
$stride = 2; $comment = "TEST COMMENT FOR WEB SERVICES."; $status = "dec"; // load nusoap client library require_once("../../3rd/nusoap/lib/nusoap.php"); require_once("unitTestLib.php"); require_once("conf.inc"); global $sites; global $conf; global $count; $count = 0; init(); if(!isset($_GET['api'])) { showEntry(); } else { $api = "&api=".$_GET['api']; /* $sites = array( "devGreg" => "http://plstage.nlm.nih.gov/~miernickig/vesuvius/vesuvius/www/index.php?wsdl".$api, ); */ $sites = array( "PL" => "https://pl.nlm.nih.gov/?wsdl".$api, "PLstage" => "https://plstage.nlm.nih.gov/?wsdl".$api, "devGreg" => "http://plstage.nlm.nih.gov/~miernickig/vesuvius/vesuvius/www/index.php?wsdl".$api, ); init2();