Location: PHPKode > projects > Druid Defect Control > defectcontrol_0.9.4/tts/triggers.php
<?php

require_once 'config.php';
require_once 'usercheck.php';


/* __ Trigger interface ___________________________________________________ */

$tr_triggers = array (
    'new' => "new_trigger.sh",
    'assign' => "assign_trigger.sh",
    'open' => "open_trigger.sh",
    'resolve' => "resolve_trigger.sh",
    'verify' => "verify_trigger.sh",
    'duplicate' => "duplicate_trigger.sh",
    'postpone' => "postpone_trigger.sh",
    );

/*
 *
 */
function executeTrigger($triggerType, $iddefect)
{

    global $ddts_username;
    global $tr_triggers;   

    // arguments to the trigger: iddefect, currentUser
    
    $command = TRIGGERS_DIRECTORY.$tr_triggers[$triggerType]." $iddefect $ddts_username";
    
    //echo $command."<br>";
    
    exec($command);

}

?>
Return current item: Druid Defect Control