#! Name: up_free4e.sh #! Author: kittykat #! Version: 2024.10.23 #! Desc: Add support for uploading files to send.free4e.com #! Info: Files are accessible at https://address/f.php?h=&p=1 #! MaxSize: ?? #! Expire: 1 Week #! 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='fr4e' HostNick='free4e.com' HostFuncPrefix='fr4e' #! #! !! 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() fr4e_UploadFile() { jira_MaxUploadSizeInBytes=104857600 jira_PostUrlHost='https://send.free4e.com/script.php' jira_filetype=1 jira_timeval="week" jira_downloadLinkPrefix='https://send.free4e.com/f.php?h=' jira_UploadFile ${1} ${2} ${3} ${4} }