Commit Graph

52 Commits

Author SHA1 Message Date
Alexander Nicolaysen Sørnes
9218a808dd Add borders around the notes added by addmsg() 2009-04-05 20:19:50 +02:00
Jeremy Newman
acccbed63a updating to new WineHQ design 2008-12-05 16:44:29 -06:00
Jeff Zaroyko
16949bb71c tidy appdb html to make it validate - try 4 2008-02-25 19:27:36 -05:00
Jeremy Newman
e3ea460e9c fix when session messages are empty 2008-02-08 13:18:29 -06:00
Jeremy Newman
7666f6d0da replace session management routines with memcached 2008-02-08 13:15:54 -06:00
Chris Morgan
6119246b51 Replace direct mysql_xxx() calls with query_xxx() calls. Replace calls to mysql_insert_id()
with calls specific to the appdb or bugzilla database. Fixes a bug where a call to
mysql_insert_id() can potentially retrieve an id from either the bugzilla or appdb database,
depending on whichever database was last opened by mysql_connect().
2007-08-03 23:27:25 +00:00
Chris Morgan
62820d242c Purge and check session message count before and after the unit tests. The unit tests generate
a lot of session messages and we don't want to leave these around after the tests.
2007-07-30 01:56:39 +00:00
Chris Morgan
f961187287 Switching from timestamp to datetime means we have to specify the time we want stored in the
field. In any case we want to be explicit so specify 'NOW()' for the timestamp/datetime field.
2007-07-24 01:35:30 +00:00
Chris Morgan
2652e68d01 Programmatic table support. Enhances several tables with highlightable and clickable rows and
cleans up the existing table row highlight and click code.
2007-07-23 19:56:43 +00:00
Chris Morgan
c39dbe83a9 Add page generation times to the bottom of each page. This should help us figure out which pages
take the longest time to generate
2007-05-26 04:05:20 +00:00
Alexander Nicolaysen Sørnes
9becc84b36 Remove references to distributionView.php and remove now unused distributionView.php 2007-03-13 21:03:08 +00:00
Chris Morgan
5ee94f4617 Fix session errors that occur when filtering detects a problem by moving filtering to the end of
incl.php and after we setup the session.
2007-01-06 05:03:58 +00:00
Chris Morgan
44ef334d79 Remove a debug print accidentally committed with the filtering changes 2007-01-05 04:44:39 +00:00
Chris Morgan
a1a41d6b87 Fix and enable input filtering through include/filter.php 2007-01-04 02:35:01 +00:00
WineHQ
b858e2ba53 Unit tests should run with E_ALL so we can detect all errors. Fix dozens of errors that popped up after enabling all errors. 2006-11-25 17:24:44 +00:00
Chris Morgan
a651a3cdf3 Modify query_error() to log errors to a database table instead of displaying them on the screen. This should
let us more easily debug difficult or intermittent issues that users may not report. Add a cron to report logged
errors to appdb admins every night.  Implement some basic unit tests for the new error logging code
2006-07-19 16:37:54 +00:00
Chris Morgan
0019810922 Rename include/db.php to include/query.php, all of the functions in db.php were named query_*(). Rename test_db.php to
test_query.php to match the rename of include/db.php.  Modify include/incl.php to include query.php instead of db.php
2006-07-17 20:56:07 +00:00
Tony Lambregts
edcbd98b9e Fix backward compatibility for bug ids. bug_id from bugzilla is the bug number not the internal buglinkid 2006-07-08 19:05:28 +00:00
Jonathan Ernst
3be08453e7 $_REQUEST['mode'] backwards compatibility 2006-07-07 15:39:41 +00:00
Chris Morgan
e817def053 Add backwards compatibility code to copy old style $_REQUEST variables to the new style
to allow old appdb urls in emails, in bugzilla and from google to continue working
2006-07-07 02:36:34 +00:00
Jonathan Ernst
3096e63828 Rename util_show_error_page() to util_show_error_page_and_exit() and redirect() to util_redirect_and_exit()
so it is explicit that we exit in those functions that so we know it isn't necessary to put an exit after
we call them
2006-07-06 18:44:56 +00:00
Jonathan Ernst
da53f65cde Remove redirectref(), this function isn't used 2006-06-30 16:10:16 +00:00
Jonathan Ernst
6d019b918a Rename errorpage() to util_show_error_page() and move util_show_error_page() into include/util.php 2006-06-29 16:13:35 +00:00
Chris Morgan
e3f9e5371a Use query_parameters() in SQL select, update and delete statements to protect against
sql injection attacks
2006-06-27 19:16:27 +00:00
Chris Morgan
ac5b4b0a95 Warn if magic quotes is enabled and explain a bit about why we require that magic quotes
be disabled.  Also remove all of the conditional code that was working around cases where
we had magic quotes enabled.  We were only working around a small portion of cases where magic
quotes was affecting the appdb.
2006-06-26 00:44:44 +00:00
Chris Morgan
67550405c3 Make code more consistent by making it follow the appdb coding standards. Fix some spaces vs. tabs odd indenting. 2006-06-21 01:04:12 +00:00
Jeremy Newman
312ebc2b1f use banner ad code from main winehq.org 2005-11-21 17:30:58 +00:00
Chris Morgan
639dd77d15 Let maintainers and super maintainers process the application versions and images submitted for applications they maintain 2005-08-05 22:07:41 +00:00
Tony Lambregts
324ed66eae Fix situation where AppDB is not at DocumentRoot 2005-07-27 02:10:56 +00:00
David Lee Lambert
4ddd5dc8c0 Send last modified information for images so the browser can use the cached version instead of re-downloading images each page refresh. 2005-07-10 02:22:21 +00:00
Jonathan Ernst
88eed1e511 Fix some code styling issues in incl.php
----------------------------------------------------------------------
2005-02-07 23:56:32 +00:00
Jonathan Ernst
76faddeef4 Instead of issuing everytime redirect() then exit in scripts; I put exit;
in redirect function
2005-02-04 02:49:09 +00:00
Jonathan Ernst
2083bf521b - OO version of user class
- no more duplicated functions
- improved performances (much less duplicated mysql queries)
- less code and better error handling
2005-01-30 23:12:48 +00:00
Francois Gouget
a8f2cd5865 Assorted spelling and typo fixes 2005-01-29 00:43:41 +00:00
WineHQ
7d67786b96 Authors: Tony Lambregts <tony_lambregts@telusplanet.net>, Jonathan Ernst <Jonathan@ernstfamily.ch>, Paul van Schayck <polleke@gmail.com>
Protect addmsg() from using up all available memory and crashing
2005-01-15 06:02:01 +00:00
Jonathan Ernst
d3ad0dba41 - replaced mysql_query() with query_appdb()
- removed opendb()
- removed query_userdb()
- removed error handling from the code as it is done with query_appdb()
2005-01-12 16:22:55 +00:00
Jonathan Ernst
ee28390769 Replaced mysql_query() with query_appdb() 2005-01-11 00:26:05 +00:00
Jonathan Ernst
d9826427da This patch make email address the user's username as requested in the TODO.
query_users.php is modified even if we will drop it in the future to be sure it works everywhere.
2005-01-10 22:54:04 +00:00
Paul van Schayck
c7af0bc710 Include include/db.php 2004-12-29 18:43:30 +00:00
Jonathan Ernst
d5a6d34be6 - replaced $apidb_root with BASE
- removed variables that are not registered since php.ini has changed
2004-12-23 01:09:20 +00:00
Jonathan Ernst
3bd8c654ca Removed the constants already definied in the new config file 2004-12-23 01:08:21 +00:00
Tony Lambregts
5bfb02a9de Fix notifies by defining APPDB_ROOT and STANDARD_NOTIFY_FOOTER. 2004-12-19 23:04:22 +00:00
Jonathan Ernst
d7c67e1210 - removed the constants already defined in the new config file 2004-12-19 17:39:08 +00:00
Jonathan Ernst
c89531e4c1 Appdb should report errors when debugging is set to yes in the preferences
panel
2004-12-18 01:56:08 +00:00
Paul van Schayck
671f101ffd Use CSS margins for right side 2004-12-18 01:54:23 +00:00
Jeremy Newman
5642e73425 updated to a slightly more improved version of the session management code
should solve bugs with logging in on register_globals = off;
2004-12-13 03:50:02 +00:00
Jonathan Ernst
d3d9e853d9 - replaced tons of tabs with spaces
- replaced <? with <?php for compatibility sake (see TODO and CODING_STANDARD to know more)
- improved overall code lisibility
2004-12-12 03:51:51 +00:00
Jonathan Ernst
bd91db228c - access most globals by their $_XYZ['varname'] name
- fix some code errors and typos (missing $ in front of variable names
and so on)
- fixed a lot of warnings that would have been thrown when error_reporting
is set to show notices (if(isset($variable))) instead of if($variable) for
example)
2004-12-10 01:07:45 +00:00
Tony Lambregts
1e797f9364 added static defines to incl.php (for emails)
updated email sent out on delete comment to include the correct URL
2004-12-01 22:25:21 +00:00
Tony Lambregts
90ac967f43 Set up notify system. Send notify emails for ad and delete Coments 2004-11-09 22:42:12 +00:00