Clean code
This commit is contained in:
parent
36fd3f7816
commit
ae845fccc5
@ -94,7 +94,7 @@ if ($cancel) {
|
|||||||
$action = 'view';
|
$action = 'view';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == "view" || $action == "presend" || $action == "close" || $action == "confirm_public_close" || $action == "add_message") {
|
if ($action == "view" || $action == "presend" || $action == "dosubmit") {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
$display_ticket = false;
|
$display_ticket = false;
|
||||||
if (!strlen($ref)) {
|
if (!strlen($ref)) {
|
||||||
@ -119,11 +119,11 @@ if ($action == "view" || $action == "presend" || $action == "close" || $action =
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (!$error && $action == "add_message" && $display_ticket && GETPOSTISSET('btn_add_message'))
|
if (!$error && $action == "dosubmit")
|
||||||
{
|
{
|
||||||
// TODO Add message...
|
// Test MAIN_SECURITY_MAX_POST_ON_PUBLIC_PAGES_BY_IP_ADDRESS
|
||||||
$ret = $object->newMessage($user, $action, 0, 1);
|
|
||||||
|
|
||||||
|
// TODO Create job application
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ if ($action == "view" || $action == "presend" || $action == "close" || $action =
|
|||||||
|
|
||||||
if ($error || $errors) {
|
if ($error || $errors) {
|
||||||
setEventMessages($object->error, $object->errors, 'errors');
|
setEventMessages($object->error, $object->errors, 'errors');
|
||||||
if ($action == "add_message") {
|
if ($action == "dosubmit") {
|
||||||
$action = 'presend';
|
$action = 'presend';
|
||||||
} else {
|
} else {
|
||||||
$action = '';
|
$action = '';
|
||||||
@ -185,7 +185,7 @@ print '<span id="dolpaymentspan"></span>'."\n";
|
|||||||
print '<div class="center">'."\n";
|
print '<div class="center">'."\n";
|
||||||
print '<form id="dolpaymentform" class="center" name="paymentform" action="'.$_SERVER["PHP_SELF"].'" method="POST">'."\n";
|
print '<form id="dolpaymentform" class="center" name="paymentform" action="'.$_SERVER["PHP_SELF"].'" method="POST">'."\n";
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">'."\n";
|
print '<input type="hidden" name="token" value="'.newToken().'">'."\n";
|
||||||
print '<input type="hidden" name="action" value="dosign">'."\n";
|
print '<input type="hidden" name="action" value="dosubmit">'."\n";
|
||||||
print '<input type="hidden" name="tag" value="'.GETPOST("tag", 'alpha').'">'."\n";
|
print '<input type="hidden" name="tag" value="'.GETPOST("tag", 'alpha').'">'."\n";
|
||||||
print '<input type="hidden" name="suffix" value="'.GETPOST("suffix", 'alpha').'">'."\n";
|
print '<input type="hidden" name="suffix" value="'.GETPOST("suffix", 'alpha').'">'."\n";
|
||||||
print '<input type="hidden" name="securekey" value="'.$SECUREKEY.'">'."\n";
|
print '<input type="hidden" name="securekey" value="'.$SECUREKEY.'">'."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user