From: Kenzaburo I. <ke...@30...> - 2002-05-14 02:36:25
|
In addition to what Jeroen I'd like to add that I've added a way to extract the HTTP_POST and GET vars if you have register globals set to Off. Just set g_register_globals to OFF as well. It's a bit experimental as I haven't done extensive testing but it'll probably work alright. If I don't find any serious issues I'll be making this the default behavior. Thanks -Ken >At 15:04 13-5-2002 -0400, R.O.G. Jr. wrote: >>How easy would it be to add a few more rows to the input tables found on >>any of the bugtracker pages? in other words, i understand where all the >>f_ variables come from but i have no idea where the $s_ variables come from. > >The $s_ variables are localised strings. You can find them in >lang/strings_<language>.txt > >As for adding more rows, you'll have to change a lot I think. First >there'd have to be a new field in the database, then you'd have to change >the reporting page (report_bug_*.php), the workhorse of reporting >(report_add.php), bug view pages (view_bug_*.php), bug update pages >(bug_update_*.php) and possibly some others as well. > >In a different mail you wrote: > > > I was wondering why the code doesn't need to use the $HTTP_POST_VARS > array to access the variable that are posted by the user. > >That's because the PHP option register_global is set, which registers the >elements of that array as variables. > > > And also, if i were to add an additional input to the report bug page, > how would the other pages access that variable. > >You'd have to store it in the database. See above. > >I hope this helps, > >Jeroen Latour |