public function err404($admin = false, $text = '') { global $msg_charset, $html_lang, $msg_script6, $msg_script52, $msg_script54, $SETTINGS; header('HTTP/1.0 404 Not Found'); header('Content-type: text/html; charset=' . $msg_charset); if ($admin) { $f = array('{charset}', '{lang}', '{back}', '{error}', '{oops}'); $r = array($msg_charset, $html_lang, $msg_script54, $text ? $text : $msg_script6, $msg_script52); echo file_exists(PATH . 'templates/system/headers/404.php') ? str_replace($f, $r, file_get_contents(PATH . 'templates/system/headers/404.php')) : '404: Page Not Found'; } else { if (!class_exists('Savant3')) { include PATH . 'control/lib/Savant3.php'; } $tpl = new Savant3(); $tpl->assign('LANG', $html_lang); $tpl->assign('CHARSET', $msg_charset); $tpl->assign('SETTINGS', $SETTINGS); $tpl->assign('TXT', array($msg_script52, $msg_script6, $msg_script54)); $tpl->display('content/' . (defined(MS_TEMPLATE_SET) ? MS_TEMPLATE_SET : '_default_set') . '/headers/404.tpl.php'); } exit; }
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';
/** * */ public function &htmlBySchema(&$schema, $template) { $tmpfname = tempnam("/tmp", "template"); $handle = fopen($tmpfname, "w"); fwrite($handle, $template); fclose($handle); $s = new \Savant3(array('template' => $tmpfname, 'template_path' => '')); $s->assign('schema', $schema); $html = $s->getOutput(); unlink($tmpfname); return $html; }
E-Mail: support@maianscriptworld.co.uk Software Website: http://www.maiansupport.com Script Portal: http://www.maianscriptworld.co.uk ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This File: account-profile.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_header15; include PATH . 'control/header.php'; // Show.. $tpl = new Savant3(); $tpl->assign('TXT', array($msg_header3, $msg_public_account, $msg_public_account2, $msg_public_account3, $msg_public_account4, $msg_public_create4, $msg_public_account5, $msg_main3, $msg_public_create3, $msg_public_profile3, $msg_public_profile4, $msg_public_profile6, $msg_public_profile7, $msg_public_profile8, $msg_public_profile9)); $tpl->assign('TIMEZONES', $timezones); $tpl->assign('LANGUAGES', $MSYS->languages()); $tpl->assign('ACCOUNT', (array) $LI_ACC); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/account-profile.tpl.php'); include PATH . 'control/footer.php';
} } } // Are we searching for anything.. if ($SQL) { $html = $FAQ->questions(0, $limitvalue, $SETTINGS, array($SQL, 'no')); $dataCount = $FAQ->questions(0, $limitvalue, $SETTINGS, array($SQL, 'yes')); } } // Pagination.. if ($dataCount > $SETTINGS->quePerPage) { define('PER_PAGE', $SETTINGS->quePerPage); $PTION = new pagination($dataCount, '?q=' . urlencode($_GET['q']) . mswQueryParams(array('q', 'p', 'next')) . '&next='); $pageNumbers = $PTION->display(); } // Header.. include PATH . 'control/header.php'; // Template initialisation.. $tpl = new Savant3(); $tpl->assign('TXT', array($msg_pkbase, $msg_header4, $msg_kbase53)); $tpl->assign('SCH_TXT', $msg_header4); $tpl->assign('FAQ', $html); $tpl->assign('RESULTS', $dataCount); $tpl->assign('MSDT', $MSDT); $tpl->assign('PAGES', $pageNumbers); // Global vars.. include PATH . 'control/lib/global.php'; // Global vars.. $tpl->display('content/' . MS_TEMPLATE_SET . '/faq-search.tpl.php'); // Footer.. include PATH . 'control/footer.php';
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: footer.php Description: Footer ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ if (!defined('PARENT') || !defined('MS_PERMISSIONS')) { $HEADERS->err404(); } // Footer.. $footer = '<b>' . $msg_script3 . '</b>: <a href="http://www.' . SCRIPT_URL . '" title="' . SCRIPT_NAME . '" onclick="window.open(this);return false">' . SCRIPT_NAME . '</a> '; $footer .= '©2005-' . date('Y', $MSDT->mswTimeStamp()) . ' <a href="http://www.maianscriptworld.co.uk" onclick="window.open(this);return false" title="Maian Script World">Maian Script World</a>. ' . $msg_script12 . '.'; // Commercial version.. if (LICENCE_VER == 'unlocked') { $footer = $SETTINGS->publicFooter; if ($footer == '') { $footer = $msg_script34; } } $tpl = new Savant3(); $tpl->assign('FOOTER', $footer); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/footer.tpl.php');
if (isset($CAT->subcat) && $CAT->subcat > 0) { define('IS_SUB', $CAT->subcat); } $subt = $msg_header8 . ': ' . $CAT->name; } } else { if (isset($_GET['q'])) { $subt = $msg_header8 . ': ' . $msg_pkbase3; } } // Header.. include PATH . 'control/header.php'; // Cookie set.. if (isset($_COOKIE[md5(SECRET_KEY) . COOKIE_NAME])) { $cky = unserialize($_COOKIE[md5(SECRET_KEY) . COOKIE_NAME]); } // Template initialisation.. $tpl = new Savant3(); $tpl->assign('TXT', array($subt, $msg_kbase52, $msg_kbase54, $msg_pkbase18)); $tpl->assign('SCH_TXT', $msg_header4); $tpl->assign('ANSWER', (array) $QUE); $tpl->assign('ANSWER_TXT', $MSPARSER->mswTxtParsingEngine($QUE->answer)); $tpl->assign('MSDT', $MSDT); $tpl->assign('ATTACHMENTS', $FAQ->attachments($SETTINGS)); $tpl->assign('FAQ_COOKIE_SET', in_array($_GET['a'], $cky) ? 'yes' : 'no'); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/faq-question.tpl.php'); // Footer.. include PATH . 'control/footer.php';
// Load account globals.. include PATH . 'control/system/accounts/account-global.php'; // Reset captcha if we are logged in.. if ($SETTINGS->enCapLogin == 'yes' && MS_PERMISSIONS != 'guest' && isset($LI_ACC->name)) { $SETTINGS->recaptchaPublicKey = ''; $SETTINGS->recaptchaPrivateKey = ''; } // Create ticket.. if (isset($_POST['process'])) { define('T_PERMS', 1); include PATH . 'control/system/accounts/account-ticket-create.php'; } $title = $msg_main2; include PATH . 'control/header.php'; $tpl = new Savant3(); $tpl->assign('TXT', array($msg_main2, $msg_main17, $msg_newticket3, $msg_newticket4, $msg_newticket15, $msg_newticket6, $msg_newticket8, $msg_newticket5, $msg_viewticket78, $msg_newticket37, $msg_newticket38, $attachRestrictions, $msg_main2, $msg_newticket43, $msg_viewticket101, $msg_public_ticket4, $msg_public_ticket5, $msg_public_ticket9, $msg_public_ticket10, $bb_code_buttons, $msg_public_create11)); $tpl->assign('RECAPTCHA', $SETTINGS->recaptchaPublicKey && $SETTINGS->recaptchaPrivateKey ? $MSYS->recaptcha() : ''); $tpl->assign('DEPARTMENTS', $MSYS->ticketDepartments(isset($_POST['dept']) ? (int) $_POST['dept'] : '')); $tpl->assign('PRIORITY_LEVELS', $ticketLevelSel); $tpl->assign('LOGGED_IN', MS_PERMISSIONS != 'guest' && isset($LI_ACC->name) ? 'yes' : 'no'); $tpl->assign('SYSTEM_MESSAGE', !empty($eFields) ? str_replace('{count}', count($eFields), $msg_public_ticket8) : ''); // Post fields..will populate on refresh.. $tpl->assign('POST', array('name' => isset($_POST['name']) ? mswSpecialChars($_POST['name']) : '', 'email' => isset($_POST['email']) ? mswSpecialChars($_POST['email']) : '', 'subject' => isset($_POST['subject']) ? mswSpecialChars($_POST['subject']) : '', 'priority' => isset($_POST['priority']) ? mswSpecialChars($_POST['priority']) : '', 'comments' => isset($_POST['comments']) ? mswSpecialChars($_POST['comments']) : '')); // Custom fields for form refresh.. $tpl->assign('CFIELDS', isset($_POST['dept']) && $_POST['dept'] > 0 ? $MSFIELDS->build('ticket', $_POST['dept']) : ''); // Field flags for errors.. $tpl->assign('EFIELDS', $eFields); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/account-create-ticket.tpl.php');
$message = str_replace('{email}', $A->email, $msg_public_create10); } } // Show message.. $title = $msg_public_create7; include PATH . 'control/header.php'; $tpl = new Savant3(); $tpl->assign('TXT', array($msg_public_create7, $msg_public_create, $message)); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/account-verification-message.tpl.php'); include PATH . 'control/footer.php'; exit; } $title = $msg_public_create; // Is this option enabled? if ($SETTINGS->createAcc == 'no') { $HEADERS->err403(); } include PATH . 'control/header.php'; // Show.. $tpl = new Savant3(); $tpl->assign('TXT', array($msg_public_create, $msg_public_create2, $msg_main3, $msg_public_create3, $msg_public_create, $msg_public_create4, $msg_public_ticket9, $msg_public_create5, $msg_public_create6, $msg_public_create11)); $tpl->assign('RECAPTCHA', $SETTINGS->recaptchaPublicKey && $SETTINGS->recaptchaPrivateKey ? $MSYS->recaptcha($SETTINGS) : ''); $tpl->assign('RECPA_ERR_PARAM', $SETTINGS->recaptchaPublicKey && $SETTINGS->recaptchaPrivateKey ? ',recaptcha_response_field' : ''); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/account-create.tpl.php'); include PATH . 'control/footer.php';
} // Add reply.. if (isset($_POST['process'])) { define('T_PERMS', 't'); include PATH . 'control/system/accounts/account-ticket-reply.php'; } // Is IP blank? if ($T->ipAddresses == '' && $T->visitorID == $LI_ACC->id) { $MSTICKET->updateIP($T->id); $T->ipAddresses = mswIPAddresses(); } // Variables.. $title = str_replace('{ticket}', mswTicketNumber($_GET['t']), $msg_showticket4); include PATH . 'control/header.php'; $tpl = new Savant3(); $tpl->assign('TICKET', $T); $tpl->assign('TXT', array($title, $msg_header11, $msg_header3, $msg_main11, $MSYS->levels($T->priority), $MSDT->mswDateTimeDisplay($T->ts, $SETTINGS->dateformat), $MSDT->mswDateTimeDisplay($T->ts, $SETTINGS->timeformat), $msg_viewticket75, $MSYS->department($T->department, $msg_script30), str_replace('{url}', 'index.php?t=' . $_GET['t'] . '&lk=yes', $msg_viewticket45), $msg_public_ticket, $msg_open19, $msg_newticket43, $msg_viewticket101, $msg_showticket5, $msg_viewticket78, $msg_newticket37, $msg_newticket38, $attachRestrictions, $bb_code_buttons, $msg_public_ticket3, $msg_public_ticket4, $msg_public_ticket9, $msg_viewticket27, $msg_public_ticket10)); $tpl->assign('COMMENTS', $MSPARSER->mswTxtParsingEngine($T->comments)); $tpl->assign('CUSTOM_FIELD_DATA', $MSFIELDS->display($T->id)); $tpl->assign('ATTACHMENTS', $MSTICKET->attachments($T->id)); $tpl->assign('TICKET_REPLIES', $MSTICKET->replies($T->id, mswSpecialChars($LI_ACC->name))); $tpl->assign('ENTRY_CUSTOM_FIELDS', $MSFIELDS->build('reply', $T->department)); $tpl->assign('SYSTEM_MESSAGE', !empty($eFields) ? str_replace('{count}', count($eFields), $msg_public_ticket8) : $ticketSystemMsg); // Post fields..will populate on refresh.. $tpl->assign('POST', array('comments' => isset($_POST['comments']) ? mswSpecialChars($_POST['comments']) : '')); // Custom fields for form refresh.. $tpl->assign('CFIELDS', isset($_POST['comments']) ? $MSFIELDS->build('reply', $T->department) : ''); // Field flags for errors.. $tpl->assign('EFIELDS', $eFields); // Global vars.. include PATH . 'control/lib/global.php';
E-Mail: support@maianscriptworld.co.uk Software Website: http://www.maiansupport.com Script Portal: http://www.maianscriptworld.co.uk ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This File: disabled.php Description: System File ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ if (!defined('PARENT') || !defined('MS_PERMISSIONS')) { $HEADERS->err403(); } // Auto enable.. $now = $MSDT->mswDateTimeDisplay(strtotime(date('Y-m-d', $MSDT->mswUTC())), 'Y-m-d', $SETTINGS->timezone); if ($SETTINGS->autoenable != '0000-00-00' && $SETTINGS->autoenable <= $now) { mysql_query("UPDATE `" . DB_PREFIX . "settings` SET\n `sysstatus` = 'yes',\n `autoenable` = '0000-00-00'\n "); header("Location: index.php"); exit; } $title = $msg_offline; include PATH . 'control/header.php'; $tpl = new Savant3(); $tpl->assign('CHARSET', $msg_charset); $tpl->assign('TITLE', ($title ? mswSpecialChars($title) . ': ' : '') . str_replace('{website}', mswCleanData($SETTINGS->website), $msg_header) . (LICENCE_VER != 'unlocked' ? ' (' . $msg_script18 . ' ' . $msg_script . ')' : '') . (LICENCE_VER != 'unlocked' ? ' - Free Version' : '') . (mswCheckBetaVersion() == 'yes' ? ' - BETA VERSION' : '')); $tpl->assign('TXT', array($msg_offline, mswCleanData($SETTINGS->offlineReason))); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/system-disabled.tpl.php'); include PATH . 'control/footer.php';
// Check if sub category.. if ($CAT->subcat > 0) { $SUB = mswGetTableData('categories', 'id', $CAT->subcat); if (isset($SUB->name)) { define('IS_SUB', $CAT->subcat); $title = mswCleanData($CAT->name) . ' (' . mswCleanData($SUB->name) . ') - ' . $msg_adheader17; } } // Pagination.. if ($dataCount > $SETTINGS->quePerPage) { define('PER_PAGE', $SETTINGS->quePerPage); $PTION = new pagination($dataCount, '?c=' . (int) $_GET['c'] . mswQueryParams(array('c', 'p', 'next')) . '&next='); $pageNumbers = $PTION->display(); } // Header.. include PATH . 'control/header.php'; // Template initialisation.. $tpl = new Savant3(); $tpl->assign('TXT', array($msg_header8, $msg_header4)); $tpl->assign('SCH_TXT', $msg_header4); $tpl->assign('FAQ', $FAQ->questions($CAT->id, $limitvalue, $SETTINGS)); $tpl->assign('PARENT', (array) $CAT); $tpl->assign('MSDT', $MSDT); $tpl->assign('CHILD', isset($SUB->id) ? (array) $SUB : array()); $tpl->assign('PAGES', $pageNumbers); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/faq-cat.tpl.php'); // Footer.. include PATH . 'control/footer.php';
if (MS_PERMISSIONS == 'guest' || !isset($LI_ACC->id)) { header("Location:index.php?p=login"); exit; } // Variables.. $pageNumbers = ''; $title = isset($_GET['qt']) ? $msg_portal17 : $msg_header11; $dataCount = $MSTICKET->ticketList(MS_PERMISSIONS, array($limitvalue, $limit), true); // Pagination.. if ($dataCount > $limit) { define('PER_PAGE', $limit); $PTION = new pagination($dataCount, '?p=' . $_GET['p'] . mswQueryParams(array('p', 'next')) . '&next='); $pageNumbers = $PTION->display(); } include PATH . 'control/header.php'; // Filters.. include PATH . 'control/system/accounts/account-history-filters.php'; // Show.. $tpl = new Savant3(); $tpl->assign('TXT', array($msg_header11, $msg_header3, str_replace('{count}', $dataCount, $msg_public_history), $msg_header4, $msg_viewticket25, $msg_open36, $msg_open37, $msg_public_history2, $msg_public_history3, $msg_script45, $msg_search20, $msg_viewticket107, $msg_response6, $msg_public_history13)); $tpl->assign('TICKETS', $MSTICKET->ticketList(MS_PERMISSIONS, array($limitvalue, $limit))); $tpl->assign('PAGES', $pageNumbers); $tpl->assign('IS_DISPUTED', 'no'); $tpl->assign('DD_ORDER', $orderBy); $tpl->assign('DD_FILTERS', $filterBy); $tpl->assign('DD_DEPT', $deptFilter); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/account-history.tpl.php'); include PATH . 'control/footer.php';
This File: main.php Description: System File ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ if (!defined('PARENT') || !defined('MS_PERMISSIONS')) { $HEADERS->err403(); } // Show BBCode help.. if (isset($_GET['bbcode'])) { $tpl = new Savant3(); $tpl->assign('CHARSET', $msg_charset); $tpl->assign('LANG', $html_lang); $tpl->assign('DIR', $lang_dir); $tpl->assign('TITLE', ($title ? mswSpecialChars($title) . ': ' : '') . $msg_bbcode . ': ' . str_replace('{website}', mswCleanData($SETTINGS->website), $msg_header) . (mswCheckBetaVersion() == 'yes' ? ' - BETA VERSION' : '')); $tpl->assign('TOP_BAR_TITLE', str_replace('{website}', mswCleanData($SETTINGS->website), $msg_header)); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/bb-code-help.tpl.php'); } else { include PATH . 'control/header.php'; $tpl = new Savant3(); $tpl->assign('TXT', array($msg_public_main, str_replace('{name}', mswCleanData($SETTINGS->website), $msg_public_main2), str_replace('{count}', $SETTINGS->popquestions, $msg_main10), str_replace('{count}', $SETTINGS->popquestions, $msg_public_main3))); $tpl->assign('POPULAR', $SETTINGS->kbase == 'yes' ? $FAQ->questions(0, 0, $SETTINGS, array(), '`' . DB_PREFIX . 'faq`.`kviews` DESC', 'GROUP BY `' . DB_PREFIX . 'faqassign`.`question`') : ''); $tpl->assign('LATEST', $SETTINGS->kbase == 'yes' ? $FAQ->questions(0, 0, $SETTINGS, array(), '`' . DB_PREFIX . 'faq`.`ts` DESC', 'GROUP BY `' . DB_PREFIX . 'faqassign`.`question`') : ''); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/main.tpl.php'); include PATH . 'control/footer.php'; }
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This File: account-login.php Description: System File ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ if (!defined('PARENT') || !defined('MS_PERMISSIONS')) { $HEADERS->err403(); } // Logout.. if (isset($_GET['lo'])) { $_SESSION[md5(SECRET_KEY) . '_msw_support'] = ''; unset($_SESSION[md5(SECRET_KEY) . '_msw_support'], $_SESSION['portalEmail']); header("Location: ?p=login"); exit; } if (MS_PERMISSIONS != 'guest') { header("Location: ?p=dashboard"); exit; } $title = $msg_public_login; include PATH . 'control/header.php'; // Show.. $tpl = new Savant3(); $tpl->assign('TXT', array($msg_public_login, $msg_public_login2, $msg_main3, $msg_main4, $msg_public_login3, $msg_main9, $msg_main5)); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/account-login.tpl.php'); include PATH . 'control/footer.php';
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');
<?php /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Script: Maian Support Programmed & Designed 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: account-suspended.php Description: System File ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ if (!defined('PARENT') || !defined('MS_PERMISSIONS')) { $HEADERS->err403(); } $title = $msg_public_login5; include PATH . 'control/header.php'; $tpl = new Savant3(); $tpl->assign('CHARSET', $msg_charset); $tpl->assign('TITLE', $msg_public_login5); $tpl->assign('TXT', array($msg_public_login5, mswCleanData($LI_ACC->reason))); // Global vars.. include PATH . 'control/lib/global.php'; // Load template.. $tpl->display('content/' . MS_TEMPLATE_SET . '/account-suspended.tpl.php'); include PATH . 'control/footer.php';
if (isset($GLOBAL->name)) { $MSMAIL->addTag('{NAME}', $GLOBAL->name); $MSMAIL->sendMSMail(array('from_email' => $SETTINGS->email, 'from_name' => $SETTINGS->website, 'to_email' => $GLOBAL->email, 'to_name' => $GLOBAL->name, 'subject' => str_replace(array('{website}', '{ticket}'), array($SETTINGS->website, mswTicketNumber($ID)), $emailSubjects['new-ticket']), 'replyto' => array('name' => $SETTINGS->website, 'email' => $SETTINGS->replyto ? $SETTINGS->replyto : $SETTINGS->email), 'template' => PATH . 'content/language/' . $SETTINGS->language . '/mail-templates/new-ticket-admin.txt', 'language' => $SETTINGS->language, 'alive' => 'yes', 'add-emails' => $GLOBAL->email2)); } // Send auto responder to person who opened ticket.. if (!defined('NEW_ACC_CREATION') && file_exists(LANG_PATH . 'mail-templates/new-ticket-visitor.txt')) { $mailT = LANG_PATH . 'mail-templates/new-ticket-visitor.txt'; $pLang = $LI_ACC->language; } else { $mailT = PATH . 'content/language/' . $SETTINGS->language . '/mail-templates/new-ticket-visitor.txt'; } $MSMAIL->addTag('{NAME}', $name); $MSMAIL->sendMSMail(array('from_email' => $SETTINGS->email, 'from_name' => $SETTINGS->website, 'to_email' => $email, 'to_name' => $name, 'subject' => str_replace(array('{website}', '{ticket}'), array($SETTINGS->website, mswTicketNumber($ID)), $emailSubjects['new-ticket-vis']), 'replyto' => array('name' => $SETTINGS->website, 'email' => $SETTINGS->replyto ? $SETTINGS->replyto : $SETTINGS->email), 'template' => $mailT, 'language' => isset($pLang) ? $pLang : $SETTINGS->language)); // Write history log.. $MSTICKET->historyLog($ID, str_replace(array('{visitor}'), array($name), $msg_ticket_history['new-ticket-visitor'])); // All done..show relevant message.. $title = $msg_main2; include PATH . 'control/header.php'; $tpl = new Savant3(); $tpl->assign('TXT', array($msg_public_ticket4, $msg_newticket13, str_replace(array('{ticket}', '{ticket_long}'), array($ID, mswTicketNumber($ID)), $msg_public_ticket5), $msg_public_ticket6)); $tpl->assign('ADD_TXT', $pass ? str_replace(array('{email}', '{pass}'), array($email, $pass), $msg_public_ticket7) : ''); $tpl->assign('ID', $ID); // Global vars.. include PATH . 'control/lib/global.php'; $tpl->display('content/' . MS_TEMPLATE_SET . '/ticket-create-message.tpl.php'); include PATH . 'control/footer.php'; exit; } } } }