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:
17
e107_files/shortcode/url.sc
Executable file
17
e107_files/shortcode/url.sc
Executable 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';
|
Reference in New Issue
Block a user