本文整理汇总了PHP中PwUpload::getAttachs方法的典型用法代码示例。如果您正苦于以下问题:PHP PwUpload::getAttachs方法的具体用法?PHP PwUpload::getAttachs怎么用?PHP PwUpload::getAttachs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PwUpload
的用法示例。
在下文中一共展示了PwUpload::getAttachs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exit
<?php
!function_exists('readover') && exit('Forbidden');
if (empty($_GET['step'])) {
list($db_upload, $db_imglen, $db_imgwidth, $db_imgsize) = explode("\t", $db_upload);
S::gp(array('uid', 'verify'));
$swfhash = GetVerify($uid);
checkVerify('swfhash');
$db_uploadfiletype = array();
$db_uploadfiletype['gif'] = $db_uploadfiletype['jpg'] = $db_uploadfiletype['bmp'] = $db_uploadfiletype['png'] = $db_imgsize;
L::loadClass('upload', '', false);
$pwupload = new PwUpload(new FaceUpload());
$pwupload->upload($uid);
$uploaddb = $pwupload->getAttachs();
echo $db_bbsurl . '/' . $attachpath . '/' . $uploaddb['fileuploadurl'] . '?' . $timestamp;
exit;
} else {
require_once R_P . 'require/functions.php';
L::loadClass('upload', '', false);
$ext = strtolower(substr(strrchr($_GET['filename'], '.'), 1));
$udir = str_pad(substr($winduid, -2), 2, '0', STR_PAD_LEFT);
$source = PwUpload::savePath($db_ifftp, "{$winduid}_tmp.{$ext}", "upload/{$udir}/");
if (!file_exists($source)) {
Showmsg('undefined_action');
}
$data = $_SERVER['HTTP_RAW_POST_DATA'] ? $_SERVER['HTTP_RAW_POST_DATA'] : file_get_contents('php://input');
if ($data) {
require_once R_P . 'require/showimg.php';
$filename = "{$winduid}.jpg";
$normalDir = "upload/{$udir}/";
$middleDir = "upload/middle/{$udir}/";