fix it for now

This commit is contained in:
psyc://psyced.org/~lynX 2010-03-02 22:52:56 +01:00
parent 75467224ae
commit 6e5c5b98db
2 changed files with 9 additions and 10 deletions

View File

@ -216,10 +216,3 @@ varargs string make_query_string(mapping params, int sort) {
return q; return q;
} }
object checkToken(mapping query) {
string nick;
object user;
if (nick = query["user"]) user = find_person(nick);
if (user && user->validToken(query["token"])) return user;
return 0;
}

View File

@ -15,9 +15,7 @@
inherit NET_PATH "place/owned"; inherit NET_PATH "place/owned";
int qHistoryPersistentLimit() { int qHistoryPersistentLimit() { return 0; }
return 0;
}
canPost(snicker) { return qAide(snicker); } canPost(snicker) { return qAide(snicker); }
canReply(snicker) { return qAide(snicker); } canReply(snicker) { return qAide(snicker); }
@ -532,6 +530,14 @@ void displayFooter() {
w("_HTML_tail_threads", "</body></html>"); w("_HTML_tail_threads", "</body></html>");
} }
static object checkToken(mapping query) {
string nick;
object user;
if (nick = query["user"]) user = find_person(nick);
if (user && user->validToken(query["token"])) return user;
return 0;
}
htget(prot, query, headers, qs, data) { htget(prot, query, headers, qs, data) {
mapping entrymap; mapping entrymap;
mixed target; mixed target;