Roxen.git
/
server
/
modules
/
tags
/
sqltag.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/modules/tags/sqltag.pike:1:
/*
-
* $Id: sqltag.pike,v 1.
14
1997/10/15 19:
05
:
08
grubba Exp $
+
* $Id: sqltag.pike,v 1.
15
1997/10/15 19:
40
:
13
grubba Exp $
* * A module for Roxen Challenger, which gives the tags * <SQLQUERY> and <SQLOUTPUT>. * * Henrik Grubbström 1997-01-12 */
-
constant cvs_version="$Id: sqltag.pike,v 1.
14
1997/10/15 19:
05
:
08
grubba Exp $";
+
constant cvs_version="$Id: sqltag.pike,v 1.
15
1997/10/15 19:
40
:
13
grubba Exp $";
constant thread_safe=1; #include <module.h> /* Compatibility with old versions of the sqltag module. */ // #define SQL_TAG_COMPAT inherit "module"; inherit "roxenlib"; import Array;
Roxen.git/server/modules/tags/sqltag.pike:298:
}) * "\t") + "\n"; } else { res += "<tr>"; foreach(row, mixed value) { value = (string)value; res += "<td>"+(value==""?nullvalue:value)+"</td>"; } res += "</tr>\n"; } }
-
if (
!
ascii) {
+
if (ascii) {
+
res += "<true>";
+
} else {
res += "</table><true>"; } return(res); } else { if (ascii) {
-
return("");
+
return("
<false>
");
} return("<!-- No result from query --><false>"); } } else { if (ascii) {
-
return("");
+
return("
<false>
");
} return("<!-- No query! --><false>"); } } string sqlelse_tag(string tag_name, mapping args, string contents, object request_id, mapping defines) { return(make_container("else", args, contents)); }