Roxen.git / server / modules / tags / sqltag.pike

version» Context lines:

Roxen.git/server/modules/tags/sqltag.pike:1:   /* -  * $Id: sqltag.pike,v 1.35 1999/06/11 13:50:45 mast Exp $ +  * $Id: sqltag.pike,v 1.36 1999/07/01 12:40:35 wellhard 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.35 1999/06/11 13:50:45 mast Exp $"; + constant cvs_version="$Id: sqltag.pike,v 1.36 1999/07/01 12:40:35 wellhard 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:164:    }    res = ("<h3>Query \"" + html_encode_string(args->query)    + "\" failed: " + html_encode_string(con->error())    + "</h1>\n<false>");    } else {    res = "<false>";    }    } else if (result && sizeof(result))    {    res = ({do_output_tag( args, result, contents, request_id )}); -  id->misc->defines[" _ok"] = 1; // The effect of <true>, since res isn't parsed. +  request_id->misc->defines[" _ok"] = 1; // The effect of <true>, since res isn't parsed.       if( args["rowinfo"] )    request_id->variables[args->rowinfo]=sizeof(result);       } else {    res = "<false>";    }    } else {    res = "<!-- No query! --><false>";    }