#! Name: up_anarchaserver.sh #! Author: kittykat #! Version: 2024.10.23 #! Desc: Add support for uploading files to transitional.anarchaserver.org #! Info: Files are accessible at https://address/f.php?h=&p=1 #! MaxSize: 10GB #! 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='anarc' HostNick='anarchaserver' HostFuncPrefix='anarc' #! #! !! 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() anarc_UploadFile() { jira_MaxUploadSizeInBytes=10737418240 jira_PostUrlHost='https://transitional.anarchaserver.org/jirafeau/script.php' jira_filetype=1 jira_timeval="month" jira_downloadLinkPrefix='https://transitional.anarchaserver.org/jirafeau/f.php?h=' jira_UploadFile ${1} ${2} ${3} ${4} }