Esempio n. 1
0
 public function display()
 {
     global $page;
     $html = '';
     // How many pages?
     $this->num_pages = ceil($this->total / PER_PAGE);
     // If pages less than or equal to 1, display nothing..
     if ($this->num_pages <= 1) {
         return $html;
     }
     // Build pages..
     $current_page = $page;
     $begin = $current_page - $this->split;
     $end = $current_page + $this->split;
     if ($begin < 1) {
         $begin = 1;
         $end = $this->split * 2;
     }
     if ($end > $this->num_pages) {
         $end = $this->num_pages;
         $begin = $end - $this->split * 2;
         $begin++;
         if ($begin < 1) {
             $begin = 1;
         }
     }
     if ($current_page != 1) {
         $html .= '<li><a title="' . mswSpecialChars($this->text[0]) . '" href="' . $this->query . '1" rel="nofollow">' . $this->text[0] . '</a></li>' . mswDefineNewline();
         $html .= '<li><a title="' . mswSpecialChars($this->text[1]) . '" href="' . $this->query . ($current_page - 1) . '" rel="nofollow">' . $this->text[1] . '</a></li>' . mswDefineNewline();
     } else {
         $html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[0] . '</a></li>' . mswDefineNewline();
         $html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[1] . '</a></li>' . mswDefineNewline();
     }
     for ($i = $begin; $i <= $end; $i++) {
         if ($i != $current_page) {
             $html .= '<li><a title="' . $i . '" href="' . $this->query . $i . '" rel="nofollow">' . $i . '</a></li>' . mswDefineNewline();
         } else {
             $html .= '<li class="active"><a href="#" rel="nofollow">' . $i . '</a></li>' . mswDefineNewline();
         }
     }
     if ($current_page != $this->num_pages) {
         $html .= '<li><a title="' . mswSpecialChars($this->text[2]) . '" href="' . $this->query . ($current_page + 1) . '" rel="nofollow">' . $this->text[2] . '</a></li>' . mswDefineNewline();
         $html .= '<li><a title="' . mswSpecialChars($this->text[3]) . '" href="' . $this->query . $this->num_pages . '" rel="nofollow">' . $this->text[3] . '</a></li>' . mswDefineNewline();
     } else {
         $html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[2] . '</a></li>' . mswDefineNewline();
         $html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[3] . '</a></li>' . mswDefineNewline();
     }
     return '<ul>' . mswDefineNewline() . trim($html) . mswDefineNewline() . '</ul>';
 }
Esempio n. 2
0
             if ($_POST['newpass'] != $_POST['newpass2']) {
                 $json = array('status' => 'err', 'field' => 'newpass', 'tab' => 'three', 'msg' => $msg_public_profile12);
             } else {
                 if (strlen($_POST['newpass']) < $SETTINGS->minPassValue) {
                     $json = array('status' => 'err', 'field' => 'newpass', 'tab' => 'three', 'msg' => str_replace('{min}', $SETTINGS->minPassValue, $msg_public_profile13));
                 } else {
                     $newPassConfirmed = md5(SECRET_KEY . $_POST['newpass']);
                 }
             }
         }
     }
 }
 // If ok, update..
 if (!isset($json['status'])) {
     // Update profile..
     $rows = $MSACC->ms_update(array('id' => $LI_ACC->id, 'name' => isset($_POST['name']) && $_POST['name'] ? substr($_POST['name'], 0, 200) : mswSpecialChars($LI_ACC->name), 'email' => isset($newEmailConfirmed) ? $newEmailConfirmed : $LI_ACC->email, 'pass' => isset($newPassConfirmed) ? $newPassConfirmed : $LI_ACC->userPass, 'timezone' => isset($_POST['timezone']) && $_POST['timezone'] != '0' ? $_POST['timezone'] : $LI_ACC->timezone, 'language' => isset($_POST['language']) ? $_POST['language'] : $LI_ACC->language));
     // Send email notification if something got updated..
     if ($rows > 0 && $SETTINGS->accProfNotify == 'yes') {
         // Send mail..
         $MSMAIL->addTag('{NAME}', $LI_ACC->name);
         // Check template..
         if ($LI_ACC->language && file_exists(PATH . 'content/language/' . $LI_ACC->language . '/mail-templates/profile-updated.txt')) {
             $mailT = PATH . 'content/language/' . $LI_ACC->language . '/mail-templates/profile-updated.txt';
             $pLang = $LI_ACC->language;
         } else {
             $mailT = PATH . 'content/language/' . $SETTINGS->language . '/mail-templates/profile-updated.txt';
         }
         $MSMAIL->sendMSMail(array('from_email' => $SETTINGS->email, 'from_name' => $SETTINGS->website, 'to_email' => $LI_ACC->email, 'to_name' => $LI_ACC->name, 'subject' => str_replace(array('{website}'), array($SETTINGS->website), $emailSubjects['profile-update']), 'replyto' => array('name' => $SETTINGS->website, 'email' => $SETTINGS->replyto ? $SETTINGS->replyto : $SETTINGS->email), 'template' => $mailT, 'language' => isset($pLang) ? $pLang : $SETTINGS->language));
     }
     // We are done..
     $json = array('status' => 'ok', 'field' => 'msg', 'msg' => mswActionMessage($msg_public_profile2));
Esempio n. 3
0
    ?>
"><img src="http://localhost/maian_support/helpdesk/admin/templates/images/ost-logo.png" width="232" height="66"><span class="first">qweqwe<?php 
    echo mswCleanData($msg_script . " - " . $msg_adheader);
    ?>
&nbsp;&nbsp;&nbsp;(v<?php 
    echo $SETTINGS->softwareVersion;
    ?>
 - Beta <?php 
    echo mswGetBetaVersion();
    ?>
)</span></a>
				<?php 
} else {
    ?>
				<a class="brand" href="index.php" title="<?php 
    echo mswSpecialChars($msg_script . " - " . $msg_adheader);
    ?>
"><img src="http://localhost/maian_support/helpdesk/admin/templates/images/ost-logo.png" width="232" height="66"><span class="first"><?php 
    echo mswCleanData($msg_script . " - " . $msg_adheader);
    ?>
</span></a>
				<?php 
}
?>
        </div>
    </div>

    <div class="sidebar-nav">

        <?php 
