Welcome to PBBans
![]() |
Welcome to PBBans, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of PBBans by signing in or creating an account.
|
PBSS tip
#1
Gepost jan 31, 2007 - 01:44
Thats when a member of our clan came up with the idea of automating the some of the process.... Here's how it works.. he made a scipt that logs into the server... deletes the .html files, downloads the .png file then deletes them. The files are downloaded to a private webserver... he has another script that takes the downloaded screen shots, and makes a webpage out of them. This process runs every hour... One of the nice things about this is... all of our screen shots are now cataloged by Month, Day and hour...
if anyone has the programming skills to create these, i would highly recommend it.... You still need to look through the images manually... but it saves the hassle of having to download... not to mention it prevents your server Screen shot folder from filling up.
Just thought this might be helpful
#2
Gepost jan 31, 2007 - 02:45
#3
Gepost jan 31, 2007 - 06:08
#4
Gepost feb 1, 2007 - 09:19
taskmanager > batchfile
batchfile > get .png files from servers /pb dir
ftp .png files to /servername/ on a protected webfolder
cleanup leftover .htmlfiles
set the taskmgr to run every 15 mins
and this is how i get them presented:
#5
Gepost feb 2, 2007 - 03:17
that i'd like to know is what are the scripts used and what needs to be changed to make them function for BFS.
#6
Gepost feb 2, 2007 - 07:44
Needs:
- Win32 server environment
- Webserver accessable tru ftp
- Windows task scheduler
Does:
- Gets only the .png files from server's /pb/svss/ folder uploaded to FTP
- Deletes .png and .htm files from /pb/svss/
Files:
- UploadPbss.bat
- FTPcommands.cfg
Examplefiles added as an attachment (.rar)
5chaap2k_SVSStoFTP.rar 581bytes
13 Aantal downloads UploadPbss.bat
Note that u have to change the path 'C:\SERVERS\FearMPDedicated\USER\pb\svss' to whatever your server's path is
@echo off echo. echo Attempting to upload screenshots... c: cd C:\SERVERS\FearMPDedicated\USER\pb\svss IF NOT EXIST C:\SERVERS\FearMPDedicated\USER\pb\svss\*.png GOTO :NOSCREENSHOTS ftp -s:ftpcommands.cfg >> FTPlogfile.txt goto done :done echo. echo Deleting transferred screenshots and htm files... del C:\SERVERS\FearMPDedicated\USER\pb\svss\*.htm /Q >> DeleteHTMLlog.txt del C:\SERVERS\FearMPDedicated\USER\pb\svss\*.png /Q >> DeletePNGlog.txt GOTO :END :NOSCREENSHOTS CLS ECHO. ECHO There are no screenshots present at this moment. ECHO. GOTO :END :END CLS EXIT
FTPcommands.cfg
Note that u have to change the path 'C:\SERVERS\FearMPDedicated\USER\pb\svss' to whatever your server's path is
Note that u have to change the path 'PB_Screenshots/Fearserver01/' to whatever your webserver's pbss-storage path is
Note that u have to change the path 'your.ftp.server.ip' to whatever your server's ip is, same for username and password
lcd C:\SERVERS\FearMPDedicated\USER\pb\svss open your.ftp.server.ip username password cd PB_Screenshots/Fearserver01/ prompt binary mput *.png bye
Now schedule a task in Windows taskmanager to run UploadPBSS.bat every 10 or more minutes
#7
Gepost feb 2, 2007 - 12:52
#8
Gepost feb 5, 2007 - 11:22
Porphyrin_Boy, on Feb 2 2007, 12:52 PM, said:
We where using a similar script, but just recently changed it, i think he is now doing something with PHP.... i am going to get the script from the guy who wrote it and I will post it here....
#9
Gepost feb 5, 2007 - 05:42
=SoE= dgrillo, on Feb 5 2007, 08:22 AM, said:
I really appreciate all you guys help.
Um, if you have a chemistry question I can help you on lemme know.
#10
Gepost feb 6, 2007 - 10:00
Porphyrin_Boy, on Feb 5 2007, 05:42 PM, said:
Um, if you have a chemistry question I can help you on lemme know.
Here is the generic PHP script that we are using... I have changed the extension to .txt... didn't know if it would be allowed if it was pwhp...just rename, add your info and enjoy
We originally wrote this as a DOS/VB script code. But others have asked for this
functionallity so it has been ported to PHP to address those users too.
What this does:
Log into the bf2 server and download the PB image files to your server.
Remove the image files from bf2 server.
Create an index.html file that will display all of the images.
This was meant to be put in a scheduler/chron job to be run once an hour.
We wrote this initially for a Windows server, but have I think I've addressed the Linux users.
This change may have introduced typo's to the code.
Send me an email about it.
It seems to work ok in latest versions of PHP 4 and 5.
Bijgesloten bestand(en)
#11
Gepost feb 7, 2007 - 07:51
had to change a couple things but IT WORKS LIKE A CHAMP!!!!!
thanks for the script!
#12
Gepost feb 9, 2007 - 11:33
#13
Gepost mei 24, 2007 - 10:20
1 Gebruiker(s) lezen dit topic
0 gebruikers, 1 gasten, 0 anonieme gebruikers













