當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PwUpload::getAttachs方法代碼示例

本文整理匯總了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}/";
開發者ID:jechiy,項目名稱:PHPWind,代碼行數:31,代碼來源:uploadicon.php


注:本文中的PwUpload::getAttachs方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。