mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-11-01 02:17:52 +00:00
* Menu class does not depend on ClonOS
This commit is contained in:
17
php/utils.php
Normal file
17
php/utils.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
class Utils
|
||||
{
|
||||
public static gen_uri_chunks($uri)
|
||||
{
|
||||
$uri_chunks = [];
|
||||
if(!empty($uri)){
|
||||
$str=str_replace('/index.php','',$uri);
|
||||
$uri_chunks=explode('/',$str);
|
||||
}else if(isset($_POST['path'])){
|
||||
$str=trim($_POST['path'],'/');
|
||||
$uri_chunks=explode('/',$str);
|
||||
}
|
||||
return $uri_chunks;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user