diff options
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 |
