HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/subdomains/xibo/vendor/slim/views/SmartyPlugins/function.siteUrl.php
<?php
/*
 * Smarty plugin
 * -------------------------------------------------------------
 * File:     function.siteUrl.php
 * Type:     function
 * Name:     siteUrl
 * Purpose:  outputs url for a function with the defined name method
 * version   0.1.3
 * package   SlimViews
 * -------------------------------------------------------------
 */
function smarty_function_siteUrl($params, $template)
{
    $withUri = isset($params['withUri']) ? $params['withUri'] : true;
    $appName = isset($params['appname']) ? $params['appname'] : 'default';
    $url = isset($params['url']) ? $params['url'] : '';

    $req = \Slim\Slim::getInstance($appName)->request();
    $uri = $req->getUrl();

    if ($withUri) {
        $uri .= $req->getRootUri();
    }

    return $uri . '/' . ltrim($url, '/');
}