Esempio n. 1
0
 static function encode($str)
 {
     return my_htmlspecialchars($str);
 }
 function render($data = array(), $tpl = null, $CONTENT = null)
 {
     if (!$tpl) {
         return;
     }
     foreach ($data as $k => $v) {
         ${$k} = is_string($v) ? my_htmlspecialchars($v) : $v;
     }
     ob_start();
     if (method_exists($this, $tpl)) {
         $this->{$tpl}($data);
     } else {
         include $tpl;
     }
     $output = ob_get_contents();
     ob_end_clean();
     return $output;
 }
Esempio n. 3
0
 function getHtml($key)
 {
     return isset($this->map[$key]) ? my_htmlspecialchars($this->map[$key]) : null;
 }
Esempio n. 4
0
?>
</strong></div>
Поделиться в соц сетях
<script type="text/javascript">(function() {
          if (window.pluso)if (typeof window.pluso.start == "function") return;
          var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
          s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true;
          s.src = ('https:' == window.location.protocol ? 'https' : 'http')  + '://share.pluso.ru/pluso-like.js';
          var h=d[g]('head')[0] || d[g]('body')[0];
          h.appendChild(s);
          })();</script>
        <div class="pluso" data-options="small,square,line,horizontal,nocounter,theme=04" data-services="vkontakte,odnoklassniki,facebook,twitter,google,moimir" data-background="transparent" data-url="<?php 
echo $promo;
?>
" data-title="<?php 
echo my_htmlspecialchars($this->cfg('HEADER_TITLE'));
?>
"></div>

<br>
<br>

<?php 
echo $this->getText('referal_info');
?>
<table>
    <tr>
    
        <td>Привлеченных</td>
        <td><?php 
echo $ref_count;