diff options
Diffstat (limited to 't')
-rw-r--r-- | t/front.t | 3 | ||||
-rw-r--r-- | t/front.tc | 3 | ||||
-rw-r--r-- | t/post.t | 2 | ||||
-rw-r--r-- | t/post.tc | 2 |
4 files changed, 0 insertions, 10 deletions
@@ -3,9 +3,6 @@ <h3>Latest posts</h3> <table border="1"> <% - struct post *post; - struct user *user; - while(post = getpost(stmt, 0)){ user = getuser(byid("users", post->user), 1); %> @@ -2,9 +2,6 @@ printf("\n<h1>"); printf("%s", site.name ); printf("</h1>\n<h3>Latest posts</h3>\n<table border=\"1\">\n "); - struct post *post; - struct user *user; - while(post = getpost(stmt, 0)){ user = getuser(byid("users", post->user), 1); @@ -14,8 +14,6 @@ <%= post->text %> </pre> <% -struct attachment *attachment; - if(attachment = getattachment(stmt, 0)){ %> <h3>Attachments</h3> @@ -31,8 +31,6 @@ printf("</a>\n"); printf("\n<pre>\n"); printf("%s", post->text ); printf("\n</pre>\n"); -struct attachment *attachment; - if(attachment = getattachment(stmt, 0)){ printf("\n<h3>Attachments</h3>\n<table border=\"1\">\n "); |