// Navigation menu..
Esempio n. 4
0
"><i class="icon-pencil"></i></a>&nbsp;&nbsp;&nbsp;<a href="?p=view-ticket&amp;id=<?php 
            echo $TICKETS->ticketID;
            ?>
&amp;editNotes=yes" title="<?php 
            echo mswSpecialChars($msg_viewticket72);
            ?>
" class="nyroModal"><i class="icon-file-text"></i></a></span> <i class="icon-file-alt"></i> <?php 
            echo $MSYS->department($TICKETS->department, $msg_script30);
            ?>
</span>
		  <?php 
        }
        ?>
		  </td>
		  <td><?php 
        echo mswSpecialChars($TICKETS->ticketName);
        ?>
		  <span class="ticketDate"><?php 
        echo $MSDT->mswDateTimeDisplay($TICKETS->ticketStamp, $SETTINGS->dateformat);
        ?>
 @ <?php 
        echo $MSDT->mswDateTimeDisplay($TICKETS->ticketStamp, $SETTINGS->timeformat);
        ?>
</span>
		  </td>
		  <td>
		  <?php 
        if ($last[0] != '0') {
            echo mswCleanData($last[0]);
            ?>
		  <span class="ticketDate"><?php 
Esempio n. 5
0
		 
		 <div id="cb">
		 <?php 
// If global log in no filter necessary..
$q_dept = mysql_query("SELECT * FROM `" . DB_PREFIX . "departments` " . mswSQLDepartmentFilter($mswDeptFilterAccess, 'WHERE') . " ORDER BY `name`") or die(mswMysqlErrMsg(mysql_errno(), mysql_error(), __LINE__, __FILE__));
while ($DEPT = mysql_fetch_object($q_dept)) {
    ?>
         <label class="checkbox">
		  <input type="checkbox" name="dept[]"<?php 
    echo isset($deptArr) && in_array($DEPT->id, $deptArr) ? ' checked="checked" ' : ' ';
    ?>
value="<?php 
    echo $DEPT->id;
    ?>
"> <?php 
    echo mswSpecialChars($DEPT->name);
    ?>
         </label>
		 <input type="hidden" name="deptall[]" value="<?php 
    echo $DEPT->id;
    ?>
">
		 <?php 
}
?>
         </div>
		 
		</div>
	   </div>
	  </div>
	  <div class="btn-toolbar" style="margin-top:0;padding-top:0">
Esempio n. 6
0
 public function htmlWrap($tmp)
 {
     global $MSPARSER;
     $msg = $this->convertTags($this->template($tmp['template']));
     $parse = explode('<-{separater}->', $msg);
     // Check for 3 slots, ie: 2 separators..
     if (count($parse) == 3) {
         $head = trim($parse[0]);
         $cont = trim($parse[1]);
         $foot = trim($parse[2]);
     } else {
         $head = mswCleanData($this->config['website']);
         $cont = str_replace('<-{separater}->', '', trim($msg));
         $foot = mswCleanData($this->config['scriptpath']);
     }
     // Auto parse hyperlinks..
     $head = $this->convertChar($MSPARSER->mswAutoLinkParser($head));
     $cont = $this->convertChar($MSPARSER->mswAutoLinkParser($cont));
     $foot = $this->convertChar($MSPARSER->mswAutoLinkParser($foot));
     // Auto parse line breaks..
     $head = mswNL2BR($head);
     $cont = mswNL2BR($cont);
     $foot = mswNL2BR($foot);
     // Parse html message with wrapper..
     $find = array('{CHARSET}', '{TITLE}', '{HEADER}', '{CONTENT}', '{FOOTER}');
     $repl = array($this->charset, mswSpecialChars($this->config['website']), $head, $cont, $foot . $this->appendFooterToEmails());
     // Language override..
     if (isset($tmp['language'])) {
         $this->config['language'] = $tmp['language'];
     }
     $html = str_replace($find, $repl, file_get_contents(SYS_ROOT_PATH . 'content/language/' . $this->config['language'] . '/mail-templates/html-wrapper.html'));
     return $html;
 }
Esempio n. 7
0
  Script: Maian Support
  Written by: David Ian Bennett
  E-Mail: support@maianscriptworld.co.uk
  Software Website: http://www.maiansupport.com
  Script Portal: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  This File: header.php
  Description: Header Parsing File

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
if (!defined('PARENT') || !defined('MS_PERMISSIONS')) {
    $HEADERS->err404();
}
$tpl = new Savant3();
$tpl->assign('CHARSET', $msg_charset);
$tpl->assign('LANG', $html_lang);
$tpl->assign('DIR', $lang_dir);
$tpl->assign('TITLE', ($title ? mswSpecialChars($title) . ': ' : '') . str_replace('{website}', mswSpecialChars($SETTINGS->website), $msg_header) . (LICENCE_VER != 'unlocked' ? ' (' . $msg_script18 . ' ' . $msg_script . ')' : '') . (LICENCE_VER != 'unlocked' ? ' - Free Version' : '') . (mswCheckBetaVersion() == 'yes' ? ' - BETA VERSION' : ''));
$tpl->assign('TOP_BAR_TITLE', str_replace('{website}', mswSpecialChars($SETTINGS->website), $msg_header));
$tpl->assign('SCRIPTPATH', $SETTINGS->scriptpath);
$tpl->assign('LOGGED_IN', MS_PERMISSIONS != 'guest' ? 'yes' : 'no');
$tpl->assign('TXT', array($msg_header8, $msg_main2, $msg_header3, $msg_header11, $msg_header12, $msg_header2, MS_PERMISSIONS != 'guest' && isset($LI_ACC->name) ? str_replace('{name}', mswSpecialChars($LI_ACC->name), $msg_header6) : '', $msg_header13, $msg_header14, $msg_header15, $msg_header16, $msg_header4));
$tpl->assign('JS_CSS_BLOCK', $MSYS->jsCSSBlockLoader($ms_js_css_loader, $SETTINGS->scriptpath));
$tpl->assign('FAQ_LINKS', $SETTINGS->kbase == 'yes' ? $FAQ->menu() : '');
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/header.tpl.php');
Esempio n. 8
0
    ?>
 >
         <input type="checkbox" name="assigned[]" <?php 
    echo $checked;
    ?>
 <?php 
    echo $class;
    ?>
 value="<?php 
    echo $USERS->id;
    ?>
"<?php 
    echo in_array($USERS->id, $boomUsers) ? ' checked="checked"' : '';
    ?>
> <?php 
    echo mswCleanData(mswSpecialChars($USERS->name) . ' <span class="email">(' . $USERS->email . ')</span> ' . (in_array('users', $userAccess) || $MSTEAM->id == '1' ? '<a href="?p=team&amp;edit=' . $USERS->id . '" title="' . mswSpecialChars($msg_user14) . '"><i class="icon-pencil"></i></a>' : ''));
    ?>
        </label>
	    <?php 
}
?>
	    </div>
	   </div>
	   <div class="btn-toolbar" style="margin-top:0;padding-top:0;text-align:center">
        <button class="btn btn-primary" type="button" onclick="ms_updateAssignedUsers('<?php 
