Dear visitor, welcome to sourceserver.info. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Rating:
by DeaD_EyE, Tuesday, March 8th 2011, 8:10pm
PHP Source code |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
#!/usr/bin/python
import urllib, zipfile, os, sys, shlex, subprocess
cssconfigurl = 'http://gfx.esl.eu/gfx/media/de/css/cfg/cssconfig.zip'
timestampfile = 'cssconfig.zip.txt'
programm_after_download = './config_update.sh'
os.chdir(os.path.split(os.path.abspath(sys.argv[0]))[0])
def getfile_extract(url):
file = url.split('/')[-1]
urllib.urlretrieve(url, file)
file_zip = zipfile.ZipFile(file)
file_zip.extractall()
file_zip.close()
def gettimestamp_server(file):
timestamp_fp = open(file,'r')
configdate_server = timestamp_fp.read()
timestamp_fp.close()
return configdate_server
def settimestamp_server(file,timestamp):
timestamp_fp = open(file,'w')
timestamp_fp.write(timestamp)
timestamp_fp.close()
return
def programm_start(programm):
start = subprocess.Popen(shlex.split(programm), shell=False)
return
configdate_esl = str(urllib.urlopen(cssconfigurl).headers.getdate('Last-Modified'))
configdate_server = None
if os.path.isfile(timestampfile):
configdate_server = gettimestamp_server(timestampfile)
if not configdate_server == configdate_esl:
getfile_extract(cssconfigurl)
settimestamp_server(timestampfile,configdate_esl)
programm_start(programm_after_download)
else:
getfile_extract(cssconfigurl)
settimestamp_server(timestampfile,configdate_esl)
programm_start(programm_after_download)
|
PHP Source code |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/bin/bash
serverbasepath="/home/server/"
#Basisverzeichnis der Server
servers="testserver"
#Serververzeichnisse Mit einem Leerzeichen trennen
addpath="orangebox/cstrike/cfg"
#so belassen, wenn es Configs für CS:S sind
configdir="server"
#so belassen, wenn es cssconfigs.zip ist
if [ ! -d "$configdir" ]; then exit; fi
for server in $servers; do
if [ ! -d "$serverbasepath/$server/$addpath/" ]; then continue; fi
cp -u $configdir/* $serverbasepath/$server/$addpath/
done
|
PHP Source code |
|
1 2 3 4 |
#!/bin/bash
cp -u server/* /home/server/warserver1/orangebox/cstrike/cfg/
cp -u server/* /home/server/warserver2/orangebox/cstrike/cfg/
cp -u server/* /home/server/warserver2/orangebox/cstrike/cfg/
|
This article has been read 144,104 times.
Tags: Configs, Downloader, ESL
Categories: SRCDS
by theJEWandI (Tuesday, September 20th 2011, 5:13am)
<a href="http://www.insurrates.com/">health insurance</a> >)) <a href="http://www.car-insurance-mate.com/">car insurence</a> 8-DD
by zhuowu (Tuesday, September 20th 2011, 2:44am)
<a href="http://www.halfpricemed.com/">viagra</a> =[ <a href="http://www.qualitytablets.net/">lexapro</a> yqrnuh
by pisey2002my (Friday, September 16th 2011, 4:09am)
<a href="http://www.halfpricemed.com/">generic viagra</a> zwaxjc <a href="http://www.pillsparadise.com/">buy valtrex pharmacy</a> 810803
by MAMYCAY (Friday, September 16th 2011, 3:08am)
<a href="http://www.pricechampion.net/">accutane buy</a> =-D <a href="http://www.qualitytablets.net/">lexapro</a> bvvj
by MenDieOnBrims (Thursday, September 15th 2011, 2:38am)
<a href="http://www.equiprix.net/">get online prescription for propecia</a> =-DDD <a href="http://www.medicaservice.net/">purchase prednisone</a> 662
by aznricechuger (Thursday, September 15th 2011, 1:40am)
<a href="http://www.medicsupport.net/">buy prednisone on-line</a> =]]] <a href="http://www.halfpricemed.com/">buying viagra online</a> >)
by paramorepop (Wednesday, August 31st 2011, 3:35am)
<a href="http://www.medmuster.com/">priligy</a> usyj <a href="http://www.allmedications.net/">order prednisone online</a> hjsfp
by sinemberke (Tuesday, August 30th 2011, 2:58am)
<a href="http://www.pillsservice.net/">buying priligy</a> kmusim <a href="http://www.onlinemedico.net/">where to buy prednisone</a> 180286
by Greta (Sunday, August 21st 2011, 3:31pm)
Unbelievable how well-written and infrmoaitve this was.
by Brandywine (Sunday, August 21st 2011, 6:45am)
You put the lime in the coconut and drink the arctile up.
Friday, June 17th 2011, 11:43pm
Sunday, June 5th 2011, 8:42pm
Sunday, May 29th 2011, 5:37pm
Thursday, April 21st 2011, 8:13am
Tuesday, March 22nd 2011, 1:54pm
by paini (Jan 27th 2022, 10:48am)
by theJEWandI (Sep 20th 2011, 5:13am)
by zhuowu (Sep 20th 2011, 2:44am)
by pisey2002my (Sep 16th 2011, 4:09am)
by MAMYCAY (Sep 16th 2011, 3:08am)
by HSFighter Feb 8th 2011, 7:32pm