function imgmoney_login {
local user=""
local pass=""
cjar="/tmp/cjar"
curl -s --cookie $cjar --cookie-jar $cjar \
--data "usr_email=$user" \
--data "pwd=$pass" \
--data "remember=1" \
--data "doLogin=Login" \
http://imgmoney.com/login.php &> /dev/null
}
function imgmoney_upload {
sleep 5
local file="$1"
local DATA=$(curl -s --cookie $cjar --cookie-jar $cjar \
-F "uploaded=@$file" -F "adult=1" -F "thumb_size_contaner=5" -F "simple_upload=Upload" \
http://imgmoney.com/upload.php)
echo "$DATA" | grep -A 1 "HTML:" | grep -o '<a href[^"]*' | sed 's/\x27/\"/g' | sed 's/.html\"/.html\" target=\"_blank\"/g'
}
function imgmoney_logout {
curl --cookie $cjar -s http://imgmoney.com/logout.php &> /dev/null
rm $cjar &> /dev/null
}
@filegrasper there is some problem in remote uploading of images.....when i m uploading 10 or 10+ images ...only my first 2 images uploaded & rest not ....
& getting this error -
OK
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@imgmoney.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.24 (CentOS) Server at imgmoney.com Port 80