Example #1
0
function hesk_iFinish()
{
    global $hesk_settings;
    hesk_iHeader();
    ?>

	<h3>Setup database tables</h3>

	<br />
	<?php 
    hesk_show_success('Congratulations, you have successfully completed HESK database setup!');
    ?>

    <h3>Things to do next:</h3>

    <ol>

    <li><span style="color:#ff0000">Delete the <b>/install</b> folder from your server!</span><br />&nbsp;</li>

    <li>Login to HESK administration panel using default login.<br />

<pre style="font-size: 1.17em">
Username: <b>Administrator</b>
Password: <b>admin</b>
</pre>

	<br />

	<form action="<?php 
    echo HESK_PATH;
    ?>
admin/index.php" method="post">
	<input type="hidden" name="a" value="do_login" />
	<input type="hidden" name="remember_user" value="JUSTUSER" />
	<input type="hidden" name="user" value="Administrator" />
	<input type="hidden" name="pass" value="admin" />
	<input type="hidden" name="goto" value="admin_settings.php" />
	<input type="submit" value="Click here to login automatically &raquo;" class="orangebutton" onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" /></p>
	</form>

    </li>

    </ol>

    <p>&nbsp;</p>

	<?php 
    hesk_iFooter();
}
Example #2
0
/* Print main manage users page */
require_once HESK_PATH . 'inc/show_admin_nav.inc.php';
?>

</td>
</tr>
<tr>
<td>

<?php 
/* This will handle error, success and notice messages */
hesk_handle_messages();
// If an export was generated, show the link to download
if (isset($flush_me)) {
    if ($tickets_exported > 0) {
        hesk_show_success($flush_me);
    } else {
        hesk_show_notice($hesklang['n2ex']);
    }
}
?>

<!-- TABS -->
<div id="tab1" class="tabberlive" style="margin-top:0px">

	<ul class="tabbernav">
		<?php 
// Show a link to reports.php if user has permission to do so
if (hesk_checkPermission('can_run_reports', 0)) {
    echo '<li class=""><a title="' . $hesklang['reports_tab'] . '" href="reports.php">' . $hesklang['reports_tab'] . ' [+]</a></li>';
}
	</div>
</div><!-- end siteUrl-title-submitTicketPhp -->

<!--
</td>
</tr>-->

<!-- start in this page end somewhere...
<tr>
<td>-->

<p>&nbsp;</p>

<?php 
// Show success message with link to ticket
hesk_show_success($hesklang['ticket_submitted'] . '<br /><br />' . $hesklang['ticket_submitted_success'] . ': <b>' . $ticket['trackid'] . '</b><br /><br /> ' . '<a href="' . $hesk_settings['hesk_url'] . '/ticket.php?track=' . $ticket['trackid'] . '">' . $hesklang['view_your_ticket'] . '</a>');
// Any other messages to display?
hesk_handle_messages();
?>

<p>&nbsp;</p>

