1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Begin addition of url class and implementation

This commit is contained in:
mcfly
2008-11-24 18:06:03 +00:00
parent a4a9f60780
commit b4ee6786c6
7 changed files with 155 additions and 19 deletions

17
e107_files/shortcode/url.sc Executable file
View File

@@ -0,0 +1,17 @@
// $Id: url.sc,v 1.1 2008-11-24 18:06:03 mcfly_e107 Exp $
$e107 = e107::getInstance();
list($part, $section, $type, $parms) = explode('::', $parm, 4);
if(strpos('=', $parms) !== false)
{
parse_str($parms, $p);
}
else
{
$p[$parms] = 1;
}
$e107->url->core = ($part == 'core');
if($e107->url->createURL($section, $type, $p))
{
return $e107->url->link;
}
return 'Failed';