echo $_GET['id'];
?>
')"><i class="icon-ok"></i> <?php 
echo $msg_viewticket121;
?>
</button>
Esempio n. 9
0
?>
<!DOCTYPE html>
<html lang="<?php 
echo isset($html_lang) ? $html_lang : 'en';
?>
" dir="<?php 
echo $lang_dir;
?>
">
  <head>
    <meta charset="<?php 
echo $msg_charset;
?>
">
    <title><?php 
echo ($title ? mswSpecialChars($title) . ': ' : '') . $msg_script . ' - ' . mswCleanData($msg_adheader) . (LICENCE_VER != 'unlocked' ? ' (Free Version)' : '') . (mswCheckBetaVersion() == 'yes' ? ' - BETA VERSION' : '');
?>
</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

	<!-- Global CSS -->
    <link rel="stylesheet" href="templates/css/bootstrap.css" type="text/css">
	<link rel="stylesheet" href="templates/css/bootstrap-responsive.css" type="text/css">
    <link rel="stylesheet" href="templates/css/theme.css" type="text/css">
    <link rel="stylesheet" href="templates/css/font-awesome.css">
	<script src="templates/js/jquery.js" type="text/javascript"></script>
	<link rel="stylesheet" href="templates/css/ms.css" type="text/css">
	<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="templates/js/html5.js"></script>
