#! Name: up_harrault.sh #! Author: kittykat #! Version: 2024.10.23 #! Desc: Add support for uploading files to files.harrault.fr #! 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='harr' HostNick='harrault.fr' HostFuncPrefix='harr' #! #! !! 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() harr_UploadFile() { jira_MaxUploadSizeInBytes=104857600 jira_PostUrlHost='https://files.harrault.fr/script.php' jira_filetype=1 jira_timeval="month" jira_downloadLinkPrefix='https://files.harrault.fr/f.php?h=' jira_UploadFile ${1} ${2} ${3} ${4} }