Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS. - // $Id: module.pike,v 1.120 2001/08/01 17:10:32 per Exp $ + // $Id: module.pike,v 1.121 2001/08/01 17:57:05 per Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      constant __pragma_save_parent__ = 1;      inherit "basic_defvar";   mapping(string:array(int)) error_log=([]);   
Roxen.git/server/base_server/module.pike:404:   }      static string sql_table_exists( string name )   {    if(strlen(name))    name = "_"+name;       string res = hash(_my_configuration->name)->digits(36)    + "_" + replace(sname(),"#","_") + name;    -  return catch(sql->query( "SELECT * FROM "+res+" LIMIT 1" ))?0:res; +  return catch(get_my_sql()->query( "SELECT * FROM "+res+" LIMIT 1" ))?0:res;   }         static string get_my_table( string|array(string) name,    void|array(string)|string defenition )   //! @decl string get_my_table( string name, array(string) types )   //! @decl string get_my_table( string name, string defenition )   //! @decl string get_my_table( string defenition )   //! @decl string get_my_table( array(string) defenition )   //!