Esempio n. 10
0
            ?>
          <div class="row-fluid homeTicketWrapper<?php 
            echo ++$lp == $T4Rows ? ' nobottomborder' : '';
            ?>
">
           <a href="?p=view-dispute&amp;id=<?php 
            echo $TICKETS->ticketID;
            ?>
">
		   <?php 
            echo $cutOff > 0 && strlen($TICKETS->subject) > $cutOff ? substr(mswSpecialChars($TICKETS->subject), 0, $cutOff - 2) . '..' : mswSpecialChars($TICKETS->subject);
            ?>
		   </a>
		   <span class="bar">
			<?php 
            echo str_replace(array('{name}', '{priority}', '{date}', '{ticket}', '{count}'), array(mswSpecialChars($TICKETS->ticketName), mswCleanData($TICKETS->levelName), $MSDT->mswDateTimeDisplay($TICKETS->ticketStamp, $SETTINGS->dateformat), mswTicketNumber($TICKETS->ticketID), $TICKETS->disputeCount + 1), $msg_home45);
            ?>
		   </span>
		  </div>
          <?php 
        }
    } else {
        ?>
         <p class="nothing_to_see smalltxt"><?php 
        echo $msg_home41;
        ?>
</p>
         <?php 
    }
    ?>
        </div>
Esempio n. 11
0
		 <div>
          <span class="attachBox"><input type="file" class="input-small" name="attachment[]"></span>
		 </div>
         <?php 
        if (LICENCE_VER == 'unlocked') {
            ?>
         <p class="attachlinks">
          <button class="btn" type="button" title="<?php 
            echo mswSpecialChars($msg_newticket37);
            ?>
" onclick="ms_attachBox('add','<?php 
            echo ADMIN_ATTACH_BOX_OVERRIDE;
            ?>
')">+</button>
          <button class="btn" type="button" title="<?php 
            echo mswSpecialChars($msg_newticket38);
            ?>
" onclick="ms_attachBox('remove')">-</button>
         </p>
         <?php 
        }
        ?>
		
		</div>
	   </div>
	   <?php 
    }
    if ($countOfOtherUsers > 0) {
        ?>
	   <div class="tab-pane fade" id="five">
	    <div class="well">
Esempio n. 12
0
  <?php 
if (isset($_GET['msg'])) {
    ?>
  <li class="active"><a href="?p=mailbox&amp;msg=<?php 
    echo (int) $_GET['msg'];
    ?>
" class="mailBoxMsg"><i class="icon-search"></i> <?php 
    echo $msg_mailbox7;
    ?>
</a></li>
  <?php 
}
if ($keys) {
    ?>
  <li class="active"><a href="?p=mailbox&amp;keys=<?php 
    echo urlencode(mswSpecialChars($keys));
    ?>
" class="mailBoxMsg"><i class="icon-search"></i> <?php 
    echo $msg_mailbox32;
    ?>
</a></li>
  <?php 
}
?>
  <li<?php 
echo !isset($_GET['f']) && !isset($_GET['msg']) && !isset($_GET['new']) && $keys == '' ? ' class="active"' : '';
?>
><a href="?p=mailbox"><i class="icon-inbox"></i> <?php 
echo $msg_mailbox;
?>
</a></li>
             $atID = $MSTICKET->addAttachment(array('temp' => $a_temp, 'name' => $a_name, 'size' => $a_size, 'mime' => $a_mime, 'tID' => $T->id, 'rID' => $replyID, 'dept' => $T->department, 'incr' => $i));
             $attString[] = $SETTINGS->scriptpath . '/?attachment=' . $atID;
         }
     }
 }
 // History log..
 $MSTICKET->historyLog($T->id, str_replace(array('{visitor}', '{id}'), array(mswSpecialChars($LI_ACC->name), $replyID), $msg_ticket_history['vis-reply-add']));
 // Dispute ticket or standard operations..
 switch ($T->isDisputed) {
     case 'no':
         // Was ticket closed..
         if (isset($_POST['close'])) {
             $closeRrows = $MSTICKET->openclose($T->id, 'close');
             // History if affected rows..
             if ($closeRrows > 0) {
                 $MSTICKET->historyLog($T->id, str_replace('{user}', mswSpecialChars($LI_ACC->name), $msg_ticket_history['vis-ticket-close']));
                 // Should we switch emails off?
                 if ($SETTINGS->closenotify == 'yes') {
                     define('EMAILS_OFF', 1);
                 }
             }
         }
         break;
     default:
         break;
 }
 // Mail tags..
 if (!defined('EMAILS_OFF')) {
     $MSMAIL->addTag('{ACC_NAME}', $LI_ACC->name);
     $MSMAIL->addTag('{TICKET}', mswTicketNumber($T->id));
     $MSMAIL->addTag('{SUBJECT}', $T->subject);
Esempio n. 14
0
</label>
              <input type="password" id="pass" name="pass" class="span12" value="" onkeyup="jQuery('#e_pass').hide('slow')" onkeypress="if(getKeyCode(event)==13){sysLoginEvent()}">
              <?php 
// Show password error if applicable..
if (isset($P_ERROR)) {
    ?>
			  <div class="alert alert-error" style="margin-top:0" id="e_pass">
               <a class="close" data-dismiss="alert">×</a> <?php 
    echo $msg_login4;
    ?>
			  </div>
              <?php 
}
?>
			  <a href="#" onclick="sysLoginEvent();return false" class="btn btn-primary pull-right" title="<?php 
echo mswSpecialChars($msg_login5);
?>
"><?php 
echo mswCleanData($msg_login5);
?>
</a>
			  <?php 
// Is cookie set?
if (COOKIE_NAME) {
    ?>
              <label class="remember-me"><input type="checkbox" name="cookie" value="1"> <?php 
    echo $msg_login3;
    ?>
</label>
			  <?php 
}
Esempio n. 15
0
  <button class="btn" type="button" title="<?php 
echo mswSpecialChars($this->TXT[19][2]);
?>
" onclick="ms_addTags('-','url','<?php 
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][6]));
?>
','comments')"><i class="icon-link"></i></button>
  <button class="btn" type="button" title="<?php 