<?php 
require_once HESK_PATH . 'inc/footer.inc.php';
exit;
function hesk_forceStop()
{
    global $hesklang;
    ?>
	<html>
	<head>
Example #4
0
function hesk_iFinish()
{
    global $hesk_settings;
    hesk_iHeader();
    ?>

	<h3>Update database tables</h3>

	<br />
	<?php 
    hesk_show_success('Congratulations, your HESK has been updated to ' . HESK_NEW_VERSION);
    ?>

    <h3>Things to do next:</h3>

    <ol>

    <li><span style="color:#ff0000">Delete the <b>/install</b> folder from your server!</span><br />&nbsp;</li>

    <li>Login to HESK administration panel and make sure everything works fine.<br /><br />

	<form action="<?php 
    echo HESK_PATH;
    ?>
admin/admin_main.php" method="get">
	<input type="submit" value="Continue to admin panel &raquo;" class="orangebutton" onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" /></p>
	</form>

    </li>

    </ol>

    <p>&nbsp;</p>

	<?php 
    hesk_iFooter();
}
Example #5
0
function hesk_handle_messages()
{
    global $hesk_settings, $hesklang;
    $return_value = true;
    // Primary message - only one can be displayed and HESK_MESSAGE is required
    if (isset($_SESSION['HESK_MESSAGE'])) {
        if (isset($_SESSION['HESK_SUCCESS'])) {
            hesk_show_success($_SESSION['HESK_MESSAGE']);
        } elseif (isset($_SESSION['HESK_ERROR'])) {
            hesk_show_error($_SESSION['HESK_MESSAGE']);
            $return_value = false;
        } elseif (isset($_SESSION['HESK_NOTICE'])) {
            hesk_show_notice($_SESSION['HESK_MESSAGE']);
        } elseif (isset($_SESSION['HESK_INFO'])) {
            hesk_show_info($_SESSION['HESK_MESSAGE']);
        }
        hesk_cleanSessionVars('HESK_MESSAGE');
    }
    // Cleanup any primary message types set
    hesk_cleanSessionVars('HESK_ERROR');
    hesk_cleanSessionVars('HESK_SUCCESS');
    hesk_cleanSessionVars('HESK_NOTICE');
    hesk_cleanSessionVars('HESK_INFO');
    // Secondary message
    if (isset($_SESSION['HESK_2ND_NOTICE']) && isset($_SESSION['HESK_2ND_MESSAGE'])) {
        hesk_show_notice($_SESSION['HESK_2ND_MESSAGE']);
        hesk_cleanSessionVars('HESK_2ND_NOTICE');
        hesk_cleanSessionVars('HESK_2ND_MESSAGE');
    }
    return $return_value;
}
Example #6
0
// Test type?
$test_type = hesk_POST('test');
// Test MySQL connection
if ($test_type == 'mysql') {
    if (hesk_testMySQL()) {
        hesk_show_success($hesklang['conok']);
    } elseif (!empty($mysql_log)) {
        hesk_show_error($mysql_error . '<br /><br /><b>' . $hesklang['mysql_said'] . ':</b> ' . $mysql_log);
    } else {
        hesk_show_error($mysql_error);
    }
} elseif ($test_type == 'pop3') {
    if (hesk_testPOP3()) {
        hesk_show_success($hesklang['conok']);
    } else {
        hesk_show_error($pop3_error . '<br /><br /><textarea name="pop3_log" rows="10" cols="60">' . $pop3_log . '</textarea>');
    }
} elseif ($test_type == 'smtp') {
    if (hesk_testSMTP()) {
        // If no username/password add a notice
        if ($set['smtp_user'] == '' && $set['smtp_user'] == '') {
            $hesklang['conok'] .= '<br /><br />' . $hesklang['conokn'];
        }
        hesk_show_success($hesklang['conok']);
    } else {
        hesk_show_error($smtp_error . '<br /><br /><textarea name="smtp_log" rows="10" cols="60">' . $smtp_log . '</textarea>');
    }
} else {
    die($hesklang['attempt']);
}
exit;
Example #7
0
?>
"><?php 
echo $hesk_settings['hesk_title'];
?>
</a></li>
  <li class="active"><?php 
echo $hesklang['tid_sent'];
?>
</li>
</ol>

<div style="width: 80%; margin-left: auto; margin-right: auto;">
    <?php 
if ($createTicket) {
    // Show success message with link to ticket
    hesk_show_success($hesklang['ticket_submitted'] . '<br /><br />' . $hesklang['ticket_submitted_success'] . ': <b>' . $ticket['trackid'] . '</b><br /><br /> ' . ($hesk_settings['notify_new'] && $hesk_settings['spam_notice'] ? $hesklang['spam_inbox'] . '<br /><br />' : '') . '<a href="' . $hesk_settings['hesk_url'] . '/ticket.php?track=' . $ticket['trackid'] . '">' . $hesklang['view_your_ticket'] . '</a>');
} else {
    hesk_show_notice($hesklang['verify_your_email'] . '<br><br>' . $hesklang['check_spambox']);
}
// Any other messages to display?
hesk_handle_messages();
?>
</div>

<?php 
require_once HESK_PATH . 'inc/footer.inc.php';
exit;
function hesk_forceStop()
{
    global $hesklang;
    ?>