Example #1
0
 function __construct()
 {
     parent::__construct();
     // session_start();
     $this->header = get_header_data();
     $this->load->model('ban_model');
 }
Example #2
0
 function __construct()
 {
     parent::__construct();
     //person_login();
     $this->header = get_header_data();
     $this->load->model('post_model');
     $this->load->model('tag_model');
     $this->load->model('post_reply_model');
 }
Example #3
0
 function __construct()
 {
     parent::__construct();
     moderator_admin_login();
     $this->header = get_header_data();
 }
Example #4
0
 $ct = '';
 $boundary_found = false;
 $boundary_header = '';
 $read_data = false;
 $message = '';
 foreach ($lines as $line) {
     if (!$read_data) {
         if (strpos($line, $boundary) !== FALSE && !$boundary_found) {
             $boundary_found = true;
             continue;
         }
         if ($boundary_found) {
             $boundary_header .= $line . $nl;
         }
         if (strlen($line) == 0 && $boundary_found) {
             $bh = get_header_data($boundary_header);
             $ct_array = explode(';', $bh['content-type']);
             if (!isset($data['content_type'])) {
                 $data['content_type'] = array();
             }
             if (!in_array($ct_array[0], $data['content_type']) && strpos($ct_array[0], 'text') === 0) {
                 $data['content_type'][] = $ct_array[0];
             }
             if ($ct_array[0] == $mail_ct_type) {
                 $read_data = true;
             }
             $content_type = explode(';', $bh['content-type']);
             if ($content_type[0] == 'multipart/alternative') {
                 preg_match('/"(.*)"/i', $content_type[1], $match);
                 $boundary = $match[1];
                 $boundary_found = false;
Example #5
0
          <button id="deselect-all" title="Deselect all">☒</button>
          <button id="delete-selected" title="Delete Selected">✗</button>
        </div><!-- /#mail-options -->
        <div id="mails">
        <?php 
foreach ($mails as $mail) {
    ?>
          <?php 
    $read = $mail['read'] == 0 ? 'unread' : 'read';
    ?>
          <div class="mail" data-id="<?php 
    echo $mail['id'];
    ?>
">
            <?php 
    $header = get_header_data($mail['header']);
    ?>
            <div class="mail-from">
              <input type="checkbox">
              <span class="<?php 
    echo $read;
    ?>
"><?php 
    echo $header['from'];
    ?>
</span>
            </div>
            <div class="mail-subject"><?php 
    echo $header['subject'];
    ?>
</div>
Example #6
-1
 function __construct()
 {
     parent::__construct();
     admin_login();
     $this->header = get_header_data();
     $this->load->model('person_model');
 }
Example #7
-1
 function __construct()
 {
     parent::__construct();
     admin_login();
     $this->header = get_header_data();
     $this->load->model('person_model');
     $this->load->model('ban_model');
     date_default_timezone_set('Asia/Bangkok');
 }