(7 out of 193)
SaAllowSQL
Sets a flag to indicate whether a Sapphire/Web-generated cgi executable will process SQL statements embedded in an HTML template file.
Synopsis
#include "SaRnHtml.h"
int SaAllowSQL(int flag);
Arguments
flag
Flag indicating whether to process SQL embedded into an HTML file.
Return Values
Returns 1.
Description
Sets a flag to indicate whether a Sapphire/Web-generated cgi executable will process SQL statements embedded in an HTML template file. If the flag is 0, embedded SQL is not processed. If the flag is set, then embedded SQL may be allowed depending on other settings (referenced in
See Also
). It is highly recommended that the default user for this path through the cgi be a restricted user when allowing embedded SQL. For example the following embedded SQL would potentially be dangerous:
##Sa_SQL=delete from authors##
if the default user had delete privileges.
Example
SaAllowSQL(1);
Note
: This call is generated automatically by Sapphire/Web in the cgi
Main
C file, with the
dirname
being the value of the
Project.Allow SQL in HTML
project option.
See Also
SaSetDefaults
SaSetDefaultVendor
SaSetDefaultUser
SaSetDefaultPass
SaSetHtmlDir
SaSetPrintArgs
(7 out of 193)