echo mswSpecialChars($this->TXT[19][1]);
?>
" onclick="ms_addTags('-','email','<?php 
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][5]));
?>
','comments')"><i class="icon-envelope-alt"></i></button>
  <button class="btn" type="button" title="<?php 
echo mswSpecialChars($this->TXT[19][0]);
?>
" onclick="ms_addTags('-','img','<?php 
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][4]));
?>
','comments')"><i class="icon-picture"></i></button>
  <button class="btn" type="button" title="YouTube" onclick="ms_addTags('-','youtube','<?php 
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][7]));
?>
','comments')"><i class="icon-youtube"></i></button>
  <button class="btn" type="button" title="Vimeo" onclick="ms_addTags('-','vimeo','<?php 
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][8]));
?>
','comments')"><i class="icon-play"></i></button>
  <button class="btn" type="button" title="?" onclick="window.open('index.php?bbcode=show','_blank')"><i class="icon-question"></i></button>
</div>
Esempio n. 16
0
  E-Mail: support@maianscriptworld.co.uk
  Software Website: http://www.maiansupport.com
  Script Portal: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  This File: account-dashboard.php
  Description: System File

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
if (!defined('PARENT') || !defined('MS_PERMISSIONS')) {
    $HEADERS->err403();
}
// Check log in..
if (MS_PERMISSIONS == 'guest' || !isset($LI_ACC->id)) {
    header("Location:index.php?p=login");
    exit;
}
$title = $msg_header3;
$tz = $LI_ACC->timezone ? $LI_ACC->timezone : $SETTINGS->timezone;
include PATH . 'control/header.php';
// Show..
$tpl = new Savant3();
$tpl->assign('TXT', array($msg_header13, $MSDT->mswDateTimeDisplay(strtotime(date('Y-m-d', $MSDT->mswUTC())), $SETTINGS->dateformat, $tz), $msg_public_dashboard1, $msg_public_dashboard2, $msg_public_dashboard3, $msg_public_dashboard4, $msg_public_dashboard5, str_replace('{name}', mswSpecialChars($LI_ACC->name), $msg_public_dashboard11), $msg_public_dashboard12));
$tpl->assign('TICKETS', $MSTICKET->ticketList(MS_PERMISSIONS, array(0, 99999), false, 'AND `ticketStatus` = \'open\''));
$tpl->assign('DISPUTES', $MSTICKET->disputeList(MS_PERMISSIONS, $LI_ACC->id, array(0, 99999), false, 'AND `ticketStatus` = \'open\''));
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/account-dashboard.tpl.php');
include PATH . 'control/footer.php';
Esempio n. 17
0
?>
	  </div>
	  <div class="btn-toolbar" style="margin-top:0;padding-top:0">
	   <input type="hidden" name="<?php 
echo isset($EDIT->id) ? 'update' : 'process';
?>
" value="1">
	   <?php 
if (isset($EDIT->id)) {
    ?>
	   <input type="hidden" name="old_pass" value="<?php 
    echo mswSpecialChars($EDIT->userPass);
    ?>
">
	   <input type="hidden" name="old_email" value="<?php 
    echo mswSpecialChars($EDIT->email);
    ?>
">
	   <?php 
}
?>
       <button class="btn btn-primary" type="submit"><i<?php 
echo isset($EDIT->id) ? ' class="icon-ok"' : ' class="icon-plus"';
?>
></i> <?php 
echo isset($EDIT->id) ? $msg_accounts6 : $msg_accounts4;
?>
</button>
       <?php 
