function resetFilter() { $("#filterResultDiv").load('<?php echo $moduleRelPath; ?> /EXT_filter_functions.php?filter_op=reset'); } <?php if ($userID > 0) { $helperUrl = $CONF['pdf']['helperUrl']; if (!$helperUrl) { $helperUrl = $moduleRelPath; $remote = ''; } else { require_once "CL_user.php"; $userIDnotify = $userID; $userEmailNotify = LeoUser::getEmail($userID); $remote = "&remote=1&userIDnotify={$userIDnotify}&userEmailNotify={$userEmailNotify}"; } if ($_GET['sortOrder']) { $remote .= "&sortOrder=" . $_GET['sortOrder']; } ?> function printPDF(url) { <?php if ($remote) { ?> $("#pdfDiv").html('<iframe frameborder="0" scrolling="auto" width="650" height="auto" src="<?php echo $CONF['pdf']['helperUrl']; ?> /EXT_helper.php?op1=create_pdf<?php
if ($op=="create_pdf") { $direct=$_GET['direct']+0; $remote=$_GET['remote']+0; if ($userID <=0 || $remote) { //echo "Not valid user"; // exit; $userID =makeSane($_GET['userIDnotify']); $userEmail=makeSane($_GET['userEmailNotify'],2); unset($_GET['userIDnotify']); unset($_GET['userEmailNotify']); } else { require_once "CL_user.php"; $userEmail=LeoUser::getEmail($userID); } unset($_GET['op1']); unset($_GET['direct']); unset($_GET['remote']); $url="http://".urldecode($_GET['url']); foreach($_GET as $name=>$val ) { if ( !in_array($name,array('print','url') ) ){ $url.="&$name=$val"; } }