Changeset 2765
- Timestamp:
- 08/31/10 21:12:24 (3 years ago)
- Location:
- alternc-philesight/trunk
- Files:
-
- 2 edited
-
debian/create-philesight.cron.daily (modified) (1 diff)
-
var/alternc/cgi-bin/philesight.cgi (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alternc-philesight/trunk/debian/create-philesight.cron.daily
r2764 r2765 5 5 . /etc/alternc/local.sh 6 6 7 MAIL_DIR=$ALTERNC_LOC"/mail"8 HTML_DIR=$ALTERNC_LOC"/html"7 INDEX_DIR="/" 8 DIR_PHILESIGHT="/var/alternc/philesight" 9 9 10 rm /var/alternc/philesight/* 11 /usr/lib/alternc/philesight --db /var/alternc/philesight/mail.db --index $MAIL_DIR 12 /usr/lib/alternc/philesight --db /var/alternc/philesight/html.db --index $HTML_DIR 10 rm $DIR_PHILESIGHT"/*" 11 /usr/lib/alternc/philesight --db $DIR_PHILESIGHT"/server.db" --index $INDEX_DIR -
alternc-philesight/trunk/var/alternc/cgi-bin/philesight.cgi
r2764 r2765 11 11 ############################################################################## 12 12 13 #$path_db = "/var/alternc/philesight/mail.db"13 $path_db = "/var/alternc/philesight/server.db" 14 14 $img_size = 800 15 15 $img_rings = 4 … … 32 32 def initialize() 33 33 34 # Create philesight object and open database 35 34 # Create philesight object and open database 35 36 36 @ps = Philesight.new($img_rings, $img_size, $img_gradients) 37 @ps.db_open($path_db) 37 38 38 39 # Get parameters from environment and CGI. … … 42 43 service = cgi.params['service'][0] 43 44 path = cgi.params['path'][0] || ("/var/alternc/" + service) || @ps.prop_get("root") || "/" 44 $path_db = "/var/alternc/philesight/" + (service || "html") + ".db"45 45 46 @ps.db_open($path_db)47 48 46 # ISMAP image maps do not return a proper CGI parameter, but only the 49 47 # coordinates appended after a question mark. If this is found in the
Note: See TracChangeset
for help on using the changeset viewer.
