</script> <?php $objCirculation = new CCirculation(); $arrAllUsers = $objCirculation->getAllUsers(); $arrActiveUsers = $objCirculation->getAllUsers(false); $arrAllMailingLists = $objCirculation->getAllMailingLists(); $arrAllInputFields = $objCirculation->getMyInputFields(); $arrAllTemplates = $objCirculation->getAllTemplates(); if ($_REQUEST["archivemode"] == 0 && !$_REQUEST['bOwnCirculations']) { ?> <table width="90%" cellspacing="0" cellpadding="0"> <tr> <?php if ($_SESSION["SESSION_CUTEFLOW_ACCESSLEVEL"] == 2 || $_SESSION["SESSION_CUTEFLOW_ACCESSLEVEL"] == 8) { // check if an extension exists $extensions = $objCirculation->getExtensionsByHookId('CF_ADD_CIRCULATION'); if ($extensions) { $extension = $extensions[0]; // only one extension is possible here $path = $extension['path']; $Extension = $extension['Extension']; $hooks = $Extension->hook; $hook = $hooks[0]; $destination = $path . $hook->destination; $destination .= $objCirculation->getExtensionParams($hook); $strEncryptedLinkURL = $destination; } else { $strParams = 'language=' . $_REQUEST["language"] . '&circid=-1'; $strEncyrptedParams = $objURL->encryptURL($strParams); $strEncryptedLinkURL = 'editcirculation.php?key=' . $strEncyrptedParams; }
sendMessageToSender($nSenderId, $arrProcessInfo["nUserId"], "done", $strCircName, "ENDSLOT", $_REQUEST["cpid"], $slotname); } } } else { //--- send done email to sender if wanted $strQuery = "SELECT * FROM cf_circulationform WHERE nID=" . $arrCirculationProcesses["nCirculationFormId"]; $nResult = mysql_query($strQuery, $nConnection); if ($nResult) { if (mysql_num_rows($nResult) > 0) { $arrRow = mysql_fetch_array($nResult); $nEndAction = $arrRow["nEndAction"]; $nSenderId = $arrRow["nSenderId"]; $strCircName = $arrRow["strName"]; // check the hook CF_ENDACTION $circulation = new CCirculation(); $endActions = $circulation->getExtensionsByHookId('CF_ENDACTION'); if ($endActions) { foreach ($endActions as $endAction) { $params = $circulation->getEndActionParams($endAction); $hookValue = (int) $params['hookValue']; if (($nEndAction & $hookValue) == $hookValue) { require_once $params['filename']; } } } $nShouldArchived = $nEndAction & 2; $nShouldMailed = $nEndAction & 1; $nShouldDeleted = 4; if ($nShouldMailed == 1) { sendMessageToSender($nSenderId, $arrProcessInfo["nUserId"], "done", $strCircName, "SUCCESS", $_REQUEST["cpid"]); }
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ session_start(); require_once '../config/config.inc.php'; require_once '../language_files/language.inc.php'; require_once 'CCirculation.inc.php'; require_once '../pages/version.inc.php'; $Circulation = new CCirculation(); $extensions = $Circulation->getExtensionsByHookId('CF_MENU'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=<?php echo $DEFAULT_CHARSET; ?> "> <title></title> <link rel="stylesheet" href="format.css" type="text/css"> <style> #menu { margin-top: 10px; margin-left: 5px;