summaryrefslogtreecommitdiff
path: root/impattern/im/cgi-bin/imweb/databaser.py
diff options
context:
space:
mode:
authoryo mama <pepper@scannerjammer.com>2015-02-13 02:41:42 -0800
committeryo mama <pepper@scannerjammer.com>2015-02-13 02:41:42 -0800
commit64f41d53728a966f10aef6d7ffbc00853d754300 (patch)
tree082f17db25c61f66aec87dc47fbc208cb17ca168 /impattern/im/cgi-bin/imweb/databaser.py
parentfab0563ff31365c2396f7353679c8239aed3ce8b (diff)
fixed some basics
Diffstat (limited to 'impattern/im/cgi-bin/imweb/databaser.py')
-rwxr-xr-ximpattern/im/cgi-bin/imweb/databaser.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/impattern/im/cgi-bin/imweb/databaser.py b/impattern/im/cgi-bin/imweb/databaser.py
deleted file mode 100755
index 07b8723..0000000
--- a/impattern/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