Revision 7909
Added by Aaron Marcuse-Kubitza over 11 years ago
index.php | ||
---|---|---|
2 | 2 |
require_once dirname(__FILE__)."/util.php"; |
3 | 3 |
|
4 | 4 |
# config |
5 |
$alias = "j.mp/vegpath"; |
|
5 |
$alias = "j.mp/vegpath#";
|
|
6 | 6 |
|
7 | 7 |
function by_prefix($url, $main_url=null) |
8 | 8 |
{ |
... | ... | |
23 | 23 |
global $alias, $h_level, $path, $ref; |
24 | 24 |
if (is_string($url_func)) $url_func = by_prefix($url_func); |
25 | 25 |
|
26 |
print("<h".$h_level.' id="'.$name.'">'.$alias.'#<big><a href="http://'.$alias
|
|
27 |
."#".$name.'">'.$name."</a></big><i>".$suffix."</i></h".$h_level.">\n");
|
|
26 |
print("<h".$h_level.' id="'.$name.'">'.$alias.'<big><a href="http://'.$alias |
|
27 |
.$name.'">'.$name."</a></big><i>".$suffix."</i></h".$h_level.">\n"); |
|
28 | 28 |
if ($ref === strtolower($name)) # found match, so redirect |
29 | 29 |
{ |
30 | 30 |
header("Location: ".strip_url($url_func($path->tail))); |
Also available in: Unified diff
web/vegpath/index.php: Add # suffix to $alias instead of adding it in add_ref(), because not all aliases will use a # suffix