Lines Matching refs:SG
135 ADD_STRING("PATH_TRANSLATED", SG(request_info).path_translated); in sapi_webjames_register_variables()
175 if (path) SG(request_info).path_translated = estrdup(path); in webjames_module_main()
177 SG(request_info).query_string = WG(conn)->args; in webjames_module_main()
178 SG(request_info).request_uri = WG(conn)->requesturi; in webjames_module_main()
179 SG(request_info).request_method = WG(conn)->methodstr; in webjames_module_main()
181 SG(request_info).headers_only = 1; in webjames_module_main()
183 SG(request_info).headers_only = 0; in webjames_module_main()
185 SG(sapi_headers).http_response_code = 200; in webjames_module_main()
186 SG(request_info).content_type = WG(conn)->type; in webjames_module_main()
187 SG(request_info).content_length = WG(conn)->bodysize; in webjames_module_main()
189 SG(request_info).auth_user = NULL; in webjames_module_main()
190 SG(request_info).auth_password = NULL; in webjames_module_main()
194 SG(request_info).auth_user = emalloc(colon-WG(conn)->authorization+1); in webjames_module_main()
195 if (SG(request_info).auth_user) { in webjames_module_main()
196 memcpy(SG(request_info).auth_user,WG(conn)->authorization,colon-WG(conn)->authorization); in webjames_module_main()
197 SG(request_info).auth_user[colon-WG(conn)->authorization]='\0'; in webjames_module_main()
198 SG(request_info).auth_password = estrdup(colon+1); in webjames_module_main()
207 file_handle.filename = SG(request_info).path_translated; in webjames_module_main()
321 SG(server_context) = (void *) 1; in webjames_php_init()