当前位置: 首页>>代码示例>>PHP>>正文


PHP FileUpload::GetDBThumbSmall方法代码示例

本文整理汇总了PHP中FileUpload::GetDBThumbSmall方法的典型用法代码示例。如果您正苦于以下问题:PHP FileUpload::GetDBThumbSmall方法的具体用法?PHP FileUpload::GetDBThumbSmall怎么用?PHP FileUpload::GetDBThumbSmall使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FileUpload的用法示例。


在下文中一共展示了FileUpload::GetDBThumbSmall方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

         } else {
             // Article has not been published before
             $blnFirstPublish = true;
         }
     } else {
         // Article is not yet published
         $blnFirstPublish = false;
     }
     $CMS->ART->Edit($intContentID, $intAuthorID, $strContTitle, $strContBody, $dteArticleCreated, $intAreaID, $strTagList, $strContURL, $strContStatus, $strGroupList, $strExcerpt, $intCustomOrder);
     $CMS->ART->ClearUserlist($intContentID);
 }
 // Create file
 if ($blnHasAttachment) {
     if ($blnExistingAttachment) {
         $strGroups = "";
         $CMS->FL->EditAttachment($intFileID, $FU->GetDBFilePath(), $intUserID, $dteArticleCreated, $strContTitle, $FU->GetDBThumbSmall(), $FU->GetDBThumbMedium(), $FU->GetDBThumbLarge(), $intContentID);
     } else {
         $intFileID = $CMS->FL->CreateAttachment($FU->GetDBFilePath(), $intUserID, $dteArticleCreated, $strContTitle, $FU->GetDBThumbSmall(), $FU->GetDBThumbMedium(), $FU->GetDBThumbLarge(), $intContentID);
     }
 }
 // Notify admin
 if ($strContStatus == C_CONT_REVIEW) {
     $CMS->MSG->ReviewArticleNotification($intContentID, $arrCurrentData);
 }
 if ($blnFirstPublish) {
     $CMS->MSG->NewArticleNotification($intContentID, $arrCurrentData);
 }
 // Build confirmation page
 $strAddAnother = "";
 if ($strContStatus == C_CONT_PUBLISHED) {
     $strItemMsg = "Article published.";
开发者ID:benbarden,项目名称:injader,代码行数:31,代码来源:write.php

示例2: elseif

            if ($FU->IsError()) {
                $CMS->Err_MFail($FU->GetErrorDesc(), $FU->GetErrorInfo());
            }
        }
        // Make thumbnails
        if ($blnCreate) {
            $FU->DoThumbs("");
        } elseif ($blnEdit) {
            $FU->DoThumbs($intFileID);
        }
        $strWarnings .= $FU->GetWarnings();
        // ** DATABASE WRITE ** //
        // Write to DB
        if ($blnCreate) {
            $dteFileCreated = $CMS->SYS->GetCurrentDateAndTime();
            $intFileID = $CMS->FL->Create($FU->GetDBFilePath(), $intUserID, $dteFileCreated, $strTitle, $FU->GetDBThumbSmall(), "N", "Y", $FU->GetDBThumbMedium(), $FU->GetDBThumbLarge());
            $strDidWhat = "uploaded";
            $strUploadAnother = "<br /><a href=\"{FN_ADM_FILES_SITE_UPLOAD}?action=create\">Upload another file</a> |";
        } elseif ($blnEdit) {
            $arrFile = $CMS->FL->GetFile($intFileID);
            $dteFileCreated = $arrFile['create_date_raw'];
            $CMS->FL->Edit($intFileID, $FU->GetDBFilePath(), $strTitle, $dteFileCreated, $FU->GetDBThumbSmall(), $FU->GetDBThumbMedium(), $FU->GetDBThumbLarge());
            $strDidWhat = "updated";
            $strUploadAnother = "";
        }
        // Confirmation page
        $strHTML = "<h1>{$strPageTitle}</h1>\n\n{$strWarnings}<p>The file was successfully {$strDidWhat}.{$strUploadAnother} <a href=\"{FN_ADM_FILES}?type=site\">View Site Files</a></p>";
        $CMS->AP->SetTitle($strPageTitle . " - Results");
        $CMS->AP->Display($strHTML);
    }
}
开发者ID:benbarden,项目名称:injader,代码行数:31,代码来源:files_site_upload.php


注:本文中的FileUpload::GetDBThumbSmall方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。