Here is the working script for Cofix tracker!
:)
PHP Code:
#!/bin/bash
####################################
## example resource file for ##
## torrent upload script ##
## ##
## save in ~/.upload.rc ##
## chmod 700 to restrict access ##
####################################
## LOGIN SETTINGS ##
####################################
# your website username
USERNAME="***"
# your website password
PASSWORD="***"
# website login URL
LOGINURL="http://www.worldofp2p.net/bottakelogin.php"
# website extra info like key
LOGINXTRA="key=***"
# auth key, remember use a different key for every autouploader deployed
LOGINKEY="***"
# logged in text: something _unique_ to check if you are logged in
# possibly your username if it's unique and on the page you get directed to after logging in
USERNAME="HODOR"
# login form username: look for input NAME="username"
LOGINUSR="username"
# login form password: look for input NAME="password"
LOGINPWD="password"
####################################
## SEARCH SETTINGS ##
####################################
# website search URL
SEARCHURL="http://www.worldofp2p.net/bot-search.php?search="
# search no result text: something _unique_ to check if no results are found
# SEARCHTXT="Nothing found!"
SEARCHTXT=$SEARCHNAME
# download dupe: 1 = yes, 0 = no
# note: only possible if download link is on the torrents page
DUPEDL=0
#second dupe check, after making the torrent 1 = yes, 0 = no
DUPESEC=0
# URL that needs to be prepended to the download URL
DUPEURL=""
# search download link text: something _unique_ to find the exact line
DUPETXT="action=download"
# command to extract the download link from the complete line
# note: test for the best way to get it outside the script first
DUPECMD="cut -d \" -f 2"
# DUPECMD="sed s/.*\(download.php.*torrent\).*/\1/"
####################################
## UPLOAD SETTINGS ##
####################################
# website upload URL
UPLOADURL="http://www.worldofp2p.net/takeupload.php"
# your personal announce URL
ANNOUNCEURL="http://www.worldofp2p.net/announce.php"
# upload form torrent: look for input NAME="torrent"
UPLOADTOR="file"
# upload form category: look for select NAME="category"
UPLOADCAT="type"
# upload title form input
UPLOADTITLE="name"
# upload form extras: look for other inputs with NAME and VALUE
# and add to the list with: -F 'name=value'
# UPLOADXTRA=" -F 'descr=<\$STRNFO' -F 'uplver=yes' -F 'key=*****'"
UPLOADXTRA="-F 'nfo=@\$NFO' -F 'body=<\$NFO' -F 'name=\$NAME' -F 'key=\$LOGINKEY' -F 'uplver=yes' -F 'strip=yes' -F 'auth=***'"
####################################
## PATH SETTINGS ##
####################################
# path to your downloads directory
DOWNLOADS="/home/hodor/downloads/manual"
# path to your torrent client watch directory
TORRENTS="/home/hodor/downloads/watch"
# path to your log file: set to /dev/null to disable logging
LOGFILE="/home/hodor/upload.log"
# path to curl: if in $PATH just enter curl
CURL="curl"
# path to mktorrent: if in $PATH just enter mktorrent
MKT="mktorrent"
# path to rtorrent_fast_resume.pl: leave empty if you dont want to use this
RFR=""
####################################
## ADVANCED SETTINGS ##
####################################
# string used to identify as a specific user-agent
USERAGENT="18.0.1025.168 (Developer Build 134367 Linux) Ubuntu 12.04"
# text to prepend on the torrent file before moving it to your torrents dir
PREPEND=""
# check for already uploading: use with UPCHECK - 1 = yes, 0 = no
# you only need to disable this if you expect to upload the same torrent multiple times at the same time
UPCHECK=1
# list of categories able to be uploaded into: look for options after select NAME=category
# if the option value is a number add it _after_ the category name
ALLCATS=(
"Apps/Misc" "1"
"Games/PC" "2"
"Movies/Xvid" "3"
"Music/MP3" "4"
"TV/Xvid" "5"
"xXx/Xvid" "6"
"Games/PSP" "7"
"Games/PS2" "8"
"Movies/Anime" "9"
"Movies/DVD-R" "10"
"Movies/HD-Bluray" "11"
"Games/PC Rips" "12"
"Music/Flac" "13"
"Games/Wii" "14"
"Apps/Linux" "15"
"Apps/Macintosh" "16"
"Apps/Mobile" "17"
"Music/Packs" "18"
"Music/Videos" "19"
"Games/PS1" "20"
"Games/PS3" "21"
"Games/PS4" "22"
"Games/Mixed" "23"
"Movies/3D" "24"
"Movies/AFR" "25"
"Movies/BRRip" "26"
"Movies/Cam" "27"
"Movies/Oldies" "28"
"Movies/Web-DL" "29"
"Movies/x264" "30"
"Movies/Packs" "31"
"Games/Packs" "32"
"Movies/Sport" "33"
"TV/DVD-R" "34"
"TV/DVDRip" "35"
"TV/HD-x264" "36"
"TV/HD-Bluray" "37"
"TV/SD-x264" "38"
"TV/Packs" "39"
"TV/Web-DL" "40"
"Gamex/Xbox" "41"
"Games/Xbox 360" "42"
"Games/Xbox One" "43"
"xXx/HD" "44"
"xXx/Image" "45"
"xXx/Packs" "46"
"Audio Tracks" "47"
"Ebooks" "48"
"AudioBook" "49"
)
# list of groups that should be flagged as p2p. Format: "(-GrpName1|-Grpname2)", dont forget the seperator :)
P2PCATS="(-NYDIC|-26K|-CM8|-THETA|-3DM|-NFT|-LAZi|-FUSiON|-P2P|-XWT|-LTW|-FLAWL3SS|-IMAGiNE|-SIC|-ViSiON|-Rx|-FreaK|-CaLLiOPEd|-P2PROCKS|-J4F|-aXXo|-CtrlHD|-DEViSE|-DON|-D-ZON3|-ESiR|-EuReKA|-FOM|-GRiM|-iAPULA|-iLL|-JamBo|-KingBen|-LTRG|-LTT|-Lynks|-Prodji|-STG|-Stuffies|-TD|-TDM|-TFE|-THS|-TLF|-VamPTV|-ViEW|-Vision|-VoX|-vRs|-AJP|-ALLCRiME|-AXIA|-B-G|-BLaZekVCD|-DEViSE|-DiSHON|-DNR|-ELEKTRI4KA|-EMiNENCE|-EOS|-EOSiNT|-ESiR|-Funner|-GHEYLARD|-G0LDz|-HDB|-HDC|-HDmonSK|-HDV|-HDxT|-iAPULA|-iLL|-iRO|-KingBen|-Lynks|-M14CH0|-M794|-McFly|-MMI|-PerfectionHD|-PoTuS|-PrisM|-STG|-Stuffies|-TDM|-THS|-TFE|-THORA|-tK|-TLF|-TRiBE|-TriggeR|-XSHD|-sDx|-HWE|-OOO)"
P2PEXCEPTS=""
# is the option value different than the category name? 1 = yes, 0 = no
KEYVAL=1
####################################
## FILTERS SETTING ##
## ##
## - FILTERS : case insensitive ##
## - EXCEPTS : case insensitive ##
## - MINS : min size in MB ##
## - MAXS : max size in MB ##
## - CATS : case sensitive, ##
## look at allcats. ##
## if KEYVAL use NUM ##
## ##
## NOTE: make sure the filter ##
## ends with `let n+=1' ##
## ##
####################################
#FILTERS[n]=REGEX
#EXCEPTS[n]=REGEX
#MINS[n]=NUMBER
#MAXS[n]=NUMBER
#CATS[n]=NUMBER|STRING
n=0
# match starts with House or Simpsons or South Park S00E00 in format XviD which are not DSR or REPACK and are between 70 and 400 MB
FILTERS[n]="^(house|simpsons|south.park).*S[0-9]{2}E[0-9]{2}.*XviD"
EXCEPTS[n]="DSR|REPACK"
MINS[n]=70
MAXS[n]=400
CATS[n]="39"
let n+=1
# match starts with House or CSI or NCIS S00E00 in format 720p which are between 800 and 1500 MB (1.5 GB)
FILTERS[n]="^(house|CSI|NCIS).*S[0-9]{2}E[0-9]{2}.*720p"
EXCEPTS[n]=
MINS[n]=800
MAXS[n]=1500
CATS[n]="37"
let n+=1
# match XXX.DVDRip.XviD which are not REPACK or PROPER and are between 650 and 750 MB
FILTERS[n]="XXX.DVDRip.XviD"
EXCEPTS[n]="REPACK|PROPER"
MINS[n]=650
MAXS[n]=750
CATS[n]="46"
let n+=1
# match DVDRip.XviD which are between 650 and 1500 MB (1.5 GB)
# NOTE: this is placed after series and XXX filters so it doesn't match most DVDRip series or XXX
# NOTE: if a DVDRip series or documentary which is not S00E00 format it will be matched as well so this filter might not be trusted
FILTERS[n]="DVDRip.XviD"
EXCEPTS[n]=
MINS[n]=650
MAXS[n]=1500
CATS[n]="26"
let n+=1
##################################
## SETTINGS END ##
##################################
cheers!