/* Name : get_upload_url( void ) * Purpose : Returns the url constructed from the server and session id * */ static char* get_upload_url( void ) { char* url; const char* url_prefix; int size; url_prefix = roadmap_config_get ( &RMCfgRecorderVoiceServer ); // Size of prefix + size of session id + cookie '\0' size = strlen( url_prefix ) + 50 + strlen (Realtime_GetServerCookie()) + 1; url = malloc( size ); roadmap_check_allocated( url ); snprintf(url, size, "%s?sessionid=%d&cookie=%s", url_prefix, Realtime_GetServerId(), Realtime_GetServerCookie()); return url; }
static const char * create_group_url(const char *group_name) { static char url[1024]; snprintf(url, sizeof(url),"%s?sessionid=%d&cookie=%s&deviceid=%d&width=%d&height=%d&gotogroup=%s&client_version=%s&web_version=%s&lang=%s", roadmap_groups_get_url(), Realtime_GetServerId(), Realtime_GetServerCookie(), RT_DEVICE_ID, roadmap_canvas_width(), roadmap_canvas_height() - roadmap_bar_bottom_height(), group_name, roadmap_start_version(), BROWSER_WEB_VERSION, roadmap_lang_get_system_lang()); append_current_location(url + strlen(url)); return &url[0]; }
static char *build_url(RTBonus *pbonus, int iHeight, int iWidth){ static char url[1024]; snprintf(url, sizeof(url),"%s?bonus_id=%d&sessionid=%d&cookie=%s&deviceid=%d&width=%d&height=%d&client_version=%s&lang=%s&template=%d&%s", GetBaseUrl(), pbonus->iID, Realtime_GetServerId(), Realtime_GetServerCookie(), RT_DEVICE_ID, iWidth, iHeight, roadmap_start_version(), roadmap_lang_get_system_lang(), pbonus->iTemplateID, (pbonus->pWebDlgExtraParams == NULL) ? "" : pbonus->pWebDlgExtraParams); return &url[0]; }
static const char *create_url(void) { static char url[1024]; snprintf(url, sizeof(url),"%s?sessionid=%d&cookie=%s&deviceid=%d&width=%d&height=%d&client_version=%s&web_version=%s&lang=%s", roadmap_groups_get_url(), Realtime_GetServerId(), Realtime_GetServerCookie(), #ifndef RIMAPI RT_DEVICE_ID, #else 20, // until server is changed. TODO : CHANGE! #endif roadmap_canvas_width(), roadmap_canvas_height() - roadmap_bar_bottom_height(), roadmap_start_version(), BROWSER_WEB_VERSION, roadmap_lang_get_system_lang()); append_current_location(url + strlen(url)); return &url[0]; }