if (isset($EDIT->id)) {
    ?>
Esempio n. 18
0
<?php

if (!defined('PARENT')) {
    exit;
}
// Pre-populate search box if query exists.
$searchTxt = '';
// Ticket search..
if (isset($_GET['qt'])) {
    $searchTxt = mswSpecialChars($_GET['qt']);
}
if (isset($_GET['qd'])) {
    $searchTxt = mswSpecialChars($_GET['qd']);
}
$pageParam = $this->IS_DISPUTED == 'yes' ? 'disputes' : 'history';
?>
<div class="content">
        
  <div class="header">
    
    <div class="btn-group">
     <button class="btn"><?php 
echo $this->IS_DISPUTED == 'yes' ? $this->TXT[10] : $this->TXT[9];
?>
</button>
     <button class="btn dropdown-toggle" data-toggle="dropdown">
     <span class="caret"></span>
     </button>
     <ul class="dropdown-menu topbar-dropdowns">
	  <?php 
foreach ($this->DD_ORDER as $fk1 => $fv1) {
Esempio n. 19
0
	  <div class="block" style="margin-top:40px">
	   <p class="block-heading" id="hisblockhead">(<span id="hiscount"><?php 
    echo @number_format($historyRows);
    ?>
</span>) <?php 
    echo strtoupper($msg_viewticket110) . ' (#' . mswTicketNumber($_GET['id']);
    ?>
)<?php 
    echo $historyRows > 0 ? (USER_DEL_PRIV == 'yes' ? ' <a class="toggleFields pull-right" href="#" onclick="confirmMessageExecute(\'' . mswSpecialChars($msg_script_action) . '\',\'history\',\'0##' . $_GET['id'] . '\');return false"><i class="icon-remove"></i> ' . $msg_viewticket118 . '</a> ' : '') . '<a class="toggleFields pull-right" href="index.php?p=view-ticket&amp;exportHistory=' . $_GET['id'] . '"><i class="icon-save"></i> ' . $msg_viewticket112 . '</a>' : '';
    ?>
</p>
	   <div class="block-body" style="max-height:300px;overflow:auto" id="historyArea">
	     <?php 
    if ($historyRows > 0) {
        while ($HIS = mysql_fetch_object($qTH)) {
            echo '<span class="historyEntry" id="history_entry_' . $HIS->id . '"><i class="icon-caret-right"></i> <span class="highlighter">' . $MSDT->mswDateTimeDisplay($HIS->ts, $SETTINGS->dateformat) . ' - ' . $MSDT->mswDateTimeDisplay($HIS->ts, $SETTINGS->timeformat) . '</span> - ' . mswCleanData($HIS->action) . (USER_DEL_PRIV == 'yes' ? ' <i class="icon-remove" style="cursor:pointer" onclick="mswRemoveHistory(\'' . $HIS->id . '\',\'0\')" title="' . mswSpecialChars($msg_public_history12) . '"></i>' : '') . '</span>';
        }
    } else {
        ?>
		 <p class="nodata"><?php 
        echo $msg_viewticket111;
        ?>
</p>
		 <?php 
    }
    ?>
	   </div>
	  </div>
	  <?php 
}
// Footer links..
Esempio n. 20
0
<?php

if (!defined('PARENT')) {
    exit;
}
?>
	<form method="get" action="index.php" style="margin:0;padding:0">
	<p style="margin:0;padding:0"><input type="hidden" name="p" value="faq-search"></p>
	<div class="btn-toolbar" id="sbox" style="margin-top:<?php 
echo defined('SEARCH_MARGIN') ? SEARCH_MARGIN : '0';
?>
;display:none">
     <div class="input-append">
      <input type="text" class="input-large" name="q" value="<?php 
echo isset($_GET['q']) ? urldecode(mswSpecialChars($_GET['q'])) : '';
?>
">
      <button class="btn btn-info" type="submit"><i class="icon-search"></i></button>
     </div>
    </div>
	</form>
Esempio n. 21
0
 public function searchDisputeUsers()
 {
     $f = isset($_GET['field']) && in_array($_GET['field'], array('name', 'email')) ? $_GET['field'] : 'name';
     $ID = (int) $_GET['id'];
     $acc = array();
     $users = array();
     // Get all users currently in dispute..
     $qDU = mysql_query("SELECT `visitorID` FROM `" . DB_PREFIX . "disputes` \n             WHERE `ticketID` = '{$ID}'\n             ") or die(mswMysqlErrMsg(mysql_errno(), mysql_error(), __LINE__, __FILE__));
     while ($DU = mysql_fetch_object($qDU)) {
         $users[] = $DU->visitorID;
     }
     // Get ID of person who started ticket
     $TK = mswGetTableData('tickets', 'id', $ID);
     if (isset($TK->visitorID)) {
         $users[] = $TK->visitorID;
     }
     $q = mysql_query("SELECT `name`,`email` FROM `" . DB_PREFIX . "portal`\n         WHERE `" . $f . "` LIKE '%" . mswSafeImportString($_GET['term']) . "%'\n\t\t " . (!empty($users) ? 'AND `id` NOT IN(' . implode(',', $users) . ')' : '') . "\n         AND `enabled` = 'yes'\n\t\t GROUP BY `email`\n\t     ORDER BY `name`,`email`\n\t\t ");
     if (mysql_num_rows($q) > 0) {
         while ($A = mysql_fetch_object($q)) {
             $n = array();
             $n['name'] = mswSpecialChars($A->name);
             $n['email'] = mswCleanData($A->email);
             $acc[] = $n;
         }
     }
     return $acc;
 }
