Changeset 13258 for trunk/include/functions_url.inc.php
- Timestamp:
- Feb 19, 2012, 8:59:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_url.inc.php
r13240 r13258 34 34 {// TODO - add HERE the possibility to call PWG functions from external scripts 35 35 $root_url = PHPWG_ROOT_PATH; 36 37 38 39 40 } 41 36 if ( strncmp($root_url, './', 2) == 0 ) 37 { 38 return substr($root_url, 2); 39 } 40 } 41 return $root_url; 42 42 } 43 43 … … 301 301 global $conf; 302 302 $section_string = ''; 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 303 $section = @$params['section']; 304 if (!isset($section)) 305 { 306 $section_of = array( 307 'category' => 'categories', 308 'tags' => 'tags', 309 'list' => 'list', 310 'search' => 'search', 311 ); 312 313 foreach ($section_of as $param => $s) 314 { 315 if (isset($params[$param])) 316 { 317 $section = $s; 318 } 319 } 320 321 if (!isset($section)) 322 { 323 $section = 'none'; 324 } 325 } 326 326 327 327 switch($section)
Note: See TracChangeset
for help on using the changeset viewer.