
09-01-2006, 10:47 PM
|
|
|
Join Date: Aug 2005
Location: Leuven (Belgium)
Posts: 930
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Hunne
ATTENTION: It is possible to run dangerous mysql queries with this mod.
In the main file change:
PHP Code:
$getinfo_hse_list = $db->query_first("SELECT mapid,cat_id,title_map,text_map,username,url_location,text_description_map,date_map,lat_map,lng_map,url_thread,img_location,approve,userid FROM " . TABLE_PREFIX . "googlemaphse where mapid = $mapid");
to
PHP Code:
$getinfo_hse_list = $db->query_first("SELECT mapid,cat_id,title_map,text_map,username,url_location,text_description_map,date_map,lat_map,lng_map,url_thread,img_location,approve,userid FROM " . TABLE_PREFIX . "googlemaphse where mapid = '".mysql_escape_string($mapid)."'");
|
I'll include a number of these fixes in the next version
|