Esempio n. 22
0
echo $_GET['id'];
?>
">
     <input type="text" placeholder="<?php 
echo mswSpecialChars($msg_reports2);
?>
" class="input-small" id="from" name="from" value="<?php 
echo mswSpecialChars($from);
?>
" style="margin-right:1px">
     <div class="input-append">
      <input placeholder="<?php 
echo mswSpecialChars($msg_reports3);
?>
" type="text" class="input-small" id="to" name="to" value="<?php 
echo mswSpecialChars($to);
?>
">
      <button type="button" class="btn btn-info" onclick="searchLog()"><i class="icon-search"></i></button>
     </div>
    </div>
  
	<div class="row-fluid">
	  <div class="span5">
	    <i class="icon-calendar" onclick="searchToggle()" style="cursor:pointer"></i> <?php 
echo $from;
?>
 - <?php 
echo $to;
?>
	  </div>
Esempio n. 23
0
	  <div class="btn-toolbar" style="margin-top:0;padding-top:0">
	   <?php 
    if (USER_DEL_PRIV == 'yes') {
        ?>
       <button onclick="ms_confirmButtonAction('form','<?php 
        echo mswSpecialChars($msg_script_action);
        ?>
','delete');return false;" class="btn btn-danger" disabled="disabled" type="submit" id="delButton"><i class="icon-trash"></i> <?php 
        echo mswCleanData($msg_open15);
        ?>
 <span id="mc_countVal">(0)</span></button>
	   <?php 
    }
    ?>
       <button onclick="ms_confirmButtonAction('form','<?php 
    echo mswSpecialChars($msg_script_action);
    ?>
','re-open');return false;" class="btn btn-info" disabled="disabled" type="submit" id="delButton2"><i class="icon-unlock"></i> <?php 
    echo mswCleanData($msg_open38);
    ?>
 <span id="mc_countVal2">(0)</span></button>
	  </div>
      <?php 
}
if ($countedRows > 0 && $countedRows > $limit) {
    ?>
	  <div class="pagination pagination-small pagination-right">
       <?php 
    define('PER_PAGE', $limit);
    $PGS = new pagination($countedRows, '?p=' . $cmd . mswQueryParams(array('p', 'next')) . '&amp;next=');
    echo $PGS->display();
Esempio n. 24
0
					 <i class="icon-dashboard"></i> <?php 
    echo $this->TXT[2];
    ?>
					 </a>
				   </li>
                   <li id="fat-menu" class="dropdown">
                     <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                     <i class="icon-user"></i> <?php 
    echo $this->TXT[6];
    ?>
                     <i class="icon-caret-down"></i>
                     </a>
                     <ul class="dropdown-menu">
                       <li class="divider visible-phone"></li>
                       <li><a href="?lo=1" title="<?php 
    echo mswSpecialChars($this->TXT[5]);
    ?>
"><?php 
    echo $this->TXT[5];
    ?>
</a></li>
                     </ul>
                   </li>
                </ul>
				<?php 
}
?>
				<a class="brand" href="index.php"><span class="first"><?php 
echo $this->TOP_BAR_TITLE;
?>
</span></a>
    ?>
&amp;act=lock" title="<?php 
    echo mswSpecialChars($msg_viewticket28);
    ?>
"><?php 
    echo $msg_viewticket28;
    ?>
</a>&nbsp;&nbsp;&nbsp;
    <i class="icon-time"></i> <a href="?p=view-dispute&amp;id=<?php 
    echo $_GET['id'];
    ?>
