diff options
| author | yo mama <pepper@scannerjammer.com> | 2015-02-14 00:35:52 -0800 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2015-02-14 00:35:52 -0800 |
| commit | 281a99716a5ba179dd4aef3e9897c6325362225a (patch) | |
| tree | dc252c237c81176fc1b24e453d2e777e0f48d485 /im/cgi-bin/imweb/databaser.py | |
| parent | ab5a98355b76267d3a1f01052bf3d072bed77281 (diff) | |
added sketch
Diffstat (limited to 'im/cgi-bin/imweb/databaser.py')
| -rwxr-xr-x | im/cgi-bin/imweb/databaser.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/im/cgi-bin/imweb/databaser.py b/im/cgi-bin/imweb/databaser.py deleted file mode 100755 index 07b8723..0000000 --- a/im/cgi-bin/imweb/databaser.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/python - -from db import * -import os -DB = db () - -PATH_TO_S3CMD = "/var/www/asdf.us/cgi-bin/im/s3/s3cmd-1.1.0-beta3/s3cmd" -PATH_TO_IMAGES = "/var/www/asdf.us/docs/im" - -global idnumber - -function dbGet(idnumber): - try: - DB.cursor.execute('SELECT dir, newfile, id FROM im_cmd WHERE id='+id) - #sql = "INSERT INTO im_cmd (date,remote_addr,name,dir,newfile,cmd) VALUES(%s,%s,%s,%s,%s,%s)" - #args = (now(), remoteaddress, name, dir, newfile, cmd) - data = cursor.fetchall - print str(data) - except (): - return - -if __name__ == '__main__': - sys.argv[1] = idnumber - dbGet(idnumber)
\ No newline at end of file |
