Example #1
0
function sti_parse_query_parameters($query)
{
    $bracket_open = "{";
    $bracket_close = "}";
    $result = "";
    while (strpos($query, $bracket_open) !== false) {
        $result .= substr($query, 0, strpos($query, $bracket_open));
        $query = substr($query, strpos($query, $bracket_open) + 1);
        $parameter_name = substr($query, 0, strpos($query, $bracket_close));
        $parameter_value = sti_get_parameter_value($parameter_name);
        $result .= sti_get_parameter($parameter_name, $parameter_value);
        $query = substr($query, strpos($query, $bracket_close) + 1);
    }
    return $result . $query;
}
Example #2
0
require_once "database_firebird.php";
require_once "database_mongodb.php";
require_once "database_mssql.php";
require_once "database_mysql.php";
require_once "database_odbc.php";
require_once "database_pg.php";
require_once "database_oracle.php";
require_once "database_xml.php";
require_once "handler.php";
require_once "class.phpmailer.php";
require_once "class.pop3.php";
require_once "class.smtp.php";
require_once "PHPMailerAutoload.php";
$enable_compression = true;
$report_key = sti_get_parameter_value("stimulsoft_report_key");
$client_key = sti_get_parameter_value("stimulsoft_client_key");
$client_data = file_get_contents("php://input");
/**
 *  Directory, which contains the localization XML files.
 */
function sti_get_localization_directory()
{
    return "localization";
}
/**
 *  Returns .mrt or .mdc file by string ID that was set when running.
 *  If necessary, it is possible to change the code for getting a report by its ID from file or from database.
 */
function sti_get_report($report_key)
{
    /*switch ($report_key)