本文整理汇总了PHP中pathos_flow_redirect函数的典型用法代码示例。如果您正苦于以下问题:PHP pathos_flow_redirect函数的具体用法?PHP pathos_flow_redirect怎么用?PHP pathos_flow_redirect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pathos_flow_redirect函数的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
$original = $db->selectObject('imageworkshop_image', 'id=' . $_POST['id']);
if ($original) {
$working = $db->selectObject('imageworkshop_imagetmp', 'original_id=' . $original->id);
if ($working) {
$original->file_id = $working->file_id;
}
$file = $db->selectObject('file', 'id=' . $original->file_id);
$file->_path = BASE . $file->directory . '/' . $file->filename;
$wfile = null;
if ($working == null) {
$working = imageworkshopmodule::createWorkingCopy($original, $file);
$wfile = $working->_file;
unset($working->_file);
} else {
$wfile = $db->selectObject('file', 'id=' . $working->file_id);
}
$wfile->_path = BASE . $wfile->directory . '/' . $wfile->filename;
if (!defined('SYS_IMAGE')) {
require_once BASE . 'subsystems/image.php';
}
$newimg = pathos_image_scaleManually($file->_path, $_POST['width'], $_POST['height']);
if (is_resource($newimg)) {
pathos_image_output($newimg, pathos_image_sizeinfo($file->_path), $wfile->_path);
pathos_flow_redirect();
} else {
echo $newimg;
}
} else {
echo SITE_404_HTML;
}
// END PERM CHECK