Index: trunk/logwood/statstables.sql |
— | — | @@ -114,7 +114,7 @@ |
115 | 115 | ta_agent INTEGER NOT NULL REFERENCES agent_ids(ag_id) ON DELETE CASCADE, |
116 | 116 | ta_count INTEGER NOT NULL |
117 | 117 | ); |
118 | | -CREATE INDEX ta_count_idx ON toprefs(ta_site, ta_count); |
| 118 | +CREATE INDEX ta_count_idx ON topagents(ta_site, ta_count); |
119 | 119 | |
120 | 120 | DROP TABLE IF EXISTS wdays; |
121 | 121 | CREATE TABLE wdays ( |
Index: trunk/logwood/fe/logwood.php |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | </style> |
60 | 60 | </head> |
61 | 61 | <body> |
62 | | -<form action='logwood.php' method='get'> |
| 62 | +<form action='' method='get'> |
63 | 63 | |
64 | 64 | <?php |
65 | 65 | $site = false; |
Index: trunk/logwood/logwood.c |
— | — | @@ -65,8 +65,8 @@ |
66 | 66 | #define STMT_INCR_AGENT "UPDATE agent_count SET ac_count = ac_count + 1, ac_touched = NOW() WHERE ac_id = ?" |
67 | 67 | |
68 | 68 | #define STMT_QUERY_WDAY "SELECT COUNT(*) FROM wdays WHERE wd_site = ? AND wd_day = ?" |
69 | | -#define STMT_INSERT_WDAY "INSERT INTO wdays (wd_site, wg_day, wd_hits) VALUES (?, ?, 0)" |
70 | | -#define STMT_UPDATE_WDAY "UPDATE wdays SET wd_hits = wd_hits + 1 WHERE wd_site = ? AND wd_day = ?" |
| 69 | +#define STMT_INSERT_WDAY "INSERT INTO wdays (wd_site, wd_day, wd_hits) VALUES (?, ?, 0)" |
| 70 | +#define STMT_UPDATE_WDAY "UPDATE wdays SET wd_hits = wd_hits + 1 WHERE wd_site = ? AND wd_day = ?" |
71 | 71 | |
72 | 72 | int |
73 | 73 | main(argc, argv) |
— | — | @@ -137,7 +137,7 @@ |
138 | 138 | exit(1); |
139 | 139 | } |
140 | 140 | |
141 | | - for (argv++; *argv; argv++) { |
| 141 | + for (; *argv; argv++) { |
142 | 142 | process_file(*argv); |
143 | 143 | } |
144 | 144 | |