- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 3.15.198.120
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/puertode/www/mesa/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/puertode/www/mesa/include/ajax.tips.php
<?php
/*********************************************************************
    ajax.tips.php

    AJAX interface for help popovers. Initially written to allow
    translations of the installer help popups

    Peter Rotich <peter@osticket.com>
    Jared Hancock <jared@osticket.com>
    Copyright (c)  2006-2013 osTicket
    http://www.osticket.com

    Released under the GNU General Public License WITHOUT ANY WARRANTY.
    See LICENSE.TXT for details.

    vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
if(!defined('INCLUDE_DIR')) die('!');

require_once(INCLUDE_DIR.'class.i18n.php');

class HelpTipAjaxAPI extends AjaxController {
    function getTipsJson($namespace, $lang=false) {
        global $ost, $thisstaff;

        $lang = Internationalization::getCurrentLanguage();

        $i18n = new Internationalization($lang);
        $tips = $i18n->getTemplate("help/tips/$namespace.yaml");

        if (!$tips || !($data = $tips->getData()))
            Http::response(404, 'Help content not available');

        // Translate links to the root path of this installation
        foreach ($data as $tip=>&$info) {
            if ($ost)
                $info = $ost->replaceTemplateVariables($info, array(
                    'config'=>$ost->getConfig()));
            if (isset($info['links']))
                foreach ($info['links'] as &$l)
                    if ($l['href'][0] == '/')
                        $l['href'] = ROOT_PATH.substr($l['href'],1);
        }

        return $this->json_encode($data);
    }

    function getTipsJsonForLang($lang, $namespace) {
        return $this->getTipsJson($namespace, $lang);
    }
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit