Esempio n. 1
0
 function BannerUpload($cyid)
 {
     parent::uploadBehavior();
     $this->cyid = $cyid;
     $o_imgsize = 2048;
     $this->ftype = array('gif' => $o_imgsize, 'jpg' => $o_imgsize, 'jpeg' => $o_imgsize, 'bmp' => $o_imgsize, 'png' => $o_imgsize);
 }
Esempio n. 2
0
 function spaceBannerUpload($uid)
 {
     parent::uploadBehavior();
     $this->uid = $uid;
     $size = 1024 * 2048;
     $this->ftype = array('gif' => $size, 'jpg' => $size, 'jpeg' => $size, 'bmp' => $size, 'png' => $size);
 }
Esempio n. 3
0
 function AttUpload($uid, $flashatt = null, $savetoalbum = 0, $albumid = 0)
 {
     global $db, $pwforum, $pwpost, $db_ifathumb, $db_athumbsize, $db_uploadfiletype;
     parent::uploadBehavior();
     $this->pw_attachs = L::loadDB('attachs', 'forum');
     $this->uid = $uid;
     $this->db =& $db;
     $this->forum =& $pwforum;
     $this->post =& $pwpost;
     if ($pwforum->forumset['ifthumb'] == 1) {
         $this->ifthumb = 1;
         $this->thumbsize = $pwforum->forumset['thumbsize'];
     } elseif ($pwforum->forumset['ifthumb'] == 2) {
         $this->ifthumb = 0;
         $this->thumbsize = 0;
     } else {
         $this->ifthumb = $db_ifathumb;
         $this->thumbsize = $db_athumbsize;
     }
     list($uploadcredit, $uploadmoney) = explode("\t", $pwforum->forumset['uploadset']);
     $this->uploadmoney = $uploadmoney;
     $this->uploadcredit = $uploadcredit;
     $this->ftype =& $db_uploadfiletype;
     $this->uploadImgNum = 0;
     $this->uptype = 'all';
     $this->setFlashAtt($flashatt, $savetoalbum, $albumid);
 }
Esempio n. 4
0
 function PhotoUpload($aid)
 {
     global $db, $o_maxfilesize;
     parent::uploadBehavior();
     $this->aid = (int) $aid;
     $this->db =& $db;
     !$o_maxfilesize && ($o_maxfilesize = 1000);
     $this->ftype = array('gif' => $o_maxfilesize, 'jpg' => $o_maxfilesize, 'jpeg' => $o_maxfilesize, 'bmp' => $o_maxfilesize, 'png' => $o_maxfilesize);
 }
Esempio n. 5
0
 /**
  * 初始化
  * 
  * @param int $fileInputId 表单数字标识
  * @return 
  */
 function AdvUpload($fileInputId)
 {
     global $db;
     parent::uploadBehavior();
     $this->db =& $db;
     $this->fileInputId = $fileInputId;
     $o_maxfilesize = 2000;
     $this->ftype = array('gif' => $o_maxfilesize, 'jpg' => $o_maxfilesize, 'jpeg' => $o_maxfilesize, 'bmp' => $o_maxfilesize, 'png' => $o_maxfilesize);
 }
Esempio n. 6
0
 function CertificateUpload($uid)
 {
     global $db, $db_imgsize;
     parent::uploadBehavior();
     $this->uid = $uid;
     $this->db =& $db;
     !$db_imgsize && ($db_imgsize = 1000);
     $this->ftype = array('gif' => $db_imgsize, 'jpg' => $db_imgsize, 'jpeg' => $db_imgsize, 'bmp' => $db_imgsize, 'png' => $db_imgsize);
 }
Esempio n. 7
0
 function MutiUpload($uid)
 {
     global $db, $db_uploadfiletype;
     parent::uploadBehavior();
     $this->uid = (int) $uid;
     $this->db =& $db;
     $this->ftype =& $db_uploadfiletype;
     $this->ifftp = 0;
 }
Esempio n. 8
0
 function PushUpload($invokePieceId)
 {
     global $db;
     parent::uploadBehavior();
     $this->db =& $db;
     $this->invokePieceId = (int) $invokePieceId;
     $o_maxfilesize = 2000;
     $this->ftype = array('gif' => $o_maxfilesize, 'jpg' => $o_maxfilesize, 'jpeg' => $o_maxfilesize, 'bmp' => $o_maxfilesize, 'png' => $o_maxfilesize);
 }
Esempio n. 9
0
 function FaceUpload($uid)
 {
     global $db, $db_imgsize;
     parent::uploadBehavior();
     $this->uid = (int) $uid;
     $this->db =& $db;
     $this->ifftp = 0;
     !$db_imgsize && ($db_imgsize = 1000);
     $this->ftype = array('gif' => $db_imgsize, 'jpg' => $db_imgsize, 'jpeg' => $db_imgsize, 'bmp' => $db_imgsize, 'png' => $db_imgsize);
 }
Esempio n. 10
0
 function PcUpload($tid, $pcid)
 {
     global $db;
     parent::uploadBehavior();
     $this->tid = (int) $tid;
     $this->pcid = (int) $pcid;
     $this->db =& $db;
     $maxfilesize = 1000;
     $this->ftype = array('gif' => $maxfilesize, 'jpg' => $maxfilesize, 'jpeg' => $maxfilesize, 'bmp' => $maxfilesize, 'png' => $maxfilesize);
 }
Esempio n. 11
0
 function CsvUpload($uid)
 {
     global $db, $db_ifftp;
     parent::uploadBehavior();
     $maxfilesize = 4000;
     $this->db =& $db;
     $this->uid = $uid;
     $this->ifftp = $db_ifftp;
     $this->ftype = array('csv' => $maxfilesize);
 }
