本文整理匯總了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}/";