&amp;act=ticket" onclick="ms_confirmActionMessage(this,'<?php 
    echo mswSpecialChars($msg_script_action);
    ?>
');return false" title="<?php 
    echo mswSpecialChars($msg_disputes4);
    ?>
"><?php 
    echo $msg_disputes4;
    ?>
</a>&nbsp;&nbsp;&nbsp;
    <?php 
}
// Is notepad available..
if ($MSTEAM->notePadEnable == 'yes' || $MSTEAM->id == '1') {
    ?>
	<i class="icon-file-text"></i> <a href="#" title="<?php 
    echo $msg_viewticket54;
    ?>
" onclick="jQuery('#ticketPadArea').slideDown('slow');return false"><?php 
    echo $msg_viewticket54;
Esempio n. 26
0
      
		  <label><?php 
echo $msg_kbase38;
?>
</label>
          <select name="subcat">
           <option value="0"><?php 
echo $msg_kbase36;
?>
</option>
           <?php 
$q_cat = mysql_query("SELECT * FROM `" . DB_PREFIX . "categories` WHERE `subcat` = '0' ORDER BY `name`") or die(mswMysqlErrMsg(mysql_errno(), mysql_error(), __LINE__, __FILE__));
if (mysql_num_rows($q_cat) > 0) {
    ?>
		   <optgroup label="<?php 
    echo mswSpecialChars($msg_kbase37);
    ?>
">
           <?php 
    while ($CAT = mysql_fetch_object($q_cat)) {
        ?>
           <option<?php 
        echo isset($EDIT->id) ? mswSelectedItem($EDIT->subcat, $CAT->id) : '';
        ?>
 value="<?php 
        echo $CAT->id;
        ?>
"><?php 
        echo mswCleanData($CAT->name);
        ?>
</option>
Esempio n. 27
0
    <link rel="SHORTCUT ICON" href="favicon.ico">
  </head>

  <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
  <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
  <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
  <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
  <!--[if (gt IE 9)|!(IE)]><!-->
  <body class="">
  <!--<![endif]-->

  <div class="block">

	<p class="block-heading"><?php 
echo mswSpecialChars($KB->question);
?>
</p>

	<div class="block-body">
     <?php 
echo $MSPARSER->mswTxtParsingEngine($KB->answer);
?>
	</div>

	<div class="block-body">
     <?php 
$assignedCats = mswFaqCategories($KB->id);
echo $assignedCats ? '(' . $assignedCats . ')' : '<span class="unassigned"><i class="icon-warning-sign"></i> ' . $msg_kbase63 . '</span>';
?>
<br>
Esempio n. 28
0
		  </select>
		  
		 </div> 
		</div>
		<div class="tab-pane fade" id="six">
		 <div class="well">
		 
		  <label><?php 
echo $msg_spam7;
?>
</label>
          <textarea name="skipFilters" rows="5" cols="20" tabindex="<?php 
echo ++$tabIndex;
?>
"><?php 
echo isset($B8_CFG->skipFilters) ? mswSpecialChars($B8_CFG->skipFilters) : '';
?>
</textarea>
        
		 </div> 
		</div>
	  </div>
	  <div class="pull-right">
	   <p style="font-size:11px;font-style:italic;text-align:right"><?php 
echo $msg_script57;
?>
: <a href="../docs/imapfilter2.html" onclick="window.open(this);return false">b8</a>. <?php 
echo $msg_script58;
?>
 Tobias Leupold.</p>
	  </div>
Esempio n. 29
0
    ?>
</a></li>
	   <?php 
}
?>
	  </ul>
	  <div id="myTabContent" class="tab-content">
		<div class="tab-pane active in" id="one">
		 <div class="well">
		  
		  <label><?php 
echo $this->TXT[5];
?>
</label>
          <input type="text" class="input-xlarge" name="name" maxlength="200" value="<?php 
echo isset($this->ACCOUNT['name']) ? mswSpecialChars($this->ACCOUNT['name']) : '';
?>
">
		  
		  <label><?php 
echo $this->TXT[6];
?>
</label>
          <select name="timezone">
		   <option value="0">- - - - -</option>
		   <?php 
// Timezones..
// control/timezones.php
foreach ($this->TIMEZONES as $zK => $zV) {
    ?>
		   <option value="<?php 
Esempio n. 30
0
	   <div class="pull-right">
		<button onclick="ms_confirmButtonAction('form','<?php 
        echo mswSpecialChars($msg_script_action);
        ?>
','clear');return false;" type="submit" name="export" class="btn btn-danger"><i class="icon-trash"></i> <?php 
        echo mswSpecialChars($msg_log2);
        ?>
</button>
	   </div>
	   <?php 
        ?>
       <button onclick="ms_confirmButtonAction('form','<?php 
        echo mswSpecialChars($msg_script_action);
        ?>
','delete');return false;" class="btn btn-danger" disabled="disabled" type="submit" id="delButton"><i class="icon-trash"></i> <?php 
        echo mswSpecialChars($msg_levels9);
        ?>
 <span id="mc_countVal">(0)</span></button>
	   <?php 
    }
    ?>
	  </div>
	  <?php 
}
if ($countedRows > 0 && $countedRows > $limit) {
    ?>
	  <div class="pagination pagination-small pagination-right">
       <?php 
    define('PER_PAGE', $limit);
    $PGS = new pagination($countedRows, '?p=' . $cmd . mswQueryParams(array('p', 'next')) . '&amp;next=');
    echo $PGS->display();