Esempio n. 12
0
 function AttUpload($uid, $flashatt = null)
 {
     global $db, $pwforum, $pwpost, $db_ifathumb, $db_athumbsize, $uploadmoney, $uploadcredit, $db_uploadfiletype;
     parent::uploadBehavior();
     $this->pw_attachs = L::loadDB('attachs');
     $this->uid = $uid;
     $this->db =& $db;
     $this->forum =& $pwforum;
     $this->post =& $pwpost;
     $this->ifthumb =& $db_ifathumb;
     $this->thumbsize =& $db_athumbsize;
     $this->uploadmoney =& $uploadmoney;
     $this->uploadcredit =& $uploadcredit;
     $this->ftype =& $db_uploadfiletype;
     $this->uptype = 'all';
     $this->setFlashAtt($flashatt);
 }
Esempio n. 13
0
 function ModifyAttach($aid)
 {
     global $db, $db_ifathumb, $db_athumbsize, $db_uploadfiletype;
     parent::uploadBehavior();
     $this->db =& $db;
     $this->pw_attachs = L::loadDB('attachs', 'forum');
     $this->attach = $this->pw_attachs->get($aid);
     $this->forum = new PwForum($this->attach['fid']);
     $this->ifthumb =& $db_ifathumb;
     if ($this->forum->forumset['ifthumb'] == 0) {
         $this->thumbsize =& $db_athumbsize;
     } elseif ($this->forum->forumset['ifthumb'] == 1) {
         $this->thumbsize =& $pwforum->forumset['thumbsize'];
     } elseif ($this->forum->forumset['ifthumb'] == 2) {
         $this->thumbsize = 0;
         $this->ifthumb = 0;
     } else {
         $this->thumbsize =& $db_athumbsize;
     }
     $this->ftype =& $db_uploadfiletype;
     $this->uptype = 'all';
 }
Esempio n. 14
0
 function AttMutiUpload($uid, $fid)
 {
     global $db, $db_ifathumb, $db_athumbsize, $db_uploadfiletype, $_G;
     parent::uploadBehavior();
     $this->pw_attachs = L::loadDB('attachs', 'forum');
     $this->uid = $uid;
     $this->db =& $db;
     $this->forum = new PwForum($fid);
     if ($this->forum->forumset['ifthumb'] == 1) {
         $this->ifthumb = 1;
         $this->thumbsize = $pwforum->forumset['thumbsize'];
     } elseif ($this->forum->forumset['ifthumb'] == 2) {
         $this->ifthumb = 0;
         $this->thumbsize = 0;
     } else {
         $this->ifthumb = $db_ifathumb;
         $this->thumbsize = $db_athumbsize;
     }
     $_G['uploadtype'] && ($db_uploadfiletype = $_G['uploadtype']);
     $db_uploadfiletype = !empty($db_uploadfiletype) ? is_array($db_uploadfiletype) ? $db_uploadfiletype : unserialize($db_uploadfiletype) : array();
     $this->ftype =& $db_uploadfiletype;
     $this->uptype = 'all';
 }
Esempio n. 15
0
 function diaryMutiUpload($uid)
 {
     global $db, $db_ifathumb, $db_athumbsize;
     parent::uploadBehavior();
     $o_uploadsize = L::config('o_uploadsize', 'o_config');
     is_array($o_uploadsize) || ($o_uploadsize = (array) unserialize($o_uploadsize));
     $this->pw_attachs = L::loadDB('attachs', 'forum');
     $this->uid = $uid;
     $this->db =& $db;
     $this->ifthumb =& $db_ifathumb;
     $this->thumbsize =& $db_athumbsize;
     $this->ftype =& $o_uploadsize;
 }
Esempio n. 16
0
 function ActiveModify($aid)
 {
     global $db, $db_ifathumb, $db_athumbsize, $db_uploadfiletype, $_G;
     parent::uploadBehavior();
     $this->db =& $db;
     $this->attach = $this->db->get_one("SELECT * FROM pw_actattachs WHERE aid=" . S::sqlEscape($aid));
     $this->ifthumb =& $db_ifathumb;
     $this->thumbsize =& $db_athumbsize;
     $_G['uploadtype'] && ($db_uploadfiletype = $_G['uploadtype']);
     $db_uploadfiletype = !empty($db_uploadfiletype) ? is_array($db_uploadfiletype) ? $db_uploadfiletype : unserialize($db_uploadfiletype) : array();
     $this->ftype =& $db_uploadfiletype;
 }
Esempio n. 17
0
 function messageMutiUpload($uid)
 {
     global $db, $db_uploadfiletype;
     parent::uploadBehavior();
     $this->uid = $uid;
     $this->db =& $db;
     $this->ftype = !is_array($db_uploadfiletype) ? unserialize($db_uploadfiletype) : $db_uploadfiletype;
 }
Esempio n. 18
0
 function ArticleModify($aid)
 {
     global $db, $db_ifathumb, $db_athumbsize, $db_uploadfiletype, $_G;
     parent::uploadBehavior();
     $this->db =& $db;
     $this->attach = $this->db->get_one("SELECT * FROM pw_cms_attach a LEFT JOIN pw_cms_article at USING(article_id) WHERE a.attach_id=" . S::sqlEscape($aid));
     $this->ifthumb =& $db_ifathumb;
     $this->thumbsize =& $db_athumbsize;
     !is_array($db_uploadfiletype) && ($db_uploadfiletype = unserialize($db_uploadfiletype));
     $this->ftype =& $db_uploadfiletype;
 }