#! Name: up_skrepr.sh #! Author: kittykat #! Version: 2025.03.20 #! Desc: Add support for uploading files to transfer.skrepr.com #! Info: Files are accessible at https://address/f.php?h=&p=1 #! MaxSize: ?? #! Expire: 1 Month #! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder #! #! #! ------------ REQUIRED SECTION --------------- #! @[UPDATE] ListUploadHosts: This string is loaded into mad.sh and allows dynamic handling of new url data #! Format: '/HostCode/HostNick/HostFuncPrefix@' #! HostCode: (ie. 'fh' for filehaus -- cannot be used by other hosts) #! HostNick: What is displayed throughout MAD output #! HostFuncPrefix: ie. 'fh' -- fh_UploadFile() #! * Note: Must begin with a letter a-z (functions beginning with numbers are no bueno) HostCode='skpr' HostNick='skrepr.com' HostFuncPrefix='skpr' #! #! !! DO NOT UPDATE OR REMOVE !! #! This merges the Required HostAndDomainRegexes into mad.sh ListUploadHosts=${ListUploadHosts}'/'${HostCode}'/'${HostNick}'/'${HostFuncPrefix}'@' #! #! #! Jirafeau Host #! ------------- #! #! ------------ (1) Host Main Upload Function --------------- # #! #! @REQUIRED: Host Main Upload function #! Must be named specifically as such: #! _UploadFile() skpr_UploadFile() { jira_MaxUploadSizeInBytes=104857600 jira_PostUrlHost='https://transfer.skrepr.com/script.php' jira_filetype=1 jira_timeval="month" jira_downloadLinkPrefix='https://transfer.skrepr.com/f.php?h=' jira_UploadFile ${1} ${2} ${3} ${4} }