public function testDetailsUrl() { global $showslow_base; putenv("URLVERSIONREWRITE=YES"); $url = 'http://www.foo.com'; $urlId = 2345; $this->assertEquals(detailsUrl($urlId, $url), $showslow_base . 'details/' . $urlId . '/' . $url); putenv("URLVERSIONREWRITE=NO"); $this->assertEquals(detailsUrl($urlId, $url), $showslow_base . 'details/?urlid=' . $urlId . '&url=' . $url); }
echo $row['dt_o']; ?> )"><div class="gbox"><div style="width: <?php echo $row['dt_o'] + 1; ?> px" class="bar c<?php echo scoreColorStep($row['dt_o']); ?> "/></div></td> <?php } } ?> <td style="padding-left: 1em; overflow: hidden; white-space: nowrap;"><a href="<?php echo detailsUrl($row['url_id'], $row['url']); ?> "><?php echo htmlentities(substr($row['url'], 0, 100)); if (strlen($row['url']) > 100) { ?> ...<?php } ?> </a></td> <?php } else { ?> <td style="text-align: right; padding-right: 1em"><i title="added to the testing queue">queued</i></td> <td colspan="4"/> <td style="padding-left: 1em; overflow: hidden; white-space: nowrap;"><i title="Time of last check for this URL"><?php
} } echo implode(' | ', $menus); ?> </b></div> <?php } ?> <ul style="margin-top: 1em"> <?php foreach ($urls as $url) { ?> <li> <a href="<?php echo detailsUrl($urlids[$url], $url); ?> "><?php echo htmlentities(substr($url, 0, 60)); if (strlen($url) > 60) { ?> ...<?php } ?> </a><?php if (is_null($data[$url][$ranker])) { ?> (no <?php if ($ranker == 'yslow') { echo 'YSlow '; }
} if ($urlid && !$url) { $query = "SELECT url FROM urls WHERE urls.id = " . mysql_real_escape_string($urlid); $result = mysql_query($query); if (!$result) { error_log(mysql_error()); } $row = mysql_fetch_assoc($result); if (is_null($row)) { not_found(); } else { $url = $row['url']; if (is_null($url)) { not_found(); } header("Location: " . detailsUrl($urlid, $url)); exit; } } # building a query to select all beacon data in one swoop $query = "SELECT urls.id AS url_id, urls.url as url, UNIX_TIMESTAMP(last_update) AS t, last_event_update, yslow2.details AS yslow_details"; foreach ($all_metrics as $provider_name => $provider) { $query .= ",\n\t" . $provider['table'] . '_last_id, UNIX_TIMESTAMP(' . $provider['table'] . '.timestamp) AS ' . $provider_name . '_timestamp'; foreach ($provider['metrics'] as $section_name => $section) { foreach ($section as $metric) { $query .= ",\n\t\t" . $provider['table'] . '.' . $metric[1] . ' AS ' . $provider_name . '_' . $metric[1]; } } } $query .= "\nFROM urls"; foreach ($all_metrics as $provider_name => $provider) {