Exemplo n.º 1
0
 function __construct($file, $to, $subject, $vars = array())
 {
     $this->template_dir = ROOT_DIR . '/inc/email/';
     if (!file_exists($this->template_dir . $file . '.php')) {
         return false;
     }
     extract($vars);
     $this->to = $to;
     $this->subject = $subject;
     $this->headers = "MIME-Version: 1.0\n";
     $this->headers .= 'From: ' . get_siteinfo('name') . ' <' . get_siteinfo('admin_email') . ">\n";
     $this->headers .= "Content-Type: text/plain; charset=\"" . get_siteinfo('charset') . "\"\n";
     if (isset($headers)) {
         $this->headers .= $headers;
     }
     ob_start();
     include $this->template_dir . $file;
     $this->message = ob_get_clean();
     $this->message = wordwrap($this->message, 80, "\n");
 }
Exemplo n.º 2
0
tooltip/tooltip.css" rel="stylesheet" type="text/css" />
<script src="<?php 
echo ADMIN_THEEM_JS;
?>
tooltip/tooltip.js" type="text/javascript"></script>

 <div id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" class="modal fade">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" data-dismiss="modal" aria-hidden="true" class="close">×</button>
            <h4 id="myModalLabel" class="modal-title">Help</h4>
          </div>
          <div class="modal-body">
           <?php 
$setting_data = get_siteinfo();
echo $setting_data[0]["cnotification"];
?>
          
          </div>
          <div class="modal-footer">
            <button type="button" data-dismiss="modal" class="btn btn-default">OK</button>
            
          </div>
        </div>
      </div>
    </div>
    
 
        
<div class="container">
Exemplo n.º 3
0
<?php

/// Copyright (c) 2004-2015, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('GET' => array('rss' => array('url')));
require ROOT . '/library/preprocessor.php';
importlib('model.blog.link');
if (!empty($_GET['rss'])) {
    list($st, $header, $body, $lmdate, $rval) = @xml_parser($_GET['rss'], '');
    $result = array();
    if ($rval) {
        list($title, $link) = str_dbi_check(@get_siteinfo($rval));
        if (Utils_Unicode::validate($title, true)) {
            $result['name'] = correctTTForXmlText(Utils_Unicode::correct(htmlspecialchars(trim($title))));
        } else {
            $result['name'] = correctTTForXmlText(Utils_Unicode::bring(htmlspecialchars(trim($title))));
        }
        if (Utils_Unicode::validate($link, true)) {
            $result['url'] = correctTTForXmlText(Utils_Unicode::correct(htmlspecialchars(trim($link))));
        } else {
            $result['url'] = correctTTForXmlText(Utils_Unicode::bring(htmlspecialchars(trim($link))));
        }
        Respond::PrintResult($result);
    } else {
        $result['url'] = $_GET['rss'];
        $result['name'] = '';
        Respond::PrintResult($result);
    }
    exit;
} else {