<?php include_once realpath(dirname(__FILE__)) . '/FileManagers.php'; require_once realpath(dirname(__FILE__)) . '/../OriginalSmarty/OriginalSmarty.class.php'; $sid = $_POST['sid']; $allowDeleteFiles = $_POST['allowDeleteFiles']; $attachmentInfos = SourceDesAttachmentManager::getInstance()->getSourceAttachmentsInfo($sid); // Assign model to template. $smarty = new OriginalSmarty(); $smarty->assign('attachmentInfos', $attachmentInfos); $smarty->assign('allowDeleteFiles', $allowDeleteFiles); $smarty->display('attachmentList.tpl');
<?php require_once realpath(dirname(__FILE__)) . '/../config.php'; require_once realpath(dirname(__FILE__)) . '/../OriginalSmarty/OriginalSmarty.class.php'; global $current_user; if (!$current_user->authenticated) { die('Please login to use this function.'); } $fromSid = $_POST['fromSid']; $toSid = $_POST['toSid']; $fromTable = $_POST['fromTable']; $toTable = $_POST['toTable']; $relSerializedString = $_POST['relSerializedString']; if (empty($fromSid) || empty($toSid) || empty($fromTable) || empty($toTable)) { die("Invalid argument"); } // Assign model to template. $smarty = new OriginalSmarty(); $smarty->assign('fromSid', $fromSid); $smarty->assign('toSid', $toSid); $smarty->assign('fromTable', $fromTable); $smarty->assign('toTable', $toTable); $smarty->assign('relSerializedString', $relSerializedString); $smarty->display('dataMatchChecker.tpl');
<?php if (!isset($_GET['sid']) || is_int($_GET['sid'])) { die; } require_once realpath(dirname(__FILE__)) . '/FileManagers.php'; require_once realpath(dirname(__FILE__)) . '/../OriginalSmarty/OriginalSmarty.class.php'; include_once realpath(dirname(__FILE__)) . '/../libs/login.php'; global $current_user; if (!$current_user->authenticated) { die('Please login to use this function.'); } $model = SourceDesAttachmentManager::getInstance()->createFileUploadPageModel(); // Assign model to template. $smarty = new OriginalSmarty(); $smarty->assign('model', $model); $smarty->assign('sid', $_GET['sid']); $smarty->display('sourceAttachmentUploadPage.tpl');