Пример #1
0
function is_xmlrpc_call()
{
    $ret = check_page_call('xmlrpc.php');
    $xmlrpc_debug = 0;
    if ($xmlrpc_debug && $ret) {
        xpress_debug_message('is_xmlrpc_call()' . "\n" . sprint_r($_SERVER));
    }
    return $ret;
}
Пример #2
0
function Notification_reserve($category, $item_id = 0, $event, $extra_tags = array(), $user_list = array(), $module_id = 0, $omit_user_id = null)
{
    global $xpress_config, $xoops_db;
    $xpress_prefix = get_wp_prefix();
    $notfiy_reserve = $xpress_prefix . 'notify_reserve';
    $extra_tags_arry = addslashes(serialize($extra_tags));
    $user_list_arry = addslashes(serialize($user_list));
    //	$extra_tags_arry = mysql_real_escape_string(serialize($extra_tags));
    //	$user_list_arry = mysql_real_escape_string(serialize($user_list));
    $notify_reserve_status = 'reserve';
    $sql = "INSERT INTO {$notfiy_reserve} ";
    $sql .= "(notify_reserve_status , category , item_id , event , extra_tags_arry , user_list_arry , module_id , omit_user_id)";
    $sql .= "VALUES ";
    $sql .= "('{$notify_reserve_status}' , '{$category}' , {$item_id} , '{$event}' , '{$extra_tags_arry}' , '{$user_list_arry}' , {$module_id} , '{$omit_user_id}')";
    if (defined("XPRESS_EVENT_DEBUG")) {
        xpress_debug_message($message = $sql);
    }
    $xoops_db->query($sql);
}