1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-10 16:20:46 +02:00

Compare commits

...

2473 Commits

Author SHA1 Message Date
(no author)
789f5645a1 This commit was manufactured by cvs2svn to create tag
'release_2_0_15'.

git-svn-id: file:///svn/phpbb/tags/release_2_0_15@5150 89ea8834-ac86-4346-8a33-228a782c2dd0
2005-05-13 20:59:06 +00:00
Paul S. Owen
212515e02c Remove timing for final release ...can always be put back for those that want it
git-svn-id: file:///svn/phpbb/trunk@2480 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-04 11:52:50 +00:00
Paul S. Owen
53c2a1d921 last updater
git-svn-id: file:///svn/phpbb/trunk@2479 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-04 11:52:20 +00:00
Paul S. Owen
d2d4a073c9 Minor change to cope with a now fixed (I think) situation where last_post_id was set to 0 ... would leave these topics and posts in place during prune
git-svn-id: file:///svn/phpbb/trunk@2478 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-04 11:51:25 +00:00
Paul S. Owen
7012f5168f Minor update to SQL to remove an IN where it was no longer necessary
git-svn-id: file:///svn/phpbb/trunk@2477 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-04 11:47:43 +00:00
Paul S. Owen
232a6596cb Minor update for page count display
git-svn-id: file:///svn/phpbb/trunk@2476 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-04 11:41:32 +00:00
Paul S. Owen
324bfbcfae Incorrect HTML
git-svn-id: file:///svn/phpbb/trunk@2475 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-04 11:25:56 +00:00
Paul S. Owen
7e364294c8 Initial version by alket and psotfx
git-svn-id: file:///svn/phpbb/trunk@2474 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-04 02:14:41 +00:00
Paul S. Owen
3af44b5d79 minor changes ... hopefully!
git-svn-id: file:///svn/phpbb/trunk@2473 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-04 01:56:12 +00:00
Paul S. Owen
c1e0fb7150 Wasn't reporting oversized (filesize) avatars ... again.
git-svn-id: file:///svn/phpbb/trunk@2472 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-03 23:24:59 +00:00
Paul S. Owen
024a7d7b3e Fix missing var preventing display of email link to users when browsing groups as group moderator or admin
git-svn-id: file:///svn/phpbb/trunk@2471 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-03 22:24:56 +00:00
the_systech
5a40ff47f0 Just me being anal again... A couple of miss-spellings in error messages
git-svn-id: file:///svn/phpbb/trunk@2470 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-03 20:14:47 +00:00
Paul S. Owen
aeabd5abaa Various updates
git-svn-id: file:///svn/phpbb/trunk@2469 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-03 17:47:16 +00:00
Paul S. Owen
6ea42eacfd Minor error in stats updating when deleting first post of a topic ... topic replies was not decremented
git-svn-id: file:///svn/phpbb/trunk@2468 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-03 14:38:56 +00:00
the_systech
32b514a800 Ok this is just me being anal again... No code changes, just file headers..
git-svn-id: file:///svn/phpbb/trunk@2467 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-02 21:13:47 +00:00
Paul S. Owen
b6c7561122 Time for tubby bye bye
git-svn-id: file:///svn/phpbb/trunk@2466 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-02 16:12:51 +00:00
Paul S. Owen
7807598bd4 More minor changes
git-svn-id: file:///svn/phpbb/trunk@2465 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-02 16:09:00 +00:00
Paul S. Owen
1fdfa98674 No comment
git-svn-id: file:///svn/phpbb/trunk@2464 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-02 15:10:44 +00:00
Paul S. Owen
f69c60ece8 more changes
git-svn-id: file:///svn/phpbb/trunk@2463 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-02 14:53:44 +00:00
Paul S. Owen
51d9bdeca7 Various updates with any luck they fix a few minor issues without causing new ones ...
git-svn-id: file:///svn/phpbb/trunk@2462 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-02 14:04:18 +00:00
Paul S. Owen
374f7adca2 Small cleanups
git-svn-id: file:///svn/phpbb/trunk@2461 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-02 14:03:58 +00:00
the_systech
46609d1b50 Ok so we shouldn't allow subject lines to be all whitespace either :)
git-svn-id: file:///svn/phpbb/trunk@2460 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-01 20:07:51 +00:00
the_systech
1ba7e42bea Shorten the activation, key to allow for less than 77 characters..,yet still keep it as long as possible.
git-svn-id: file:///svn/phpbb/trunk@2459 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-01 19:19:49 +00:00
Paul S. Owen
985c0f8b6f Latest header attempt
git-svn-id: file:///svn/phpbb/trunk@2458 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-01 13:23:42 +00:00
Paul S. Owen
1d445aa3ba Updates to RC-3 standard
git-svn-id: file:///svn/phpbb/trunk@2457 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-01 12:46:56 +00:00
Paul S. Owen
f150ecf03a Initial versions by alket
git-svn-id: file:///svn/phpbb/trunk@2456 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-01 12:45:27 +00:00
dougk_ff7
c1762ef6c1 Fixing bug 536812: search.php - total_match_count
Thanks acydburn!
Not a big deal, just did what acydburn recommended.


git-svn-id: file:///svn/phpbb/trunk@2455 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-31 19:13:06 +00:00
Paul S. Owen
ae429f8477 I'm sooo bored with re-fixing things
git-svn-id: file:///svn/phpbb/trunk@2454 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-31 16:08:06 +00:00
Paul S. Owen
014869d3fe Output online users explanation
git-svn-id: file:///svn/phpbb/trunk@2453 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-31 13:58:01 +00:00
Paul S. Owen
c191a04a9d search_id change broke various other search options, fixed
git-svn-id: file:///svn/phpbb/trunk@2452 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-31 13:47:53 +00:00
Paul S. Owen
cfb5acec81 Minor update
git-svn-id: file:///svn/phpbb/trunk@2451 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-31 02:42:24 +00:00
Paul S. Owen
d19f24e23a oops, quote/code table width was 80% ... forgot to change it back to 90%
git-svn-id: file:///svn/phpbb/trunk@2450 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-31 00:28:09 +00:00
Paul S. Owen
005052b2c6 Going to have change doing this from "doing a Bart" to "doing a Paul" before much longer ...
git-svn-id: file:///svn/phpbb/trunk@2449 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-31 00:07:48 +00:00
Paul S. Owen
e1f7400b8d pre-freeze on main templates, various bug fixes (highlighting search results, various search related issues, blah blah). These updates need _thorough_ checking, quickly
git-svn-id: file:///svn/phpbb/trunk@2448 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-31 00:06:34 +00:00
Paul S. Owen
f74fa81851 Not used
git-svn-id: file:///svn/phpbb/trunk@2447 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-30 12:16:58 +00:00
Paul S. Owen
5deed37a79 Fix bug where user level wasn't reset to 2 when downgrading a user from admin
git-svn-id: file:///svn/phpbb/trunk@2446 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-29 01:03:11 +00:00
Paul S. Owen
893992dd78 Check returned language string
git-svn-id: file:///svn/phpbb/trunk@2445 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-29 00:24:13 +00:00
the_systech
0e2eb0daee Ok all of these damned httpd server that are different are about annoying
git-svn-id: file:///svn/phpbb/trunk@2444 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-28 19:52:21 +00:00
the_systech
30af46fcd9 Sorry this is just me being anal.. Fix the CVS id line so that it's working again
git-svn-id: file:///svn/phpbb/trunk@2443 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-27 19:15:39 +00:00
the_systech
58472ef494 Fix for bug # 535531... How'd that echo get in there?
git-svn-id: file:///svn/phpbb/trunk@2442 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-27 19:11:09 +00:00
Paul S. Owen
9b66100234 Add ICQ flower icon
git-svn-id: file:///svn/phpbb/trunk@2441 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-27 17:30:06 +00:00
the_systech
18b76c9335 New set of cache control headers, will these work, who knows?
git-svn-id: file:///svn/phpbb/trunk@2440 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-26 17:47:15 +00:00
James Atkinson
cac37dfb8e Fixed bug #535245
git-svn-id: file:///svn/phpbb/trunk@2439 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-26 16:27:20 +00:00
Paul S. Owen
7de3ac24de Fix bug with editing polls containing options with quotes
git-svn-id: file:///svn/phpbb/trunk@2438 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-26 13:13:06 +00:00
the_systech
24bf0e140d Ok fine it's a password field now, will everyone shutup already...
git-svn-id: file:///svn/phpbb/trunk@2437 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 23:10:32 +00:00
the_systech
0a947e4b58 fix bug #534904
git-svn-id: file:///svn/phpbb/trunk@2436 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 23:03:32 +00:00
the_systech
6d72d7c29f Fix for #534847
git-svn-id: file:///svn/phpbb/trunk@2435 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 20:37:14 +00:00
dougk_ff7
d153981485 Fixing bug 520011-multiple inline images break layout in NS. Tom sent this to me, so here it is.
git-svn-id: file:///svn/phpbb/trunk@2434 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 20:32:36 +00:00
James Atkinson
306d47a09b Fixed bug #534526, now my birthday won't show up as users board_startdates :D
git-svn-id: file:///svn/phpbb/trunk@2433 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 20:28:11 +00:00
the_systech
9b7b652679 Fix for Bug #534313 Max posts in Inbox/Savebox/Sentbox = 0
git-svn-id: file:///svn/phpbb/trunk@2432 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 19:40:57 +00:00
the_systech
f1c8e6c954 Fix for bug # 534781 Smiles in Postgres install
git-svn-id: file:///svn/phpbb/trunk@2431 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 19:31:18 +00:00
dougk_ff7
bce2768d11 Calling flight 532682, your bug is ready, and we will now begin general boarding... :P In other words, bug 532682 is now fixed. The missing lang entry in the English files ONLY has been added.
git-svn-id: file:///svn/phpbb/trunk@2430 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 19:22:42 +00:00
Paul S. Owen
03543d2ee6 Fix non-sending of email notifications ... user_active hadn't been added to the SQL query yet was being checked before email was sent
git-svn-id: file:///svn/phpbb/trunk@2429 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 13:22:46 +00:00
Paul S. Owen
854e832a04 Should fix bug where a solitary < caused the text to repeat
git-svn-id: file:///svn/phpbb/trunk@2428 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 13:03:55 +00:00
Paul S. Owen
70889081f1 Move phpbb_preg_quote back into functions because it's plain annoying ... :D
git-svn-id: file:///svn/phpbb/trunk@2427 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 12:41:41 +00:00
Paul S. Owen
5b176a2eff Fix bad word cockup ... oh look the censor failed and let cockup through, oh, and again ... geez sourceforge needs better censors for its CVS system
git-svn-id: file:///svn/phpbb/trunk@2426 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-25 12:39:17 +00:00
Bart van Bragt
111092c673 Show groupname, bug #534414
git-svn-id: file:///svn/phpbb/trunk@2425 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-24 20:58:33 +00:00
Bart van Bragt
f69ec5c8e8 Some extra comments and removed a redundant if
git-svn-id: file:///svn/phpbb/trunk@2424 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-24 20:03:20 +00:00
Bart van Bragt
31adba80a6 Fixed paths for external subSilver file
git-svn-id: file:///svn/phpbb/trunk@2423 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-24 14:02:00 +00:00
Paul S. Owen
13318620d8 Fix 'non-deletion' of messages deleted from Outbox under certain circumstances
git-svn-id: file:///svn/phpbb/trunk@2422 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-24 13:54:09 +00:00
Paul S. Owen
5664a3637b Wrong constant URL used in redirect upon deletion of single post, bug #533823
git-svn-id: file:///svn/phpbb/trunk@2421 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-24 13:21:16 +00:00
Paul S. Owen
5e3a33efb2 Move $error=FALSE out of conditional to top of script
git-svn-id: file:///svn/phpbb/trunk@2420 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-24 13:08:20 +00:00
Paul S. Owen
c996a8aa41 Change form method to post for basic operations.
git-svn-id: file:///svn/phpbb/trunk@2419 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-24 00:15:36 +00:00
Paul S. Owen
359f3e21cb Change method to post
git-svn-id: file:///svn/phpbb/trunk@2418 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-24 00:15:11 +00:00
Paul S. Owen
4ac4c7f969 timezone setup should be isset not !empty ... GMT is 0 after all .. oops
git-svn-id: file:///svn/phpbb/trunk@2417 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-23 23:12:31 +00:00
Paul S. Owen
7e3d8e3d70 Wrong redirect on chaning user level
git-svn-id: file:///svn/phpbb/trunk@2416 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-23 22:21:33 +00:00
Paul S. Owen
44ab877fba Various bug fixes, polls, Guest vs. Anonymous, quoting guests
git-svn-id: file:///svn/phpbb/trunk@2415 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-23 22:18:04 +00:00
Paul S. Owen
1b8dbdb73e Fix wrong lang var issue
git-svn-id: file:///svn/phpbb/trunk@2414 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-23 15:36:26 +00:00
Paul S. Owen
8b01c30923 Fixed wrong lang var useage
git-svn-id: file:///svn/phpbb/trunk@2413 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-23 15:36:14 +00:00
Paul S. Owen
18c2f78c9c Fix issues with quotes in profile fields and avatars
git-svn-id: file:///svn/phpbb/trunk@2412 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-23 14:56:51 +00:00
Paul S. Owen
c2ded8a7aa More header fixing
git-svn-id: file:///svn/phpbb/trunk@2411 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 23:17:06 +00:00
Paul S. Owen
9f651601a3 Redirect to login header change for IIS/Webstart
git-svn-id: file:///svn/phpbb/trunk@2410 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 22:27:10 +00:00
Paul S. Owen
0c75c25d91 Fix hide online when returning from gallery bug
git-svn-id: file:///svn/phpbb/trunk@2409 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 22:22:41 +00:00
Paul S. Owen
b573258bea Change redirection header for not logged in redirect ...
git-svn-id: file:///svn/phpbb/trunk@2408 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 21:50:05 +00:00
Paul S. Owen
ca2a956b6c Alter way variables are substituted ... was causing problems when a [] followed a {VAR} in the email ...
git-svn-id: file:///svn/phpbb/trunk@2407 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 19:33:28 +00:00
Paul S. Owen
22d0fa9e3f Minor change ... don't strip_tags ... I don't think this is a security issue but it could use checking ... everyone be aware of my being unsure before using this!
git-svn-id: file:///svn/phpbb/trunk@2406 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 19:32:35 +00:00
Paul S. Owen
f12976b7a0 Suggested alteration of cache control header by Nathan
git-svn-id: file:///svn/phpbb/trunk@2405 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 18:46:31 +00:00
Paul S. Owen
6a11bc5acb Fix borders around cat cells
git-svn-id: file:///svn/phpbb/trunk@2404 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 18:07:41 +00:00
Paul S. Owen
9daf3ac964 Change td.cat to zero border
git-svn-id: file:///svn/phpbb/trunk@2403 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 18:07:17 +00:00
Paul S. Owen
629dd76277 Change a few quotes
git-svn-id: file:///svn/phpbb/trunk@2402 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 17:54:33 +00:00
Paul S. Owen
d53aa6bbe1 preg_quote stopwords
git-svn-id: file:///svn/phpbb/trunk@2401 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 17:53:28 +00:00
Paul S. Owen
6fb8655be4 A few permission related discrepancies ... hopefully fixed while hopefully not breaking anything else
git-svn-id: file:///svn/phpbb/trunk@2400 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 17:25:27 +00:00
Paul S. Owen
3903f53683 Avatar blocks same as user_profile
git-svn-id: file:///svn/phpbb/trunk@2399 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 17:01:50 +00:00
Paul S. Owen
294ebf5d93 Move to pagestart.php
git-svn-id: file:///svn/phpbb/trunk@2398 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 17:00:58 +00:00
Paul S. Owen
f0e4a8a4e4 Fix problem with user_admin not showing correct status for certain settings + switch to same include series as main files
git-svn-id: file:///svn/phpbb/trunk@2397 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 17:00:33 +00:00
the_systech
42e30320e4 D@#n it when changing something, make sure that you change it EVERYWHERE it's used :(
git-svn-id: file:///svn/phpbb/trunk@2396 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 14:30:05 +00:00
Paul S. Owen
8e3f83af92 Probably get moaned at for this but it's consistent with the non-admin files and prevents it being 'viewed' by nosey persons without need for .htaccess
git-svn-id: file:///svn/phpbb/trunk@2395 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 13:48:43 +00:00
Paul S. Owen
2f2d48e5f5 webstar on MacOS X seems to suffer the same refresh issue as IIS CGI, fixed
git-svn-id: file:///svn/phpbb/trunk@2394 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-22 12:22:58 +00:00
Paul S. Owen
7f42f5ac10 damn it damn it ... engage brain before commiting the thing you were going to change but didn't ... again, thanks acydburn
git-svn-id: file:///svn/phpbb/trunk@2393 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-21 15:45:13 +00:00
Paul S. Owen
2a260f4466 Change lang output upon no passwords entered to Fields_empty ... thanks acydburn ... completely forgot about that :D
git-svn-id: file:///svn/phpbb/trunk@2392 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-21 15:42:45 +00:00
Paul S. Owen
8aaf250314 Wasn't checking for wildcards in disallowed usernames during validation ... how we missed this for months is beyond me ... thanks to the anonymous bug track adder ...
git-svn-id: file:///svn/phpbb/trunk@2391 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-21 14:29:42 +00:00
Paul S. Owen
1ed2ed3072 Re-fix schemas to allow decimal/real numbers in timezone ...
git-svn-id: file:///svn/phpbb/trunk@2390 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-21 13:59:33 +00:00
Paul S. Owen
5047d43ca3 This one has the added benefit of working ...
git-svn-id: file:///svn/phpbb/trunk@2389 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-21 13:34:02 +00:00
Paul S. Owen
21f720a265 Fix missing global var causing failure of include for username validation
git-svn-id: file:///svn/phpbb/trunk@2388 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-21 13:29:53 +00:00
Paul S. Owen
c89f896c27 Fix blank error when not submitting any passwords during registration and alter error when no username is input
git-svn-id: file:///svn/phpbb/trunk@2387 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-21 13:27:38 +00:00
Paul S. Owen
78a87c5720 Hopefully fix bug #532648
git-svn-id: file:///svn/phpbb/trunk@2386 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-21 01:56:19 +00:00
Paul S. Owen
93ab935dc8 Update goto page code
git-svn-id: file:///svn/phpbb/trunk@2385 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-21 01:38:58 +00:00
Paul S. Owen
1a36478d59 A few coding style alterations
git-svn-id: file:///svn/phpbb/trunk@2384 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-21 01:38:45 +00:00
Paul S. Owen
f422531c0a Fix failure if duplicate username, no subject, no post, etc. errors have occured when submitting, bug #532336
git-svn-id: file:///svn/phpbb/trunk@2383 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-21 01:03:47 +00:00
Paul S. Owen
23b82723db Replace space with + in AIM names
git-svn-id: file:///svn/phpbb/trunk@2382 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 23:57:18 +00:00
the_systech
fdee8ed1b7 add hack check
git-svn-id: file:///svn/phpbb/trunk@2381 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 19:59:42 +00:00
Paul S. Owen
6eeae4f39a suspect there may be a similar problem to the msaccess beyond first page bug here too ... may be wrong :D
git-svn-id: file:///svn/phpbb/trunk@2380 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 17:48:30 +00:00
Paul S. Owen
baa5c72ca8 Fix bug causing no output beyond first page of results
git-svn-id: file:///svn/phpbb/trunk@2379 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 17:47:26 +00:00
Paul S. Owen
8e7ca2ed10 Fix enter does not submit problems for username searching, all bow down before Matthijs ... no, not in that way you perverts
git-svn-id: file:///svn/phpbb/trunk@2378 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 15:57:21 +00:00
Paul S. Owen
de46963c74 Wrong function name for cleaning up search tables ... I did change this but looks like I didn't commit it ... @!#%# hell
git-svn-id: file:///svn/phpbb/trunk@2377 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 15:46:36 +00:00
Paul S. Owen
b56667c1dd Fix error when view is set to somethng unexpected
git-svn-id: file:///svn/phpbb/trunk@2376 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 15:04:21 +00:00
Paul S. Owen
fc966546d7 Extra check for logged in user when deciding whether to determine if user should be notified on reply
git-svn-id: file:///svn/phpbb/trunk@2375 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 14:56:11 +00:00
Paul S. Owen
d75d6e8ebe Hide warning of ini_get unavabilitiy ...
git-svn-id: file:///svn/phpbb/trunk@2374 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 14:41:20 +00:00
Paul S. Owen
45cb06bcc4 Fix issue where nothing is reported for avatars larger than max filesize, bug #526880
git-svn-id: file:///svn/phpbb/trunk@2373 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 14:39:43 +00:00
Paul S. Owen
f24f3be056 Missed a width/height check for uploaded avatars
git-svn-id: file:///svn/phpbb/trunk@2372 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 14:38:51 +00:00
the_systech
8483e9195e Fix for bug # 532327 (This is what happens when I rush something in :D)
git-svn-id: file:///svn/phpbb/trunk@2371 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 14:26:26 +00:00
Paul S. Owen
40c7072be7 Make first_id in topics NULL
git-svn-id: file:///svn/phpbb/trunk@2370 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 14:04:48 +00:00
Paul S. Owen
05232173c5 what a shock ... an error
git-svn-id: file:///svn/phpbb/trunk@2367 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 01:23:24 +00:00
Paul S. Owen
1542a705d9 hey, everyone, Kenny's back
git-svn-id: file:///svn/phpbb/trunk@2365 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 00:22:08 +00:00
Paul S. Owen
0c6b287a2d Add inclusion of validates functions + other minor updates
git-svn-id: file:///svn/phpbb/trunk@2364 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-20 00:21:27 +00:00
the_systech
781fda5799 Various updates for install and upgrade...
git-svn-id: file:///svn/phpbb/trunk@2363 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 23:21:23 +00:00
Paul S. Owen
6c36b72138 A few updates for versioning, fixed _broken_ MS Access primer archive and compacted it ...
git-svn-id: file:///svn/phpbb/trunk@2362 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 22:00:17 +00:00
the_systech
4df42ed195 Just me nitpicking... Thought the file header name should match the filename...
git-svn-id: file:///svn/phpbb/trunk@2361 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 21:54:47 +00:00
Paul S. Owen
7d6cc562b7 Oh no, they killed update_to_RC3.php, those ba****ds
git-svn-id: file:///svn/phpbb/trunk@2360 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 21:50:42 +00:00
Paul S. Owen
688f946d44 Ooops, thanks AL_ for noting another problem ... I wish I'd never come up with this usergroup nonsense, I'll keep my big mouth shut next time :D
git-svn-id: file:///svn/phpbb/trunk@2359 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 21:38:49 +00:00
the_systech
129beaebc3 Fix for AOL browser issues as well as some IE blank Gzip pages..
git-svn-id: file:///svn/phpbb/trunk@2358 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 21:10:14 +00:00
the_systech
9b3b9e075b Well.... I hope this is right... It works at least. Can't seem to reach Paul currently, and I don't want this to slip through for RC-4, so for now I copied the old stuff from a previous revision of profile, and pasted it in here... Tested to work on my local machine... (if you had something else in mind Paul feel free to overwrite my version)
git-svn-id: file:///svn/phpbb/trunk@2357 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 20:47:59 +00:00
the_systech
14402abc17 Fix for bug #521935 (extra fields in db after upgrade)
git-svn-id: file:///svn/phpbb/trunk@2356 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 19:37:30 +00:00
Paul S. Owen
4ad31e50fc Broke bbcode removal when displaying incomplete posts ... fixed
git-svn-id: file:///svn/phpbb/trunk@2355 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 18:59:50 +00:00
Paul S. Owen
7565b58358 Update profile ICQ output to layers for IE, nothing for NS ... note a height is set for the icon but since all languages use the same ICQ icon it's not apparently a problem for subSilver
git-svn-id: file:///svn/phpbb/trunk@2354 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 18:47:07 +00:00
Paul S. Owen
f9561ba26e Various fixes for unviewable group problems, etc.
git-svn-id: file:///svn/phpbb/trunk@2353 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 18:24:58 +00:00
the_systech
5f3b7842e1 Fix for bug #512279 Install now uses table prefix properly..
git-svn-id: file:///svn/phpbb/trunk@2352 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 17:36:49 +00:00
dougk_ff7
92e1d35180 Here we have the pleasure of fixing bugs 526891 and 530830. Both have been tested on my local copy, and they should be ready!
git-svn-id: file:///svn/phpbb/trunk@2351 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 15:39:06 +00:00
Paul S. Owen
e626b1a893 Fix unecessary ( ) around GROUP BY clause for IP section
git-svn-id: file:///svn/phpbb/trunk@2350 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 13:07:35 +00:00
Paul S. Owen
92ae184dc4 Remove HIDDEN_GROUP check in user mod SQL ... no valid there.
git-svn-id: file:///svn/phpbb/trunk@2349 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 12:38:12 +00:00
Paul S. Owen
f5b7f269d2 Missed a couple of $phpEx extensions of some redirects
git-svn-id: file:///svn/phpbb/trunk@2348 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 12:35:13 +00:00
Paul S. Owen
af033db88d Output message if neither a forum nor topic id are specified
git-svn-id: file:///svn/phpbb/trunk@2347 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 12:26:52 +00:00
Paul S. Owen
0ea0442698 Rename icon
git-svn-id: file:///svn/phpbb/trunk@2346 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 12:18:36 +00:00
Paul S. Owen
1fabd3558c Remove stripslashes from pagestart and begin session_id ...
git-svn-id: file:///svn/phpbb/trunk@2345 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 11:59:36 +00:00
Paul S. Owen
8ca969ed31 Fix quoting problem
git-svn-id: file:///svn/phpbb/trunk@2344 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 01:53:19 +00:00
Paul S. Owen
f4cf95101b One more error and this computer gets to see the Ionosphere close up ...
git-svn-id: file:///svn/phpbb/trunk@2343 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 01:11:27 +00:00
Paul S. Owen
913562743e Me getting irritated now ...
git-svn-id: file:///svn/phpbb/trunk@2342 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 01:10:21 +00:00
Paul S. Owen
654e5151cf Minor update to return true should a transaction be ended without a query ... does nothing except prevent premature failure of calling routine
git-svn-id: file:///svn/phpbb/trunk@2341 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 01:07:36 +00:00
Paul S. Owen
20998e14c6 More stylesheet link commenting out
git-svn-id: file:///svn/phpbb/trunk@2340 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 01:05:00 +00:00
Paul S. Owen
f076f5b3f3 Comment out stylesheet link ... I bet we get complaints from the 'other camp' over this
git-svn-id: file:///svn/phpbb/trunk@2339 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 01:04:32 +00:00
Paul S. Owen
1dbb0240f5 bah
git-svn-id: file:///svn/phpbb/trunk@2338 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 01:00:37 +00:00
Paul S. Owen
4f23d69f63 Update for change in remove search word function ... bug #531662
git-svn-id: file:///svn/phpbb/trunk@2337 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 00:47:52 +00:00
Paul S. Owen
03c6ace568 Allow a a comma delimited set of post id's to be sent to remove words function ... for modcp et al
git-svn-id: file:///svn/phpbb/trunk@2336 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 00:46:22 +00:00
Paul S. Owen
1ab738dcb2 Stuff that phpbb_preg ... not including bbcode and can't be bothered to move phpbb_preg out ...
git-svn-id: file:///svn/phpbb/trunk@2335 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 00:43:51 +00:00
Paul S. Owen
6e445f4ca5 Minor rewrite of some sql fetchrow stuff
git-svn-id: file:///svn/phpbb/trunk@2334 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 00:43:19 +00:00
Paul S. Owen
71239837f7 This is what I get when I delete a file that I've already updated ... because I think it's too 'new' ... :)
git-svn-id: file:///svn/phpbb/trunk@2333 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 00:26:49 +00:00
Paul S. Owen
c3801d4d3a Fix 'each' warning, bug #528254
git-svn-id: file:///svn/phpbb/trunk@2332 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 00:25:03 +00:00
Paul S. Owen
14b6e1447d phpbb_preg_quote that bad word replace ... just in case ...
git-svn-id: file:///svn/phpbb/trunk@2331 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-19 00:08:18 +00:00
Paul S. Owen
82ace9f077 Non-authed user could potentially utilise topic_review to read denied forums .... thanks Ashe
git-svn-id: file:///svn/phpbb/trunk@2330 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 23:56:36 +00:00
Paul S. Owen
61daafca3a No need for IN_PROFILE, can just use IN_PHPBB
git-svn-id: file:///svn/phpbb/trunk@2329 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 23:53:38 +00:00
Paul S. Owen
b651274960 Stop being too paranoid about hacking of includes containing only fully inclusive functions
git-svn-id: file:///svn/phpbb/trunk@2328 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 23:53:12 +00:00
Paul S. Owen
812d5a2f35 Allow global_var off for REMOTE_ADDR
git-svn-id: file:///svn/phpbb/trunk@2327 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 23:45:24 +00:00
Paul S. Owen
0fb594ca58 Fix default AND for word concaten..blah blah
git-svn-id: file:///svn/phpbb/trunk@2326 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 22:59:39 +00:00
the_systech
315f0e4d3a a "fix" for #529920... Now banned emails can appear in *user*@domain.com
git-svn-id: file:///svn/phpbb/trunk@2325 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 19:42:05 +00:00
Paul S. Owen
506be5f874 Moved to a nicer area of town
git-svn-id: file:///svn/phpbb/trunk@2324 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 19:26:26 +00:00
the_systech
c925defded Oops typo... Plus admin_users needed functions_validate as well, which did away with the need to have the extra fields validation function here in admin_users...
git-svn-id: file:///svn/phpbb/trunk@2323 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 19:16:44 +00:00
the_systech
fab0474d48 admin_users now needs the functions_select.php since the breakup of functions.
git-svn-id: file:///svn/phpbb/trunk@2322 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 19:09:42 +00:00
the_systech
52b98bc965 Fix for typo that wouldn't allow user registration line 487 should have checked for query to *NOT* be successful :D... But hey it was a Paul soooo... :D
git-svn-id: file:///svn/phpbb/trunk@2321 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 19:00:35 +00:00
James Atkinson
4350c9b937 Fixed bug #528267
git-svn-id: file:///svn/phpbb/trunk@2320 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 18:42:25 +00:00
James Atkinson
73f1986816 Fixed bug #506390
THis isn't the best fix but its the only way I could get around adding language file string


git-svn-id: file:///svn/phpbb/trunk@2319 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 18:05:53 +00:00
James Atkinson
3e2eed6602 Fixed little bug that made the smilies image tags not XHTML compatible
git-svn-id: file:///svn/phpbb/trunk@2318 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 17:46:43 +00:00
the_systech
16763da87f Fix for bug #529642... Tabs should end parsing for magic urls as well as spaces or newlines...
git-svn-id: file:///svn/phpbb/trunk@2317 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 17:21:28 +00:00
Paul S. Owen
04ef400e7d This may allow the release of an Arabic lang pack, needs checking for RC-3 'compliance' ... if anybody feels like it ...
git-svn-id: file:///svn/phpbb/trunk@2316 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 15:47:20 +00:00
Paul S. Owen
79a198c8e1 Various updates ... just realised that the emails haven't been translated, gawd knows how I missed that ... :D
git-svn-id: file:///svn/phpbb/trunk@2315 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 15:46:09 +00:00
Paul S. Owen
fc4c0e44f0 Fix for private IPs via HTTP_FOR.. + spoofing of it ... note that getenv doesn't apparently work in ISAPI mode so will only report REMOTE_ADDR
git-svn-id: file:///svn/phpbb/trunk@2314 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 15:43:36 +00:00
Paul S. Owen
ca1926c032 Fix for avatar gallery cancel appearing to delete avatar
git-svn-id: file:///svn/phpbb/trunk@2313 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 15:21:22 +00:00
dougk_ff7
6066b8a5b0 Fixes a bug in install.php, accidentally added "The passwords do not match" in any case.
git-svn-id: file:///svn/phpbb/trunk@2312 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 15:21:10 +00:00
dougk_ff7
b2d87a5021 Ok, I guess Paul took care of this for us... :)
git-svn-id: file:///svn/phpbb/trunk@2311 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 15:00:35 +00:00
Paul S. Owen
9ec9adec4d Security updates + a few updates for chopped up functions compatibility
git-svn-id: file:///svn/phpbb/trunk@2310 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 14:54:25 +00:00
dougk_ff7
a30d780877 Oh, fun. I just did the same thing Paul did. Anyway, phpBB2 should let you access the Admin panel now...
git-svn-id: file:///svn/phpbb/trunk@2309 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 14:52:15 +00:00
dougk_ff7
8fa7d2e175 includes/sessions.php
git-svn-id: file:///svn/phpbb/trunk@2308 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 14:50:43 +00:00
Paul S. Owen
87bb4aeda0 Morons have congregated in my head for a moron-party
git-svn-id: file:///svn/phpbb/trunk@2307 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 13:44:21 +00:00
Paul S. Owen
e1ab45d3c9 moron alert
git-svn-id: file:///svn/phpbb/trunk@2306 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 13:38:12 +00:00
Paul S. Owen
e22ee22470 Loads'a changes including fix for security issue, thanks to Matthijs for checking this out and confirming
git-svn-id: file:///svn/phpbb/trunk@2305 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 13:35:43 +00:00
Paul S. Owen
502e4aceea Updates to overcome security issue + updates of various functions, initial version of profile registration include ... not completed but should be functional for obvious reasons(!)
git-svn-id: file:///svn/phpbb/trunk@2304 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-18 13:35:23 +00:00
Paul S. Owen
21ab952fe2 Remove extra select query when creating new session during page setup
git-svn-id: file:///svn/phpbb/trunk@2303 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-17 14:08:31 +00:00
Paul S. Owen
9cc9bf0e9f First splits of profile
git-svn-id: file:///svn/phpbb/trunk@2302 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-17 14:07:56 +00:00
Paul S. Owen
b1a4782f93 Various updates
git-svn-id: file:///svn/phpbb/trunk@2301 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-17 14:07:43 +00:00
Paul S. Owen
34b0719c02 Turn all lang files into single array ... testing proposal by ractive
git-svn-id: file:///svn/phpbb/trunk@2300 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-14 15:55:21 +00:00
Bart van Bragt
aef33ac0cf Don't send notification mails to users that are not active
git-svn-id: file:///svn/phpbb/trunk@2299 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-14 13:08:26 +00:00
the_systech
3d375a794e Fix for bug #528319, can't check currval of a sequence when the sequence doesn't exist... We manually determine and assign the forum id so no need to get currval anyway :D
git-svn-id: file:///svn/phpbb/trunk@2298 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-12 21:46:34 +00:00
the_systech
9135d2f63c Ok, ok, ok so I didn't get one right... Sue me already
git-svn-id: file:///svn/phpbb/trunk@2297 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-12 21:14:58 +00:00
the_systech
1db4b1fc44 Ok one last attempt on my part to fix file upload bugs.. Might actually work (Hey it could happen, even I get one right occasionally)
git-svn-id: file:///svn/phpbb/trunk@2296 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-12 21:12:00 +00:00
the_systech
efc74bc4f0 Fix for various smtp issues reported in bugtracker
git-svn-id: file:///svn/phpbb/trunk@2295 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-12 17:36:08 +00:00
the_systech
2cb1999807 Fix for #527628 .. D@mn me and my stupiddity...
git-svn-id: file:///svn/phpbb/trunk@2294 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-11 21:55:20 +00:00
Paul S. Owen
90eb203cd9 Various updates
git-svn-id: file:///svn/phpbb/trunk@2293 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-10 17:31:21 +00:00
Paul S. Owen
56d1cb8db8 Changed on advice of borz_off ... as with all locales though YMMV and it may need to be changed to something else, ask your host for advice if necessary
git-svn-id: file:///svn/phpbb/trunk@2292 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-10 17:31:08 +00:00
Paul S. Owen
ee9d82968c Did not go first time ...
git-svn-id: file:///svn/phpbb/trunk@2291 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-10 15:42:38 +00:00
Paul S. Owen
1ff6689e3a Removed for same reason as Euclid, James I did save a copy if you've not done so already
git-svn-id: file:///svn/phpbb/trunk@2290 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-10 15:38:24 +00:00
Paul S. Owen
7ced0fa6cb Removing from CVS to remove any chance of people using it 'accidently' while incomplete ... may recommit when it's updated
git-svn-id: file:///svn/phpbb/trunk@2289 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-10 15:35:58 +00:00
dougk_ff7
59862f62f7 A small typo (missed it...)
Shouldn't be a problem, now.

Doug


git-svn-id: file:///svn/phpbb/trunk@2288 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-10 03:41:33 +00:00
dougk_ff7
0383e1b80a Ok, this includes fixes for bugs numbered 526000, 524591, 520370, and 520872. Manily, a few typos were fixed, along with a problem in the jumpbox (fixed using a quick Javascript check, there really isn't another way without modifying some large portions of code), and a problem in the rank control panel. In other words, everything assigned to me (as of this morning) has been fixed. I also ran the lovely fix_files.sh, so CVS might be a little wacky and try to update everything. I hope not...
That's it for now!
dougk_ff7


git-svn-id: file:///svn/phpbb/trunk@2287 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-10 03:23:56 +00:00
Paul S. Owen
cb97372773 These are formed from breaking up functions ... modified functions is not yet in CVS and these do nothing right now
git-svn-id: file:///svn/phpbb/trunk@2286 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-10 00:27:24 +00:00
Paul S. Owen
8cb119817d Update to introduce avatar name
git-svn-id: file:///svn/phpbb/trunk@2285 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-09 22:22:39 +00:00
the_systech
9ebcba6e07 Just because
git-svn-id: file:///svn/phpbb/trunk@2284 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-08 21:05:16 +00:00
the_systech
bf3871c698 Well poop... Fix for bug #527235... /me goes off and slaps himself..
git-svn-id: file:///svn/phpbb/trunk@2283 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-08 19:48:42 +00:00
Paul S. Owen
3a27b7a4d4 Fix incorrect .css location
git-svn-id: file:///svn/phpbb/trunk@2282 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-08 17:03:27 +00:00
Paul S. Owen
5800a18557 Change include common to only include required files ... stop errors with people who've disabled the board for the update
git-svn-id: file:///svn/phpbb/trunk@2281 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-08 16:29:04 +00:00
Paul S. Owen
6acfe21f0f Correct translation error on my part
git-svn-id: file:///svn/phpbb/trunk@2280 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-07 12:28:28 +00:00
Paul S. Owen
d856fe2f07 Various updates
git-svn-id: file:///svn/phpbb/trunk@2279 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-07 12:24:28 +00:00
the_systech
03dc0a105f Fix for bug #525357... Admin password should not be allowed to be blank for security reasons...
git-svn-id: file:///svn/phpbb/trunk@2278 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-06 21:58:49 +00:00
the_systech
2f882026ef Minor screw up in file upload checking.. If file_uploads is not set at all in the php.ini file then the check for get_cfg_var('file_uploads') == 0 would return true and say it was disabled, when in actuallity it was enabled.. Now check for it to empty as well... Empty as my head that is :D
git-svn-id: file:///svn/phpbb/trunk@2277 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-06 21:23:51 +00:00
Paul S. Owen
f00941114a Initial version tweaked by psoTFX
git-svn-id: file:///svn/phpbb/trunk@2276 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-06 01:19:57 +00:00
Paul S. Owen
3e40bc1f03 Initial versions mainly by OOHOO
git-svn-id: file:///svn/phpbb/trunk@2275 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-06 00:59:05 +00:00
Paul S. Owen
66eb4b2c16 Localise days/months, fix bug in validate_username ... this doesn't see functions.php split, working on that separately
git-svn-id: file:///svn/phpbb/trunk@2274 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-06 00:40:31 +00:00
Paul S. Owen
2275d7716f Changed format of Days and Months ... all translators please take note!
git-svn-id: file:///svn/phpbb/trunk@2273 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-06 00:36:24 +00:00
Paul S. Owen
5441675bbf Initial version by Alexis and Pato[100%Q]
git-svn-id: file:///svn/phpbb/trunk@2272 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-06 00:28:07 +00:00
Bart van Bragt
39fd3d9021 Rename 'nederlands' to 'dutch' during upgrade
git-svn-id: file:///svn/phpbb/trunk@2271 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-05 14:15:39 +00:00
Paul S. Owen
0daf91e668 mssql-odbc doesn't seem to like ignoring the duplicate index (even though MSSQL has been told to ... hmm)
git-svn-id: file:///svn/phpbb/trunk@2270 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-05 02:21:22 +00:00
Paul S. Owen
28b38f0547 Fixed various transaction related issues and changed mssql-odbc name to ... mssql-odbc, hopefully this hasn't been (and won't be) responsible for any problems ...
git-svn-id: file:///svn/phpbb/trunk@2269 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-05 02:19:38 +00:00
Paul S. Owen
be2532588c Updated for RC-3
git-svn-id: file:///svn/phpbb/trunk@2268 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-04 20:19:14 +00:00
Paul S. Owen
ad92939e06 initial update
git-svn-id: file:///svn/phpbb/trunk@2267 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-04 18:07:15 +00:00
Paul S. Owen
82bec4b7ac Brings Hungarian up to RC-3 standard
git-svn-id: file:///svn/phpbb/trunk@2266 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-04 17:53:41 +00:00
Paul S. Owen
eb53d6699a I believe this brings Chinese Traditional Taiwan to RC-3 standard
git-svn-id: file:///svn/phpbb/trunk@2265 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-04 14:21:00 +00:00
Paul S. Owen
c443e98938 Correct various parse errors
git-svn-id: file:///svn/phpbb/trunk@2264 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-04 13:54:34 +00:00
Paul S. Owen
85dc9d45c1 preg_quote badword ... don't use # in your bad word list(!)
git-svn-id: file:///svn/phpbb/trunk@2263 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-04 13:43:35 +00:00
dougk_ff7
8e62a19cf4 Fixing the bug where users can find other user's email addresses from emails sent out by groupcp.
git-svn-id: file:///svn/phpbb/trunk@2262 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-04 12:28:51 +00:00
Paul S. Owen
081e0bdfeb oops, forgot to change version setting ...
git-svn-id: file:///svn/phpbb/trunk@2261 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-04 01:48:02 +00:00
Paul S. Owen
a03c301e04 Remove extra session var in session_pagestart
git-svn-id: file:///svn/phpbb/trunk@2260 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-04 01:47:14 +00:00
Paul S. Owen
0eccf47be0 Fix lack of display if no groups exist, bug #520902
git-svn-id: file:///svn/phpbb/trunk@2259 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-03 23:32:36 +00:00
Paul S. Owen
0a01693cdd Fix incorrect setting of checkboxes on edit, bug #525244
git-svn-id: file:///svn/phpbb/trunk@2258 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-03 22:53:11 +00:00
Paul S. Owen
4d5fde9a78 Change to count method in word_common ... problem seemed to exist on older PHP versions for some reason
git-svn-id: file:///svn/phpbb/trunk@2257 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-03 19:28:44 +00:00
Paul S. Owen
ddbc8dbf1f Remove IDENTITY SET for forums
git-svn-id: file:///svn/phpbb/trunk@2256 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-03 16:51:27 +00:00
Paul S. Owen
2662d51e90 Add additional updates for MSSQL, thanks to Juan-Carlos for pointing the missing changes out ... please note, this introduces a DROP TABLE requirement for forums, ensure you read the INSTALL_RC3 before using this on MSSQL!
git-svn-id: file:///svn/phpbb/trunk@2255 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-03 15:38:22 +00:00
Paul S. Owen
83f62d2be2 Minor update
git-svn-id: file:///svn/phpbb/trunk@2254 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-03 03:14:27 +00:00
Paul S. Owen
72a94574b0 More minor style fixes
git-svn-id: file:///svn/phpbb/trunk@2253 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-03 00:33:31 +00:00
Paul S. Owen
7f655ad1c9 Fix a minor style issue
git-svn-id: file:///svn/phpbb/trunk@2252 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-02 23:44:32 +00:00
Paul S. Owen
9384c3762c Minor update to layout
git-svn-id: file:///svn/phpbb/trunk@2251 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-02 21:54:24 +00:00
Paul S. Owen
1783be010d Fix error in import, bug #524906
git-svn-id: file:///svn/phpbb/trunk@2250 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-02 20:46:27 +00:00
Paul S. Owen
89fc7db592 Altered the block structure slightly for avatars
git-svn-id: file:///svn/phpbb/trunk@2249 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-02 18:21:16 +00:00
Paul S. Owen
ab39e5eb79 Changed way subject is sent to email ... handled by templates where necessary ... all translators please note these changes!
git-svn-id: file:///svn/phpbb/trunk@2248 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-02 18:13:26 +00:00
Paul S. Owen
6172b1c51e Changed way subject is sent to email ... handled by templates where necessary
git-svn-id: file:///svn/phpbb/trunk@2247 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-02 18:12:19 +00:00
Paul S. Owen
dcdb379679 What was this doing here? :D
git-svn-id: file:///svn/phpbb/trunk@2246 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-02 17:13:34 +00:00
Paul S. Owen
83a8d754a1 Various updates, should be @ RC-3 standard
git-svn-id: file:///svn/phpbb/trunk@2245 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-02 00:27:52 +00:00
the_systech
eeaecf7c67 Oops again.. Missed one.. I know this ones not really uptodate anyway, but at least my changes are there.
git-svn-id: file:///svn/phpbb/trunk@2244 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 19:09:37 +00:00
the_systech
89ceaa9975 Oops I did a Paul... Still allow avatar uploads from Urls
git-svn-id: file:///svn/phpbb/trunk@2243 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 18:04:27 +00:00
the_systech
ebef119796 Ok it's official, I'm an idiot... Doesn't do much good to commit the updates to the profile template without the update to profile :(
git-svn-id: file:///svn/phpbb/trunk@2242 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 17:42:51 +00:00
the_systech
ab516ec67d Workarounds for file_uploads disabled...
git-svn-id: file:///svn/phpbb/trunk@2241 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 17:40:21 +00:00
Paul S. Owen
fbdb08846e Fix HAVING clause error for MSSQL/MySQL/et al., bug #524336
git-svn-id: file:///svn/phpbb/trunk@2240 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 17:22:15 +00:00
Bart van Bragt
375e90d8c4 Made viewip in modcp.php usefull and introduced an undocumented feature :D
git-svn-id: file:///svn/phpbb/trunk@2239 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 17:05:21 +00:00
Paul S. Owen
cbf63d31c4 Ignore duplicate IP's for guest counts ... keep in mind this swings 100% the other way from keeping them all, you'll not count some users.
git-svn-id: file:///svn/phpbb/trunk@2238 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 16:48:13 +00:00
Paul S. Owen
19c55abb19 Move subject preg_ to after parseing ... in case subject needs to contain any variables
git-svn-id: file:///svn/phpbb/trunk@2237 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 16:43:32 +00:00
Paul S. Owen
08fc672b8b Ignore duplicate IP's for guest counts ... keep in mind this swings 100% the other way from keeping them all, you'll not count some users.
git-svn-id: file:///svn/phpbb/trunk@2236 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 16:39:56 +00:00
Paul S. Owen
a54b016790 Add ability to specify subject within email, format is Subject: (localised subject) followed by carriage return/newline.
git-svn-id: file:///svn/phpbb/trunk@2235 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 15:46:49 +00:00
Paul S. Owen
4256b8534d Initial version by svenneman ... RC-3 standard
git-svn-id: file:///svn/phpbb/trunk@2234 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 15:02:57 +00:00
Paul S. Owen
a12901368a Fix missing $phpEx in return link, bug #523313 (part 2)
git-svn-id: file:///svn/phpbb/trunk@2233 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 12:06:49 +00:00
Paul S. Owen
cdb379d284 Various updates
git-svn-id: file:///svn/phpbb/trunk@2232 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 02:19:22 +00:00
Paul S. Owen
d0ffa0e900 Fix bug #522413, non-slashing of quotes
git-svn-id: file:///svn/phpbb/trunk@2231 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 02:06:34 +00:00
Paul S. Owen
a8b7699f7f I left that echo in intentionally, honest ... phew, think I got away with that ... oh, did I just write that, doh
git-svn-id: file:///svn/phpbb/trunk@2230 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 01:18:01 +00:00
Paul S. Owen
33a6fbcda0 Almost but not quite ... wouldn't update user levels for former mods who've been removed from auth_access ... doh
git-svn-id: file:///svn/phpbb/trunk@2229 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 01:15:39 +00:00
Paul S. Owen
81fc6e2d22 Updates related to auth_admin changes
git-svn-id: file:///svn/phpbb/trunk@2228 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-03-01 00:10:41 +00:00
Paul S. Owen
1f004885cc Time for Tubby bye bye
git-svn-id: file:///svn/phpbb/trunk@2227 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-28 23:51:53 +00:00
Paul S. Owen
46c8ea9a58 Various updates/changes
git-svn-id: file:///svn/phpbb/trunk@2226 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-28 23:50:49 +00:00
Paul S. Owen
cbc1e854b5 Right, let's see what I broke during the re-write ... this should be 'all singing - all dancing', handles updating moderator for user and group changes, switches to advanced mode appropriately, reduces numbers of queries done for multiple updates, etc.
git-svn-id: file:///svn/phpbb/trunk@2225 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-28 23:50:15 +00:00
Paul S. Owen
155f3beff0 Initial version by sundoit
git-svn-id: file:///svn/phpbb/trunk@2224 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-28 16:57:19 +00:00
Paul S. Owen
84343d166e Wrong spelling ... I cannot read ... doh!
git-svn-id: file:///svn/phpbb/trunk@2223 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-28 14:27:02 +00:00
Paul S. Owen
47ead81f83 Should bring Bulgarian up to RC-3 standards
git-svn-id: file:///svn/phpbb/trunk@2222 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-28 14:23:07 +00:00
Paul S. Owen
effc0bbd37 Should bring Portuguese up to RC-3 standards
git-svn-id: file:///svn/phpbb/trunk@2221 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-28 14:22:51 +00:00
Paul S. Owen
d00889ffe6 Initial version by OOHOO
git-svn-id: file:///svn/phpbb/trunk@2220 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-28 14:18:52 +00:00
Paul S. Owen
d04d9e0ac4 Slight mod to language selector to handle double underscored lang files
git-svn-id: file:///svn/phpbb/trunk@2219 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-28 14:17:19 +00:00
Paul S. Owen
9564abe4bf Add a few nowraps ... no doubt causing a few issues for at least one language ...
git-svn-id: file:///svn/phpbb/trunk@2218 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-28 14:08:02 +00:00
the_systech
10ef4498dc Added false for the optional replace parameter of the header for Cache-Control.. This might actually fix some issues with gzip compression and win98/IIS...
git-svn-id: file:///svn/phpbb/trunk@2217 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-26 16:35:02 +00:00
Paul S. Owen
c60dba1a04 Minor fix to styling
git-svn-id: file:///svn/phpbb/trunk@2216 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-26 12:24:55 +00:00
Paul S. Owen
0b47d41f9f Initial version by sundoit ~ RC-3 standard, needs checking through
git-svn-id: file:///svn/phpbb/trunk@2215 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-26 00:13:03 +00:00
the_systech
5dd8869552 Updates for extra config variables added recently..
git-svn-id: file:///svn/phpbb/trunk@2214 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-25 22:16:21 +00:00
Paul S. Owen
8d6896d7cd Initial version by Yoichi ~ RC-2 standard
git-svn-id: file:///svn/phpbb/trunk@2213 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-25 15:00:30 +00:00
Paul S. Owen
22b9be70a4 Failed to switch to English images default if prefered language doesn't exist ...
git-svn-id: file:///svn/phpbb/trunk@2212 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-25 14:59:01 +00:00
Paul S. Owen
f9dfbf2040 Various updates and additions by waheed
git-svn-id: file:///svn/phpbb/trunk@2211 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-25 14:49:51 +00:00
Paul S. Owen
94027fce10 Initial version
git-svn-id: file:///svn/phpbb/trunk@2210 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-25 13:43:23 +00:00
Paul S. Owen
582cee4b07 Fix COPPA problems
git-svn-id: file:///svn/phpbb/trunk@2209 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-25 01:17:59 +00:00
Paul S. Owen
19f7c091d9 Move activation key stuff to profile, search_username stuff to search, re-add @ to create_date
git-svn-id: file:///svn/phpbb/trunk@2208 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-25 01:08:55 +00:00
Paul S. Owen
333c4a053f Re-add config
git-svn-id: file:///svn/phpbb/trunk@2207 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-25 01:04:51 +00:00
Paul S. Owen
8771de7fc7 Remove config
git-svn-id: file:///svn/phpbb/trunk@2206 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-25 01:04:14 +00:00
Paul S. Owen
508b6d60ef Fix issues with view posts since last visit, errors on next page, re-introduce external stopword list, examine feasibility of stemmer, tidy ups ...
git-svn-id: file:///svn/phpbb/trunk@2205 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-25 01:00:48 +00:00
Paul S. Owen
b9b87a04fa doh, another wrongly named ICQ ... I'm really going off that program, good catch svenneman :)
git-svn-id: file:///svn/phpbb/trunk@2204 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-24 23:49:33 +00:00
Paul S. Owen
1ac0497ea0 Fixed updating of user post count on deletion
git-svn-id: file:///svn/phpbb/trunk@2203 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-23 17:54:32 +00:00
Paul S. Owen
aca19b4d0d Fix SQL problem bug #520293
git-svn-id: file:///svn/phpbb/trunk@2202 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-23 17:49:13 +00:00
Paul S. Owen
bab6328684 Should bring Turkish up to RC-3 standard
git-svn-id: file:///svn/phpbb/trunk@2201 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-21 00:03:30 +00:00
Paul S. Owen
dfe488f8b1 Fix my hilariously dumb mistake in posting allowing unauthed users to post ...
git-svn-id: file:///svn/phpbb/trunk@2200 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-20 17:39:03 +00:00
Paul S. Owen
b7a60afbab focus on select
git-svn-id: file:///svn/phpbb/trunk@2199 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-20 02:48:49 +00:00
Paul S. Owen
b58fca84e6 Fix bug #520039, moved topics with wrong goto page links
git-svn-id: file:///svn/phpbb/trunk@2198 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-19 22:09:08 +00:00
Paul S. Owen
5778b0395c Fix bug #520171, ICQ image missing
git-svn-id: file:///svn/phpbb/trunk@2197 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-19 22:04:29 +00:00
the_systech
d2dff5d51f Fix for bug #518972 Remote Avatar URI's with Port numbers
git-svn-id: file:///svn/phpbb/trunk@2196 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-19 16:30:03 +00:00
the_systech
1bbf53c482 Fix for minor cosmetic bug # 519992
git-svn-id: file:///svn/phpbb/trunk@2195 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-19 16:06:25 +00:00
Paul S. Owen
b81b6f606f Fix bug #519756 as suggested by tamc
git-svn-id: file:///svn/phpbb/trunk@2194 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-19 13:27:25 +00:00
Paul S. Owen
89ac37c58e Fix SQL bug #519941
git-svn-id: file:///svn/phpbb/trunk@2193 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-19 13:07:55 +00:00
Bart van Bragt
31493643be Removed datefield length restriction (#519590)
git-svn-id: file:///svn/phpbb/trunk@2192 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-19 09:21:40 +00:00
Paul S. Owen
2226dbb45e Couple of var names switched around in email URI
git-svn-id: file:///svn/phpbb/trunk@2191 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-18 21:29:55 +00:00
Paul S. Owen
0ce9506ffd Wasn't updating search match table ... fudged solution
git-svn-id: file:///svn/phpbb/trunk@2190 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-18 15:06:15 +00:00
Paul S. Owen
cc1a7450f9 test after test after test after test and yet these things still appear ...
git-svn-id: file:///svn/phpbb/trunk@2189 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-18 13:44:07 +00:00
Paul S. Owen
3ed7ffede7 this is getting very very very very boring ...
git-svn-id: file:///svn/phpbb/trunk@2188 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-18 13:13:12 +00:00
Paul S. Owen
eb92b9c409 sigh ....
git-svn-id: file:///svn/phpbb/trunk@2187 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-18 13:10:49 +00:00
Paul S. Owen
181fb574cd Changes to submit button name + other fixes
git-svn-id: file:///svn/phpbb/trunk@2186 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-18 12:49:08 +00:00
Paul S. Owen
af246d5550 You MUST run this if you haven't run update_to_RC3 in recent days ... it adds ESSENTIAL variables which, if missing, will prevent emails from containing correct URLs
git-svn-id: file:///svn/phpbb/trunk@2185 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-18 12:46:46 +00:00
Paul S. Owen
98c709a1ae There always has to be at least one bug doesn't there ... why is that?
git-svn-id: file:///svn/phpbb/trunk@2184 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-18 12:41:06 +00:00
Paul S. Owen
1a37d0d8ef Somewhat overhauled posting, fixed various bugs, completed new way of handling URIs in emails, blah blah
git-svn-id: file:///svn/phpbb/trunk@2183 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-18 12:34:38 +00:00
Bart van Bragt
ae80afa875 Now the code is fixed for real :D Not smart to use config info before it's read
git-svn-id: file:///svn/phpbb/trunk@2182 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-18 08:57:28 +00:00
Bart van Bragt
dc729b7120 Fixed some problems with last checkin ( for Email links etc)
git-svn-id: file:///svn/phpbb/trunk@2181 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-18 07:35:18 +00:00
Bart van Bragt
7db39a1960 Missed SMTP user/pass in Dutch admin file
git-svn-id: file:///svn/phpbb/trunk@2180 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-17 22:18:40 +00:00
Bart van Bragt
0e93ac3b0c Some updates on the smiley display code, also fixed :\ smileys (#518428)
git-svn-id: file:///svn/phpbb/trunk@2179 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-17 17:25:31 +00:00
Bart van Bragt
40e8195045 Cleaned up stuff (for Email)
git-svn-id: file:///svn/phpbb/trunk@2178 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-17 17:02:03 +00:00
Bart van Bragt
c8b89ff92b Fixed malformed URL in Emails
git-svn-id: file:///svn/phpbb/trunk@2177 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-17 16:42:06 +00:00
Bart van Bragt
3d0e0d2ea3 Cookie domain string was missing, thanks, Jerry (#516599)
git-svn-id: file:///svn/phpbb/trunk@2176 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-17 16:10:41 +00:00
Bart van Bragt
7533fe4e05 Fixed #506066, [img] didn't work with multiple instances directly following each other
git-svn-id: file:///svn/phpbb/trunk@2175 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-17 16:05:18 +00:00
Bart van Bragt
22626dc4cc Fixed #506371, fontchange after quote in NS4.x.
git-svn-id: file:///svn/phpbb/trunk@2174 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-17 15:27:11 +00:00
Bart van Bragt
871b979177 Fixed #502588, missing smiley after conversion of 1.x board
git-svn-id: file:///svn/phpbb/trunk@2173 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-16 22:27:33 +00:00
Paul S. Owen
d2576473c3 Further privmsg constant
git-svn-id: file:///svn/phpbb/trunk@2172 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-16 20:35:36 +00:00
Paul S. Owen
97519a009a Fixed error preventing drop down displaying
git-svn-id: file:///svn/phpbb/trunk@2171 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-16 20:34:23 +00:00
Paul S. Owen
e141178869 Should bring Danish up to RC-3 standard
git-svn-id: file:///svn/phpbb/trunk@2170 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-16 15:45:06 +00:00
Bart van Bragt
18e184aba8 Fixed <> vs != problem with MSSQL, missed this one
git-svn-id: file:///svn/phpbb/trunk@2169 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-16 15:04:42 +00:00
Bart van Bragt
e4242e74fa Fixed some security problems for those people that didn't remove or disable the /develop/ dir in their CVS install
git-svn-id: file:///svn/phpbb/trunk@2168 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-16 10:35:40 +00:00
Bart van Bragt
21a9851937 Added 'return to forum' to (un)lock
git-svn-id: file:///svn/phpbb/trunk@2167 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 23:52:41 +00:00
Paul S. Owen
acdf961314 Minor updates, may fix bug #517876
git-svn-id: file:///svn/phpbb/trunk@2166 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 23:34:32 +00:00
Bart van Bragt
06434eb0c5 Made hidden groups hidden, guess some extra security checks would be nice though (ppl guessing URLs)
git-svn-id: file:///svn/phpbb/trunk@2165 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 22:13:59 +00:00
Paul S. Owen
614f58d881 Fix bug #518159
git-svn-id: file:///svn/phpbb/trunk@2164 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 21:59:01 +00:00
Bart van Bragt
dfd69921b6 Made arabic translation usable (using english for missing files, my Arabic sucks)
git-svn-id: file:///svn/phpbb/trunk@2163 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 21:40:18 +00:00
the_systech
4cf27e41de Fix for #518056 in bug tracker... Me and my D@mned typos.... Amazing what a difference one little letter, and one extra space can make... :(
git-svn-id: file:///svn/phpbb/trunk@2162 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 21:38:57 +00:00
the_systech
17e976e5d9 Fix for bug #517896
git-svn-id: file:///svn/phpbb/trunk@2161 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 19:58:16 +00:00
Bart van Bragt
a71e47ffb7 Minor typos in Dutch translation
git-svn-id: file:///svn/phpbb/trunk@2160 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 19:34:51 +00:00
the_systech
8ddec01fa3 Rolling back changes for site_name_explain lang variable
git-svn-id: file:///svn/phpbb/trunk@2159 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 15:45:07 +00:00
Paul S. Owen
9c96d256c1 Remove lang_admin changes, sorry Jonathan no more changes ... we really have to put a freeze on these, I'm fed up dealing with continual updates of translations :)
git-svn-id: file:///svn/phpbb/trunk@2158 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 15:36:35 +00:00
the_systech
1d42ad5083 Fix for bug #517442... Disabled HTML in Site_Name and documented in admin.. Also changed so that in both site_name and site_desc "'s are changed to &quot;
git-svn-id: file:///svn/phpbb/trunk@2157 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 15:27:09 +00:00
Bart van Bragt
3a87c855dc Made hidden groups really hidden (index, viewforum)
git-svn-id: file:///svn/phpbb/trunk@2156 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 15:08:48 +00:00
Bart van Bragt
9fb58788bb Updated Dutch to RC3 standards
git-svn-id: file:///svn/phpbb/trunk@2155 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 15:00:05 +00:00
Paul S. Owen
d093dba912 Showing as uncommited ... so I'm commiting ...
git-svn-id: file:///svn/phpbb/trunk@2154 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 14:03:39 +00:00
Paul S. Owen
0fc7d6c197 Should bring Russian up to RC-3 standard
git-svn-id: file:///svn/phpbb/trunk@2153 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 14:02:44 +00:00
Paul S. Owen
3ddf433417 Can I finally commit this or will sourceforge screw this up too ... hhmmmm
git-svn-id: file:///svn/phpbb/trunk@2152 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 13:49:10 +00:00
Bart van Bragt
bbef6aa6ce Fixed #517890 - Change server_name in boardconfig
git-svn-id: file:///svn/phpbb/trunk@2151 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-15 12:13:03 +00:00
Paul S. Owen
635a36c447 Final fixes for user entered server name, port, etc.
git-svn-id: file:///svn/phpbb/trunk@2150 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 23:13:09 +00:00
Paul S. Owen
b635a1501b Change die's in final inserts to prints + other minor changes
git-svn-id: file:///svn/phpbb/trunk@2149 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 22:42:49 +00:00
the_systech
187448e429 D@$!it make sure you fix quotes in site name too you idiot...
git-svn-id: file:///svn/phpbb/trunk@2148 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 20:16:52 +00:00
the_systech
aacc3e964d Fix a partial problem in the site_desc that was found as a result of bug #517442 which still requires futher consideration..
git-svn-id: file:///svn/phpbb/trunk@2147 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 20:12:57 +00:00
Paul S. Owen
4421575ccb Should fix error with DB != MSSQL || MySQL bug #517151
git-svn-id: file:///svn/phpbb/trunk@2146 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 17:43:56 +00:00
Bart van Bragt
c95ae7fb21 Use default style if user doesn't have a theme set (shouldn't happen)
git-svn-id: file:///svn/phpbb/trunk@2145 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 16:09:36 +00:00
Paul S. Owen
1ffe63e760 Fix "cannot find user" error bug #517258
git-svn-id: file:///svn/phpbb/trunk@2144 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 16:09:09 +00:00
Paul S. Owen
15c4789734 This should bring Norwegian up to RC-3 standard
git-svn-id: file:///svn/phpbb/trunk@2143 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 16:04:15 +00:00
Paul S. Owen
58a0f4b7ce This should bring Finnish up to RC-3 standard
git-svn-id: file:///svn/phpbb/trunk@2142 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 16:02:13 +00:00
Paul S. Owen
7273cb7a3e This should bring Italian up to RC-3 standard
git-svn-id: file:///svn/phpbb/trunk@2141 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 16:01:29 +00:00
Bart van Bragt
8fdc55da52 Changed the text of some errormsgs
git-svn-id: file:///svn/phpbb/trunk@2140 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 10:26:14 +00:00
Paul S. Owen
d32477e898 Moron Moron Moron Moron ... <- Me
git-svn-id: file:///svn/phpbb/trunk@2139 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 02:22:42 +00:00
Paul S. Owen
7bd2c70ae0 removed some template var complexity ... knew I missed at least one thing ...
git-svn-id: file:///svn/phpbb/trunk@2138 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 02:06:32 +00:00
Paul S. Owen
9c534006f1 Brought viewonline in-line with rest of user displays, ie. hidden user italic, mod and admin coloured
git-svn-id: file:///svn/phpbb/trunk@2137 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-14 02:03:20 +00:00
Paul S. Owen
29394042d3 Server settings used for emails ...
git-svn-id: file:///svn/phpbb/trunk@2136 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 23:12:52 +00:00
Paul S. Owen
e1698c3a01 Add some text about updating the settings
git-svn-id: file:///svn/phpbb/trunk@2135 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 22:29:19 +00:00
Paul S. Owen
bc81a009b2 This brings French upto RC-3 ready ... assuming no more lang changes
git-svn-id: file:///svn/phpbb/trunk@2134 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 22:26:02 +00:00
Paul S. Owen
def0b0e19a Fix fail to download bug, thanks Peter (vanhell)
git-svn-id: file:///svn/phpbb/trunk@2133 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 21:56:31 +00:00
the_systech
3b6c903302 Fix a bit of a typo on Line 512 with non-ending string
bug #517154


git-svn-id: file:///svn/phpbb/trunk@2132 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 21:08:34 +00:00
Paul S. Owen
23e32ed8e6 Added new 'server_xxxx' lines to Configuration section
git-svn-id: file:///svn/phpbb/trunk@2131 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 18:05:17 +00:00
Paul S. Owen
dbe542f03a Admit defeat with auto-sensing server/script path details and instead grab from user config ... changes here introduce the new vars
git-svn-id: file:///svn/phpbb/trunk@2130 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 16:43:06 +00:00
Paul S. Owen
28fa6e80a9 Fix various missing /> in input fields
git-svn-id: file:///svn/phpbb/trunk@2129 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 15:41:57 +00:00
Paul S. Owen
88edd41f5d Fixed error in make_forum_select box generation output
git-svn-id: file:///svn/phpbb/trunk@2128 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 15:40:51 +00:00
Paul S. Owen
3720705e6b I find things often work better when fixes are commited to CVS ... doh, I'm an idiot ... don't you just know that's going to appear in at least one persons sig ...
git-svn-id: file:///svn/phpbb/trunk@2127 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 02:04:52 +00:00
Paul S. Owen
f928eef92d Fix MSSQL slashing issue with copying received messages ... hopefully, bug #516738
git-svn-id: file:///svn/phpbb/trunk@2126 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 01:42:38 +00:00
Paul S. Owen
dfba6520d6 Hopefully fix bug where deletion of messages before user reads them leaves their new/unread counters unchanged, #506016
git-svn-id: file:///svn/phpbb/trunk@2125 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 01:34:46 +00:00
Paul S. Owen
f1c2c23ec9 Attempt 2E200 at fixing the incorrect URLs in email messages ...
git-svn-id: file:///svn/phpbb/trunk@2124 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 01:11:57 +00:00
Paul S. Owen
80a1db0f1d Fix bug with attempted deletion of non-existent messages + attempt 1E200 at fixing the incorrect URLs in email messages ...
git-svn-id: file:///svn/phpbb/trunk@2123 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 01:11:35 +00:00
Paul S. Owen
d0207fee9b Fix problem where groups for which user is member appear in the Join Group dropbox
git-svn-id: file:///svn/phpbb/trunk@2122 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 00:37:27 +00:00
Paul S. Owen
dbbc372ca7 Split from posting
git-svn-id: file:///svn/phpbb/trunk@2121 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 00:15:02 +00:00
Paul S. Owen
6cecda3ea7 Updated MSSQL dbsize query suggested by SirSir
git-svn-id: file:///svn/phpbb/trunk@2120 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-13 00:03:18 +00:00
Paul S. Owen
bd60a4e7f4 Fixed missing </tr> tags
git-svn-id: file:///svn/phpbb/trunk@2119 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 23:13:08 +00:00
Paul S. Owen
166de22e66 Deletion of groups wasn't deleting auth_access entries
git-svn-id: file:///svn/phpbb/trunk@2118 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 23:06:46 +00:00
Paul S. Owen
6bbd11cad5 Bu**er bu**er bu**er damn damn damn ...
git-svn-id: file:///svn/phpbb/trunk@2117 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 22:57:03 +00:00
Paul S. Owen
a8f0ef6285 oops, removed preg_quote but left \* in place ... bug #516545
git-svn-id: file:///svn/phpbb/trunk@2116 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 22:49:18 +00:00
Paul S. Owen
1efaa0f9cb doh
git-svn-id: file:///svn/phpbb/trunk@2115 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 17:55:52 +00:00
Paul S. Owen
2b4c532027 Minor change to email match
git-svn-id: file:///svn/phpbb/trunk@2114 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 17:53:20 +00:00
Paul S. Owen
be3f1941e1 Change way error is returned to validate email/username, fixes problem with lack of language support for error output and subsequent doubled username, etc. issues + remove get_userdata_from_id and use get_userdata instead + other minor changes
git-svn-id: file:///svn/phpbb/trunk@2113 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 17:14:39 +00:00
Paul S. Owen
19928f6a48 Change way error is returned to validate email/username, fixes problem with lack of language support for error output and subsequent doubled username, etc. issues
git-svn-id: file:///svn/phpbb/trunk@2112 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 17:14:01 +00:00
Paul S. Owen
db2910a24e Fix bug with auth access entries not being deleted along with user
git-svn-id: file:///svn/phpbb/trunk@2111 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 17:12:44 +00:00
Paul S. Owen
4b80d45e8e Minor update to topic notification which should put an end to a rare bug
git-svn-id: file:///svn/phpbb/trunk@2110 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 17:04:11 +00:00
Paul S. Owen
84163cb816 unset stored values of row and rowset upon freeresult
git-svn-id: file:///svn/phpbb/trunk@2109 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 16:59:49 +00:00
Paul S. Owen
87fcf10454 oops, that name change won't work on current CVS posting ...
git-svn-id: file:///svn/phpbb/trunk@2108 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 16:06:45 +00:00
Paul S. Owen
d521902402 Resolve Netscape 4.x issue with page display problems due to ICQ icon
git-svn-id: file:///svn/phpbb/trunk@2107 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 15:54:49 +00:00
Paul S. Owen
8bf3e70880 Resolve issue with Netscape 4.x failing to display page due to ICQ icons
git-svn-id: file:///svn/phpbb/trunk@2106 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 15:53:59 +00:00
Paul S. Owen
0934c7002d Fix missing bbcode status link to FAQ
git-svn-id: file:///svn/phpbb/trunk@2105 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 15:44:30 +00:00
Paul S. Owen
f929f03856 Fix 'return to mod CP' href problem
git-svn-id: file:///svn/phpbb/trunk@2104 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 15:14:51 +00:00
Paul S. Owen
13dc264b34 Added most users + moderator user_level updates
git-svn-id: file:///svn/phpbb/trunk@2103 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 13:51:09 +00:00
Paul S. Owen
a6289ca6e5 Out of date
git-svn-id: file:///svn/phpbb/trunk@2102 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 13:36:01 +00:00
Paul S. Owen
c42c89f688 Not relevant to CVS
git-svn-id: file:///svn/phpbb/trunk@2101 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 13:29:23 +00:00
Paul S. Owen
59e38e29c4 Minor changes for 4.1.1 warning levels + redirect name change for login
git-svn-id: file:///svn/phpbb/trunk@2100 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 03:08:05 +00:00
Paul S. Owen
1ce5626c67 Added MSSQL DB size as provided by Josh ... feedback/updates welcome :)
git-svn-id: file:///svn/phpbb/trunk@2099 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 03:06:17 +00:00
Paul S. Owen
e81ed1cc0a Minor update to template vars.
git-svn-id: file:///svn/phpbb/trunk@2098 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 03:04:19 +00:00
Paul S. Owen
c4de58830b Integrated as reqd into update_to_RC3.php
git-svn-id: file:///svn/phpbb/trunk@2097 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 03:02:41 +00:00
Paul S. Owen
e81fa52af2 Removed die on failure of initial updates, add version var to config table
git-svn-id: file:///svn/phpbb/trunk@2096 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 02:55:23 +00:00
Paul S. Owen
9218b75028 Various updates and changes
git-svn-id: file:///svn/phpbb/trunk@2095 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 02:16:12 +00:00
Paul S. Owen
0f6a4c9b91 Initial version
git-svn-id: file:///svn/phpbb/trunk@2094 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 02:15:33 +00:00
Paul S. Owen
0f6168b32b Various updates to style and generated output, updated IP section to batch convert
git-svn-id: file:///svn/phpbb/trunk@2093 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 00:52:59 +00:00
Paul S. Owen
7abbe39ed2 Fix error in common word update
git-svn-id: file:///svn/phpbb/trunk@2092 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-12 00:04:55 +00:00
Paul S. Owen
d96c86eb67 Further updates to decrease queries/increase speed ... under MySQL and MSSQL ... haven't checked compatibility with other DB's yet ...
git-svn-id: file:///svn/phpbb/trunk@2091 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 18:22:35 +00:00
Paul S. Owen
647ecbe377 Altered wordlist table to ignore duplicates on the word_text index
git-svn-id: file:///svn/phpbb/trunk@2090 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 17:21:30 +00:00
Paul S. Owen
4c21aea0f3 Remove auto increment/IDENTITY/autonumber/sequence from forum_id in _forums, this is set by the admin_forums app itself.
git-svn-id: file:///svn/phpbb/trunk@2089 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 13:11:36 +00:00
Paul S. Owen
1c145bf6bd Prevent upgrade being run standalone from install if PHPBB_INSTALLED present in config.
git-svn-id: file:///svn/phpbb/trunk@2088 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 13:05:08 +00:00
Paul S. Owen
d0febff388 Altered U_TOPIC to U_VIEW_TOPIC inline with other vars
git-svn-id: file:///svn/phpbb/trunk@2087 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 13:00:57 +00:00
Paul S. Owen
f96f1d8dad No idea if this is as desired but 'topic link' now points to the current page
git-svn-id: file:///svn/phpbb/trunk@2086 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 13:00:08 +00:00
Paul S. Owen
1ee648d8e8 Re-named add_icq to icq_add
git-svn-id: file:///svn/phpbb/trunk@2085 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 12:53:22 +00:00
Paul S. Owen
fb69e51741 Fix bugs #515461 and #515460, limit and nextid issues.
git-svn-id: file:///svn/phpbb/trunk@2084 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 12:46:18 +00:00
Paul S. Owen
d9616cbe16 Fix bug #515510 prevent autologin of inactive users
git-svn-id: file:///svn/phpbb/trunk@2083 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 12:42:23 +00:00
Paul S. Owen
ad58388302 Re-arrange a few bits here and there, hopefully remove continuing issues with list array useage
git-svn-id: file:///svn/phpbb/trunk@2082 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 12:34:39 +00:00
Paul S. Owen
150bf50530 erm, commented out RC2 updates ... haven't yet implemented an "existing update" check ... doh ... I will now bang my head against the wall, will someone please call an ambulance in advance, thank you
git-svn-id: file:///svn/phpbb/trunk@2081 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 02:27:27 +00:00
Paul S. Owen
cd5546b67d Repeat after me "Paul is a moron"
git-svn-id: file:///svn/phpbb/trunk@2080 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 02:18:33 +00:00
Paul S. Owen
67d9802335 Add a login redirect for users not logged in who attempt to visit restricted forums ... also shows a forum/post doesn't exist for hidden forums/topics/posts if user is logged in but not authed to view them
git-svn-id: file:///svn/phpbb/trunk@2079 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 02:16:28 +00:00
Paul S. Owen
bd6bd36d48 This version has the added bonus of probably working ... notice I said probably ...
git-svn-id: file:///svn/phpbb/trunk@2078 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 02:15:05 +00:00
Paul S. Owen
df90c2c6f7 Few more updates to fix bugs and improve update in general ... DON'T run this if you've already run it, msaccess users should run this ONLY if they've not updated their primer DB since RC-2 was released
git-svn-id: file:///svn/phpbb/trunk@2077 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 00:30:01 +00:00
Paul S. Owen
056cc59ae0 Speed up insertion of new words in mssql and mysql ... lets see what this breaks since the new post/posting isn't commited yet :)
git-svn-id: file:///svn/phpbb/trunk@2076 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 00:28:17 +00:00
Paul S. Owen
5509abb2ae Changes for first_topic_id
git-svn-id: file:///svn/phpbb/trunk@2075 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-11 00:08:14 +00:00
Paul S. Owen
89d1a097fa doh, left existing HELO in place ...
git-svn-id: file:///svn/phpbb/trunk@2074 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-10 13:04:14 +00:00
Paul S. Owen
ef87a7a6f6 Updated ESMTP AUTH as indicated by SirSir
git-svn-id: file:///svn/phpbb/trunk@2073 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-09 22:08:52 +00:00
Bart van Bragt
3983ffde45 Test before you commit, Bart
git-svn-id: file:///svn/phpbb/trunk@2072 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-09 16:56:43 +00:00
Bart van Bragt
31b604e25b Fixed problem with stripping HTML in profile (#512639)
git-svn-id: file:///svn/phpbb/trunk@2071 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-09 16:55:19 +00:00
Bart van Bragt
7171e62a7a Fixed 404 for header (#51499)
git-svn-id: file:///svn/phpbb/trunk@2070 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-09 15:54:40 +00:00
Bart van Bragt
9762adacb6 Fixed empty forum in styles admin bug (#515122), fix suggested by SirSir
git-svn-id: file:///svn/phpbb/trunk@2069 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-09 15:48:13 +00:00
Paul S. Owen
44562cfc44 Or this one even ... this is not easy ...
git-svn-id: file:///svn/phpbb/trunk@2068 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-08 21:02:54 +00:00
Paul S. Owen
cec8dba611 Fixed missing " bug #514823
git-svn-id: file:///svn/phpbb/trunk@2067 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-08 20:54:21 +00:00
Paul S. Owen
39a8a832ca Okay, let's give this highlighting preg_ a shot ...
git-svn-id: file:///svn/phpbb/trunk@2066 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-08 20:50:18 +00:00
Paul S. Owen
543caeaa4e hmmm, doh ... of course removing the preg_quote here is no doubt going to cause bug reports of "I can't censor xyz@asd" ...
git-svn-id: file:///svn/phpbb/trunk@2065 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-08 01:44:27 +00:00
Paul S. Owen
22b58414dd Various updates
git-svn-id: file:///svn/phpbb/trunk@2064 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-08 01:34:48 +00:00
Paul S. Owen
405efb48e0 Various updates, mods, changes to several functions, moved smilies stuff to bbcode.php ... nathan may kill me ... good bye all in advance
git-svn-id: file:///svn/phpbb/trunk@2063 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-08 01:33:36 +00:00
Paul S. Owen
2087cf9f11 Guest username display error
git-svn-id: file:///svn/phpbb/trunk@2062 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-08 01:30:59 +00:00
Paul S. Owen
9128597248 Updated for first_topic_id
git-svn-id: file:///svn/phpbb/trunk@2061 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-08 01:30:21 +00:00
Paul S. Owen
e6eca2b6d0 Minor fix for quoting and excess space
git-svn-id: file:///svn/phpbb/trunk@2060 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-05 01:45:23 +00:00
Paul S. Owen
9a77cb7d81 SMTP username and password additions
git-svn-id: file:///svn/phpbb/trunk@2059 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-05 00:32:39 +00:00
Paul S. Owen
e8323b9c43 New SMTP_ entries in Configuration section ... I know, we said this was frozen ... it just defrosted again, sorry :( On quick re-freeze now :)
git-svn-id: file:///svn/phpbb/trunk@2058 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-05 00:29:40 +00:00
Paul S. Owen
840dfa70ff Add default config for smtp_username/password
git-svn-id: file:///svn/phpbb/trunk@2057 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-05 00:28:43 +00:00
Paul S. Owen
d257ca8011 Add default config for smtp_username/password
git-svn-id: file:///svn/phpbb/trunk@2056 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-05 00:23:23 +00:00
Paul S. Owen
c8ba49cf0b Various updates
git-svn-id: file:///svn/phpbb/trunk@2055 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-05 00:12:39 +00:00
Paul S. Owen
92a27156d8 Another change to the way {LANG} is handled for images ... last one, ... hopefully :)
git-svn-id: file:///svn/phpbb/trunk@2054 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-04 18:31:22 +00:00
Paul S. Owen
cc5e68b05d Added AUTH LOGIN support for smtp ... requires smtp_username and smtp_password fields in config ... this DOESN'T support CRAM-MD5 or ODMR type authentication
git-svn-id: file:///svn/phpbb/trunk@2053 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-04 14:32:41 +00:00
Paul S. Owen
532573e30c Various updates + new FAQ
git-svn-id: file:///svn/phpbb/trunk@2052 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-04 13:34:50 +00:00
Paul S. Owen
80dec52654 Various updates
git-svn-id: file:///svn/phpbb/trunk@2051 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-04 13:32:35 +00:00
James Atkinson
594e162615 Fixed bug #506007
git-svn-id: file:///svn/phpbb/trunk@2050 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-03 19:26:07 +00:00
James Atkinson
225a4ff8e7 Fixed bug #507473
git-svn-id: file:///svn/phpbb/trunk@2049 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-03 19:19:42 +00:00
James Atkinson
721207ef48 Fixed bug #509335
git-svn-id: file:///svn/phpbb/trunk@2048 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-03 18:54:56 +00:00
James Atkinson
b4c40fd7ff Fixed bug #511609
git-svn-id: file:///svn/phpbb/trunk@2047 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-03 18:39:35 +00:00
James Atkinson
d1fa772e46 Semi-fix for bug #511849 , see comments for more details
git-svn-id: file:///svn/phpbb/trunk@2046 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-03 18:34:36 +00:00
James Atkinson
a03881cf7f Fixed bug #512194
git-svn-id: file:///svn/phpbb/trunk@2045 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-03 18:17:46 +00:00
James Atkinson
c56dbf86ee Fixed bug #512194. Note to translators I had to add 1 string to the lang_main file for Total Votes
git-svn-id: file:///svn/phpbb/trunk@2044 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-03 18:17:09 +00:00
Paul S. Owen
60a72ee8dd last bid at four
git-svn-id: file:///svn/phpbb/trunk@2043 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-02 18:57:54 +00:00
Paul S. Owen
91918c8a9d Minor update to remove query
git-svn-id: file:///svn/phpbb/trunk@2042 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-02 18:41:50 +00:00
Paul S. Owen
d0ddb8b65a oohh, three errors, it must be my lucky day ... do we hear four? anyone? we have three, do we have a four? going once, going twice ...
git-svn-id: file:///svn/phpbb/trunk@2041 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-02 18:37:10 +00:00
Paul S. Owen
c5cd26e8dd I knew they'd be an error ...
git-svn-id: file:///svn/phpbb/trunk@2040 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-02 18:31:48 +00:00
Paul S. Owen
c0f45f68d8 Hope this works ...
git-svn-id: file:///svn/phpbb/trunk@2039 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-02 18:25:39 +00:00
Paul S. Owen
7bf480d3e1 Tom has moved the theming info back into the DB, you'll need to run update_to_RC3.php to make use of it ... NOTE that some display issues seem to exist with this update.
git-svn-id: file:///svn/phpbb/trunk@2038 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-02 18:12:30 +00:00
Paul S. Owen
baa71e4e1e Updates for topic_first_id, NOTE that these basics include a new updated subSilver entry that appears to produce some strange results at present ...
git-svn-id: file:///svn/phpbb/trunk@2037 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-02 18:10:53 +00:00
Paul S. Owen
0b609899e3 Introduce an additional DB field for first_topic_id ... RUN update_to_RC3 ONCE YOU'VE UPDATED
git-svn-id: file:///svn/phpbb/trunk@2036 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-02 18:04:21 +00:00
Paul S. Owen
26f96a66b8 Various updates
git-svn-id: file:///svn/phpbb/trunk@2035 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-02 15:05:37 +00:00
Bart van Bragt
84b5745bd9 Partially fixed #510601; 'output before headers'
git-svn-id: file:///svn/phpbb/trunk@2034 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-02 11:56:22 +00:00
the_systech
fb4c1719ef Added some checking for mysql4 SQL_LAYER
git-svn-id: file:///svn/phpbb/trunk@2033 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-02-01 15:07:42 +00:00
Bart van Bragt
a10203e49f Fixed bug #508734, URL on viewtopic.php wrong after using jumpbox
git-svn-id: file:///svn/phpbb/trunk@2032 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 23:29:14 +00:00
Bart van Bragt
9b69e6b50e Fixed #509331, call to undefined function remove_common_global()
git-svn-id: file:///svn/phpbb/trunk@2031 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 23:19:00 +00:00
the_systech
0b912384b6 Increased the length of return codes allowed from smtp server to 256..
git-svn-id: file:///svn/phpbb/trunk@2030 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 21:16:12 +00:00
Paul S. Owen
5d304a8618 Initial version by Svenneman
git-svn-id: file:///svn/phpbb/trunk@2029 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 16:34:01 +00:00
Paul S. Owen
6acc561077 'Missing' image added
git-svn-id: file:///svn/phpbb/trunk@2028 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 16:16:08 +00:00
Paul S. Owen
1b968ffbe3 'Missing' image added
git-svn-id: file:///svn/phpbb/trunk@2027 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 16:08:12 +00:00
Paul S. Owen
a513e01011 Initial version by postexitus
git-svn-id: file:///svn/phpbb/trunk@2026 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 13:42:23 +00:00
Paul S. Owen
11f5c0ded8 Minor update
git-svn-id: file:///svn/phpbb/trunk@2025 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 02:09:26 +00:00
Paul S. Owen
19d74ef0ae Latest updates to current CVS
git-svn-id: file:///svn/phpbb/trunk@2024 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 01:29:29 +00:00
Paul S. Owen
e21eae121a See if Id string updates
git-svn-id: file:///svn/phpbb/trunk@2023 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 01:27:22 +00:00
Paul S. Owen
756e147aa7 Latest updates to lang_english CVS of 29/01
git-svn-id: file:///svn/phpbb/trunk@2022 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 01:26:10 +00:00
Paul S. Owen
ee28e192fc Moved images to new subdirectories, removed images not used in template/code
git-svn-id: file:///svn/phpbb/trunk@2021 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 01:19:19 +00:00
Paul S. Owen
ccd3959bde Removed array defns no longer available in core code, updated localised image naming conventions lang_{LANG}/ form
git-svn-id: file:///svn/phpbb/trunk@2020 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 01:17:59 +00:00
Paul S. Owen
871bddb685 Changed selection of localised images ... new {LANG} replace format
git-svn-id: file:///svn/phpbb/trunk@2019 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 01:16:10 +00:00
Paul S. Owen
09d99238b6 Fix slashing problems ... occured when privmsg has an error and refreshes
git-svn-id: file:///svn/phpbb/trunk@2018 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-31 01:11:24 +00:00
Paul S. Owen
da08c276f9 Initial version by water
git-svn-id: file:///svn/phpbb/trunk@2017 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-30 16:14:01 +00:00
Paul S. Owen
be9bc0e10a Initial version by water et al
git-svn-id: file:///svn/phpbb/trunk@2016 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-30 16:13:14 +00:00
Paul S. Owen
fd88e1e0c5 Various updates by Pincel
git-svn-id: file:///svn/phpbb/trunk@2015 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-30 16:09:17 +00:00
Paul S. Owen
86ff766a37 Updates
git-svn-id: file:///svn/phpbb/trunk@2014 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-30 01:59:33 +00:00
Paul S. Owen
0e71f9fcc1 Updates to lang_main + first version lang_admin by waheed
git-svn-id: file:///svn/phpbb/trunk@2013 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-30 01:58:33 +00:00
the_systech
53d453ed39 Some additional error checking in the install to make sure that the server's php configuration is going to work with phpBB2.. (two new lines in lang_admin.php sorry translators, & please don't shoot me Paul :D )
git-svn-id: file:///svn/phpbb/trunk@2012 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-29 22:46:16 +00:00
the_systech
982d341892 Hopefully some fixes for the mass email bugs on win32 Systems... We'll Know soon :D
git-svn-id: file:///svn/phpbb/trunk@2011 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-29 16:01:04 +00:00
Bart van Bragt
0c95dffd8a Fixed pagination bug on search results ( #509852 )
git-svn-id: file:///svn/phpbb/trunk@2010 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 23:12:31 +00:00
Paul S. Owen
2b3b8b7198 Latest updates from mauzi
git-svn-id: file:///svn/phpbb/trunk@2009 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 21:59:41 +00:00
the_systech
8b836794be This should fix bug #500134 and adds some additional error checking on smtp email sends...
git-svn-id: file:///svn/phpbb/trunk@2008 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 21:56:56 +00:00
the_systech
9819d4f777 This should fix Bug #498451.. Keep it from including smtp.php more than once..
git-svn-id: file:///svn/phpbb/trunk@2007 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 21:03:25 +00:00
Paul S. Owen
0a120aea72 Another warning fix ...
git-svn-id: file:///svn/phpbb/trunk@2006 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 19:12:37 +00:00
Paul S. Owen
88865f63ee Initial warning fixes
git-svn-id: file:///svn/phpbb/trunk@2005 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 18:47:41 +00:00
Paul S. Owen
ff582a4290 Fix a couple of warning 'generators'
git-svn-id: file:///svn/phpbb/trunk@2004 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 18:47:31 +00:00
Paul S. Owen
e4cdf71b07 Another warning fix ...
git-svn-id: file:///svn/phpbb/trunk@2003 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 18:47:14 +00:00
Paul S. Owen
0993bab8ee And another fix for warnings ...
git-svn-id: file:///svn/phpbb/trunk@2002 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 18:13:56 +00:00
Paul S. Owen
d64aaba706 Another warning related fix
git-svn-id: file:///svn/phpbb/trunk@2001 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 17:57:55 +00:00
Paul S. Owen
bd68c52f31 Another fix
git-svn-id: file:///svn/phpbb/trunk@2000 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 17:57:43 +00:00
Paul S. Owen
ace23ae20a Fix various var not set warnings ... many thanks go to The Horta for pointing out and offering fixes for many of these
git-svn-id: file:///svn/phpbb/trunk@1999 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 17:40:38 +00:00
Paul S. Owen
bbb06e6633 Fix various var not set warnings ... many thanks go to The Horta for pointing out and offering fixes for many of these
git-svn-id: file:///svn/phpbb/trunk@1998 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 17:33:51 +00:00
Paul S. Owen
e46d624c6b Fix various var not set warnings ... many thanks go to The Horta for pointing out and offering fixes for many of these
git-svn-id: file:///svn/phpbb/trunk@1997 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 17:25:58 +00:00
Paul S. Owen
4c87b7480e Fixed wrong var name preventing group listing ...
git-svn-id: file:///svn/phpbb/trunk@1996 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 14:18:52 +00:00
Bart van Bragt
4cc716e2f9 Added 'most online user' config keys to Oracle basic.sql
git-svn-id: file:///svn/phpbb/trunk@1995 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 13:44:05 +00:00
Bart van Bragt
0b04f9b087 Added 'most online user' config keys to MS-SQL basic.sql
git-svn-id: file:///svn/phpbb/trunk@1994 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 13:41:31 +00:00
Paul S. Owen
e0758eaba5 Initial version by arttor with some slight adjustments by psoTFX
git-svn-id: file:///svn/phpbb/trunk@1993 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 13:25:58 +00:00
Paul S. Owen
2da85abe61 Remove Warsaw from +2 hours
git-svn-id: file:///svn/phpbb/trunk@1992 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 12:50:10 +00:00
Paul S. Owen
05f66ebe5d Remove Warsaw from +2 hours + other fixes by Boby
git-svn-id: file:///svn/phpbb/trunk@1991 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 12:43:33 +00:00
Paul S. Owen
b64235b9a3 Fixed remaining email URI issues, hopefully
git-svn-id: file:///svn/phpbb/trunk@1990 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 12:37:41 +00:00
Paul S. Owen
caa089f278 Add a ; to URI validation rex
git-svn-id: file:///svn/phpbb/trunk@1989 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 12:27:14 +00:00
Paul S. Owen
b68a2b533b Fix bug #509513
git-svn-id: file:///svn/phpbb/trunk@1988 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 12:26:14 +00:00
Paul S. Owen
2989a6613a Fix error in script name, posting vs. viewtopic
git-svn-id: file:///svn/phpbb/trunk@1987 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 12:05:00 +00:00
Paul S. Owen
f2a0e0ea43 Added translation support for forumauth levels + re-added one of the sanity checks
git-svn-id: file:///svn/phpbb/trunk@1986 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 02:44:50 +00:00
Paul S. Owen
20bcba226a Added translations for ALL, REG, MOD, etc. used in admin_forumauth
git-svn-id: file:///svn/phpbb/trunk@1985 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 02:44:26 +00:00
Paul S. Owen
a421fa3f52 More hard-coded .php extensions
git-svn-id: file:///svn/phpbb/trunk@1984 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 02:36:21 +00:00
Paul S. Owen
25ef416369 And another ...
git-svn-id: file:///svn/phpbb/trunk@1983 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 02:24:34 +00:00
Paul S. Owen
e0efa1999f Couple more updates to URL 'fixes'
git-svn-id: file:///svn/phpbb/trunk@1982 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 02:16:33 +00:00
Paul S. Owen
62dd3bd84d Updated themes_name field lengths to 50 as per other schemas
git-svn-id: file:///svn/phpbb/trunk@1981 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 01:37:50 +00:00
Paul S. Owen
6c2406d7df Initial version submitted via email to me by an 'anonymous' user ... please contact me concerning my reply email ...
git-svn-id: file:///svn/phpbb/trunk@1980 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 01:30:22 +00:00
Paul S. Owen
62e4691710 Various updates by waheed
git-svn-id: file:///svn/phpbb/trunk@1979 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 01:26:47 +00:00
Paul S. Owen
07f52cbefe Various updates by Rici et al
git-svn-id: file:///svn/phpbb/trunk@1978 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 01:21:51 +00:00
Paul S. Owen
ebfc14b774 preg_quote lines for /* comment parsed SQL ... was causing failure on install for mssql ...
git-svn-id: file:///svn/phpbb/trunk@1977 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 00:57:27 +00:00
Paul S. Owen
1aad3f884a Fix some minor issues ...
git-svn-id: file:///svn/phpbb/trunk@1976 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 00:56:55 +00:00
Paul S. Owen
ad0c105f90 Fix bug #505064
git-svn-id: file:///svn/phpbb/trunk@1975 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-28 00:28:26 +00:00
Paul S. Owen
6497f166ef Various updates related to email creation ... should fix various bugs and errors, in theory
git-svn-id: file:///svn/phpbb/trunk@1974 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 22:13:17 +00:00
Bart van Bragt
20d33a47fd Some changes to Dutch translation (thanks again, Erik)
git-svn-id: file:///svn/phpbb/trunk@1973 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 20:35:49 +00:00
Paul S. Owen
849d766974 header Location mod to cope with IIS ... I hope
git-svn-id: file:///svn/phpbb/trunk@1972 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 15:16:08 +00:00
Paul S. Owen
b138aabd5b Fixed use of date instead of create_date for most users online ...
git-svn-id: file:///svn/phpbb/trunk@1971 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 14:17:38 +00:00
Paul S. Owen
11d212a83f Fixed content-type/length bugs
git-svn-id: file:///svn/phpbb/trunk@1970 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 14:13:59 +00:00
Paul S. Owen
eba70d3bb9 arrgghhhhh I hate regexp
git-svn-id: file:///svn/phpbb/trunk@1969 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 14:03:21 +00:00
Paul S. Owen
936d5e67e3 alphaNUMERICS Paul, ... doh
git-svn-id: file:///svn/phpbb/trunk@1968 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 13:59:57 +00:00
Paul S. Owen
5f8277f9e3 Check for allowed chars in [url] submissions ... could use some double checking
git-svn-id: file:///svn/phpbb/trunk@1967 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 13:53:14 +00:00
Paul S. Owen
5155a90a46 Fixed $phpEx inside single quotes
git-svn-id: file:///svn/phpbb/trunk@1966 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 13:14:15 +00:00
Paul S. Owen
57fdecdc0e Fix various bugs; password length warning, proper warnings for username/email errors
git-svn-id: file:///svn/phpbb/trunk@1965 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 03:10:40 +00:00
Paul S. Owen
617008810f Fixed stripslashing problem which would lead to incorrect search results in some cases
git-svn-id: file:///svn/phpbb/trunk@1964 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 02:24:05 +00:00
Paul S. Owen
ed932754b5 Remove hard-coded .php
git-svn-id: file:///svn/phpbb/trunk@1963 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 02:19:45 +00:00
Paul S. Owen
4ca97851d6 Fix unread marker after own post, change moderator listing method to that of index
git-svn-id: file:///svn/phpbb/trunk@1962 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 01:56:05 +00:00
Paul S. Owen
e0489036b1 Browsing this forum var added to template
git-svn-id: file:///svn/phpbb/trunk@1961 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 01:21:06 +00:00
Paul S. Owen
7236058905 Uncomment and 'complete' browsing in forum online list
git-svn-id: file:///svn/phpbb/trunk@1960 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 01:20:42 +00:00
Paul S. Owen
14d7d43c38 Add $lang['Browsing_forum'] ... at least two more additions to come
git-svn-id: file:///svn/phpbb/trunk@1959 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 01:20:15 +00:00
Paul S. Owen
8763a55df0 Numerous updates and changes
git-svn-id: file:///svn/phpbb/trunk@1958 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-27 00:55:20 +00:00
Paul S. Owen
832bba81fa Removed INSERT code into separate routine, this separated update should be added to update_to before RC-3 is deemed final ...
git-svn-id: file:///svn/phpbb/trunk@1957 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 23:22:38 +00:00
Paul S. Owen
ba7200eb8f Update for most online ... separated from page_header
git-svn-id: file:///svn/phpbb/trunk@1956 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 23:21:38 +00:00
Bart van Bragt
dbf6ea217b Oops, why do I always screw up in the first checkin?
git-svn-id: file:///svn/phpbb/trunk@1955 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 22:16:08 +00:00
Bart van Bragt
deacb5ae87 Implemented Record of online users
git-svn-id: file:///svn/phpbb/trunk@1954 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 21:53:05 +00:00
Paul S. Owen
cd354884f6 Error with adding search matches, wrong variable being used for insert ... select
git-svn-id: file:///svn/phpbb/trunk@1953 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 13:36:50 +00:00
Paul S. Owen
d0a241eaff htmlspecialchars for subject, poll title and options
git-svn-id: file:///svn/phpbb/trunk@1952 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 12:58:24 +00:00
Paul S. Owen
f6eaedcd8d Fixed viewforum/admin_forum bug for guests
git-svn-id: file:///svn/phpbb/trunk@1951 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 12:42:49 +00:00
Paul S. Owen
569666ecb2 Initial version by borz_off
git-svn-id: file:///svn/phpbb/trunk@1950 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 12:29:01 +00:00
Paul S. Owen
6f2af78020 Fourth attempt at this ... stupid CVS, remove global $mode requirement
git-svn-id: file:///svn/phpbb/trunk@1949 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 02:41:09 +00:00
Paul S. Owen
27437df1e1 Fix display of HTML, BBCode, Smilies status next to signature to reflect global + user settings
git-svn-id: file:///svn/phpbb/trunk@1948 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 02:37:04 +00:00
Paul S. Owen
9348f7f4b3 Fix bug #502174, show Guest post usernames correctly ... well as correct as they currently are
git-svn-id: file:///svn/phpbb/trunk@1947 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 02:34:49 +00:00
Paul S. Owen
913fcffdfe doh, brain fart
git-svn-id: file:///svn/phpbb/trunk@1946 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 02:22:48 +00:00
Paul S. Owen
26f1a39168 Removed dependance on global defined $mode ...
git-svn-id: file:///svn/phpbb/trunk@1945 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 02:15:08 +00:00
Paul S. Owen
648124681e Set a user_id of ANONYMOUS on logout
git-svn-id: file:///svn/phpbb/trunk@1944 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 02:12:01 +00:00
Paul S. Owen
af082045ec Removed odbc_error stuff since it doesn't work anyway
git-svn-id: file:///svn/phpbb/trunk@1943 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 02:01:24 +00:00
Paul S. Owen
2ebc299d35 Re-added str_replace for LOWER -> LCASE in queries
git-svn-id: file:///svn/phpbb/trunk@1942 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 01:59:34 +00:00
Paul S. Owen
cc8be01b33 Change ego search back to topic output rather than posts (as was till last update) .. even though it does say view own posts ..
git-svn-id: file:///svn/phpbb/trunk@1941 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 01:46:35 +00:00
Paul S. Owen
e83131d86f Initial version by arttor
git-svn-id: file:///svn/phpbb/trunk@1940 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 01:39:03 +00:00
Paul S. Owen
fdc8973252 Added title support and updated for changes in includes/search ... title slows it down, guess it needs some work if possible ...
git-svn-id: file:///svn/phpbb/trunk@1939 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 01:31:42 +00:00
Paul S. Owen
c8c850f104 Various updates to fix problems with large result sets ... code is quite messy, will clean up
git-svn-id: file:///svn/phpbb/trunk@1938 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 00:48:46 +00:00
Paul S. Owen
bd4f94c0a9 Fix defines for warnings
git-svn-id: file:///svn/phpbb/trunk@1937 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-25 00:39:16 +00:00
the_systech
f332b92ec0 Fix for bug #505883
git-svn-id: file:///svn/phpbb/trunk@1936 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-24 15:32:06 +00:00
the_systech
ddb00d8173 Fixed a bug in filetype detection for gzip in latest mozilla...
git-svn-id: file:///svn/phpbb/trunk@1935 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-24 15:31:18 +00:00
Bart van Bragt
46fe80562a Changed setmodules == 1 to \!empty() to please Paul
git-svn-id: file:///svn/phpbb/trunk@1934 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-24 09:23:25 +00:00
Paul S. Owen
c6c1e67104 Fix global disallow sig still allows old sigs to display bug #501162
git-svn-id: file:///svn/phpbb/trunk@1933 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-24 03:39:00 +00:00
Paul S. Owen
af1b03cf2d Fix lack of starttime in emoticons page causing huge page gen time
git-svn-id: file:///svn/phpbb/trunk@1932 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-24 03:26:08 +00:00
Paul S. Owen
6feb891cee This version has an added advantage ... it works ... I think.
git-svn-id: file:///svn/phpbb/trunk@1931 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-24 03:19:36 +00:00
Paul S. Owen
c73e80888a Fix admin disable avatar yet still shows bug #506070
git-svn-id: file:///svn/phpbb/trunk@1930 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-24 03:05:32 +00:00
Paul S. Owen
12863932df Fix HTML span color bug #507545
git-svn-id: file:///svn/phpbb/trunk@1929 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-24 02:59:21 +00:00
Paul S. Owen
8a983e23a0 Change setmodules == 1 to !empty($setmodules), stop it complaining if it isn't set ... can someone do this for userauth, my copy is modified at present
git-svn-id: file:///svn/phpbb/trunk@1928 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-24 02:51:00 +00:00
Paul S. Owen
9dd6a1f3f4 Fix smiley default bug #507777 (thanks hsim) plus fixes for other default (on register) settings.
git-svn-id: file:///svn/phpbb/trunk@1927 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-24 02:46:15 +00:00
Bart van Bragt
3b6b0e6a16 Fixed XHTML compliance for <style> tag (#507689)
git-svn-id: file:///svn/phpbb/trunk@1926 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-23 20:47:56 +00:00
Paul S. Owen
040357009b Updates
git-svn-id: file:///svn/phpbb/trunk@1925 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-23 19:09:34 +00:00
Paul S. Owen
84f8c74571 Fixes for TH_CLASS 2 & 3 by Tom
git-svn-id: file:///svn/phpbb/trunk@1924 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-23 19:08:01 +00:00
Paul S. Owen
a016ef8147 Initial version by Dalixam
git-svn-id: file:///svn/phpbb/trunk@1923 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-23 19:05:15 +00:00
Paul S. Owen
c0131968e1 Initial versions
git-svn-id: file:///svn/phpbb/trunk@1922 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-23 18:12:53 +00:00
Bart van Bragt
ad9fc724fb Fixed renaming of users (also rename usergroup) #506983
git-svn-id: file:///svn/phpbb/trunk@1921 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-22 19:47:48 +00:00
Bart van Bragt
e95e663f4a Fixed bug #505904, can't change usernames with ' in admin_users.php
git-svn-id: file:///svn/phpbb/trunk@1920 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-22 18:42:05 +00:00
Bart van Bragt
417bedb382 Fixed bug #505838, debug messages didn't show SQL errors
git-svn-id: file:///svn/phpbb/trunk@1919 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-22 18:13:59 +00:00
Paul S. Owen
3c06a81ced Various updates
git-svn-id: file:///svn/phpbb/trunk@1918 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-22 13:25:16 +00:00
Bart van Bragt
cec4a7b22f Fixed typos #506665
git-svn-id: file:///svn/phpbb/trunk@1917 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-22 08:31:47 +00:00
Bart van Bragt
373944b169 Removed some sanity checks that caused unexpected behaviour
git-svn-id: file:///svn/phpbb/trunk@1916 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-21 15:15:10 +00:00
Bart van Bragt
615ff74d5b Fixed rounding errors in postcounts (view profile)
git-svn-id: file:///svn/phpbb/trunk@1915 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-21 14:37:53 +00:00
Bart van Bragt
1469c7a131 Delete auth entries for forum upon deletion (#505713)
git-svn-id: file:///svn/phpbb/trunk@1914 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-19 20:35:19 +00:00
Bart van Bragt
7a7f46a54d Minor alteration
git-svn-id: file:///svn/phpbb/trunk@1913 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-19 16:11:22 +00:00
Bart van Bragt
9cc9490dfb Fixed jumping of new cat when moving up (#505610)
git-svn-id: file:///svn/phpbb/trunk@1912 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-19 01:29:42 +00:00
Bart van Bragt
e753ec60fc Fixed 'blabla %s' problem in ALT attr (#504666)
git-svn-id: file:///svn/phpbb/trunk@1911 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-18 23:27:32 +00:00
Bart van Bragt
5e4bb146a3 Delete sessions of users that are made inactive
git-svn-id: file:///svn/phpbb/trunk@1910 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-18 15:50:58 +00:00
Paul S. Owen
324b8041a9 Initial Arabic translation by Waheed
git-svn-id: file:///svn/phpbb/trunk@1909 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-17 19:15:43 +00:00
Paul S. Owen
2a839ed026 Add content direction
git-svn-id: file:///svn/phpbb/trunk@1908 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-17 19:14:58 +00:00
Paul S. Owen
8e63d669d8 Initial arabic images by Waheed
git-svn-id: file:///svn/phpbb/trunk@1907 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-17 19:14:17 +00:00
Paul S. Owen
9fad81c6ee Correct translation
git-svn-id: file:///svn/phpbb/trunk@1906 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-17 14:47:06 +00:00
Bart van Bragt
d9b58d4d8e Setting locale to nl_NL
git-svn-id: file:///svn/phpbb/trunk@1905 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-17 10:54:17 +00:00
Bart van Bragt
bf36d8a147 Fixed problem with advanced mode switching (#504769)
git-svn-id: file:///svn/phpbb/trunk@1904 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-17 10:48:29 +00:00
Paul S. Owen
5feeb9e0e1 Various updates
git-svn-id: file:///svn/phpbb/trunk@1903 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-17 01:23:57 +00:00
Paul S. Owen
2e2ce0fd6a Misc updates ...
git-svn-id: file:///svn/phpbb/trunk@1902 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 22:20:25 +00:00
Paul S. Owen
f5e9c037e5 Updates by Boby
git-svn-id: file:///svn/phpbb/trunk@1901 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 21:36:21 +00:00
Paul S. Owen
5ed23938f7 Update by borz_off
git-svn-id: file:///svn/phpbb/trunk@1900 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 21:35:36 +00:00
Paul S. Owen
a043d06a03 Updated
git-svn-id: file:///svn/phpbb/trunk@1899 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 21:34:13 +00:00
Paul S. Owen
ccd7e28213 Fix bug #504604
git-svn-id: file:///svn/phpbb/trunk@1898 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 21:29:06 +00:00
Paul S. Owen
671200fa93 Gave the row number thing a more useful name ...
git-svn-id: file:///svn/phpbb/trunk@1897 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 19:18:45 +00:00
Bart van Bragt
abb97b4eb8 Added row numbers to memberslist (to check out how you're ranked with # of posts ;)
git-svn-id: file:///svn/phpbb/trunk@1896 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 19:08:10 +00:00
Paul S. Owen
5d70014c83 Fix dopey errors
git-svn-id: file:///svn/phpbb/trunk@1895 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 18:26:19 +00:00
Bart van Bragt
8c3587862b Fixed 404 for spacer.gif ( #503713 )
git-svn-id: file:///svn/phpbb/trunk@1894 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 18:10:43 +00:00
Paul S. Owen
d9dd3f4edf Add TRANSLATION_INFO to footer
git-svn-id: file:///svn/phpbb/trunk@1893 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 17:59:31 +00:00
Paul S. Owen
e9266c87a0 Add TRANSLATION_INFO to footers
git-svn-id: file:///svn/phpbb/trunk@1892 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 17:59:11 +00:00
Paul S. Owen
0e72277844 Add TRANSLATION_INFO to admin footer
git-svn-id: file:///svn/phpbb/trunk@1891 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 17:57:20 +00:00
Paul S. Owen
6a4508cceb Add TRANSLATION_INFO for _footer
git-svn-id: file:///svn/phpbb/trunk@1890 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 17:56:46 +00:00
Paul S. Owen
9d27f01b42 Fix bug #504383
git-svn-id: file:///svn/phpbb/trunk@1889 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 17:40:02 +00:00
Paul S. Owen
040a509872 Updates
git-svn-id: file:///svn/phpbb/trunk@1888 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 17:21:40 +00:00
Bart van Bragt
22099521dd Removed fixed language string
git-svn-id: file:///svn/phpbb/trunk@1887 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 17:15:02 +00:00
Bart van Bragt
f27be1fac6 Added 'auth_' for some german lang entries
git-svn-id: file:///svn/phpbb/trunk@1886 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 17:06:01 +00:00
Paul S. Owen
2582341662 Initial version by Pincel with some mods by psoTFX
git-svn-id: file:///svn/phpbb/trunk@1885 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-16 17:05:08 +00:00
Bart van Bragt
b0e30f37bc Adding Italian Images
git-svn-id: file:///svn/phpbb/trunk@1884 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-15 18:33:35 +00:00
Paul S. Owen
7fe5a1f019 Initial polish subSilver images
git-svn-id: file:///svn/phpbb/trunk@1883 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-15 18:06:59 +00:00
Paul S. Owen
92fff13d5c YIM icons (font match) for Hungarian and Finnish
git-svn-id: file:///svn/phpbb/trunk@1882 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-15 16:51:05 +00:00
Paul S. Owen
6e1df48ffa Hungarian subSilver images
git-svn-id: file:///svn/phpbb/trunk@1881 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-15 16:37:33 +00:00
Paul S. Owen
4b88072003 Finnish button images for subSilver
git-svn-id: file:///svn/phpbb/trunk@1880 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-15 15:42:46 +00:00
Bart van Bragt
06b48369ef Bringing Dutch up to date with English
git-svn-id: file:///svn/phpbb/trunk@1879 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-15 11:58:54 +00:00
Paul S. Owen
be25ebddaf Updates to general layout
git-svn-id: file:///svn/phpbb/trunk@1878 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-15 11:55:06 +00:00
Paul S. Owen
f0f5c4f445 Initial version by mauzi
git-svn-id: file:///svn/phpbb/trunk@1877 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-15 11:50:59 +00:00
Paul S. Owen
a95ee894af Moan moan moan ... here you are then, avatar gallery selection on leaving gallery :)
git-svn-id: file:///svn/phpbb/trunk@1876 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-14 23:34:54 +00:00
Bart van Bragt
24ab3618a6 Changed pagination of multi-page topics
git-svn-id: file:///svn/phpbb/trunk@1875 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-14 23:24:53 +00:00
Paul S. Owen
0f2c2c2210 Add index pages
git-svn-id: file:///svn/phpbb/trunk@1874 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-14 22:57:06 +00:00
Paul S. Owen
63592f9759 Initial version by teosno
git-svn-id: file:///svn/phpbb/trunk@1873 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-14 22:44:25 +00:00
Bart van Bragt
68b57431ba Fixed problem with msg v.s. msgs when deleting (#503157)
git-svn-id: file:///svn/phpbb/trunk@1872 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-14 20:16:09 +00:00
Bart van Bragt
55f4b05b77 Fixed link to current forum (#502999)
git-svn-id: file:///svn/phpbb/trunk@1871 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-14 19:38:51 +00:00
Bart van Bragt
5f99a41586 Sort of a fix for the user->admin bug (#502631) and prevent editing not-existing users
git-svn-id: file:///svn/phpbb/trunk@1870 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-14 18:40:25 +00:00
Paul S. Owen
19add55491 Title search options
git-svn-id: file:///svn/phpbb/trunk@1869 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-14 14:17:35 +00:00
Paul S. Owen
09f4ad7012 Simplified routines somewhat and introduced title searching
git-svn-id: file:///svn/phpbb/trunk@1868 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-14 14:17:18 +00:00
Paul S. Owen
8e642d5d60 Finished implementation of title searching ... this will please at least one person :)
git-svn-id: file:///svn/phpbb/trunk@1867 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-14 14:16:54 +00:00
Paul S. Owen
d8faa64e3e Changes to match lang_english + new admin + copyright updates
git-svn-id: file:///svn/phpbb/trunk@1866 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 21:47:16 +00:00
Paul S. Owen
f0b1b065c3 Updates related to changes in lang_english + other alterations
git-svn-id: file:///svn/phpbb/trunk@1865 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 21:44:23 +00:00
Paul S. Owen
8d4bab3923 Updates for lang_english changes + other updates
git-svn-id: file:///svn/phpbb/trunk@1864 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 19:04:27 +00:00
Bart van Bragt
92ae056398 Fixed transparency for Dutch edit button
git-svn-id: file:///svn/phpbb/trunk@1863 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 16:47:25 +00:00
Paul S. Owen
28646a39de Updated for whos online colour coding change
git-svn-id: file:///svn/phpbb/trunk@1862 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 15:57:21 +00:00
Paul S. Owen
6e3e37f729 Changes to introduce [ and ] around colour coding ... moved from language files
git-svn-id: file:///svn/phpbb/trunk@1861 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 15:42:44 +00:00
Paul S. Owen
4db9819127 Minor update to remove [ and ] from around the online_color entries ...
git-svn-id: file:///svn/phpbb/trunk@1860 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 15:39:36 +00:00
Paul S. Owen
009b1b4a50 yoik, that could've been an interesting security hole ...
git-svn-id: file:///svn/phpbb/trunk@1859 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 15:35:59 +00:00
Paul S. Owen
2c3062fb75 Output admin/mod highlighting text
git-svn-id: file:///svn/phpbb/trunk@1858 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 15:30:41 +00:00
Paul S. Owen
31387aa528 Add MOD user_level ... not terribly 'clean' with the permissions setup but allows simple implementation of 'global' mod needs
git-svn-id: file:///svn/phpbb/trunk@1857 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 15:30:03 +00:00
Paul S. Owen
ad6df09450 Highlight admin/mods update to whos online
git-svn-id: file:///svn/phpbb/trunk@1856 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 15:29:14 +00:00
Paul S. Owen
abb8b91e55 Four new lines; 136, 137, 725, 726 ... translators watching this please update your lang_main's, thanks
git-svn-id: file:///svn/phpbb/trunk@1855 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-13 15:23:55 +00:00
Bart van Bragt
3c93da7c36 Fixed [size] BBcode (#502806)
git-svn-id: file:///svn/phpbb/trunk@1854 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-12 22:58:22 +00:00
Bart van Bragt
d0e2efa5b8 Enabled ALT-S for sending message on posting pages
git-svn-id: file:///svn/phpbb/trunk@1853 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-12 19:30:29 +00:00
Paul S. Owen
563168a59c Changes related to tracking updates
git-svn-id: file:///svn/phpbb/trunk@1852 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-12 17:03:11 +00:00
Paul S. Owen
64dc7345b1 Changes to topic/forum tracking ... tested for several days on test board and all seems fine, give feedback in forums
git-svn-id: file:///svn/phpbb/trunk@1851 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-12 17:00:32 +00:00
Paul S. Owen
900891d504 Fixes problem of guest users only show as viewing index or other 'system' pages
git-svn-id: file:///svn/phpbb/trunk@1850 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-12 13:51:42 +00:00
Paul S. Owen
392767e5fd Minor update to flag admins
git-svn-id: file:///svn/phpbb/trunk@1849 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-12 01:03:01 +00:00
Bart van Bragt
2e42b281b2 Damn transparancy
git-svn-id: file:///svn/phpbb/trunk@1848 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-11 20:42:26 +00:00
Bart van Bragt
497e74eaaa Added Dutch icons
git-svn-id: file:///svn/phpbb/trunk@1847 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-11 20:32:13 +00:00
the_systech
38e1ea8db7 Fix for various postgres bugs
git-svn-id: file:///svn/phpbb/trunk@1846 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-11 17:01:31 +00:00
Bart van Bragt
0ff22ee594 Dropped 'GROUP BY' from whosonline query for compatibility with non-MySQL DB's
git-svn-id: file:///svn/phpbb/trunk@1845 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-11 14:36:34 +00:00
Bart van Bragt
5792aeeb85 Added index on topic_type (topics table)
git-svn-id: file:///svn/phpbb/trunk@1844 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-11 13:15:49 +00:00
Bart van Bragt
b3c8f779d6 Cleaned up the viewonline code, wasnt giving correct output if you where admin
git-svn-id: file:///svn/phpbb/trunk@1843 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-11 12:38:34 +00:00
Bart van Bragt
5461b1bd62 Fixed default forum order (seems to be related to #498825)
git-svn-id: file:///svn/phpbb/trunk@1842 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-11 11:14:15 +00:00
Bart van Bragt
84939c8342 Cosmetic error in language_select() (related to #499989)
git-svn-id: file:///svn/phpbb/trunk@1841 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-11 10:53:40 +00:00
Bart van Bragt
4c3a11f577 Fixed problem with SHOW TABLE STATUS (bad MySQL config) #501745
git-svn-id: file:///svn/phpbb/trunk@1840 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-11 10:26:52 +00:00
Bart van Bragt
d728809a4c Fixed sizes HTML (bug #502099)
git-svn-id: file:///svn/phpbb/trunk@1839 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-11 10:16:49 +00:00
Paul S. Owen
585acdc64c Changed header back to HTML 4.01 Transitional to 'temporarily' fix bug #502099
git-svn-id: file:///svn/phpbb/trunk@1838 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-11 01:17:27 +00:00
Bart van Bragt
355327426a Fixed display of feedback message when deleting topic
git-svn-id: file:///svn/phpbb/trunk@1837 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-10 23:27:10 +00:00
Bart van Bragt
c8d71fc47e Save some (Screen) space on index.php
git-svn-id: file:///svn/phpbb/trunk@1836 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-10 18:08:48 +00:00
Paul S. Owen
ce5b2a114f Fix bug #500322
git-svn-id: file:///svn/phpbb/trunk@1835 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-10 14:08:59 +00:00
Paul S. Owen
58ae7ec6b2 Updates for Mozilla by Tom
git-svn-id: file:///svn/phpbb/trunk@1834 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-10 12:33:53 +00:00
Paul S. Owen
f4a2d2c94d Change prune_enable default to 0 as per bug #498800
git-svn-id: file:///svn/phpbb/trunk@1833 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-10 02:15:52 +00:00
Paul S. Owen
b2695749c9 Fix 'bug' #499048
git-svn-id: file:///svn/phpbb/trunk@1832 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-10 02:07:21 +00:00
Paul S. Owen
ee96f83982 Further changes to board emails sent in user language
git-svn-id: file:///svn/phpbb/trunk@1831 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-10 00:15:13 +00:00
Paul S. Owen
e5f65d6730 Fix bug #501353
git-svn-id: file:///svn/phpbb/trunk@1830 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-09 23:35:41 +00:00
Paul S. Owen
52784a3c60 Delete soft-deleted users before updating user table ... Bart, please check
git-svn-id: file:///svn/phpbb/trunk@1829 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-09 23:13:51 +00:00
Paul S. Owen
df86b7322d Minor updates to colours - Tom
git-svn-id: file:///svn/phpbb/trunk@1828 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-09 18:47:04 +00:00
Paul S. Owen
ae2a728761 Changes to copyright statements
git-svn-id: file:///svn/phpbb/trunk@1827 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-09 16:07:15 +00:00
Paul S. Owen
aff7beb540 Various updates including registration agreement
git-svn-id: file:///svn/phpbb/trunk@1826 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-09 14:19:29 +00:00
Paul S. Owen
9ad35a142d Initial version by Pincel
git-svn-id: file:///svn/phpbb/trunk@1825 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-09 12:16:50 +00:00
the_systech
b05dc90109 @!!$@## gotta stop testing on one machine and commiting changes on another... I mistyped one word, and broke quotes completely. :( Somebody please get me a beer
git-svn-id: file:///svn/phpbb/trunk@1824 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-09 01:39:23 +00:00
Paul S. Owen
c8cdd4846e Initial versions by Rici
git-svn-id: file:///svn/phpbb/trunk@1823 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 23:26:23 +00:00
the_systech
3e0104a714 trimmed down the quote bug fix in second pass to one preg_replace rather than two, by changing the pattern up a bit...
git-svn-id: file:///svn/phpbb/trunk@1822 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 19:00:28 +00:00
Paul S. Owen
e11937ae9c Fix bug #500525
git-svn-id: file:///svn/phpbb/trunk@1821 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 18:38:56 +00:00
Paul S. Owen
b0a3e35b65 Fix bug #500901
git-svn-id: file:///svn/phpbb/trunk@1820 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 18:33:13 +00:00
Paul S. Owen
77e3a26aae Minor updates
git-svn-id: file:///svn/phpbb/trunk@1819 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 15:53:44 +00:00
the_systech
004b0c9ad4 Fix for bug #496944 "quotes with usernames containing "]"
git-svn-id: file:///svn/phpbb/trunk@1818 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 15:51:43 +00:00
Paul S. Owen
9589e01f43 Wrong name
git-svn-id: file:///svn/phpbb/trunk@1817 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 14:40:25 +00:00
Paul S. Owen
5d5c8fc967 Original had wrong name
git-svn-id: file:///svn/phpbb/trunk@1816 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 14:39:59 +00:00
Paul S. Owen
cce3650bff Initial versions by Rici et al
git-svn-id: file:///svn/phpbb/trunk@1815 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 14:35:01 +00:00
Paul S. Owen
f78ff33d15 Various and significant updates by Tom
git-svn-id: file:///svn/phpbb/trunk@1814 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 14:32:24 +00:00
Paul S. Owen
30be366af3 Initial version by borz_off et al
git-svn-id: file:///svn/phpbb/trunk@1813 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 14:31:32 +00:00
Paul S. Owen
c773d7e2ca Initial versions by Rici
git-svn-id: file:///svn/phpbb/trunk@1812 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 13:01:23 +00:00
Paul S. Owen
a8b229b7c7 Various updates by Bullit
git-svn-id: file:///svn/phpbb/trunk@1811 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-08 13:00:33 +00:00
Paul S. Owen
af4587e51d Added / to dirname . file for is_file/links for language selector ...
git-svn-id: file:///svn/phpbb/trunk@1810 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-07 19:01:08 +00:00
Paul S. Owen
eb86e9ba68 Updates to hopefully fix bug #500212
git-svn-id: file:///svn/phpbb/trunk@1809 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-07 18:50:30 +00:00
Paul S. Owen
f82c010973 Various updates by Boby
git-svn-id: file:///svn/phpbb/trunk@1808 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-06 01:07:47 +00:00
Paul S. Owen
4510e61320 Minor changes
git-svn-id: file:///svn/phpbb/trunk@1807 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-06 01:06:42 +00:00
Paul S. Owen
d82c63ce16 Fix extra &nbsp; spacing issue with all but, yep you guessed it, NS 4.x
git-svn-id: file:///svn/phpbb/trunk@1806 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-06 00:51:47 +00:00
Paul S. Owen
a1235e15ea Same as viewtopic
git-svn-id: file:///svn/phpbb/trunk@1805 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-05 23:58:40 +00:00
Paul S. Owen
8fe7880828 This works under NS4.73, IE6 (and I assume at least 5 and 5.5, probably 4.0 too), Mozilla (0.9.6), Opera 6 and will output a simple image for other browsers
git-svn-id: file:///svn/phpbb/trunk@1804 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-05 23:51:49 +00:00
Bart van Bragt
1efd89811d Minor typo
git-svn-id: file:///svn/phpbb/trunk@1803 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-04 19:34:42 +00:00
Paul S. Owen
e39a660e8d Paul is now starting to get very annoyed with this overlayed ICQ button :D
git-svn-id: file:///svn/phpbb/trunk@1802 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-04 18:08:56 +00:00
Paul S. Owen
3e5778094c damn it damn it damn it ... damn it again
git-svn-id: file:///svn/phpbb/trunk@1801 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-04 17:52:59 +00:00
Paul S. Owen
cb60413683 Update (compromise) for differing button images sizes ...
git-svn-id: file:///svn/phpbb/trunk@1800 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-04 17:34:22 +00:00
the_systech
58ad760b3c fix for mass mail bug, plus some cleanups for php3 compatibility..CC and BCC headers are now handled properly, and there is no longer any foreach statments used.
git-svn-id: file:///svn/phpbb/trunk@1799 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-04 17:25:54 +00:00
Paul S. Owen
8f973330a5 Initial bulgarian support (missing lang_admin at present) by Boby
git-svn-id: file:///svn/phpbb/trunk@1798 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-04 13:21:38 +00:00
Paul S. Owen
c00e024a05 Initial bulgarian image support by Boby
git-svn-id: file:///svn/phpbb/trunk@1797 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-04 13:21:21 +00:00
Bart van Bragt
789c8b06ae Fixed #499363; reordering of newly created forums
git-svn-id: file:///svn/phpbb/trunk@1796 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-04 12:43:49 +00:00
Paul S. Owen
bcb49feb95 Blank index
git-svn-id: file:///svn/phpbb/trunk@1795 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-04 00:38:46 +00:00
Paul S. Owen
6388197529 Missed msg_newpost_lang ... english and french
git-svn-id: file:///svn/phpbb/trunk@1794 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-04 00:34:54 +00:00
Paul S. Owen
32e338c98d Missed msg_newpost update to use lang where possible
git-svn-id: file:///svn/phpbb/trunk@1793 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-04 00:34:36 +00:00
the_systech
4d25a98d50 Stupid me missunderstood the bug... It should really be fixed now :D
git-svn-id: file:///svn/phpbb/trunk@1792 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 22:53:04 +00:00
dougk_ff7
d0c05ab605 Three bugs fixed here... Bug ID 494154, which was a bug in the group moderation page, where email links would not redirect to the login page. Bug ID 498927 was a problem between the time/date format. Bug ID 498961 was a slight cosmetic error in the admin panel. That's all for now!
git-svn-id: file:///svn/phpbb/trunk@1791 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 22:44:28 +00:00
the_systech
39423097c8 fix for bug 499131
git-svn-id: file:///svn/phpbb/trunk@1790 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 22:35:54 +00:00
the_systech
b5fbcbbdaa Paul didn't quite get ALL changed to -1 everywhere it was necessary.. Fixed now.
git-svn-id: file:///svn/phpbb/trunk@1789 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 22:32:37 +00:00
Bart van Bragt
89a33df602 Some corrections by Erik Winnelinckx
git-svn-id: file:///svn/phpbb/trunk@1788 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 18:18:02 +00:00
Bart van Bragt
71544cf4ac Translation of BBcode by Erik Winnelinckx
git-svn-id: file:///svn/phpbb/trunk@1787 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 18:08:33 +00:00
Bart van Bragt
6b990ecc2b Numerous addidions/corrections by Erik Winnelinckx
git-svn-id: file:///svn/phpbb/trunk@1786 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 18:06:47 +00:00
Paul S. Owen
7ae86b1b07 Removed windows carriage returns and newline at end of file ...
git-svn-id: file:///svn/phpbb/trunk@1785 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 16:04:18 +00:00
the_systech
1c40ad5736 Ok that was stupid.. Better version of a fix for 497077... Somebody hand me a beer.
git-svn-id: file:///svn/phpbb/trunk@1784 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 15:12:10 +00:00
the_systech
a4934d0e25 Updated validate_username function for use with mysql4 Bug #497077
git-svn-id: file:///svn/phpbb/trunk@1783 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 15:09:22 +00:00
Paul S. Owen
9cba658cef Minor updates
git-svn-id: file:///svn/phpbb/trunk@1782 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 14:59:39 +00:00
Bart van Bragt
f02324d2cb Moved all search functions to includes/search.php Paul; please review
git-svn-id: file:///svn/phpbb/trunk@1781 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 11:06:22 +00:00
Bart van Bragt
6c8b10c87a Keeping Dutch translation in sync with English
git-svn-id: file:///svn/phpbb/trunk@1780 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 10:20:45 +00:00
dougk_ff7
f18be0f135 Fixes bug 498620, among others. A problem with a rank_max value still hanging around in SQL statements. It was still created by all the schema files, so I changed it there, too. If I end up creating more problems, I'll revert them to the old values... Actually, I think I'd better. Anyway, don't even ask why I updated Oracle. I felt like it, plus we may use it someday...
That's it for now! One bug fix... yeah!


git-svn-id: file:///svn/phpbb/trunk@1779 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-03 02:27:31 +00:00
Bart van Bragt
95fd595371 Allowing old style URLs
git-svn-id: file:///svn/phpbb/trunk@1778 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-02 19:55:45 +00:00
Bart van Bragt
6a065ee54f Forgot topic URL
git-svn-id: file:///svn/phpbb/trunk@1777 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-02 19:09:50 +00:00
Bart van Bragt
c01ee5f71c Translated Agreement (Dutch)
git-svn-id: file:///svn/phpbb/trunk@1776 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-02 19:08:26 +00:00
Paul S. Owen
315f21d087 Clean up display of languages, limit to directory names only
git-svn-id: file:///svn/phpbb/trunk@1775 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-02 15:40:53 +00:00
Paul S. Owen
0c7dec9e54 Fix bug #495335 by removing specialchars and strip_tags from password checks
git-svn-id: file:///svn/phpbb/trunk@1774 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-02 14:39:35 +00:00
Paul S. Owen
dc13be9db1 French image support
git-svn-id: file:///svn/phpbb/trunk@1773 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-02 12:07:32 +00:00
James Atkinson
c1bdb40839 Fixed parse error in install.php
git-svn-id: file:///svn/phpbb/trunk@1772 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-02 07:19:23 +00:00
Paul S. Owen
f9589e5889 Removed failure on session table type change to HEAP, no biggie if it doesn't work
git-svn-id: file:///svn/phpbb/trunk@1771 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 22:52:18 +00:00
Paul S. Owen
16af530e96 Added alt and title tags to rank image as per viewtopic
git-svn-id: file:///svn/phpbb/trunk@1770 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 21:39:53 +00:00
Paul S. Owen
e98a323f63 Various updates
git-svn-id: file:///svn/phpbb/trunk@1769 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 20:56:58 +00:00
Paul S. Owen
46babee09d Possible fix for bug #496857
git-svn-id: file:///svn/phpbb/trunk@1768 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 18:59:50 +00:00
Paul S. Owen
d1fdf1e8c7 Added alt and title tags to rank image output
git-svn-id: file:///svn/phpbb/trunk@1767 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 17:17:40 +00:00
Paul S. Owen
bbccb4b745 Fix potential issue with themes table ... I knew Bart had a reason for dropping tables at the beginning :D
git-svn-id: file:///svn/phpbb/trunk@1766 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 15:46:59 +00:00
Paul S. Owen
26d4c2d187 Fix bug #498301
git-svn-id: file:///svn/phpbb/trunk@1765 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 15:26:28 +00:00
Paul S. Owen
9a3e0cd3c6 Fix for bug #497093 + other updates
git-svn-id: file:///svn/phpbb/trunk@1764 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 14:35:33 +00:00
Paul S. Owen
189ff7d6b2 Initial polish translation by SuperSonic
git-svn-id: file:///svn/phpbb/trunk@1763 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 14:11:08 +00:00
Paul S. Owen
c7e0bf8c2d Add charset encoding to header
git-svn-id: file:///svn/phpbb/trunk@1762 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 12:44:04 +00:00
Paul S. Owen
030da451eb Updated in line with bug #494292
git-svn-id: file:///svn/phpbb/trunk@1761 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 02:22:23 +00:00
Paul S. Owen
2a6a44ab3a Initial translation by Helix
git-svn-id: file:///svn/phpbb/trunk@1760 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 01:39:35 +00:00
Paul S. Owen
a54fe5fab6 Missing closing double quote
git-svn-id: file:///svn/phpbb/trunk@1759 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 00:56:11 +00:00
Paul S. Owen
29d9d8b9a7 Fix bug #498198
git-svn-id: file:///svn/phpbb/trunk@1758 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-01-01 00:27:55 +00:00
Paul S. Owen
a329802431 Fix bug #498194
git-svn-id: file:///svn/phpbb/trunk@1757 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-31 22:00:59 +00:00
Paul S. Owen
2f32f10343 Fixed bug #498191
git-svn-id: file:///svn/phpbb/trunk@1756 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-31 21:59:34 +00:00
Paul S. Owen
80b31fa3ab Fixed bug #488816
git-svn-id: file:///svn/phpbb/trunk@1755 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-31 21:57:15 +00:00
Paul S. Owen
d6159b8b56 Missing transaction code ... may have caused some or all of the current PostgreSQL issues ...
git-svn-id: file:///svn/phpbb/trunk@1754 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-31 20:36:46 +00:00
Paul S. Owen
e6ffdbe918 $Id update ...
git-svn-id: file:///svn/phpbb/trunk@1753 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-31 19:05:34 +00:00
Paul S. Owen
90d0bdbef6 Fix various errors and problems, added additional sig check method, added edit post upgrade method, poster_ip changes, config changes, search system integration, etc. etc.
git-svn-id: file:///svn/phpbb/trunk@1752 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-31 19:02:42 +00:00
the_systech
cc29b25fef Fixed type Bug # 498051
git-svn-id: file:///svn/phpbb/trunk@1751 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-31 16:48:37 +00:00
Bart van Bragt
0b304ef6bc Would be nice if it would be recognized as a PHP script
git-svn-id: file:///svn/phpbb/trunk@1750 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-31 12:08:07 +00:00
Bart van Bragt
9d89a3799f Initial checkin. Haven't read the text yet. Needs checking
git-svn-id: file:///svn/phpbb/trunk@1749 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-30 23:02:46 +00:00
Paul S. Owen
0387e20f37 Minor update changing $lang['days'] to $lang['Days']
git-svn-id: file:///svn/phpbb/trunk@1748 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-30 13:56:02 +00:00
Paul S. Owen
0a29a51522 Fix bug #497838
git-svn-id: file:///svn/phpbb/trunk@1747 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-30 13:49:37 +00:00
Paul S. Owen
26f286eb30 Fix bug #496783
git-svn-id: file:///svn/phpbb/trunk@1746 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-30 13:44:55 +00:00
Paul S. Owen
0767564609 Fix for bug #497634
git-svn-id: file:///svn/phpbb/trunk@1745 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-30 13:39:42 +00:00
Paul S. Owen
e18c98a048 Fix bug #497829
git-svn-id: file:///svn/phpbb/trunk@1744 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-30 13:34:56 +00:00
Paul S. Owen
ea751b77f1 Fix bug #497725
git-svn-id: file:///svn/phpbb/trunk@1743 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-30 13:33:34 +00:00
Paul S. Owen
520f3ceb55 Fix bug #497740
git-svn-id: file:///svn/phpbb/trunk@1742 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-30 13:31:34 +00:00
Paul S. Owen
4c98870751 Fix bug #496943
git-svn-id: file:///svn/phpbb/trunk@1741 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-29 16:48:30 +00:00
Paul S. Owen
2409b2ade7 Fix bug #496623
git-svn-id: file:///svn/phpbb/trunk@1740 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-29 16:35:02 +00:00
Paul S. Owen
31833c91e8 Likely fix for bug #497163
git-svn-id: file:///svn/phpbb/trunk@1739 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-29 16:20:25 +00:00
Paul S. Owen
fd146498d1 Update related to smilie generation fix
git-svn-id: file:///svn/phpbb/trunk@1738 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-29 16:19:56 +00:00
Paul S. Owen
27c0fbe848 Fixed bug #496954
git-svn-id: file:///svn/phpbb/trunk@1737 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-29 15:18:34 +00:00
the_systech
a4b2f460ee more fixes for postgres..
git-svn-id: file:///svn/phpbb/trunk@1736 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-28 22:24:09 +00:00
the_systech
2a5ce3cfe1 Fix for Bug # 491400.. Added an additional call to storeCaret for safety after bbcode insert
git-svn-id: file:///svn/phpbb/trunk@1735 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-28 20:27:32 +00:00
the_systech
608c2c5427 Fix for bug #488939.. Closing all tags also closes image tags :D
git-svn-id: file:///svn/phpbb/trunk@1734 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-28 20:11:09 +00:00
the_systech
e3777f10cd Fix for bug #488041.. Forum ordering on Postgres
git-svn-id: file:///svn/phpbb/trunk@1733 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-28 19:55:27 +00:00
the_systech
17b3441412 Fix for #497218
git-svn-id: file:///svn/phpbb/trunk@1732 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-28 16:25:31 +00:00
the_systech
ad56744851 Fix for Bug # 496852
git-svn-id: file:///svn/phpbb/trunk@1731 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-28 16:15:02 +00:00
the_systech
99a5eb1111 Fix for Bug # 496967 .. Someone recently removed the {META} tag from the template. :(
git-svn-id: file:///svn/phpbb/trunk@1730 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-28 16:01:27 +00:00
the_systech
4ec7eb03ee Fix for bug # 496941
git-svn-id: file:///svn/phpbb/trunk@1729 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-28 15:43:33 +00:00
Bart van Bragt
9c3bd1b88d fixed typo
git-svn-id: file:///svn/phpbb/trunk@1728 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-28 04:09:50 +00:00
Bart van Bragt
e121616e4c Added 0 users
git-svn-id: file:///svn/phpbb/trunk@1727 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-27 16:08:40 +00:00
Bart van Bragt
07b0b78e04 Prevent privmsg.php doing a full join between privmsgs and users table if no folder specified
git-svn-id: file:///svn/phpbb/trunk@1726 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-27 15:04:43 +00:00
Paul S. Owen
46ea2a6ddb Unchecked at present, produced by Bullitt
git-svn-id: file:///svn/phpbb/trunk@1725 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-26 23:52:58 +00:00
Bart van Bragt
d507e8b107 Typos
git-svn-id: file:///svn/phpbb/trunk@1724 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-25 11:38:18 +00:00
Paul S. Owen
e7b00e3355 Hopefully this fixes the anonymous user level problem ... Bart take a look-see when you can.
git-svn-id: file:///svn/phpbb/trunk@1723 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-25 01:20:32 +00:00
Paul S. Owen
08fc0f1c63 Forgot about subSilver.css change ...
git-svn-id: file:///svn/phpbb/trunk@1722 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-25 01:15:51 +00:00
Paul S. Owen
88ed4e4503 This time without the echo ... echo ... echo ... echo ... yeah, I know, shut up :)
git-svn-id: file:///svn/phpbb/trunk@1721 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 22:06:36 +00:00
Paul S. Owen
eb07e290c9 Oops, hadn't updated no reg users or no guest users online situation ...
git-svn-id: file:///svn/phpbb/trunk@1720 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 22:05:56 +00:00
Paul S. Owen
8c6527553c Update for topic_moved_id
git-svn-id: file:///svn/phpbb/trunk@1719 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 21:51:19 +00:00
Paul S. Owen
e2bba5b6ff Update for default '0' in topic_moved_id
git-svn-id: file:///svn/phpbb/trunk@1718 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 21:50:47 +00:00
Paul S. Owen
c40c9a14a2 First draft of RC_1 docs
git-svn-id: file:///svn/phpbb/trunk@1717 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 21:42:40 +00:00
Paul S. Owen
52294e6d5a Minor update, big speed increase ... Bart's idea :)
git-svn-id: file:///svn/phpbb/trunk@1716 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 21:41:47 +00:00
Paul S. Owen
0ef1407219 Added anon_user string for groupcp
git-svn-id: file:///svn/phpbb/trunk@1715 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 20:31:35 +00:00
Paul S. Owen
cf6b19d523 Various updates.
git-svn-id: file:///svn/phpbb/trunk@1714 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 20:30:57 +00:00
Paul S. Owen
e3893c4cf9 oops, box limits only came into affect after they've been exceeded, corrected.
git-svn-id: file:///svn/phpbb/trunk@1713 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 18:42:48 +00:00
Paul S. Owen
fd62afbf4c Minor updates + change of function name in group auth to prevent conflict.
git-svn-id: file:///svn/phpbb/trunk@1712 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 18:37:51 +00:00
Paul S. Owen
8738aa7021 Fix action bug
git-svn-id: file:///svn/phpbb/trunk@1711 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 18:33:49 +00:00
Paul S. Owen
0a194b5f11 Doh! This is JavaScript not PHP ... brain is stuck in neutral and clutch has failed ...
git-svn-id: file:///svn/phpbb/trunk@1710 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 18:30:43 +00:00
Paul S. Owen
34c1fd176d Altered way ICQ overlay is done, uses JavaScript ... don't want this generated within the source code.
git-svn-id: file:///svn/phpbb/trunk@1709 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 18:13:05 +00:00
Paul S. Owen
9be9a6602b Altered way ICQ overlay is done, uses JavaScript ... don't want this generated within the source code, fixed website issue in profile
git-svn-id: file:///svn/phpbb/trunk@1708 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 18:11:20 +00:00
Paul S. Owen
f97b9ae517 Update to go along with fix for bug #493673, fix for profile will go in CVS shortly
git-svn-id: file:///svn/phpbb/trunk@1707 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 17:17:52 +00:00
Paul S. Owen
f06c348b00 Fix bug #496117
git-svn-id: file:///svn/phpbb/trunk@1706 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 16:45:56 +00:00
the_systech
3e46e66d93 Fix for #496173... Stupid me was using $config_data instead of $HTTP_POST_VARS array variable.. #*@& register globals...#&#@ bad habits...
git-svn-id: file:///svn/phpbb/trunk@1705 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 16:41:28 +00:00
the_systech
b4254c74b1 Ok go on and shoot me Paul.. :D Apparently I'd forgotten to add an error message for the install when it couldn't ftp the file. Fixed now.
git-svn-id: file:///svn/phpbb/trunk@1704 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 16:37:48 +00:00
Paul S. Owen
68f674c275 Ooops, looks like I forgot to commit this earlier ...
git-svn-id: file:///svn/phpbb/trunk@1703 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 16:35:14 +00:00
Paul S. Owen
a8277d444a Fixed 'bug' #495108, introduced a further string for fields with plural and singular entries, copes with zero conditions.
git-svn-id: file:///svn/phpbb/trunk@1702 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 16:34:27 +00:00
the_systech
8b9857c200 Quick Fix for a typo
git-svn-id: file:///svn/phpbb/trunk@1701 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 16:01:52 +00:00
Paul S. Owen
c4ecbe19cd Fix bug #496014 and fixed a problem with the Inbox size limit not being adhered to.
git-svn-id: file:///svn/phpbb/trunk@1700 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 16:01:49 +00:00
Paul S. Owen
c44e2fbf6b Fix bug #496166, removed sort_order since for top_ten it makes no real sense ... bet we'll get comments about this ...
git-svn-id: file:///svn/phpbb/trunk@1699 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 15:29:26 +00:00
Paul S. Owen
03d3a39d3c Minor change, checks for existence of required avatar directories when deciding whether to enable various avatar options.
git-svn-id: file:///svn/phpbb/trunk@1698 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 14:46:35 +00:00
Paul S. Owen
26d26148d9 Removed 'global' str_replace for \'
git-svn-id: file:///svn/phpbb/trunk@1697 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 14:45:47 +00:00
Paul S. Owen
2fccbeb771 Fixed bug #496107 and changed avatar support to enable admin to use avatars irrespective of board settings
git-svn-id: file:///svn/phpbb/trunk@1696 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 14:43:53 +00:00
Bart van Bragt
d4039c39a6 Fixed problem with conversion of privmsgs and permissions of forums
git-svn-id: file:///svn/phpbb/trunk@1695 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 14:25:17 +00:00
Paul S. Owen
ccb3b51048 Introduced code for cleaning up search_wordmatch and search_wordlist tables upon prune.
git-svn-id: file:///svn/phpbb/trunk@1694 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 14:04:00 +00:00
Paul S. Owen
c2f738215e Minor updates, changed ALL to -1 other small issues.
git-svn-id: file:///svn/phpbb/trunk@1693 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:54:34 +00:00
Bart van Bragt
f971f59929 Initial checkin of (unchecked) Dutch admin translation
git-svn-id: file:///svn/phpbb/trunk@1692 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:51:20 +00:00
Bart van Bragt
44c6cbce85 Added Dutch translations of the email templates
git-svn-id: file:///svn/phpbb/trunk@1691 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:50:03 +00:00
Bart van Bragt
6c1309131d Reverted translation of english to dutch (hopfully)
git-svn-id: file:///svn/phpbb/trunk@1690 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:47:20 +00:00
Paul S. Owen
0b94b93242 For Christmas I'd like a \', no damn it, that's not what I'd like ...
git-svn-id: file:///svn/phpbb/trunk@1689 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:35:09 +00:00
Paul S. Owen
50d58b947b Guess what? ... yep, it's those \' again
git-svn-id: file:///svn/phpbb/trunk@1688 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:30:34 +00:00
Paul S. Owen
a4f664e581 More \' changes ... will they ever end?
git-svn-id: file:///svn/phpbb/trunk@1687 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:26:00 +00:00
Paul S. Owen
1e03099e36 Minor update, removed '' from a SQL expression that didn't need 'em
git-svn-id: file:///svn/phpbb/trunk@1686 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:20:25 +00:00
Paul S. Owen
459c76308c More \' doings
git-svn-id: file:///svn/phpbb/trunk@1685 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:17:45 +00:00
Paul S. Owen
42aac3ed3a Fix bug #495333
git-svn-id: file:///svn/phpbb/trunk@1684 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:12:29 +00:00
Paul S. Owen
834f310182 Since META isn't being used in the admin section, removing.
git-svn-id: file:///svn/phpbb/trunk@1683 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:11:52 +00:00
Bart van Bragt
69c77f9b68 Translated email templates to Dutch
git-svn-id: file:///svn/phpbb/trunk@1682 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:09:36 +00:00
Paul S. Owen
631fb71118 Updates for the \' issue but fix for bug #496110 in admin_forums (changed names to utilise constants)
git-svn-id: file:///svn/phpbb/trunk@1681 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:05:00 +00:00
Paul S. Owen
7f8ba1c339 Updated to match change in category name when used in forms
git-svn-id: file:///svn/phpbb/trunk@1680 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:04:16 +00:00
Paul S. Owen
cb10b8c69b Updated for new category name constant
git-svn-id: file:///svn/phpbb/trunk@1679 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:03:44 +00:00
Paul S. Owen
d726c82b30 Added URL constant for categories
git-svn-id: file:///svn/phpbb/trunk@1678 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-24 13:03:27 +00:00
Paul S. Owen
3bc9842c7a Added DB_Username and DB_Password to install section
git-svn-id: file:///svn/phpbb/trunk@1677 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-22 16:23:16 +00:00
Paul S. Owen
f86535cc08 Language updates
git-svn-id: file:///svn/phpbb/trunk@1676 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-22 16:22:45 +00:00
Paul S. Owen
93da8d60f0 Add Back_to_top lang string to template vars
git-svn-id: file:///svn/phpbb/trunk@1675 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-22 15:52:11 +00:00
Paul S. Owen
c100fd270e Remove hard coded language string
git-svn-id: file:///svn/phpbb/trunk@1674 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-22 15:51:48 +00:00
Bart van Bragt
ca8ebea07e Recycle signature_bbcode_uid
git-svn-id: file:///svn/phpbb/trunk@1673 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-22 12:54:59 +00:00
Bart van Bragt
04d4c27785 Sigh
git-svn-id: file:///svn/phpbb/trunk@1672 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-22 11:18:08 +00:00
Bart van Bragt
ede9be3551 Fixed small problem with translation of imgs
git-svn-id: file:///svn/phpbb/trunk@1671 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-22 11:17:09 +00:00
Paul S. Owen
d4d4ddda85 Yep, you guessed it another \' ...
git-svn-id: file:///svn/phpbb/trunk@1670 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 22:59:21 +00:00
Paul S. Owen
46a22529a7 Removed non-lang images
git-svn-id: file:///svn/phpbb/trunk@1669 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 22:41:30 +00:00
Paul S. Owen
5bd3fb4df7 Another \' update ...
git-svn-id: file:///svn/phpbb/trunk@1668 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 22:39:23 +00:00
Paul S. Owen
e06886df8f Fix bug #490164
git-svn-id: file:///svn/phpbb/trunk@1667 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 20:39:10 +00:00
Paul S. Owen
02fa50742b More \' updates + fix bug #490842 by changing " into &quot; when jumping to gallery
git-svn-id: file:///svn/phpbb/trunk@1666 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 18:42:31 +00:00
Paul S. Owen
3598e51165 Fix bug #495736
git-svn-id: file:///svn/phpbb/trunk@1665 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 16:58:47 +00:00
Paul S. Owen
a5a2735b88 Yep, more \' stuff
git-svn-id: file:///svn/phpbb/trunk@1664 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 16:02:15 +00:00
Paul S. Owen
cd9b1562f1 More \' updates
git-svn-id: file:///svn/phpbb/trunk@1663 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 16:00:41 +00:00
Paul S. Owen
8064fdf558 More \' to '' changes
git-svn-id: file:///svn/phpbb/trunk@1662 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 15:52:14 +00:00
Paul S. Owen
6c2e3922b1 Hopefully this addresses the \' and '' problems with MSSQL, etc. ... I'd like opinions on the security of doing this.
git-svn-id: file:///svn/phpbb/trunk@1661 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 15:51:31 +00:00
Paul S. Owen
f5afff4c55 Fixed bug #495815
git-svn-id: file:///svn/phpbb/trunk@1660 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 15:10:21 +00:00
Paul S. Owen
5c5377a7ac Updated for distribution
git-svn-id: file:///svn/phpbb/trunk@1659 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 12:47:27 +00:00
Paul S. Owen
6913f9696a Various updates by Tom
git-svn-id: file:///svn/phpbb/trunk@1658 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 12:46:47 +00:00
Paul S. Owen
f93d8413b6 Lang update
git-svn-id: file:///svn/phpbb/trunk@1657 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 12:46:25 +00:00
Paul S. Owen
26f740749c More language updates
git-svn-id: file:///svn/phpbb/trunk@1656 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 12:43:33 +00:00
Paul S. Owen
d5cd6fbefe Add language extension
git-svn-id: file:///svn/phpbb/trunk@1655 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 12:42:27 +00:00
Paul S. Owen
44d7feaffc Admin send/view emails + fix avatar strangeness ... hopefully
git-svn-id: file:///svn/phpbb/trunk@1654 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 02:22:07 +00:00
Paul S. Owen
88a58755da Moderator+ viewing of email addresses
git-svn-id: file:///svn/phpbb/trunk@1653 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 02:08:56 +00:00
Paul S. Owen
2c7c978330 Various updates + admin viewing of email addresses
git-svn-id: file:///svn/phpbb/trunk@1652 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 02:06:41 +00:00
Paul S. Owen
90c4d7adb8 Fix bug #495579
git-svn-id: file:///svn/phpbb/trunk@1651 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 01:43:00 +00:00
Paul S. Owen
df2f8692f0 Minor changes to whosonline stuff
git-svn-id: file:///svn/phpbb/trunk@1650 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-21 01:29:09 +00:00
Paul S. Owen
bd5f308f6b Fix sig bug #495562 and prepare club for next person who says "fix it quick" ... :)
git-svn-id: file:///svn/phpbb/trunk@1649 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-20 22:02:38 +00:00
the_systech
09d2de2b38 fix for re-including functions in upgrade-install integration..
git-svn-id: file:///svn/phpbb/trunk@1648 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-20 19:24:30 +00:00
Paul S. Owen
ca9cf471bf Separate sig completely from message
git-svn-id: file:///svn/phpbb/trunk@1647 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-20 19:00:22 +00:00
Bart van Bragt
809f65ee8e Fixed bug #493598 and added SPAN to signature
git-svn-id: file:///svn/phpbb/trunk@1646 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-20 16:58:39 +00:00
Bart van Bragt
bd80fef17f Extremely minor change; type
git-svn-id: file:///svn/phpbb/trunk@1645 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-20 15:24:15 +00:00
Paul S. Owen
ef2a6fa2b1 Fix bug #495250 and various other issues
git-svn-id: file:///svn/phpbb/trunk@1644 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-20 01:25:00 +00:00
Paul S. Owen
f9b851f45d maxlength of username and subject fields changed to match schema + private messaging boxes added
git-svn-id: file:///svn/phpbb/trunk@1643 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-20 00:47:16 +00:00
Paul S. Owen
cd2135b727 Minor updates to post_username, post_subject and topic_title field lengths
git-svn-id: file:///svn/phpbb/trunk@1642 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-20 00:45:41 +00:00
Paul S. Owen
55b0c6eabe Fix bug #495130 and remove unnecessary free_result
git-svn-id: file:///svn/phpbb/trunk@1641 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-20 00:39:22 +00:00
Paul S. Owen
b453e0981e Various updates
git-svn-id: file:///svn/phpbb/trunk@1640 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-20 00:12:42 +00:00
Paul S. Owen
0465e08795 Topic last post id was set as non null ...
git-svn-id: file:///svn/phpbb/trunk@1639 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-19 23:12:22 +00:00
Paul S. Owen
6be5cb979e Damn commas, someone should be shot
git-svn-id: file:///svn/phpbb/trunk@1638 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-19 23:03:58 +00:00
Paul S. Owen
ab5be86b13 Fixed part 3 of bug #494929
git-svn-id: file:///svn/phpbb/trunk@1637 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-19 22:52:11 +00:00
Paul S. Owen
515b97f5b3 Fix for bug #494740
git-svn-id: file:///svn/phpbb/trunk@1636 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-19 17:15:08 +00:00
Paul S. Owen
65220c114c Minor change to column order
git-svn-id: file:///svn/phpbb/trunk@1635 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-19 17:14:46 +00:00
Paul S. Owen
7fab3bbdb5 Fix bug #494787, censor words in topic title for email notifications of replies
git-svn-id: file:///svn/phpbb/trunk@1634 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-19 16:59:44 +00:00
Bart van Bragt
a0165d67a3 Made smileys case-sensitive (i.e. :o != :O )
git-svn-id: file:///svn/phpbb/trunk@1633 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-19 16:07:31 +00:00
Paul S. Owen
cc3d50adbb Fix for bug #494982, uses IP for anonymous posters and user_id for logged in users
git-svn-id: file:///svn/phpbb/trunk@1632 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-19 14:12:51 +00:00
Bart van Bragt
3d33692557 Added check if post exist for IP check
git-svn-id: file:///svn/phpbb/trunk@1631 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-18 21:28:21 +00:00
Bart van Bragt
8575c191a2 I'm just too stupid for CVS :D
git-svn-id: file:///svn/phpbb/trunk@1630 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-18 20:40:48 +00:00
Paul S. Owen
bd0066cac4 No real reason to commit this, just trying this TortoiseCVS proggy under win2K
git-svn-id: file:///svn/phpbb/trunk@1629 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-18 20:39:26 +00:00
Bart van Bragt
27ed6223d8 Moved generate_smilies() into includes/post.php, use smileypath in config table
git-svn-id: file:///svn/phpbb/trunk@1628 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-18 20:35:17 +00:00
Bart van Bragt
b3db480ffa Various updates
git-svn-id: file:///svn/phpbb/trunk@1627 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-18 20:25:23 +00:00
the_systech
9ea92da95a Modified to fix Bug # 494598
git-svn-id: file:///svn/phpbb/trunk@1626 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-18 16:38:18 +00:00
Paul S. Owen
d128d2e61f Tentative freeze(?)
git-svn-id: file:///svn/phpbb/trunk@1625 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-18 01:53:26 +00:00
Paul S. Owen
4764328c9f Updated classes, fixed slashing issue and maybe reduced overhead a little, perhaps
git-svn-id: file:///svn/phpbb/trunk@1624 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-18 01:13:37 +00:00
Paul S. Owen
460334ea59 Was this commited? I was convinced it was after checking the dev board ...
git-svn-id: file:///svn/phpbb/trunk@1623 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-17 16:51:36 +00:00
James Atkinson
7645500aa4 Fixed bug #488927
git-svn-id: file:///svn/phpbb/trunk@1622 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-17 10:52:03 +00:00
James Atkinson
19ad462c32 Fixed bug #488093
git-svn-id: file:///svn/phpbb/trunk@1621 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-17 10:40:23 +00:00
James Atkinson
4a6c692484 Fixed bug #492183, added checking on theme name when creating new theme.
git-svn-id: file:///svn/phpbb/trunk@1620 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-17 10:03:33 +00:00
Paul S. Owen
4f2db0f414 Another lastvisit name change missed
git-svn-id: file:///svn/phpbb/trunk@1619 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-17 03:15:09 +00:00
Paul S. Owen
7ad2cf2c97 Stupid horrible group by clauses
git-svn-id: file:///svn/phpbb/trunk@1618 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-17 02:02:55 +00:00
Paul S. Owen
4201b9af2a Oops, another file I forgot to commit, perhaps I should commit myself ...
git-svn-id: file:///svn/phpbb/trunk@1617 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-17 00:46:54 +00:00
Paul S. Owen
699a4ccaad Various remaining language fixes for viewonline and board configuration admin
git-svn-id: file:///svn/phpbb/trunk@1616 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-17 00:39:47 +00:00
Paul S. Owen
997507fe8c oops, change title name, etc.
git-svn-id: file:///svn/phpbb/trunk@1615 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-17 00:30:36 +00:00
Paul S. Owen
4fcab05574 Added BBCode guide as separate file ... no doubt this will annoy some, oh well :)
git-svn-id: file:///svn/phpbb/trunk@1614 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-17 00:24:06 +00:00
Paul S. Owen
aaea20206d Ooops left explicit sizes in smilies panel which isn't great for weird size smilies ...
git-svn-id: file:///svn/phpbb/trunk@1613 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-17 00:06:13 +00:00
Paul S. Owen
b97b78410d Why didn't these commit yesterday with the other changes .. hmmm, even the history says they were in the CL ...strange
git-svn-id: file:///svn/phpbb/trunk@1612 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 20:31:12 +00:00
Paul S. Owen
b14ca3c338 Changed way moderator lang is output on viewforum and index
git-svn-id: file:///svn/phpbb/trunk@1611 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 18:58:05 +00:00
Paul S. Owen
687b659888 Moved remaining hard coded text in posting template to lang_main, smilies now from DB + external smilies window if > 20
git-svn-id: file:///svn/phpbb/trunk@1610 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 18:29:20 +00:00
Paul S. Owen
cb6366032c Moved remaining hard coded text in posting template to lang_main, smilies now from DB + external smilies window if > 20
git-svn-id: file:///svn/phpbb/trunk@1609 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 18:13:34 +00:00
Paul S. Owen
38d963db30 Seperate window for excess smilies
git-svn-id: file:///svn/phpbb/trunk@1608 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 18:01:23 +00:00
Paul S. Owen
c7cab8ad25 Implement solution for bug #493663 Re: in reply subject
git-svn-id: file:///svn/phpbb/trunk@1607 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 15:30:37 +00:00
Paul S. Owen
652b7d323c Re-jiggle some unread/read/newest topic stuff
git-svn-id: file:///svn/phpbb/trunk@1606 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 13:47:16 +00:00
Paul S. Owen
5bf5404cd0 Fix view newest post error + missing mini post icon in posting preview
git-svn-id: file:///svn/phpbb/trunk@1605 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 13:41:37 +00:00
Paul S. Owen
e6e6be2b77 Fix view newest post error + missing mini post icon in posting preview
git-svn-id: file:///svn/phpbb/trunk@1604 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 13:36:47 +00:00
Paul S. Owen
9e9710dc21 Hopefully fixed bug #491971
git-svn-id: file:///svn/phpbb/trunk@1603 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 02:45:06 +00:00
Paul S. Owen
c4c1da86c9 Added body text setting
git-svn-id: file:///svn/phpbb/trunk@1602 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 02:38:45 +00:00
Paul S. Owen
da4a572e24 Should fix bug #493448 I can't believe the cockup I made, that was a good one even by my standards ... PS: This one works ...
git-svn-id: file:///svn/phpbb/trunk@1601 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 02:06:14 +00:00
Paul S. Owen
b1b4c5a5e3 Should be a fix for another global_var issue bug #492118 also modded install template to use .css
git-svn-id: file:///svn/phpbb/trunk@1600 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 01:52:52 +00:00
Paul S. Owen
e6ee41ce9f Fixed global_var bug #492117
git-svn-id: file:///svn/phpbb/trunk@1599 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 01:52:10 +00:00
Paul S. Owen
f983f8f2bf Should fix bug #493448 I can't believe the cockup I made, that was a good one even by my standards
git-svn-id: file:///svn/phpbb/trunk@1598 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 01:43:20 +00:00
Paul S. Owen
f1be01a89b Fix bug #493735 was still using old config value name for theme
git-svn-id: file:///svn/phpbb/trunk@1597 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 01:27:16 +00:00
dougk_ff7
f217a67aed Slight admin rank bug (would not display-broken image)
git-svn-id: file:///svn/phpbb/trunk@1596 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-16 00:44:59 +00:00
Paul S. Owen
a2a7edc761 This time I really fixed posting to prevent deletion of topic titles when editing
git-svn-id: file:///svn/phpbb/trunk@1595 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 22:05:25 +00:00
Paul S. Owen
219b7c152c Various changes to accompany session updates ... MSSQL users should be prepared to alter or remove the session_last_visit field or face potential problems
git-svn-id: file:///svn/phpbb/trunk@1594 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 17:50:28 +00:00
Paul S. Owen
2518d92042 Not needed
git-svn-id: file:///svn/phpbb/trunk@1593 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 17:37:33 +00:00
Paul S. Owen
cab9f5c4a4 subSilver updates, separate css, other fixes
git-svn-id: file:///svn/phpbb/trunk@1592 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 17:35:52 +00:00
Paul S. Owen
0f750a77aa Various changes to accompany session updates ... MSSQL users should be prepared to alter or remove the session_last_visit field or face potential problems
git-svn-id: file:///svn/phpbb/trunk@1591 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 17:26:37 +00:00
Paul S. Owen
0e78572ee9 Moved agreement text to lang_main
git-svn-id: file:///svn/phpbb/trunk@1590 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 16:51:04 +00:00
Paul S. Owen
10983563b3 FAQ update
git-svn-id: file:///svn/phpbb/trunk@1589 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 16:42:08 +00:00
Paul S. Owen
284dbec9cf Various changes to accompany session updates ... MSSQL users should be prepared to alter or remove the session_last_visit field or face potential problems
git-svn-id: file:///svn/phpbb/trunk@1588 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 16:40:35 +00:00
Bart van Bragt
ec67266aa5 PHP_SELF is a BadThing(tm)
git-svn-id: file:///svn/phpbb/trunk@1587 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 16:40:02 +00:00
Bart van Bragt
04916f4377 Sped up searching for posts from a specific user a lot
git-svn-id: file:///svn/phpbb/trunk@1586 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 16:15:45 +00:00
Bart van Bragt
3d46cdb814 Made titles clickable for fast reload
git-svn-id: file:///svn/phpbb/trunk@1585 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 15:57:47 +00:00
Paul S. Owen
73e586bb6c Doh, might help if the users data was updated when a new session is created ...
git-svn-id: file:///svn/phpbb/trunk@1584 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 14:37:01 +00:00
Paul S. Owen
27a7e8a401 Fixed empty topic title issue when editing posts + moderation of locked topics
git-svn-id: file:///svn/phpbb/trunk@1583 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 14:19:29 +00:00
Bart van Bragt
e829804aa9 Possible fix for a problem with query around line 172
git-svn-id: file:///svn/phpbb/trunk@1582 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 11:30:41 +00:00
Bart van Bragt
db92033a32 Extremely minor change ;)
git-svn-id: file:///svn/phpbb/trunk@1581 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 02:19:04 +00:00
Bart van Bragt
06117a75ff Now I'm really going to bed!
git-svn-id: file:///svn/phpbb/trunk@1580 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 02:02:45 +00:00
Bart van Bragt
7c87460aea OOps, forgot one
git-svn-id: file:///svn/phpbb/trunk@1579 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 01:56:27 +00:00
Bart van Bragt
1f6b7aa567 Fixed some language strings, added some handy things to viewtopic
git-svn-id: file:///svn/phpbb/trunk@1578 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 01:55:43 +00:00
dougk_ff7
652a03df3f Ok, fixing a PostgreSQL bug in the Schema file, prevented install
git-svn-id: file:///svn/phpbb/trunk@1577 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 01:22:55 +00:00
Bart van Bragt
96996b2993 Fixed VERY minor typo (thanks Boby)
git-svn-id: file:///svn/phpbb/trunk@1576 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-15 00:34:23 +00:00
Bart van Bragt
2eba22f4cc Added empty line under block of quoted msg when replying
git-svn-id: file:///svn/phpbb/trunk@1575 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 21:13:15 +00:00
Bart van Bragt
834ab6b948 Small typos, getting back in sync with English file (deleted some entries)
git-svn-id: file:///svn/phpbb/trunk@1574 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 21:11:20 +00:00
Paul S. Owen
dbbf9bd321 Change for topic_moved_is not null
git-svn-id: file:///svn/phpbb/trunk@1573 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 18:28:38 +00:00
Paul S. Owen
0aa7d08106 Make topic_moved_id not null default 0
git-svn-id: file:///svn/phpbb/trunk@1572 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 18:19:20 +00:00
Paul S. Owen
a552d5b7d5 Removed autologin_key + fixed bug #471878
git-svn-id: file:///svn/phpbb/trunk@1571 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 16:32:33 +00:00
Bart van Bragt
35dc396395 Sort online userlist alphabetically
git-svn-id: file:///svn/phpbb/trunk@1570 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 15:37:21 +00:00
Paul S. Owen
c65f84691a Altered update/insert procedure back to what it was ... otherwise no session_id is available for install
git-svn-id: file:///svn/phpbb/trunk@1569 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 14:22:26 +00:00
Paul S. Owen
f65c4179a1 Now with an added extra ... this one works, hopefully ... three days this was testing on phpbb.com with no problems ... I swear computers hate me
git-svn-id: file:///svn/phpbb/trunk@1568 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 03:33:42 +00:00
Paul S. Owen
14bd7ab345 Remove guest user topic tracking via cookies, update viewtopic to re-fix highlighting of search terms, add lang capability to images, various other issues, removed remote avatar size reduction
git-svn-id: file:///svn/phpbb/trunk@1567 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 03:12:05 +00:00
Paul S. Owen
880013144e Remove guest user topic tracking via cookies, update viewtopic to re-fix highlighting of search terms, add lang capability to images, various other issues, removed remote avatar size reduction
git-svn-id: file:///svn/phpbb/trunk@1566 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 02:41:33 +00:00
Bart van Bragt
bef3314e50 Announce and Sticky are never shown as locked
git-svn-id: file:///svn/phpbb/trunk@1565 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 02:19:57 +00:00
Bart van Bragt
cec532810a Avatar size is fixed for remote avatars
git-svn-id: file:///svn/phpbb/trunk@1564 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 02:15:32 +00:00
Paul S. Owen
f6cea9c614 Updated schema for session stuff + fix for mysql search result id
git-svn-id: file:///svn/phpbb/trunk@1563 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 02:11:57 +00:00
Paul S. Owen
16df4a91ee This file must be run before using any of the updated session stuff, also fixes the search results problem
git-svn-id: file:///svn/phpbb/trunk@1562 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 02:07:23 +00:00
Bart van Bragt
c47ba95469 Changed fixed table name to constant
git-svn-id: file:///svn/phpbb/trunk@1561 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 01:59:24 +00:00
Bart van Bragt
44d257f440 Changed fixed table name to constant
git-svn-id: file:///svn/phpbb/trunk@1560 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 01:58:21 +00:00
Paul S. Owen
c4e753e74a Updates to remove search new for anonymous users ... will soon become pointless
git-svn-id: file:///svn/phpbb/trunk@1559 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-14 00:47:29 +00:00
Bart van Bragt
039229d3eb Some minor updates and bugfixes in Upgrade. Added smiley conversion
git-svn-id: file:///svn/phpbb/trunk@1558 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-13 19:40:00 +00:00
Bart van Bragt
85251fde47 Small change to make HTML source of viewtopic more readable
git-svn-id: file:///svn/phpbb/trunk@1557 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-12 19:54:47 +00:00
Paul S. Owen
7548acf60e More updates
git-svn-id: file:///svn/phpbb/trunk@1556 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-11 14:02:33 +00:00
natec
95679a6932 bug #489842 -- some pages were doing bbencode_second and make_click in a bad order.
git-svn-id: file:///svn/phpbb/trunk@1555 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-11 09:13:04 +00:00
natec
01b7683c36 bug #490286: undoing bbencode_first_pass() when bbcode was disabled is fruitless.
git-svn-id: file:///svn/phpbb/trunk@1554 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-11 08:55:17 +00:00
natec
f0bf32c5c1 bug #488067: no, preg_quote() didn't always have 2 args.
git-svn-id: file:///svn/phpbb/trunk@1553 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-11 08:43:05 +00:00
Paul S. Owen
46deea9011 Updates?
git-svn-id: file:///svn/phpbb/trunk@1552 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-11 02:54:59 +00:00
Paul S. Owen
dea6471387 Fixed bug #490611
git-svn-id: file:///svn/phpbb/trunk@1551 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-11 02:41:47 +00:00
Paul S. Owen
1e11060934 More updates for Euclid, minor update to subSilver, fixed bug #490798
git-svn-id: file:///svn/phpbb/trunk@1550 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-11 02:21:52 +00:00
Paul S. Owen
8f6866beaa Ancient ...
git-svn-id: file:///svn/phpbb/trunk@1549 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-11 02:11:27 +00:00
Bart van Bragt
076206dc0c Fix for some small problems with upgrade
git-svn-id: file:///svn/phpbb/trunk@1548 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 21:53:27 +00:00
Bart van Bragt
7c0e6ff4db Fixed #490848 and introduced $current_template_path
git-svn-id: file:///svn/phpbb/trunk@1547 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 16:52:16 +00:00
Paul S. Owen
3f1678141d More updates
git-svn-id: file:///svn/phpbb/trunk@1546 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 15:25:53 +00:00
Paul S. Owen
0df51b74f7 More updates
git-svn-id: file:///svn/phpbb/trunk@1545 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 15:17:18 +00:00
Paul S. Owen
63a25487af More updates
git-svn-id: file:///svn/phpbb/trunk@1544 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 14:48:11 +00:00
Paul S. Owen
7b2b010f86 More updates
git-svn-id: file:///svn/phpbb/trunk@1543 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 13:45:48 +00:00
Paul S. Owen
286af6feff Gone ...
git-svn-id: file:///svn/phpbb/trunk@1542 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 13:34:58 +00:00
Paul S. Owen
92ea69d338 More udates
git-svn-id: file:///svn/phpbb/trunk@1541 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 13:23:12 +00:00
Paul S. Owen
3abfd1dd87 More udates
git-svn-id: file:///svn/phpbb/trunk@1540 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 13:14:25 +00:00
Paul S. Owen
d9fef8013f oops, that shouldn't be there
git-svn-id: file:///svn/phpbb/trunk@1539 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 02:39:31 +00:00
Paul S. Owen
1fe76c7e00 Updated
git-svn-id: file:///svn/phpbb/trunk@1538 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 02:33:21 +00:00
Paul S. Owen
9c638c60b5 Updated IP stuff
git-svn-id: file:///svn/phpbb/trunk@1537 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 02:01:28 +00:00
Paul S. Owen
1e170e5be9 Updates
git-svn-id: file:///svn/phpbb/trunk@1536 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 01:20:50 +00:00
Paul S. Owen
af0f622a0e Updates putting back something I took away, slapped hands for me
git-svn-id: file:///svn/phpbb/trunk@1535 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 01:19:12 +00:00
Paul S. Owen
35ad2b4be6 A new name for PSO ...
git-svn-id: file:///svn/phpbb/trunk@1534 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 01:03:20 +00:00
Paul S. Owen
b5a05b2fcc Bye billy
git-svn-id: file:///svn/phpbb/trunk@1533 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 00:53:33 +00:00
Paul S. Owen
53dcda200a If this doesn't work I will cry
git-svn-id: file:///svn/phpbb/trunk@1532 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 00:52:10 +00:00
Paul S. Owen
6007f0e2f1 Oh my God they killed PSO those b*******s
git-svn-id: file:///svn/phpbb/trunk@1531 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 00:50:32 +00:00
Paul S. Owen
ca483a87af Forgotten what again? What?
git-svn-id: file:///svn/phpbb/trunk@1530 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 00:22:37 +00:00
Paul S. Owen
bb326c3648 Gone and forgotten ... forgotten what? what?
git-svn-id: file:///svn/phpbb/trunk@1529 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 00:21:39 +00:00
Paul S. Owen
cd33d8e40f Added another image name for 'goto post'
git-svn-id: file:///svn/phpbb/trunk@1528 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-10 00:17:20 +00:00
Paul S. Owen
43d81dfda3 For packaging of PSO style
git-svn-id: file:///svn/phpbb/trunk@1527 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-09 15:22:39 +00:00
Paul S. Owen
385920da3e Removed PSO style entries
git-svn-id: file:///svn/phpbb/trunk@1526 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-09 15:22:08 +00:00
James Atkinson
b9356ae11b Fixed bug #490613
git-svn-id: file:///svn/phpbb/trunk@1525 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-09 06:42:50 +00:00
the_systech
30d5fd0030 Some fixes for missused language variables.
git-svn-id: file:///svn/phpbb/trunk@1524 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-07 17:07:39 +00:00
Bart van Bragt
61430ef728 Fixed bug #490159 (parse error in lang_main.php)
git-svn-id: file:///svn/phpbb/trunk@1523 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-07 08:59:06 +00:00
Bart van Bragt
e76dc51159 Small cleanups
git-svn-id: file:///svn/phpbb/trunk@1522 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-06 23:56:49 +00:00
Bart van Bragt
8903a79a59 Added Dutch Language files
git-svn-id: file:///svn/phpbb/trunk@1521 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-06 23:55:52 +00:00
natec
0a41688fa1 fixed [code] bbcode linebreaking nbsp; stuff.
git-svn-id: file:///svn/phpbb/trunk@1520 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-06 23:39:16 +00:00
Bart van Bragt
dd8d0ddc6d Added conversion of private forums
git-svn-id: file:///svn/phpbb/trunk@1519 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-06 18:04:38 +00:00
the_systech
2f4470751f Ok last time for today I promise... D@med javascript :D
git-svn-id: file:///svn/phpbb/trunk@1518 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-05 22:12:48 +00:00
the_systech
ebec75109e oops left some debug info in :D
git-svn-id: file:///svn/phpbb/trunk@1517 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-05 22:04:04 +00:00
the_systech
704a9d665c Ok commiting modified install/upgrade integration, but there's still a weird problem I'm working on... I'll post more in the forum..
git-svn-id: file:///svn/phpbb/trunk@1516 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-05 21:55:20 +00:00
Paul S. Owen
d4077cb9ee Various issues, removed META upon successfull registration, rank changes, etc.
git-svn-id: file:///svn/phpbb/trunk@1515 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-05 17:54:54 +00:00
Paul S. Owen
6bdb20eace Fix bugs #487774 and #487773
git-svn-id: file:///svn/phpbb/trunk@1514 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-05 17:51:41 +00:00
Paul S. Owen
837f1c0422 Removed max setting for ranks as per poll and feedback
git-svn-id: file:///svn/phpbb/trunk@1513 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-05 14:38:37 +00:00
Paul S. Owen
ae5f457eac Fixed bug #488016
git-svn-id: file:///svn/phpbb/trunk@1512 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-05 00:50:12 +00:00
Paul S. Owen
2ace10e4c2 New session code, probably still dodgy, fix for login failed message, search updates, highlighting URI messup fixes, max limit for ranks
git-svn-id: file:///svn/phpbb/trunk@1511 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-05 00:20:56 +00:00
Paul S. Owen
4d495f9a59 Fix stripslashing on errors, preview, poll option addition ... okay I lied, but this one does work, honest guv ... wanna buy a bridge?
git-svn-id: file:///svn/phpbb/trunk@1510 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-05 00:00:39 +00:00
Paul S. Owen
8c8362d7bf Fix stripslashing on errors, preview, poll option addition ... this one actually works properly ...
git-svn-id: file:///svn/phpbb/trunk@1509 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-04 22:02:30 +00:00
Paul S. Owen
3da714e11a Fix stripslashing on errors, preview, poll option addition
git-svn-id: file:///svn/phpbb/trunk@1508 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-04 18:08:43 +00:00
Paul S. Owen
a6dbcd472c Missed a ['From'] -> ['Location'] change
git-svn-id: file:///svn/phpbb/trunk@1507 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-04 14:04:03 +00:00
the_systech
0d649f6290 Keep it from complaining if it can't reset the array #@#ed arrays
git-svn-id: file:///svn/phpbb/trunk@1506 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-03 22:54:32 +00:00
Paul S. Owen
5c5dd8c798 Added extra term to allow multiple subdomain terms in uris, fixes bug #488030 hopefully
git-svn-id: file:///svn/phpbb/trunk@1505 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-03 17:37:52 +00:00
Paul S. Owen
4725c6dbea Should fix bug #487886 bad word preg now uses # and quotes # too
git-svn-id: file:///svn/phpbb/trunk@1504 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-03 12:46:32 +00:00
Paul S. Owen
9cdb898106 Fix backslashing when adding poll options
git-svn-id: file:///svn/phpbb/trunk@1503 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-03 12:21:53 +00:00
Paul S. Owen
a76099efc4 Re-entered content encoding variable
git-svn-id: file:///svn/phpbb/trunk@1502 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-03 01:02:37 +00:00
Paul S. Owen
828a00bc52 Fix bug #487716
git-svn-id: file:///svn/phpbb/trunk@1501 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-03 00:56:48 +00:00
Paul S. Owen
76f722573b Fixed bug #487544
git-svn-id: file:///svn/phpbb/trunk@1500 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-03 00:31:49 +00:00
Paul S. Owen
70942d35a2 Fixed bug #487801
git-svn-id: file:///svn/phpbb/trunk@1499 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-03 00:23:04 +00:00
Paul S. Owen
5fc368388f Fix bug #487951 but mass email needs some other additions, notes are in file ...
git-svn-id: file:///svn/phpbb/trunk@1498 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-03 00:11:18 +00:00
Paul S. Owen
6432e3dd27 Removed 'Redirect' header
git-svn-id: file:///svn/phpbb/trunk@1497 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-02 23:54:25 +00:00
Paul S. Owen
c495c5ddc7 Removed test redirect headers
git-svn-id: file:///svn/phpbb/trunk@1496 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-02 01:04:25 +00:00
Bart van Bragt
ef2d3d387c Fixed some userlevel problems
git-svn-id: file:///svn/phpbb/trunk@1495 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-01 12:43:43 +00:00
Paul S. Owen
930c1186a2 Backtrack on IDENTITY ... doh
git-svn-id: file:///svn/phpbb/trunk@1494 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-01 01:25:06 +00:00
Paul S. Owen
1f18ea3b16 Missing IDENTITY on phpbb_groups, thanks Martin
git-svn-id: file:///svn/phpbb/trunk@1493 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-12-01 00:34:50 +00:00
Paul S. Owen
8d24323734 Updated for improved use with ODBC setups + introduced a re-install feature ... the schema updates _only_ remove foreign key and drop table clauses
git-svn-id: file:///svn/phpbb/trunk@1492 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-30 23:22:56 +00:00
Paul S. Owen
84a2b7dad4 Updated for improved use with ODBC setups + introduced a re-install feature ... the schema updates _only_ remove foreign key and drop table clauses
git-svn-id: file:///svn/phpbb/trunk@1491 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-30 23:15:53 +00:00
Paul S. Owen
153d4b548a Allow admins to login to disabled board ... for admin panel access only
git-svn-id: file:///svn/phpbb/trunk@1490 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-30 18:51:08 +00:00
Paul S. Owen
84856b8499 Fix for [] not supported bug
git-svn-id: file:///svn/phpbb/trunk@1489 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-30 01:28:32 +00:00
Paul S. Owen
d6f9bef1f1 Implement suggestion in bug #484449
git-svn-id: file:///svn/phpbb/trunk@1488 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 22:51:34 +00:00
Paul S. Owen
b7ca8131fa Fix bug #487265
git-svn-id: file:///svn/phpbb/trunk@1487 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 22:45:13 +00:00
Paul S. Owen
45ee7c56f3 Fix bugs #487201 & #487182
git-svn-id: file:///svn/phpbb/trunk@1486 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 21:48:08 +00:00
Paul S. Owen
2121f61670 Updated for bbcode_uid move
git-svn-id: file:///svn/phpbb/trunk@1485 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 16:04:44 +00:00
Paul S. Owen
01d66751e9 Updated to take account of schema changes
git-svn-id: file:///svn/phpbb/trunk@1484 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 15:27:48 +00:00
Paul S. Owen
88872c4d22 Let's try another commit and see if its ascii ... I hate CVS at times
git-svn-id: file:///svn/phpbb/trunk@1483 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 15:08:21 +00:00
Paul S. Owen
193766d9f9 And again for some reason the MSSQL schema commits as binary ... even though it was set as ascii (UNIX format)
git-svn-id: file:///svn/phpbb/trunk@1482 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 15:07:25 +00:00
Paul S. Owen
6a7ff1f903 Up to date MSSQL schema and basic, tested under MSSQL 2000
git-svn-id: file:///svn/phpbb/trunk@1481 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 15:04:42 +00:00
Paul S. Owen
47c2a120fb Fixed problem with surprise and shock smileys, shock = 8O, surprise = :o or text equivs
git-svn-id: file:///svn/phpbb/trunk@1480 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 13:25:56 +00:00
Paul S. Owen
c45feb1347 Fix for 'bug' #484650
git-svn-id: file:///svn/phpbb/trunk@1479 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 13:05:03 +00:00
Paul S. Owen
9f26525a76 Fixed bug #486800 which is probably caused by pruning of posts ... can't see any other reason at present
git-svn-id: file:///svn/phpbb/trunk@1478 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 12:47:39 +00:00
Paul S. Owen
87f818b4ef Fix bug #486674 and removed superfluous/commented lines for html treatment
git-svn-id: file:///svn/phpbb/trunk@1477 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 12:46:16 +00:00
Paul S. Owen
f0b14e59ee Fix for insert_id problem
git-svn-id: file:///svn/phpbb/trunk@1476 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 12:25:04 +00:00
Paul S. Owen
0f16e19dcd Doh! Commited lang_admin before updating from CVS ... just call me stupid, but not too often
git-svn-id: file:///svn/phpbb/trunk@1475 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 11:26:44 +00:00
Paul S. Owen
1935343a15 Fixed bug #486207
git-svn-id: file:///svn/phpbb/trunk@1474 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 11:25:04 +00:00
James Atkinson
2b6be29f24 This should fix the schmea problems, not the best solution but it works
git-svn-id: file:///svn/phpbb/trunk@1473 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 09:57:29 +00:00
James Atkinson
db52cc1711 Fixed bug with deleting categories, and found a hard coded english message!
git-svn-id: file:///svn/phpbb/trunk@1472 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 08:45:55 +00:00
James Atkinson
161996f061 Dumped array_merge for code that should be php3 compatable
git-svn-id: file:///svn/phpbb/trunk@1471 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 08:32:02 +00:00
Paul S. Owen
32e0512027 Various updates
git-svn-id: file:///svn/phpbb/trunk@1470 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 02:26:29 +00:00
Paul S. Owen
7dc179826d Enable pagination for usergroup listing, a little crude but never mind
git-svn-id: file:///svn/phpbb/trunk@1469 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-29 00:47:51 +00:00
Bart van Bragt
be48a3fba7 It's the small thing that can annoy the heck out of you :)
git-svn-id: file:///svn/phpbb/trunk@1468 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-28 18:48:53 +00:00
Paul S. Owen
3f06c64643 Spelling errors and minor changes ... getting quite chilly now
git-svn-id: file:///svn/phpbb/trunk@1467 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-27 22:14:24 +00:00
Paul S. Owen
212480023f Updated FAQ ... near complete?
git-svn-id: file:///svn/phpbb/trunk@1466 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-27 21:37:31 +00:00
Bart van Bragt
ea8e361e9b Fixed bug #486170
git-svn-id: file:///svn/phpbb/trunk@1465 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-27 20:57:58 +00:00
Bart van Bragt
216772fc20 Check, check, double check :( Missed this one ;(
git-svn-id: file:///svn/phpbb/trunk@1464 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-27 20:03:08 +00:00
Bart van Bragt
8a485102af Fixed some parse errors
git-svn-id: file:///svn/phpbb/trunk@1463 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-27 18:26:03 +00:00
Bart van Bragt
fee3b81b60 Some mindboggeling ternary operators removed :D
git-svn-id: file:///svn/phpbb/trunk@1462 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-27 17:59:27 +00:00
Paul S. Owen
22dce9ec94 Various fixes and updates, fix (hopefully) for bug #485799
git-svn-id: file:///svn/phpbb/trunk@1461 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-27 17:36:04 +00:00
Paul S. Owen
5a6f399052 A 'not quite a Pauls up' + short date format
git-svn-id: file:///svn/phpbb/trunk@1460 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-27 00:30:59 +00:00
Paul S. Owen
7d7c3a53fb Another Pauls up
git-svn-id: file:///svn/phpbb/trunk@1459 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-27 00:24:57 +00:00
Bart van Bragt
5aa70cf3be Fixed problem with disappearing Mozilla nav bar when message_die() is called
git-svn-id: file:///svn/phpbb/trunk@1458 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 22:42:35 +00:00
Bart van Bragt
ff0c26e892 Removed uniqid() from make_bbcode_uid(). uniqid() was doing absolutely nothing for 20ms on each call ;(
git-svn-id: file:///svn/phpbb/trunk@1457 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 21:40:22 +00:00
Paul S. Owen
6f59a4054e Ooops, no default auth levels were set for new forums
git-svn-id: file:///svn/phpbb/trunk@1456 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 20:46:54 +00:00
Bart van Bragt
2658167153 Oops, accidentaly changed the DOCTYPE..
git-svn-id: file:///svn/phpbb/trunk@1455 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 14:19:39 +00:00
Paul S. Owen
c7b63e7b6a Fixed various issues, blank space usernames, incorrect email abuse headers, incorrect email language for bulk email, slashes in emails
git-svn-id: file:///svn/phpbb/trunk@1454 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 14:12:25 +00:00
Paul S. Owen
1d3f1cee55 Fixes various issues inc. bugs #485538, #485323 and an incorrect conversion of some accented chars (thanks Ashe for noting it)
git-svn-id: file:///svn/phpbb/trunk@1453 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 14:07:33 +00:00
Bart van Bragt
8e50e5eb4e Implemented Navigation bar in Mozilla
git-svn-id: file:///svn/phpbb/trunk@1452 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 12:09:37 +00:00
James Atkinson
dabc3a4b84 Had to change the name of the submit button because it was interfearing with checking in the user_admin code.
git-svn-id: file:///svn/phpbb/trunk@1451 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 10:18:03 +00:00
James Atkinson
2299d5e25c Doh, note to self make sure you check the right field when doing stuff like this
Fixed bug #485452


git-svn-id: file:///svn/phpbb/trunk@1450 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 10:04:07 +00:00
James Atkinson
31790512b2 Fix for bug #484526
git-svn-id: file:///svn/phpbb/trunk@1449 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 09:50:31 +00:00
natec
e1d1cb0c32 tabs-to-spaces and other indentation mojo for [code] bbcode.
git-svn-id: file:///svn/phpbb/trunk@1448 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 08:15:53 +00:00
James Atkinson
74a9b88c06 Fixed little sequance name problem
git-svn-id: file:///svn/phpbb/trunk@1447 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 03:02:41 +00:00
Paul S. Owen
c35963cb76 More lang updates missed on last commit ... sleeeeeeeep, must have sleeeeeeep
git-svn-id: file:///svn/phpbb/trunk@1446 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 01:50:02 +00:00
Paul S. Owen
525e218819 Convert accents on chars into 'equivalent' plain letters
git-svn-id: file:///svn/phpbb/trunk@1445 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 01:37:25 +00:00
Paul S. Owen
5f01741bc4 stripslash email messages + remove &nbsp;'s from usernames, email addresses
git-svn-id: file:///svn/phpbb/trunk@1444 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 01:27:00 +00:00
natec
adb6ff9f58 Fixed bug 481943. Regexp that normalized linebreaks to \r\n was fucked, so it was changing (char)\n to \r\n and dropping (char). Hence we lost the char before every single linebreak in every email sent thru SMTP. yay. ALso fixed so it gets the FROM address from the right place.
git-svn-id: file:///svn/phpbb/trunk@1443 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 00:50:03 +00:00
Bart van Bragt
67aae81a93 Fixed bug #481283 and #484466 (can't delete forums/cats)
git-svn-id: file:///svn/phpbb/trunk@1442 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-26 00:01:38 +00:00
natec
dbb0ce8eee Fixed bug 478218 -- [ and ] in usernames qith quote= bbcode. Usernames can no longer contain the double-quote character. Also removed a dupe from lang_main file.
git-svn-id: file:///svn/phpbb/trunk@1441 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-25 23:31:04 +00:00
Paul S. Owen
a25d1820f5 oops, missing page_header ...
git-svn-id: file:///svn/phpbb/trunk@1440 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-25 03:11:50 +00:00
Paul S. Owen
5c2c27f40d Handle deletion of search matches and words upon deletion of topic + removal of confirmation on lock/unlock
git-svn-id: file:///svn/phpbb/trunk@1439 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-25 00:21:07 +00:00
Bart van Bragt
015c2739bd Upgrade script; updating keys, using table_prefix properly
git-svn-id: file:///svn/phpbb/trunk@1438 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-24 21:04:51 +00:00
Paul S. Owen
bb1e0dd006 What did I say about that catchphrase ...
git-svn-id: file:///svn/phpbb/trunk@1437 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-24 18:25:52 +00:00
Bart van Bragt
7eee52fff3 Finally moved the bbcode_uid from posts to posts_text, DON'T FORGET TO RUN THE CONVERT SCRIPT IN /develop/ !!
git-svn-id: file:///svn/phpbb/trunk@1436 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-24 17:17:32 +00:00
Paul S. Owen
92e5512011 Reminder to self, checking files at 2am bad, checking files at 2pm good
git-svn-id: file:///svn/phpbb/trunk@1435 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-24 15:57:31 +00:00
James Atkinson
64f1d8b8ac Just a coouple updates
git-svn-id: file:///svn/phpbb/trunk@1434 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-24 09:58:10 +00:00
Paul S. Owen
2316ed8ca4 OOppss missed this one ... this should be my catchphrase ...
git-svn-id: file:///svn/phpbb/trunk@1433 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-24 02:23:36 +00:00
Paul S. Owen
44c849564f Various updates
git-svn-id: file:///svn/phpbb/trunk@1432 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-24 01:51:36 +00:00
Paul S. Owen
517647646b Cope with modules which don't have appropriate names set in the lang_admin file, output names to left pane like old way
git-svn-id: file:///svn/phpbb/trunk@1431 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-24 00:33:58 +00:00
Paul S. Owen
bb31a5e009 Fixes install problem
git-svn-id: file:///svn/phpbb/trunk@1430 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-23 22:55:23 +00:00
Paul S. Owen
8618f81d77 Small error in SQL for Postgres searchmatch clean
git-svn-id: file:///svn/phpbb/trunk@1429 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-23 21:09:37 +00:00
Paul S. Owen
8b7b50cdfb More search updates + user posts
git-svn-id: file:///svn/phpbb/trunk@1428 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-23 19:01:51 +00:00
Bart van Bragt
e0489034fc Oops, smallint is too small for group_id.. Thanks Paul :D
git-svn-id: file:///svn/phpbb/trunk@1427 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-23 18:52:46 +00:00
Bart van Bragt
4e621ef3c3 Some space/speed checkups on the types in the MySQL schema
git-svn-id: file:///svn/phpbb/trunk@1426 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-23 18:44:11 +00:00
James Atkinson
ac3757bad0 Added alternating row color/class for topicrow
git-svn-id: file:///svn/phpbb/trunk@1425 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-23 09:31:59 +00:00
Paul S. Owen
74d694afce Missed these earlier
git-svn-id: file:///svn/phpbb/trunk@1424 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-23 01:07:55 +00:00
Paul S. Owen
ed88c19320 Latest variants ... not finished yet ...
git-svn-id: file:///svn/phpbb/trunk@1423 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-23 01:04:31 +00:00
Paul S. Owen
6f02536adf Module and module function names now pulled from lang file
git-svn-id: file:///svn/phpbb/trunk@1422 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-23 01:01:01 +00:00
Paul S. Owen
45a4be47fb Updated and inline with MySQL - PostgreSQL fine under 7.1.2
git-svn-id: file:///svn/phpbb/trunk@1421 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-23 00:36:08 +00:00
Paul S. Owen
ba5a6e4640 More updates
git-svn-id: file:///svn/phpbb/trunk@1420 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-22 15:55:07 +00:00
Paul S. Owen
c5e2160a8a More updates
git-svn-id: file:///svn/phpbb/trunk@1419 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-22 15:45:54 +00:00
Paul S. Owen
9e437fb021 New image for PSO ... must move these into the template directory at some point
git-svn-id: file:///svn/phpbb/trunk@1418 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-22 15:40:20 +00:00
Paul S. Owen
a03656925a Minor update to an icon image name
git-svn-id: file:///svn/phpbb/trunk@1417 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-22 15:39:36 +00:00
Paul S. Owen
83d403358f More updates
git-svn-id: file:///svn/phpbb/trunk@1416 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-22 15:39:11 +00:00
Paul S. Owen
82215a4025 Fix for display of newest image icon when one doesn't exist
git-svn-id: file:///svn/phpbb/trunk@1415 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-22 02:02:11 +00:00
James Atkinson
60ba5d46fb Missing comma in proflie, thus registration SQL was b0rked...I like that word :)
git-svn-id: file:///svn/phpbb/trunk@1414 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-22 01:13:49 +00:00
James Atkinson
9dea3eb368 Fixed bug #484243 typo in sessions.php
git-svn-id: file:///svn/phpbb/trunk@1413 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-22 01:04:01 +00:00
Paul S. Owen
eb82c68087 Search re-write was erm, how can I say this, erm, brown, soft and smelly ... putting old one with required updates back, will do more work soon
git-svn-id: file:///svn/phpbb/trunk@1412 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-22 01:00:14 +00:00
James Atkinson
5e184479e6 Fixed bug #484331
git-svn-id: file:///svn/phpbb/trunk@1411 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-22 00:56:55 +00:00
Paul S. Owen
f6fb36de53 Updated smilies + fixes for insertion of smilie at caret (IE/PC only) + Mac BBCode buttons ... perhaps, Tom
git-svn-id: file:///svn/phpbb/trunk@1410 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 23:08:10 +00:00
Paul S. Owen
d049d770c5 Moved avatar dir size lang generation into avatar dir size conditional
git-svn-id: file:///svn/phpbb/trunk@1409 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 16:54:13 +00:00
Paul S. Owen
ce185663d4 Order of username in username search was missing
git-svn-id: file:///svn/phpbb/trunk@1408 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 16:27:43 +00:00
Paul S. Owen
bc5d1514d4 Minor change to use username selector
git-svn-id: file:///svn/phpbb/trunk@1407 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 16:20:40 +00:00
Paul S. Owen
d630bbde99 PM popup and icon are finally in place
git-svn-id: file:///svn/phpbb/trunk@1406 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 16:00:04 +00:00
Paul S. Owen
cad29155b8 PM popup and icon are finally in place
git-svn-id: file:///svn/phpbb/trunk@1405 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 15:56:12 +00:00
Paul S. Owen
db41a689f8 Add blank indexes to stop nosey people being, erm, nosey
git-svn-id: file:///svn/phpbb/trunk@1404 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 13:06:56 +00:00
Paul S. Owen
ac2c2c688e Added pop-up control for PM's to profile
git-svn-id: file:///svn/phpbb/trunk@1403 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 13:02:37 +00:00
dougk_ff7
3c6e635bec Now showing: A ton of bug fixes and a complete overhaul of my admin code...
git-svn-id: file:///svn/phpbb/trunk@1402 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 03:10:10 +00:00
Paul S. Owen
fd9158ac75 Up to date, fully populated, works fine or so it seems
git-svn-id: file:///svn/phpbb/trunk@1401 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 01:21:31 +00:00
Paul S. Owen
d0b2519813 Fixes small problem with MS Access
git-svn-id: file:///svn/phpbb/trunk@1400 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 01:21:03 +00:00
Paul S. Owen
3f820f64c6 oohh 'eck Dangermouse, I'm surprised they didn't pick up on this bug, quiet Penfold I'm thinking
git-svn-id: file:///svn/phpbb/trunk@1399 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-21 01:20:17 +00:00
Paul S. Owen
276b86e0da Various core updates for searching
git-svn-id: file:///svn/phpbb/trunk@1398 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 23:45:27 +00:00
Paul S. Owen
a2be6e1eac Changes in-line with DBAL changes
git-svn-id: file:///svn/phpbb/trunk@1397 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 22:35:46 +00:00
Paul S. Owen
8acc3cff9a Some updates, uses TOP rather than two ROWCOUNT queries for LIMIT
git-svn-id: file:///svn/phpbb/trunk@1396 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 22:34:50 +00:00
Paul S. Owen
4a6c3a5ec0 Changes to schema path and mssaccess check/setup ... no doubt I missed something, I'm always issing omething
git-svn-id: file:///svn/phpbb/trunk@1395 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 22:31:58 +00:00
Paul S. Owen
303a5c9ed4 Gone to the great hard disk in the sky ... either that or the schemas subdir
git-svn-id: file:///svn/phpbb/trunk@1394 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 22:30:48 +00:00
Paul S. Owen
215dff4ba8 Moved from parent directory - no other changes ... at least I don't remember any ... I'll regret saying that, I just know it ...
git-svn-id: file:///svn/phpbb/trunk@1393 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 22:29:14 +00:00
Paul S. Owen
525993fb2e New split versions of odbc.php
git-svn-id: file:///svn/phpbb/trunk@1392 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 22:27:29 +00:00
Paul S. Owen
c8cfff5c4d Split into pieces
git-svn-id: file:///svn/phpbb/trunk@1391 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 22:26:57 +00:00
Paul S. Owen
a54feacecb Fix for wide page and colspan issues - Tom
git-svn-id: file:///svn/phpbb/trunk@1390 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 21:27:52 +00:00
the_systech
038e717c0b Some output buffering to try to decrease time and memory usage.
git-svn-id: file:///svn/phpbb/trunk@1389 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 20:33:15 +00:00
Paul S. Owen
2cc2ae1eac Likely fix for bug #482308
git-svn-id: file:///svn/phpbb/trunk@1388 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 14:48:42 +00:00
Paul S. Owen
143823685e Okay, I think that's all folks ... aside from perhaps indexes this is it, da final schema ... keep your eyes on the forums for confirmation
git-svn-id: file:///svn/phpbb/trunk@1387 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 14:34:05 +00:00
Paul S. Owen
e8ee06d51d Minor template var update ... now I'm going to bed, yes I do sleep ...
git-svn-id: file:///svn/phpbb/trunk@1386 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 02:42:24 +00:00
Paul S. Owen
1ff65c0ca3 Minor template var update ... now I'm going to bed, yes I do sleep ...
git-svn-id: file:///svn/phpbb/trunk@1385 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 02:41:44 +00:00
Paul S. Owen
99a540bf2d Update to reflect alteration for PSO
git-svn-id: file:///svn/phpbb/trunk@1384 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 02:28:23 +00:00
Paul S. Owen
0bc6beada8 Various updates
git-svn-id: file:///svn/phpbb/trunk@1383 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 02:24:41 +00:00
Paul S. Owen
5389b2c8ae Loads'a updates, thanks mainly to 'The Black Pit', everyone buy him something nice ... or just send money to 'Black Pit', c/o P. Owen, London ...
git-svn-id: file:///svn/phpbb/trunk@1382 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 02:21:22 +00:00
Paul S. Owen
47187058d7 Minor update
git-svn-id: file:///svn/phpbb/trunk@1381 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-20 00:12:27 +00:00
Paul S. Owen
3ccffbff76 Another attempt at getting universal compatibility with URI/paths ... I'm really beginning to dispise IIS ...
git-svn-id: file:///svn/phpbb/trunk@1380 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 23:56:00 +00:00
Paul S. Owen
ed05244013 Yep, you guess it some more lang updates + cleanups
git-svn-id: file:///svn/phpbb/trunk@1379 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 23:39:24 +00:00
Paul S. Owen
554e6679d3 More lang updates
git-svn-id: file:///svn/phpbb/trunk@1378 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 21:57:51 +00:00
Paul S. Owen
e416fb51d2 Lang related changes
git-svn-id: file:///svn/phpbb/trunk@1377 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 20:38:44 +00:00
Paul S. Owen
14cd6f5dd6 Yet another missed option ... blimey, we've made this too configurable ... only kidding
git-svn-id: file:///svn/phpbb/trunk@1376 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 20:30:52 +00:00
the_systech
1598af6afd Change to use a temp file... Hopefully reduce memory usage on backup.
git-svn-id: file:///svn/phpbb/trunk@1375 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 19:39:00 +00:00
Paul S. Owen
ffe885d4e5 Not needed anymore
git-svn-id: file:///svn/phpbb/trunk@1374 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 19:07:11 +00:00
Paul S. Owen
348fc5805f Various admin lang and other fixes ... this will break other things I'm sure, only submit bug reports for recently commited files
git-svn-id: file:///svn/phpbb/trunk@1373 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 19:06:35 +00:00
Paul S. Owen
19c25b38e9 Name change
git-svn-id: file:///svn/phpbb/trunk@1372 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 19:05:37 +00:00
Paul S. Owen
c375855cc1 Template for mess emailing
git-svn-id: file:///svn/phpbb/trunk@1371 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 18:39:45 +00:00
Paul S. Owen
3e1f5cee15 Fixed bug #483105
git-svn-id: file:///svn/phpbb/trunk@1370 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 17:54:27 +00:00
Paul S. Owen
ae91951754 Yet More language updates
git-svn-id: file:///svn/phpbb/trunk@1369 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 14:48:58 +00:00
Paul S. Owen
37daf8a717 More language updates
git-svn-id: file:///svn/phpbb/trunk@1368 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 14:12:09 +00:00
Paul S. Owen
4f387057ca Altered storage of private message info
git-svn-id: file:///svn/phpbb/trunk@1367 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 01:04:58 +00:00
Paul S. Owen
f51520553d Minor change to MSNM output, no point in graphic
git-svn-id: file:///svn/phpbb/trunk@1366 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-19 00:08:07 +00:00
Paul S. Owen
37a4c8a7dc This is pre-freeze ... a final index and general check through is needed
git-svn-id: file:///svn/phpbb/trunk@1365 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 23:27:22 +00:00
Paul S. Owen
f035a216c7 Could've sworn I'd commited this ... oh well, brain is going, yeah I know, what brain?
git-svn-id: file:///svn/phpbb/trunk@1364 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 22:18:46 +00:00
Paul S. Owen
c7bc2e37bd Hopefully cope with boards running from SSL, ie. https://
git-svn-id: file:///svn/phpbb/trunk@1363 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 18:11:42 +00:00
Paul S. Owen
612c3ee1fb Just call me Homer Simpson! Doh
git-svn-id: file:///svn/phpbb/trunk@1362 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 16:14:34 +00:00
Paul S. Owen
eaa1b26bf0 Slightly fairer sig length check, removes =.*? from BBCode and HTML tags - version 2
git-svn-id: file:///svn/phpbb/trunk@1361 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 16:08:11 +00:00
Paul S. Owen
9aa55fb94c Slightly fairer sig length check, removes =.*? from BBCode and HTML tags
git-svn-id: file:///svn/phpbb/trunk@1360 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 15:36:56 +00:00
Paul S. Owen
a3014676ca Another lang related update
git-svn-id: file:///svn/phpbb/trunk@1359 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 15:17:05 +00:00
Paul S. Owen
8896c20a5c Yet more cleanups
git-svn-id: file:///svn/phpbb/trunk@1358 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 15:00:54 +00:00
Paul S. Owen
498d816eb1 More lang cleanups
git-svn-id: file:///svn/phpbb/trunk@1357 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 14:51:36 +00:00
Paul S. Owen
a1f00aa889 More lang cleanups
git-svn-id: file:///svn/phpbb/trunk@1356 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 14:40:58 +00:00
Paul S. Owen
939e985571 More lang related cleanups
git-svn-id: file:///svn/phpbb/trunk@1355 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 14:02:25 +00:00
Paul S. Owen
bfa98e0e3a Fixed various problems preventing updates of group status, etc.
git-svn-id: file:///svn/phpbb/trunk@1354 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-18 01:41:09 +00:00
Paul S. Owen
8da0c99f4a Fixed ICQ problem
git-svn-id: file:///svn/phpbb/trunk@1353 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-17 22:08:39 +00:00
Bart van Bragt
d21fe46009 Fixed bug #482887
git-svn-id: file:///svn/phpbb/trunk@1352 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-17 20:43:31 +00:00
Paul S. Owen
f027b477f4 Hopefully addresses bug #481831 ... changed REQUEST_URI to SCRIPT_NAME which seems common
git-svn-id: file:///svn/phpbb/trunk@1351 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-17 17:51:59 +00:00
Paul S. Owen
0ed464fae6 And again my brain gets ahead of my fingers ... mental note, reduce caffeine intake
git-svn-id: file:///svn/phpbb/trunk@1350 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-17 17:44:31 +00:00
Paul S. Owen
2a9f3fc584 Fixed bug #482127 ... part 2, fixes post_subject too
git-svn-id: file:///svn/phpbb/trunk@1349 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-17 17:42:46 +00:00
Paul S. Owen
96eb006ca1 Fixed bug #482127 ... problem occurs when no bad word list exists
git-svn-id: file:///svn/phpbb/trunk@1348 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-17 17:40:19 +00:00
Paul S. Owen
94b4a18e6c Missing twisted icon ... say hello everyone
git-svn-id: file:///svn/phpbb/trunk@1347 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-17 13:30:01 +00:00
Paul S. Owen
de89d513e1 Changed language for PM disable a bit
git-svn-id: file:///svn/phpbb/trunk@1346 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-17 13:17:38 +00:00
Paul S. Owen
4e0a0f612c Fixed bug #482729
git-svn-id: file:///svn/phpbb/trunk@1345 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-17 13:09:26 +00:00
James Atkinson
0ad8ac9f5e Changed it back to is_null, using empty just created a much larger problem (parse error!)
git-svn-id: file:///svn/phpbb/trunk@1344 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-17 05:39:22 +00:00
dougk_ff7
0ac13a4907 Possible bugfix for admin_smilies.php.
git-svn-id: file:///svn/phpbb/trunk@1343 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-17 00:30:22 +00:00
Paul S. Owen
d7c8086999 Rank code playing silly beggars again, I hate that game personally
git-svn-id: file:///svn/phpbb/trunk@1342 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 23:03:12 +00:00
Paul S. Owen
8787c41e92 Spelling mistake
git-svn-id: file:///svn/phpbb/trunk@1341 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 22:51:08 +00:00
the_systech
5513e195ee Fix for empty message table header in viewtopic... Short answer $lang['Message'] is still needed as a seperate lang variable :D
git-svn-id: file:///svn/phpbb/trunk@1340 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 20:28:21 +00:00
the_systech
48027c9c44 Fix type... d#$@ fat fingers....
git-svn-id: file:///svn/phpbb/trunk@1339 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 20:15:32 +00:00
the_systech
6fdd61a568 Include lang_admin as well as lang_main..
git-svn-id: file:///svn/phpbb/trunk@1338 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 19:22:56 +00:00
Paul S. Owen
b42ba08367 Dropped topics, need it
git-svn-id: file:///svn/phpbb/trunk@1337 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 18:20:49 +00:00
Paul S. Owen
1005537ba1 This is an initial 'final' DB schema, effectively complete but may undergo some (hopefully minor) updates
git-svn-id: file:///svn/phpbb/trunk@1336 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 18:03:23 +00:00
Paul S. Owen
6228512203 This is an initial 'final' DB schema, effectively complete but may undergo some (hopefully minor) updates
git-svn-id: file:///svn/phpbb/trunk@1335 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 18:00:49 +00:00
Paul S. Owen
4f310f8777 Mainly language updates but some bug fixes too
git-svn-id: file:///svn/phpbb/trunk@1334 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 17:39:33 +00:00
Paul S. Owen
d895171404 Mainly language updates but some bug fixes too
git-svn-id: file:///svn/phpbb/trunk@1333 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 17:32:26 +00:00
Paul S. Owen
cac4518b39 Mainly language updates but some bug fixes too
git-svn-id: file:///svn/phpbb/trunk@1332 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 17:31:49 +00:00
Paul S. Owen
40ddc64afe Updated FAQ, links, more text, etc. ... I was bored
git-svn-id: file:///svn/phpbb/trunk@1331 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 15:16:14 +00:00
Paul S. Owen
19ad656990 Pagination update
git-svn-id: file:///svn/phpbb/trunk@1330 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 00:20:43 +00:00
Paul S. Owen
e25d8550f8 Lang related update for topic watch
git-svn-id: file:///svn/phpbb/trunk@1329 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-16 00:18:32 +00:00
Paul S. Owen
fb315827e7 Fixed problem where deleting a post with a poll could error deletion of remaining posts
git-svn-id: file:///svn/phpbb/trunk@1328 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 22:09:20 +00:00
Bart van Bragt
3bb1d7070e New and improved search_fill.php, still has a weird memory exhaustion bug
git-svn-id: file:///svn/phpbb/trunk@1327 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 22:07:29 +00:00
Paul S. Owen
2b8692875e A little tidy up
git-svn-id: file:///svn/phpbb/trunk@1326 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 21:44:01 +00:00
Paul S. Owen
9dc6e8a5fa Got a bad piece of tape that time, fell on the carpet, euuggh, this one should work
git-svn-id: file:///svn/phpbb/trunk@1325 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 21:38:09 +00:00
Paul S. Owen
68eb5bc3b3 Sticky tape fell off, that's what happens when you don't buy the real thing...
git-svn-id: file:///svn/phpbb/trunk@1324 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 21:36:31 +00:00
Paul S. Owen
6cbe3f48d8 This removes the looping queries causing the horendous query count ... clutch now fixed, but only with sticky tape
git-svn-id: file:///svn/phpbb/trunk@1323 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 21:28:58 +00:00
Paul S. Owen
0749e9ca6f Apparently the clutch on my brain is broken, hence inability to engage it
git-svn-id: file:///svn/phpbb/trunk@1322 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 18:57:07 +00:00
Paul S. Owen
925b795012 Apparently the clutch on my brain is broken, hence inability to engage it
git-svn-id: file:///svn/phpbb/trunk@1321 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 18:54:22 +00:00
Paul S. Owen
f27bec1dab Added admin enabling of email form
git-svn-id: file:///svn/phpbb/trunk@1320 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 18:38:23 +00:00
Paul S. Owen
e4c8d6e886 Forgot that engage brain thing again ...
git-svn-id: file:///svn/phpbb/trunk@1319 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 17:00:19 +00:00
Paul S. Owen
04660b6475 Email form - free with purchase of any two other items
git-svn-id: file:///svn/phpbb/trunk@1318 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 16:44:44 +00:00
Paul S. Owen
be43f44e33 Email form - free with purchase of any two other items
git-svn-id: file:///svn/phpbb/trunk@1317 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 16:35:09 +00:00
Paul S. Owen
0ed25deb63 Email form - free with purchase of any two other items
git-svn-id: file:///svn/phpbb/trunk@1316 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-15 16:26:41 +00:00
Bart van Bragt
01488dc03b Added arguments to search ACTION to avoid caching probems (back button that doesn't work)
git-svn-id: file:///svn/phpbb/trunk@1315 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-14 23:08:56 +00:00
Bart van Bragt
24ac37a341 Added checkbox for shadowtopic on topic move, enabled deleting of shadow topics
git-svn-id: file:///svn/phpbb/trunk@1314 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-14 20:21:01 +00:00
Paul S. Owen
a3af441099 Fix bug #481673
git-svn-id: file:///svn/phpbb/trunk@1313 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-14 13:32:14 +00:00
Paul S. Owen
37fd84c057 Should fix bug #478011
git-svn-id: file:///svn/phpbb/trunk@1312 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-14 13:20:22 +00:00
James Atkinson
6c5c2a0aba Oops, forgot to commit search.php
git-svn-id: file:///svn/phpbb/trunk@1311 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-14 06:39:17 +00:00
James Atkinson
f448cdf609 Implemented Bart's 'egosearch', and the search for unanswered posts.
Created links that are accessable from anywhere


git-svn-id: file:///svn/phpbb/trunk@1310 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-14 06:37:05 +00:00
James Atkinson
f697f04514 Translated all the remaining enlgish strings in the admin config section
git-svn-id: file:///svn/phpbb/trunk@1309 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-14 03:53:00 +00:00
Paul S. Owen
3e0a541798 Added new tables to backup list
git-svn-id: file:///svn/phpbb/trunk@1308 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-13 21:17:32 +00:00
Paul S. Owen
59f3ef2ffe Language updates
git-svn-id: file:///svn/phpbb/trunk@1307 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-13 17:36:27 +00:00
Paul S. Owen
9d43df0d53 Treat moved topics as being non-existent for re-sync of topic counts
git-svn-id: file:///svn/phpbb/trunk@1306 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-13 17:26:36 +00:00
Paul S. Owen
d1fd694282 Added global PM disable + modded emailer to allow lang select + re-added back box limits my dumbness removed recently
git-svn-id: file:///svn/phpbb/trunk@1305 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-13 16:09:10 +00:00
the_systech
75fadebad1 Bugfixs... Darn those bugs... Where's an exterminator when you need one?
git-svn-id: file:///svn/phpbb/trunk@1304 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-12 15:32:14 +00:00
James Atkinson
8237698bac Tsk, tsk, tsk, someone forgot to use the constant for the posts table
git-svn-id: file:///svn/phpbb/trunk@1303 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-12 12:02:26 +00:00
James Atkinson
489039ba54 Ok, I think thats the last of the theme admin stuff. Hopefully its bug free
git-svn-id: file:///svn/phpbb/trunk@1302 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-12 11:57:25 +00:00
Bart van Bragt
6a506ae3e0 Fixed bu #480222 (I hope)
git-svn-id: file:///svn/phpbb/trunk@1301 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 22:58:00 +00:00
Paul S. Owen
911c833b12 Schema updates for search changes
git-svn-id: file:///svn/phpbb/trunk@1300 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 18:28:46 +00:00
the_systech
d265bbc317 Some additional modifications for merging install with upgrade...
git-svn-id: file:///svn/phpbb/trunk@1299 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 15:02:46 +00:00
Paul S. Owen
63fbbff7e7 Various updates to transaction and other support
git-svn-id: file:///svn/phpbb/trunk@1298 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 13:42:31 +00:00
Paul S. Owen
4e0ec70803 Altered for constant table names
git-svn-id: file:///svn/phpbb/trunk@1297 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 13:26:55 +00:00
Paul S. Owen
16a20599ff A few lang changes, more to come + search stop and synonums
git-svn-id: file:///svn/phpbb/trunk@1296 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 13:19:19 +00:00
Paul S. Owen
a7382c8e88 Altered templates so preview/errors are sent as 'boxes' rather than pparsed and output directly, greater control for designer
git-svn-id: file:///svn/phpbb/trunk@1295 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 13:15:36 +00:00
Paul S. Owen
45db03be26 I really dispise ), someone should ban them immediately
git-svn-id: file:///svn/phpbb/trunk@1294 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 13:05:54 +00:00
Paul S. Owen
4e5a771123 New search system, this isn't final, needs alterations, etc. can redeem this against the full priced version with included coupon
git-svn-id: file:///svn/phpbb/trunk@1293 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 13:00:04 +00:00
Paul S. Owen
cb427774a6 Corrected for space within highlighted words, this is the version running on the main site
git-svn-id: file:///svn/phpbb/trunk@1292 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 12:32:23 +00:00
Paul S. Owen
32e989d7bd The way message is output for unset topic/post was correct, changing back
git-svn-id: file:///svn/phpbb/trunk@1291 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 12:24:36 +00:00
James Atkinson
db0b2fc30f Fixed bug #478505 also added code to retain highlight though pagination on viewtopic
git-svn-id: file:///svn/phpbb/trunk@1290 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 09:12:01 +00:00
James Atkinson
833f085eb2 Checked all calls to message_die and made sure that if they would be outputted to a user
without a major error that they got their error string from the lang file
Also made sure all calls had the right arguments in teh right place


git-svn-id: file:///svn/phpbb/trunk@1289 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-09 08:57:37 +00:00
natec
41c15e37ce Fixed bug where more than 2 dots in email not allowed in registration
git-svn-id: file:///svn/phpbb/trunk@1288 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-08 06:12:53 +00:00
natec
8ef00898b3 fixed code:1 bbcode bug.
git-svn-id: file:///svn/phpbb/trunk@1287 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-08 06:06:54 +00:00
the_systech
2f7f35a190 Adding capability for "smiley packs" import/export
git-svn-id: file:///svn/phpbb/trunk@1286 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-07 21:44:07 +00:00
Bart van Bragt
5668fee577 Fixed query that wasn't using CONSTANT table name
git-svn-id: file:///svn/phpbb/trunk@1285 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-07 14:45:07 +00:00
James Atkinson
7124ca71b7 Added some code to keep the admin from deleteing the forums default style
git-svn-id: file:///svn/phpbb/trunk@1284 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-07 11:17:55 +00:00
James Atkinson
292c07760a Theme edit/create in place. Damn it took way to long to do that form.
Still needs the themes_name code, but I'll do that tommorow


git-svn-id: file:///svn/phpbb/trunk@1283 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-07 11:10:56 +00:00
the_systech
837dcc4572 Update to "merge" upgrade with Install... (Not fully tested since current upgrade not in CVS)
git-svn-id: file:///svn/phpbb/trunk@1282 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-06 16:54:15 +00:00
James Atkinson
05fa8e8c22 Re-added coppa stuff for admin (who removed it??)
Added SMTP username and password settiings


git-svn-id: file:///svn/phpbb/trunk@1281 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-05 07:15:05 +00:00
Paul S. Owen
5f978355db Fixed small error in message output upon deletion of msg
git-svn-id: file:///svn/phpbb/trunk@1280 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-05 02:40:41 +00:00
Paul S. Owen
be63e70bce Added check for avatar type before attempting deletion
git-svn-id: file:///svn/phpbb/trunk@1279 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-05 01:24:26 +00:00
Paul S. Owen
1372a6c220 Mental note, engage brain before typing
git-svn-id: file:///svn/phpbb/trunk@1278 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-05 00:29:25 +00:00
Paul S. Owen
f92254ca6f Seemed to be a problem creeping back in with duplicated names due to switch in code ... fixed?
git-svn-id: file:///svn/phpbb/trunk@1277 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-05 00:23:14 +00:00
Paul S. Owen
8504825bb4 MySQL 4.x support, functionaly similar to MySQL bar transaction support
git-svn-id: file:///svn/phpbb/trunk@1276 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-04 15:26:33 +00:00
Paul S. Owen
fc38cd7257 Support for new locked with new topics icon
git-svn-id: file:///svn/phpbb/trunk@1275 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-04 14:11:25 +00:00
Paul S. Owen
f0e441777b Support for new locked with new topics icon
git-svn-id: file:///svn/phpbb/trunk@1274 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-04 12:55:23 +00:00
Paul S. Owen
2a11de8efc New icon
git-svn-id: file:///svn/phpbb/trunk@1273 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-04 12:40:45 +00:00
Paul S. Owen
9f27528b65 Hopefully killed bug #472269 dead, a touch of Domestos power
git-svn-id: file:///svn/phpbb/trunk@1272 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 22:39:37 +00:00
Paul S. Owen
1fcd1afe9d Hopefully killed bug #472269 dead, a touch of Domestos power
git-svn-id: file:///svn/phpbb/trunk@1271 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 21:56:17 +00:00
Paul S. Owen
68795b03d5 Fixed bug #477831 + some minor alterations
git-svn-id: file:///svn/phpbb/trunk@1270 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 21:49:01 +00:00
Paul S. Owen
cf8456ab61 Fixed error #475726 + lang updates
git-svn-id: file:///svn/phpbb/trunk@1269 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 19:33:33 +00:00
Paul S. Owen
7844a5fa7f Group control panel updates and mods + hidden group ability
git-svn-id: file:///svn/phpbb/trunk@1268 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 19:17:06 +00:00
Paul S. Owen
93ee34b2a3 Gone and sadly forgotten, sniff sniff
git-svn-id: file:///svn/phpbb/trunk@1267 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 18:45:34 +00:00
Paul S. Owen
501d150873 Additions for site description
git-svn-id: file:///svn/phpbb/trunk@1266 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 18:13:35 +00:00
Paul S. Owen
187f55122e Fixed bug #475735
git-svn-id: file:///svn/phpbb/trunk@1265 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 16:59:19 +00:00
Paul S. Owen
ed3ede24b3 Changed to new lang vars + redirect for login
git-svn-id: file:///svn/phpbb/trunk@1264 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 16:17:04 +00:00
Paul S. Owen
7da0c6b61a Changed to new lang vars + redirect for login
git-svn-id: file:///svn/phpbb/trunk@1263 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 16:15:00 +00:00
Paul S. Owen
5cf8169bfc Various changes, added site description to DB
git-svn-id: file:///svn/phpbb/trunk@1262 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 15:15:05 +00:00
Paul S. Owen
6567b4524a Fixed various issues and bugs
git-svn-id: file:///svn/phpbb/trunk@1261 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 13:57:29 +00:00
Paul S. Owen
5251423378 Fixed various issues and bugs
git-svn-id: file:///svn/phpbb/trunk@1260 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 13:54:04 +00:00
James Atkinson
2297465c60 Some updates to modcp to show the topic type and correct folder icons
git-svn-id: file:///svn/phpbb/trunk@1259 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-03 01:12:54 +00:00
the_systech
167b1a536b Oops missed one typo in create_date...
git-svn-id: file:///svn/phpbb/trunk@1258 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-02 22:36:34 +00:00
the_systech
43eac6665b Fix for typo's in create_date statements...
git-svn-id: file:///svn/phpbb/trunk@1257 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-02 22:35:31 +00:00
Bart van Bragt
112b015c47 This is not Beta-1 anymore
git-svn-id: file:///svn/phpbb/trunk@1256 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-01 22:57:35 +00:00
the_systech
5f5dce410f fix for hard link to index...
git-svn-id: file:///svn/phpbb/trunk@1255 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-01 20:25:05 +00:00
the_systech
493d836919 Quick BugFix
git-svn-id: file:///svn/phpbb/trunk@1254 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-01 19:37:47 +00:00
James Atkinson
a03691ca8e Ok, this gets all the area it needs..heh
git-svn-id: file:///svn/phpbb/trunk@1253 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-01 10:43:30 +00:00
James Atkinson
bd54224f2a Fixed little bug that would leave slashes in the config file if magic_quotes_gpc was off
See this topic for more info: http://area51.phpbb.com/phpBB2/viewtopic.php?p=9797#9797


git-svn-id: file:///svn/phpbb/trunk@1252 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-11-01 10:42:06 +00:00
James Atkinson
5cce2b35f7 Fixed bug #474123
git-svn-id: file:///svn/phpbb/trunk@1251 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-30 23:44:39 +00:00
Bart van Bragt
e12e73d0b7 Able to convert moderators
git-svn-id: file:///svn/phpbb/trunk@1250 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-26 23:26:54 +00:00
the_systech
4b99bf8a3c Readded ftp stuff for install
git-svn-id: file:///svn/phpbb/trunk@1249 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-26 15:48:48 +00:00
Paul S. Owen
1d431811e1 Ooops, forgot to clear edited by output for subsequent posts
git-svn-id: file:///svn/phpbb/trunk@1248 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-26 01:09:08 +00:00
Paul S. Owen
c976663e96 Altered various language constructs + new quote changes for PM + altered pagination
git-svn-id: file:///svn/phpbb/trunk@1247 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-25 23:21:12 +00:00
James Atkinson
cc9373fe66 Not sure what a TALBE is..heh
git-svn-id: file:///svn/phpbb/trunk@1246 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-25 08:59:51 +00:00
James Atkinson
ebcd583860 Couple tweeks to the file gerneration to make it a more 'proper' array.
git-svn-id: file:///svn/phpbb/trunk@1245 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-25 08:57:39 +00:00
James Atkinson
fb8511df75 A little over half done the styles admin
Can do: Add new themes from cfg file, export theme data to cfg file, remove themes
Cannot do: Created or edit themes


git-svn-id: file:///svn/phpbb/trunk@1244 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-25 08:53:18 +00:00
natec
a719de20ea [quote=username] bbcode.
git-svn-id: file:///svn/phpbb/trunk@1243 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-24 22:52:24 +00:00
Bart van Bragt
1cb57d6367 Development version of upgrade script. Still needs quite some work.
git-svn-id: file:///svn/phpbb/trunk@1242 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-22 21:26:27 +00:00
James Atkinson
fa7313eb84 Fixed bug in profile where account reactivation email had wrong link
git-svn-id: file:///svn/phpbb/trunk@1241 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-22 01:11:48 +00:00
Paul S. Owen
f09f566997 Additional updates, Tom
git-svn-id: file:///svn/phpbb/trunk@1240 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-21 01:53:48 +00:00
James Atkinson
1916a1a3e6 Changed ranks admin so it shows the min and max posts of the rank
git-svn-id: file:///svn/phpbb/trunk@1239 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-19 23:17:15 +00:00
dougk_ff7
2652a1aba9 Removing traces of global announcements and also fixing a potential security hole in bbcode. Img-based javascript is now stripped. All images have to begin with http://
git-svn-id: file:///svn/phpbb/trunk@1238 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-19 13:28:35 +00:00
dougk_ff7
43025a0dbb Fixes the bug in profile.php where MSNM does not show up correctly.
git-svn-id: file:///svn/phpbb/trunk@1237 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-18 22:18:57 +00:00
the_systech
c28c07d63f Some clean-ups
git-svn-id: file:///svn/phpbb/trunk@1236 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-18 14:56:40 +00:00
Paul S. Owen
6b2915c0a2 Removed remaining elements of global announcements to prevent confusion
git-svn-id: file:///svn/phpbb/trunk@1235 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-17 23:05:46 +00:00
Paul S. Owen
ad4bc2586b Fixed error which would cause failure when making user an admin
git-svn-id: file:///svn/phpbb/trunk@1234 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-17 00:42:37 +00:00
Paul S. Owen
390928f4ee Minor change to message output when no posts exist
git-svn-id: file:///svn/phpbb/trunk@1233 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 23:34:45 +00:00
dougk_ff7
2d11805844 Implementation of announcements changing, no longere necessary.
git-svn-id: file:///svn/phpbb/trunk@1232 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 22:00:12 +00:00
the_systech
eddbaba2d4 One additional option for unwritable config file...(FTP) :D
git-svn-id: file:///svn/phpbb/trunk@1231 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 20:56:43 +00:00
Paul S. Owen
7285487e5b Fix a few things left over from old global announce stuff
git-svn-id: file:///svn/phpbb/trunk@1230 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 17:15:25 +00:00
Paul S. Owen
cd37bbc657 Fix a few things left over from old global announce stuff
git-svn-id: file:///svn/phpbb/trunk@1229 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 16:38:01 +00:00
Paul S. Owen
0ce19c6f73 Various updates, Tom
git-svn-id: file:///svn/phpbb/trunk@1228 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 16:24:52 +00:00
Paul S. Owen
36936afdb2 Fix a few things left over from old global announce stuff
git-svn-id: file:///svn/phpbb/trunk@1227 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 16:23:33 +00:00
Paul S. Owen
274d8472b1 Various fixes and updates so it actually works correctly ... more updates ;)
git-svn-id: file:///svn/phpbb/trunk@1226 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 15:48:24 +00:00
Paul S. Owen
16d4565d3c Various fixes and updates so it actually works correctly ... ;)
git-svn-id: file:///svn/phpbb/trunk@1225 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 15:41:05 +00:00
Paul S. Owen
fd59e88898 Slight mods to the usersearch function, moved to search.php
git-svn-id: file:///svn/phpbb/trunk@1224 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 14:47:27 +00:00
Paul S. Owen
69e8054bdc Name change to search_username
git-svn-id: file:///svn/phpbb/trunk@1223 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 14:41:59 +00:00
dougk_ff7
fd20e68b5e More changes for global announcements. They no longer require the mode to be set (it works without), posting.php has been updated to reflect replies to announcements in ALL forums, and a admin page for announcements (global) has been added, although it can only link to pages with the true forum and auth permissions. A more refined version will be coming soon
git-svn-id: file:///svn/phpbb/trunk@1222 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 13:10:09 +00:00
Paul S. Owen
a4858256ff Topic review changes + updates
git-svn-id: file:///svn/phpbb/trunk@1221 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 11:23:57 +00:00
Paul S. Owen
d387e476bc Topic review changes + updates
git-svn-id: file:///svn/phpbb/trunk@1220 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 11:12:32 +00:00
James Atkinson
83bc62fb2d Oops..broke the click on user goto modify page on admin index functionality with my last commit, fixed it
git-svn-id: file:///svn/phpbb/trunk@1219 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 10:49:11 +00:00
James Atkinson
46413f440e Fixed some bugs with banning and some code that wasnt updated when we changed the theme/template system
git-svn-id: file:///svn/phpbb/trunk@1218 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 10:35:24 +00:00
James Atkinson
7fd3e1943c Fixed some minor issues in user admin
git-svn-id: file:///svn/phpbb/trunk@1217 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 09:57:43 +00:00
dougk_ff7
fe06cc34e1 *@#%^&, I did it again. Oh well.
git-svn-id: file:///svn/phpbb/trunk@1216 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 01:01:56 +00:00
dougk_ff7
8f45c77883 Just the start to the wonderful world of global announcements. Adds support for them as well as creates a new forum, id -1. Do not delete the forum. I'll write the admin later.
git-svn-id: file:///svn/phpbb/trunk@1215 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-16 01:00:47 +00:00
Paul S. Owen
a1c1036b8c Oops, commited wrong file earlier to fix user select bug in admin_user/admin_userauth
git-svn-id: file:///svn/phpbb/trunk@1214 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 23:18:21 +00:00
Paul S. Owen
c3988db7d8 And all because the lady loves Milk Tray, erm, sorry ... all because I missed a . from a string concaten...thingy
git-svn-id: file:///svn/phpbb/trunk@1213 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 23:04:16 +00:00
Paul S. Owen
50322ad7f0 Looks like I missed this one
git-svn-id: file:///svn/phpbb/trunk@1212 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 20:49:39 +00:00
the_systech
6897fc49cc oops forgot append_sid
git-svn-id: file:///svn/phpbb/trunk@1211 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 20:41:42 +00:00
the_systech
265cabc30e Username Disallow Admin...
git-svn-id: file:///svn/phpbb/trunk@1210 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 20:15:46 +00:00
Paul S. Owen
8d3b31d59c Replaced by faq_body.tpl and the faq language file
git-svn-id: file:///svn/phpbb/trunk@1209 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 19:17:51 +00:00
Paul S. Owen
235300037e Fixed bug #471317
git-svn-id: file:///svn/phpbb/trunk@1208 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 19:14:48 +00:00
Paul S. Owen
cc3918c180 Fixed bug #471317
git-svn-id: file:///svn/phpbb/trunk@1207 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 19:13:39 +00:00
the_systech
0aec2082eb modified to make compatible with postgres 7.0, still works with 7.1
git-svn-id: file:///svn/phpbb/trunk@1206 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 16:08:59 +00:00
Paul S. Owen
4e6cff3a80 Fix for potential security/HTML abuse problem, thanks Silverion
git-svn-id: file:///svn/phpbb/trunk@1205 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 16:00:47 +00:00
Paul S. Owen
7a83d1d233 Gone but not forgotten ... forgotten what?
git-svn-id: file:///svn/phpbb/trunk@1204 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 12:58:29 +00:00
Paul S. Owen
1ad9bfcd65 Fixed for groupauth bug #471227 + header location changes for append_sid
git-svn-id: file:///svn/phpbb/trunk@1203 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 12:13:26 +00:00
dougk_ff7
e89a960a90 Allows for selectable ranks in user admin.
git-svn-id: file:///svn/phpbb/trunk@1202 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 02:58:50 +00:00
Paul S. Owen
2eb565a15c I am a total moron, please excuse me
git-svn-id: file:///svn/phpbb/trunk@1201 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 01:35:32 +00:00
dougk_ff7
21f99ed016 A few minor bug fixes in the group control panel.
git-svn-id: file:///svn/phpbb/trunk@1200 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-15 00:38:30 +00:00
Paul S. Owen
a290b47ea5 Altered uri's in emails to utilise HTTP_HOST if available + altered some METAs to append_sid
git-svn-id: file:///svn/phpbb/trunk@1199 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 22:32:38 +00:00
Paul S. Owen
9947ccb7f9 Fixed GET/POST problem
git-svn-id: file:///svn/phpbb/trunk@1198 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 22:13:57 +00:00
Paul S. Owen
55c3f68cdd And I'll add it back ... please leave blank for now
git-svn-id: file:///svn/phpbb/trunk@1197 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 20:05:48 +00:00
Paul S. Owen
d52494246d And I'll add it back ... please leave blank for now
git-svn-id: file:///svn/phpbb/trunk@1196 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 20:05:19 +00:00
dougk_ff7
85e9d9113f To prevent stupidity (again) I'll just remove it... As long as the directory is chmoded to 777 during install, everything will be OK. It will probably inch its way back in later.
git-svn-id: file:///svn/phpbb/trunk@1195 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 20:00:00 +00:00
dougk_ff7
b27d8ea606 And add it back...
git-svn-id: file:///svn/phpbb/trunk@1194 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 19:35:24 +00:00
dougk_ff7
ec79463197 Ok, let's clean out config.php
git-svn-id: file:///svn/phpbb/trunk@1193 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 19:33:35 +00:00
Paul S. Owen
4814c5aeae Okay, that was equally stupid ...
git-svn-id: file:///svn/phpbb/trunk@1192 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 18:37:17 +00:00
Paul S. Owen
30fd1f8757 Doug, whooops .... :)
git-svn-id: file:///svn/phpbb/trunk@1191 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 18:32:48 +00:00
Paul S. Owen
715a51c548 Various changes to location redirection ... please note the format and name changes
git-svn-id: file:///svn/phpbb/trunk@1190 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 18:22:32 +00:00
Paul S. Owen
e4b9702ebc Changed logged in block to a logged in and logged out block
git-svn-id: file:///svn/phpbb/trunk@1189 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 18:20:40 +00:00
Paul S. Owen
05d9d4a312 Lang var incorrect for PM
git-svn-id: file:///svn/phpbb/trunk@1188 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 16:36:29 +00:00
Paul S. Owen
e25574fc9c Fixed bug #471044 and problem with coppa support upon registration when using avatar gallery
git-svn-id: file:///svn/phpbb/trunk@1187 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 16:30:41 +00:00
dougk_ff7
fe67a082f8 Fixes that little login bug.
git-svn-id: file:///svn/phpbb/trunk@1186 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 16:11:36 +00:00
Paul S. Owen
ae1e381f99 Various updates to bring style in-line with main board ... Tom, feel free to do whatever else is necessary
git-svn-id: file:///svn/phpbb/trunk@1185 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 15:55:50 +00:00
Paul S. Owen
95d8c8f029 Renamed or not needed
git-svn-id: file:///svn/phpbb/trunk@1184 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 15:55:23 +00:00
Paul S. Owen
2d839365aa Various updates mainly URI session related ... login still having problem with full URI sessions
git-svn-id: file:///svn/phpbb/trunk@1183 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 15:49:52 +00:00
Paul S. Owen
6c7d359a84 Various updates mainly to message die for admin compatibility
git-svn-id: file:///svn/phpbb/trunk@1182 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 15:48:38 +00:00
Paul S. Owen
3537319489 Session code update to support temporary cookies only
git-svn-id: file:///svn/phpbb/trunk@1181 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 15:48:18 +00:00
Paul S. Owen
cc36eb86c3 Updates related to current changes
git-svn-id: file:///svn/phpbb/trunk@1180 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 15:47:23 +00:00
Paul S. Owen
4aeb685d3c Various updates, cleanups and support for URI based sessions ... more to come at some point
git-svn-id: file:///svn/phpbb/trunk@1179 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 15:46:53 +00:00
dougk_ff7
e31466a42f Ok, first I did the lang files, now for the real stuff in ranks admin.
git-svn-id: file:///svn/phpbb/trunk@1178 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 14:33:54 +00:00
dougk_ff7
7232f5bf88 Wow. Rank administration is FINALLY here. Enjoy\!
git-svn-id: file:///svn/phpbb/trunk@1177 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 14:27:07 +00:00
Paul S. Owen
12f025ef20 Not needed
git-svn-id: file:///svn/phpbb/trunk@1176 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-14 00:46:22 +00:00
Paul S. Owen
926f8eb9ca Updated basic, includes default avatar gallery path
git-svn-id: file:///svn/phpbb/trunk@1175 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 22:26:01 +00:00
Paul S. Owen
c0b875aa38 That stupid broken is_die and filetype ... ran fine under Win2K, failed under Linux, workaround in place
git-svn-id: file:///svn/phpbb/trunk@1174 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 22:22:28 +00:00
Paul S. Owen
dd2033ace0 Preliminary avatar gallery support
git-svn-id: file:///svn/phpbb/trunk@1173 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 22:05:36 +00:00
Paul S. Owen
e2c755710f Delete from viewtopic functionality for template + graphic
git-svn-id: file:///svn/phpbb/trunk@1172 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 20:06:46 +00:00
Paul S. Owen
f7bb9cb7c9 Added configuration for allowed html tags
git-svn-id: file:///svn/phpbb/trunk@1171 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 12:32:05 +00:00
Paul S. Owen
5ed2aa7590 Changed paths for language
git-svn-id: file:///svn/phpbb/trunk@1170 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 12:18:37 +00:00
Paul S. Owen
bb6c0fe235 New directory structure
git-svn-id: file:///svn/phpbb/trunk@1169 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 12:15:37 +00:00
Paul S. Owen
3338a20f09 Moved into its very own directory
git-svn-id: file:///svn/phpbb/trunk@1168 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 12:13:34 +00:00
Paul S. Owen
806afb023f Further subSilver updates, Tom
git-svn-id: file:///svn/phpbb/trunk@1167 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 11:42:24 +00:00
Paul S. Owen
649f27f4d0 Removed conflicts ... please indicate why changes are neccessary in some form either here or @ forums :)
git-svn-id: file:///svn/phpbb/trunk@1166 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 11:05:06 +00:00
Paul S. Owen
f3300f4996 Changed profile back to deactivating user upon new password request ...
git-svn-id: file:///svn/phpbb/trunk@1165 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 11:02:56 +00:00
James Atkinson
38d780d1ce Changed sendpassword so it dosan't deactivate the account
Fixed a security hole in group cp (thanks Ashe)


git-svn-id: file:///svn/phpbb/trunk@1164 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 08:03:03 +00:00
the_systech
2f10b2076e some minor odbc tweaks...
git-svn-id: file:///svn/phpbb/trunk@1163 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-11 05:52:15 +00:00
Paul S. Owen
06889f19fb Mental note - don't make mental notes, you forget them ... fixed lack of forum name appearing in title
git-svn-id: file:///svn/phpbb/trunk@1162 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 23:39:40 +00:00
Paul S. Owen
f06057e929 I seem to have modified copies of these, so I'm comming 'em just in case
git-svn-id: file:///svn/phpbb/trunk@1161 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 23:18:13 +00:00
Paul S. Owen
70bd954b52 I have an excuse for this idiotic serious of commits ... I'll let you know what is when I think of it ...
git-svn-id: file:///svn/phpbb/trunk@1160 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 20:28:45 +00:00
Paul S. Owen
6094714a65 Send new password + old password check stuff ... this time I'm fairly confident it works ... no really, I mean it
git-svn-id: file:///svn/phpbb/trunk@1159 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 18:27:35 +00:00
natec
d37f5611fb Fixed bug 462914, and fixed totally fux0red groups admin panel.
git-svn-id: file:///svn/phpbb/trunk@1158 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 18:06:28 +00:00
Paul S. Owen
61288e89d9 Send new password + old password check stuff ... this time I'm fairly confident it works
git-svn-id: file:///svn/phpbb/trunk@1157 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 17:55:39 +00:00
Paul S. Owen
eaec818287 Added Send New Password functions + added check for current password when changing
git-svn-id: file:///svn/phpbb/trunk@1156 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 17:34:28 +00:00
Paul S. Owen
e5a8bda3ff Added Send New Password functions + added check for current password when changing
git-svn-id: file:///svn/phpbb/trunk@1155 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 17:27:34 +00:00
Paul S. Owen
b408676555 Soon to be replaced with the new improved hyper-super-fluffy-magnifico-brill edition ...
git-svn-id: file:///svn/phpbb/trunk@1154 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 15:38:18 +00:00
Paul S. Owen
3516e80a3c Fixed bug #467825
git-svn-id: file:///svn/phpbb/trunk@1153 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 15:12:31 +00:00
Paul S. Owen
90091811b4 Span related update, Tom
git-svn-id: file:///svn/phpbb/trunk@1152 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 15:01:05 +00:00
Paul S. Owen
42b8a98cd0 Allow remote deletion of posts + addition of several new checks
git-svn-id: file:///svn/phpbb/trunk@1151 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 14:57:52 +00:00
Paul S. Owen
e09fc265cd Some lang file changes for profile, viewtopic and posting
git-svn-id: file:///svn/phpbb/trunk@1150 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 14:22:27 +00:00
Paul S. Owen
d70d3e4b8d Added rank output to view profile
git-svn-id: file:///svn/phpbb/trunk@1149 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 14:19:06 +00:00
Paul S. Owen
36f4f7eaac Fixed bug with deleting only post in forum
git-svn-id: file:///svn/phpbb/trunk@1148 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 10:45:54 +00:00
Paul S. Owen
dfb252e252 Minor updates and fixes
git-svn-id: file:///svn/phpbb/trunk@1147 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-10 00:00:42 +00:00
Paul S. Owen
84cc6cb8ae Few updates related to install -- you should use install.php from now on, do not run these separately
git-svn-id: file:///svn/phpbb/trunk@1146 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-09 23:29:51 +00:00
Paul S. Owen
463c2a00a1 Merged into install.tpl
git-svn-id: file:///svn/phpbb/trunk@1145 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-09 23:28:49 +00:00
Paul S. Owen
48f8c7be63 A few tweaks to install
git-svn-id: file:///svn/phpbb/trunk@1144 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-09 23:28:31 +00:00
natec
1d0ade7168 Fixed 468772 plus other moved-topic-inherits-stuff bugs.
git-svn-id: file:///svn/phpbb/trunk@1143 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-09 20:12:38 +00:00
natec
03a53c3720 Fixed bug 468765 - addslashes to topic title when moving topics.
git-svn-id: file:///svn/phpbb/trunk@1142 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-09 19:59:43 +00:00
natec
fe15c893cb Fixed profile bug where website contains a hyphen
git-svn-id: file:///svn/phpbb/trunk@1141 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-09 19:22:33 +00:00
Paul S. Owen
ec3a90a913 Various updates, Tom
git-svn-id: file:///svn/phpbb/trunk@1140 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-09 13:38:01 +00:00
natec
a57dd50f76 Fixed bug with non-ranked post getting the rank of the previous poster. Partially filed under #462263.
git-svn-id: file:///svn/phpbb/trunk@1139 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-08 18:08:09 +00:00
Paul S. Owen
efe2b06d81 Fixed preg single quote potential problem, altered jumpbox slightly - Third time lucky ... I hate FTP ...
git-svn-id: file:///svn/phpbb/trunk@1138 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-06 17:50:28 +00:00
Paul S. Owen
ea0bb125d2 Fixed preg single quote potential problem, altered jumpbox slightly
git-svn-id: file:///svn/phpbb/trunk@1137 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-06 17:49:09 +00:00
Paul S. Owen
2e1b7d42b1 Fixed preg single quote potential problem, altered jumpbox slightly
git-svn-id: file:///svn/phpbb/trunk@1136 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-06 17:21:10 +00:00
Paul S. Owen
12b93f8080 Updates by Tom
git-svn-id: file:///svn/phpbb/trunk@1135 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-06 16:04:36 +00:00
James Atkinson
ea5590297d Group CP is done (I hope). The group moderator and admin can add and remove users from groups.
There are several things in this I would like to change but its too late for 2.0, someone remind me during 2.2 discussions


git-svn-id: file:///svn/phpbb/trunk@1134 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-06 04:44:47 +00:00
Paul S. Owen
b431e279ce Couple more, thanks again Ashe for pointing potential problem
git-svn-id: file:///svn/phpbb/trunk@1133 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-06 00:59:02 +00:00
Paul S. Owen
0f2e3657e9 Potential security hole fixed, thanks Ashe for pointing it out
git-svn-id: file:///svn/phpbb/trunk@1132 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-06 00:51:53 +00:00
natec
598aab51a8 slight changes to benchmark script.
git-svn-id: file:///svn/phpbb/trunk@1131 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-05 20:01:54 +00:00
natec
e6f668724c Updated benchmark db populating script for current codebase. Removed some functionality (creation of cats/forums)...
git-svn-id: file:///svn/phpbb/trunk@1130 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-05 19:41:20 +00:00
Paul S. Owen
53cde745a3 Added one to check for display of goto page output
git-svn-id: file:///svn/phpbb/trunk@1129 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-05 14:14:21 +00:00
Paul S. Owen
d2f2d10929 Moved emailer instantiation out of loop, was causing failures during topic reply notifications
git-svn-id: file:///svn/phpbb/trunk@1128 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-05 14:13:58 +00:00
James Atkinson
5692f347e5 FAQ system..I"m not entirly happy with it but at this stage its too late to spend alot of time on something as small as this
git-svn-id: file:///svn/phpbb/trunk@1127 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-05 08:29:32 +00:00
Bart van Bragt
cd9dc47570 Make users active by default
git-svn-id: file:///svn/phpbb/trunk@1126 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-04 23:56:03 +00:00
the_systech
ba4944f1c7 Merge install and includes/installation, and updated error handling for config file unwritable.
git-svn-id: file:///svn/phpbb/trunk@1125 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-02 14:30:15 +00:00
Paul S. Owen
2d769f1c10 Tom's changes
git-svn-id: file:///svn/phpbb/trunk@1124 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-02 12:09:12 +00:00
Paul S. Owen
e4b75fa53c Now known as modcp_split.tpl
git-svn-id: file:///svn/phpbb/trunk@1123 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-02 01:29:39 +00:00
Paul S. Owen
1e911c2e64 Now known as modcp_split.tpl
git-svn-id: file:///svn/phpbb/trunk@1122 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-02 01:01:08 +00:00
Paul S. Owen
e1342f817a Tom's changes
git-svn-id: file:///svn/phpbb/trunk@1121 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-02 00:59:19 +00:00
Paul S. Owen
b9d1d73fc3 Tom's changes
git-svn-id: file:///svn/phpbb/trunk@1120 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-02 00:45:42 +00:00
Paul S. Owen
d4e7982e4d Now I know I FTP'd this, right before I emailed it to Tom ... what the heck is happening ...
git-svn-id: file:///svn/phpbb/trunk@1119 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-02 00:12:45 +00:00
Paul S. Owen
c1c17c30d3 Incorrect checkbox name
git-svn-id: file:///svn/phpbb/trunk@1118 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-02 00:05:41 +00:00
Paul S. Owen
b0a6fb6c87 Not needed
git-svn-id: file:///svn/phpbb/trunk@1117 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-02 00:04:46 +00:00
Paul S. Owen
f3e1a486cb Honest changes this time
git-svn-id: file:///svn/phpbb/trunk@1116 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-01 23:58:09 +00:00
Paul S. Owen
dcbeb2f43c This is getting boring ... I FTP, or think I do and yet still these files get through unchanged ...
git-svn-id: file:///svn/phpbb/trunk@1115 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-01 23:56:01 +00:00
Paul S. Owen
dad9ab95a2 Another file that didn't commit for some reason + change to subSilver body_text colour
git-svn-id: file:///svn/phpbb/trunk@1114 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-01 23:53:18 +00:00
Paul S. Owen
d3dc8ff222 Yet more additions ...
git-svn-id: file:///svn/phpbb/trunk@1113 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-01 23:47:19 +00:00
Paul S. Owen
cbb29ba4ca More additions, graphical
git-svn-id: file:///svn/phpbb/trunk@1112 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-01 23:25:10 +00:00
Paul S. Owen
a711e6d677 Changes related to private messaging + some bug fixes
git-svn-id: file:///svn/phpbb/trunk@1111 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-01 23:22:18 +00:00
Paul S. Owen
09dc77b581 Not needed
git-svn-id: file:///svn/phpbb/trunk@1110 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-01 21:25:58 +00:00
the_systech
57586ae96b fix for /* */ style comments...
git-svn-id: file:///svn/phpbb/trunk@1109 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-01 21:19:02 +00:00
the_systech
652bdcbb91 Changes in install
git-svn-id: file:///svn/phpbb/trunk@1108 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-01 19:37:11 +00:00
the_systech
552d9f6df2 Changes in install, process..
git-svn-id: file:///svn/phpbb/trunk@1107 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-10-01 19:36:45 +00:00
Paul S. Owen
b30b9b3b68 Fixed sql = NULL cockup and bug #466615
git-svn-id: file:///svn/phpbb/trunk@1106 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-30 23:26:33 +00:00
Paul S. Owen
f10ac64305 Apparently not wanted so there's no point in a) me having spent the morning doing it and b) keeping them in CVS ... removed
git-svn-id: file:///svn/phpbb/trunk@1105 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-29 17:59:18 +00:00
Paul S. Owen
b4f6e738c1 Will create a new file with arrays filled with schema/basic/trigger files in db dir
git-svn-id: file:///svn/phpbb/trunk@1104 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-29 14:08:53 +00:00
Paul S. Owen
2444330a23 Again seems I forgot to FTP this, adds the message_die for marking forums read
git-svn-id: file:///svn/phpbb/trunk@1103 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-28 23:46:04 +00:00
the_systech
28b08499da Updates for Install Process....
git-svn-id: file:///svn/phpbb/trunk@1102 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-28 20:12:23 +00:00
Paul S. Owen
4e27bb01ff Changes for subSilver template and minor other mods
git-svn-id: file:///svn/phpbb/trunk@1101 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-28 00:14:52 +00:00
Bart van Bragt
70df43fe94 Damn newlines
git-svn-id: file:///svn/phpbb/trunk@1100 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-27 17:28:10 +00:00
Bart van Bragt
235c8b18cc Error reporting on set_style()
git-svn-id: file:///svn/phpbb/trunk@1099 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-27 17:15:59 +00:00
Paul S. Owen
c27bd18798 Altered icons
git-svn-id: file:///svn/phpbb/trunk@1098 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-27 11:04:38 +00:00
James Atkinson
8a18db2b9d Fixed bug #465147
git-svn-id: file:///svn/phpbb/trunk@1097 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-27 10:05:17 +00:00
James Atkinson
ee22f2709c Finished up COPPA support (I hope), now has a form the parents can print and sign and added config areas for mailing address and fax number.
git-svn-id: file:///svn/phpbb/trunk@1096 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-27 09:48:37 +00:00
natec
131d2ed20e Templated bbcode.
git-svn-id: file:///svn/phpbb/trunk@1095 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-26 22:48:28 +00:00
Paul S. Owen
275f67a507 Added view newest output for topic search
git-svn-id: file:///svn/phpbb/trunk@1094 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-26 22:35:08 +00:00
Paul S. Owen
53dd64926a topic watch/forum/topic read now cause a message to be displayed, changed profile ICQ for subSilver, various other changes
git-svn-id: file:///svn/phpbb/trunk@1093 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-26 22:12:38 +00:00
Paul S. Owen
33d7444cc4 color and size tags
git-svn-id: file:///svn/phpbb/trunk@1092 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-26 21:43:55 +00:00
Paul S. Owen
58e830807a Bang goes my argument for moving the admin templates LOL
git-svn-id: file:///svn/phpbb/trunk@1091 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-26 14:33:57 +00:00
James Atkinson
14ff3d45cf ICQ decided to change the location of their online indicators. New location in viewtopic
git-svn-id: file:///svn/phpbb/trunk@1090 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-26 05:45:12 +00:00
Paul S. Owen
cb6991695d Just to bring CVS in-line with local copy
git-svn-id: file:///svn/phpbb/trunk@1089 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-26 01:36:52 +00:00
Paul S. Owen
09d4abb2ff Damn division by zero, who invented zero anyway, idiots
git-svn-id: file:///svn/phpbb/trunk@1088 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 23:36:11 +00:00
Paul S. Owen
0def804896 Admin definable max sig size
git-svn-id: file:///svn/phpbb/trunk@1087 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 23:22:42 +00:00
Paul S. Owen
2a228a29ed Slight mod to template name check for subSilver ICQ output ... must alter this
git-svn-id: file:///svn/phpbb/trunk@1086 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 18:47:08 +00:00
Paul S. Owen
191b513315 Forgot to ftp again ...
git-svn-id: file:///svn/phpbb/trunk@1085 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 18:42:36 +00:00
Paul S. Owen
d4f9010741 Updated and fixed various issues, see post in developers forum for info
git-svn-id: file:///svn/phpbb/trunk@1084 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 18:26:05 +00:00
Paul S. Owen
9de75b5dcf Updated and fixed various issues, see post in developers forum for info
git-svn-id: file:///svn/phpbb/trunk@1083 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 18:18:47 +00:00
Paul S. Owen
ea43268a21 subSilver goes into CVS
git-svn-id: file:///svn/phpbb/trunk@1082 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 18:13:12 +00:00
Paul S. Owen
d4e9ebd8b4 subSilver theme enters CVS ... yay
git-svn-id: file:///svn/phpbb/trunk@1081 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 18:04:32 +00:00
Paul S. Owen
ab034d7c28 Single transparent pixel spacer
git-svn-id: file:///svn/phpbb/trunk@1080 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 17:58:14 +00:00
Paul S. Owen
4e612546c7 Moved to functions
git-svn-id: file:///svn/phpbb/trunk@1079 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 17:54:28 +00:00
Paul S. Owen
823397ac0a Renamed and updated
git-svn-id: file:///svn/phpbb/trunk@1078 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 17:52:54 +00:00
Paul S. Owen
aa4d9ae285 Various updates associated with movement of user_sig encoding and style changes
git-svn-id: file:///svn/phpbb/trunk@1077 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 16:18:37 +00:00
Paul S. Owen
6b60a377c4 Minor change to layout
git-svn-id: file:///svn/phpbb/trunk@1076 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 00:59:24 +00:00
Paul S. Owen
335f76754b Fixed some missing brackets
git-svn-id: file:///svn/phpbb/trunk@1075 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 00:51:39 +00:00
Paul S. Owen
b14ed5c2fd Missed a . in the include
git-svn-id: file:///svn/phpbb/trunk@1074 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 00:48:12 +00:00
Paul S. Owen
a848bfd69e Forgot to delete watched topics when a topic is deleted
git-svn-id: file:///svn/phpbb/trunk@1073 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-25 00:23:01 +00:00
natec
cdc1597550 Even speedier version (at least 15 times faster) of split_sql_file(). wheeeeee.
git-svn-id: file:///svn/phpbb/trunk@1072 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-24 21:50:04 +00:00
Paul S. Owen
0fd5f22a8e Fixed bugs #464065, #464064 and problem with topic without poll causing error when deleted
git-svn-id: file:///svn/phpbb/trunk@1071 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-24 21:35:11 +00:00
the_systech
002946350c Added remove_comments function for processing mssql and postgress(/**/) style comments... also modified split_sql_file to rejoin statements using $delimiter instead of a hardcoded ";"
git-svn-id: file:///svn/phpbb/trunk@1070 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-24 19:48:11 +00:00
the_systech
1871f5e2c0 Seperated out sql parsing functions into a new file.
git-svn-id: file:///svn/phpbb/trunk@1069 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-24 17:26:36 +00:00
Paul S. Owen
bc14000a95 Mental note, remove old un-needed SQL ...
git-svn-id: file:///svn/phpbb/trunk@1068 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-24 16:33:48 +00:00
natec
34dbc44de2 forgot a couple things on my last checkin
git-svn-id: file:///svn/phpbb/trunk@1067 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-24 07:53:08 +00:00
natec
bd8fd724df Improved performance of split_sql_file() drasctically.
git-svn-id: file:///svn/phpbb/trunk@1066 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-24 07:48:29 +00:00
Paul S. Owen
502255de9c Going to try forcing -kb
git-svn-id: file:///svn/phpbb/trunk@1065 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-23 15:57:24 +00:00
Paul S. Owen
141a7ce3b6 Going to try forcing -kb
git-svn-id: file:///svn/phpbb/trunk@1064 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-23 15:56:53 +00:00
natec
2ea142d935 Improved the performance of remove_remarks() by an order of magnitude.
git-svn-id: file:///svn/phpbb/trunk@1063 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-23 00:31:56 +00:00
the_systech
fa76b50795 Fix for more \\ problems...
git-svn-id: file:///svn/phpbb/trunk@1062 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-18 19:01:58 +00:00
Paul S. Owen
27b189cd57 Various changes to notification, editing, etc. etc.
git-svn-id: file:///svn/phpbb/trunk@1061 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-18 01:24:47 +00:00
Paul S. Owen
1edabf19d7 Missed a ;
git-svn-id: file:///svn/phpbb/trunk@1060 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-17 21:22:45 +00:00
Paul S. Owen
875668761d This time without the echo checks ...
git-svn-id: file:///svn/phpbb/trunk@1059 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-17 21:00:06 +00:00
Paul S. Owen
1e9d526686 Removed space and dot from ICQ sql during insert causing erroneous display of ICQ icon
git-svn-id: file:///svn/phpbb/trunk@1058 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-17 20:49:49 +00:00
Paul S. Owen
91763ff32c Added search_results table
git-svn-id: file:///svn/phpbb/trunk@1057 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-17 19:55:34 +00:00
Paul S. Owen
6c10063d31 Found an issue with remote avatars I thought I'd solved ages ago ... hhmmm
git-svn-id: file:///svn/phpbb/trunk@1056 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-17 19:48:40 +00:00
Paul S. Owen
3cbbd612c9 Fixed bug #461949
git-svn-id: file:///svn/phpbb/trunk@1055 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-17 19:38:08 +00:00
Paul S. Owen
db192073f7 Should fix any remaining chance of bug #462318 ... should
git-svn-id: file:///svn/phpbb/trunk@1054 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-17 19:30:25 +00:00
Paul S. Owen
b12b1f8d64 New search 'stuff' ... not complete ... update
git-svn-id: file:///svn/phpbb/trunk@1053 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-17 01:07:38 +00:00
Paul S. Owen
2c15e806b4 New search 'stuff' ... not complete
git-svn-id: file:///svn/phpbb/trunk@1052 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-17 00:42:18 +00:00
Paul S. Owen
2d9d67fea8 New search 'stuff' ... not complete
git-svn-id: file:///svn/phpbb/trunk@1051 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-17 00:42:17 +00:00
Paul S. Owen
83eb43ec36 Renamed
git-svn-id: file:///svn/phpbb/trunk@1050 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-17 00:38:49 +00:00
Paul S. Owen
64356b885e Should fix bug #462074
git-svn-id: file:///svn/phpbb/trunk@1049 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-16 18:23:57 +00:00
Paul S. Owen
8f7ee5f295 Added alternative image capability for index forum icons
git-svn-id: file:///svn/phpbb/trunk@1048 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-16 16:47:43 +00:00
Paul S. Owen
a87703788e Various changes
git-svn-id: file:///svn/phpbb/trunk@1047 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-16 12:59:00 +00:00
Paul S. Owen
01f0a5d16c Added theme row colour/class support
git-svn-id: file:///svn/phpbb/trunk@1046 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-15 23:51:41 +00:00
Paul S. Owen
f1233468cf Done away with group vs. user switching, no point
git-svn-id: file:///svn/phpbb/trunk@1045 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-15 23:05:03 +00:00
Paul S. Owen
887bcf7494 Renamed as modcp_split.tpl
git-svn-id: file:///svn/phpbb/trunk@1044 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-15 23:03:59 +00:00
Paul S. Owen
00f894f742 Updated moderator panel, particularly move/delete topic
git-svn-id: file:///svn/phpbb/trunk@1043 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-15 23:03:31 +00:00
natec
1857c70a35 Bug 461842 fixed. Unnecessary uses of addslashes(), stripslashes(), and preg_quote() in search.php..
git-svn-id: file:///svn/phpbb/trunk@1042 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-15 22:53:02 +00:00
natec
fe252a54fd Fixed a situation where we weren't escaping sql special chars.
git-svn-id: file:///svn/phpbb/trunk@1041 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-15 22:11:20 +00:00
natec
d80238fe57 Fixed bug 461488. Variable name mismatch between code and templates.
git-svn-id: file:///svn/phpbb/trunk@1040 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-15 21:50:19 +00:00
James Atkinson
45074993f4 Fixed windows carriage returnes...the scourge that they are :)
git-svn-id: file:///svn/phpbb/trunk@1039 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-14 06:54:26 +00:00
natec
5cfa3166c2 Added some simple sanity-check validation to the optional profile fields.
git-svn-id: file:///svn/phpbb/trunk@1038 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-14 04:42:54 +00:00
James Atkinson
626a003eb6 Fixed little bug in the registration SQL
git-svn-id: file:///svn/phpbb/trunk@1037 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-14 00:21:07 +00:00
James Atkinson
788cc77be5 Updated oracle_schema and added queries to create a table space and a user for phpBB. Makes it a little easier for the novice oracle users out there
git-svn-id: file:///svn/phpbb/trunk@1036 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-14 00:09:28 +00:00
James Atkinson
e175b8eee4 More work on Oracle DBAL code
git-svn-id: file:///svn/phpbb/trunk@1035 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-13 23:19:53 +00:00
James Atkinson
649ef1b9f3 Added some END_TRANSACTION calls to sql_query statments so the sessions code works with Oracle now
git-svn-id: file:///svn/phpbb/trunk@1034 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-13 23:19:25 +00:00
James Atkinson
4e18945c0c Put transaction support into oracle DBAL
git-svn-id: file:///svn/phpbb/trunk@1033 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-13 10:10:07 +00:00
James Atkinson
2ce073c4ef Inital work on Oracle schema. If you are installing on oracle run the triggers file AFTER the basic file
git-svn-id: file:///svn/phpbb/trunk@1032 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-13 09:54:09 +00:00
natec
b64ac01603 fixed bug 460663 -- we were trying to use the wrong field as the email addy when sending reply notification emails.
git-svn-id: file:///svn/phpbb/trunk@1031 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-11 22:52:56 +00:00
Bart van Bragt
6504728b3b Removed lots of stripslashes() and fixed Avatar if remote
git-svn-id: file:///svn/phpbb/trunk@1030 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-11 10:19:12 +00:00
Bart van Bragt
55ce5666b7 Sort userlist in user administration
git-svn-id: file:///svn/phpbb/trunk@1029 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-11 10:03:37 +00:00
natec
b2ce7e4e7f Fix for part of bug 460308. We weren't checking if the forum belonged to the current cat before we drew it under that cat..
git-svn-id: file:///svn/phpbb/trunk@1028 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-11 04:03:00 +00:00
natec
604d939d8d Fixed bug 459576 (bad link in PM sentbox). We weren't pulling the user's email from the database, so we couldn't add it to the 'email' link's url.
git-svn-id: file:///svn/phpbb/trunk@1027 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-11 03:28:47 +00:00
James Atkinson
ff898dab57 Fixed little bug with auto-linking screwing up links when both at the end of a message and the signature is attached.
This fix works, but dosan't really solve the problem because I have no idea why it was happening in the first place


git-svn-id: file:///svn/phpbb/trunk@1026 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-10 23:07:57 +00:00
James Atkinson
09ae82cd77 Fixed up postgres schema and basic so they work with new config table and theme/templates combination
git-svn-id: file:///svn/phpbb/trunk@1025 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-10 22:53:52 +00:00
Paul S. Owen
08cb824e37 Missed a couple of config name changes
git-svn-id: file:///svn/phpbb/trunk@1024 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-10 16:20:40 +00:00
Paul S. Owen
73f10b93b3 Missed a couple of config name changes
git-svn-id: file:///svn/phpbb/trunk@1023 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-10 14:22:17 +00:00
Paul S. Owen
329c1fd90b Added back
git-svn-id: file:///svn/phpbb/trunk@1022 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-10 01:00:23 +00:00
Paul S. Owen
cb6369db67 Modified for modification to templates/themes
git-svn-id: file:///svn/phpbb/trunk@1021 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-10 00:16:37 +00:00
Paul S. Owen
6e81d5fd96 Modified for modification to templates/themes
git-svn-id: file:///svn/phpbb/trunk@1020 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-09 23:56:04 +00:00
Paul S. Owen
c342a3c365 Combined theme/templates in profile as suggested, added META refresh and made a couple of other changes
git-svn-id: file:///svn/phpbb/trunk@1019 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-09 23:37:30 +00:00
Paul S. Owen
c0ac873a08 Combined theme/templates in profile as suggested, added META refresh and made a couple of other changes
git-svn-id: file:///svn/phpbb/trunk@1018 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-09 23:22:29 +00:00
Bart van Bragt
375e4d9903 Fixed bug #460075
git-svn-id: file:///svn/phpbb/trunk@1017 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-09 21:13:25 +00:00
Bart van Bragt
828447f535 Removed some trailing newlines
git-svn-id: file:///svn/phpbb/trunk@1016 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-09 12:40:42 +00:00
Bart van Bragt
34c4e7c820 Fixed deleting/creating with no forums/cats left, bug #459962
git-svn-id: file:///svn/phpbb/trunk@1015 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-09 12:23:39 +00:00
Bart van Bragt
19ca822630 Fixed bug #459874
git-svn-id: file:///svn/phpbb/trunk@1014 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-08 22:58:10 +00:00
Bart van Bragt
3a56a22f25 Don't need config_id anymore obviously
git-svn-id: file:///svn/phpbb/trunk@1013 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-08 19:23:33 +00:00
Bart van Bragt
31afcf748c Aaaaaaaargh\!
git-svn-id: file:///svn/phpbb/trunk@1012 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-08 18:43:00 +00:00
Bart van Bragt
6ffbd3d302 Damn, checked in config.php again..
git-svn-id: file:///svn/phpbb/trunk@1011 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-08 18:42:16 +00:00
Bart van Bragt
9b64a5d50c Altered layout of phpbb_config table
git-svn-id: file:///svn/phpbb/trunk@1010 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-08 18:24:34 +00:00
Paul S. Owen
19ae53a5b1 Couple of mods to template and addition of rdns lookup for IP
git-svn-id: file:///svn/phpbb/trunk@1009 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 23:42:26 +00:00
James Atkinson
d51c14ea0a View IP code in
git-svn-id: file:///svn/phpbb/trunk@1008 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 22:56:50 +00:00
dougk_ff7
60e3f50b61 weee! the last commit. (I mean it this time)
git-svn-id: file:///svn/phpbb/trunk@1007 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 22:33:50 +00:00
dougk_ff7
0d30dc8a82 weee! the last commit.
git-svn-id: file:///svn/phpbb/trunk@1006 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 22:32:30 +00:00
dougk_ff7
0f373352ae even more changes....
git-svn-id: file:///svn/phpbb/trunk@1005 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 22:29:32 +00:00
dougk_ff7
bce0ff61a8 Woohoo\! More fixes\!
git-svn-id: file:///svn/phpbb/trunk@1004 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 22:18:38 +00:00
dougk_ff7
c434485c76 Oops, a little CVS conflict.
git-svn-id: file:///svn/phpbb/trunk@1003 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 22:07:14 +00:00
James Atkinson
289e45ae6f Fixed postgres schema so it works with polls
git-svn-id: file:///svn/phpbb/trunk@1002 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 22:01:39 +00:00
Paul S. Owen
3d72b78424 Fixed looping END_TRANSACTION ... oops
git-svn-id: file:///svn/phpbb/trunk@1001 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 16:59:44 +00:00
Paul S. Owen
ed26632a7f Updated mssql schema and basic, and added commit for remaining transactions
git-svn-id: file:///svn/phpbb/trunk@1000 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 16:58:45 +00:00
Paul S. Owen
7cd384c5b4 Fixed bug #459427
git-svn-id: file:///svn/phpbb/trunk@999 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 12:32:47 +00:00
Paul S. Owen
6695be87e8 Moved signature attach toggle to DB run convert_sig to update after adding new field to DB
git-svn-id: file:///svn/phpbb/trunk@998 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-07 00:23:40 +00:00
Paul S. Owen
da87531f2f Added underlined text [u][/u]
git-svn-id: file:///svn/phpbb/trunk@997 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-06 23:30:56 +00:00
dougk_ff7
1259539873 More bug fixes....
git-svn-id: file:///svn/phpbb/trunk@996 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-06 21:25:08 +00:00
Paul S. Owen
6bf4a912c0 Fix for admin general config using user defaults rather than board defaults for output
git-svn-id: file:///svn/phpbb/trunk@995 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-06 17:14:58 +00:00
Paul S. Owen
ad2b76ea29 Possible fix for bug #459075, please report any strange behaviour with this update
git-svn-id: file:///svn/phpbb/trunk@994 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-06 16:48:15 +00:00
Paul S. Owen
2404f6daf5 Fixed minor probs with template
git-svn-id: file:///svn/phpbb/trunk@993 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-06 14:05:41 +00:00
Paul S. Owen
1587ff6b0f Some minor alterations to template/language
git-svn-id: file:///svn/phpbb/trunk@992 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-06 13:12:45 +00:00
dougk_ff7
8a37c2bd5e oops, a few bugs. :)
git-svn-id: file:///svn/phpbb/trunk@991 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-06 02:21:24 +00:00
dougk_ff7
ca233d7fa3 A few changes to the User Admin code (much cleaner) and also this time, I ran fix_files.sh! *cheer* ;)
git-svn-id: file:///svn/phpbb/trunk@990 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-06 01:44:55 +00:00
Paul S. Owen
9c9c428cd0 Numerous updates and additions for polling and assorted fixes ... or bugs, whichever they turn out to be
git-svn-id: file:///svn/phpbb/trunk@989 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-06 00:44:46 +00:00
Paul S. Owen
5db9d42145 Numerous updates and additions for polling and assorted fixes ... or bugs, whichever they turn out to be
git-svn-id: file:///svn/phpbb/trunk@988 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-06 00:34:40 +00:00
Paul S. Owen
ef36331c3e Numerous updates and additions for polling and assorted fixes ... or bugs, whichever they turn out to be
git-svn-id: file:///svn/phpbb/trunk@987 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-06 00:29:07 +00:00
gpolins
620e60adbb BCC and Template Update
git-svn-id: file:///svn/phpbb/trunk@986 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-05 23:20:59 +00:00
gpolins
d1216000c1 Update Mass Mail explanation
git-svn-id: file:///svn/phpbb/trunk@985 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-05 23:20:23 +00:00
gpolins
6f6110d9d6 Added notice
git-svn-id: file:///svn/phpbb/trunk@984 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-05 23:19:53 +00:00
Bart van Bragt
2fec333213 Enabled just deleting a forum instead of moving msgs
git-svn-id: file:///svn/phpbb/trunk@983 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-05 11:43:25 +00:00
gpolins
d40479473f Changed to post method
git-svn-id: file:///svn/phpbb/trunk@982 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-05 02:53:08 +00:00
gpolins
7d47e3481c Template for mass emailing
git-svn-id: file:///svn/phpbb/trunk@981 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-05 02:44:28 +00:00
gpolins
07465b0de0 First entry for mass emailing
git-svn-id: file:///svn/phpbb/trunk@980 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-05 02:43:32 +00:00
gpolins
9882ef9ef0 Updated for mass emailing
git-svn-id: file:///svn/phpbb/trunk@979 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-05 02:31:47 +00:00
Bart van Bragt
5206e124cc Reshuffled some things, removed some debugging
git-svn-id: file:///svn/phpbb/trunk@978 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-03 17:16:34 +00:00
James Atkinson
7d0d488f25 Fixed bug #457840
git-svn-id: file:///svn/phpbb/trunk@977 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-03 08:04:26 +00:00
James Atkinson
e515d617ed Fixed bug #457835
git-svn-id: file:///svn/phpbb/trunk@976 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-03 07:52:57 +00:00
Paul S. Owen
61a1e50052 Fixed Add Word - 2
git-svn-id: file:///svn/phpbb/trunk@975 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-02 22:59:41 +00:00
Paul S. Owen
dce8578de5 Fixed Add Word
git-svn-id: file:///svn/phpbb/trunk@974 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-02 22:26:15 +00:00
Paul S. Owen
107a3162c2 Fix for bug #457835
git-svn-id: file:///svn/phpbb/trunk@973 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-02 22:08:01 +00:00
Paul S. Owen
19469ed26e Removed url output for location
git-svn-id: file:///svn/phpbb/trunk@972 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-02 22:02:54 +00:00
dougk_ff7
29ea1679eb Fixing a few bugs....
git-svn-id: file:///svn/phpbb/trunk@971 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-02 15:48:12 +00:00
Paul S. Owen
3054ca04b6 Added meta tag for whatever...
git-svn-id: file:///svn/phpbb/trunk@970 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-02 14:15:35 +00:00
Paul S. Owen
fda33bc271 Added PHPBB_VERSION rather than hardcoded version number
git-svn-id: file:///svn/phpbb/trunk@969 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-02 13:34:01 +00:00
Paul S. Owen
ad8c8ed6bf Split words into separate file, various updates, fix for wrong template action name
git-svn-id: file:///svn/phpbb/trunk@968 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-02 13:33:23 +00:00
James Atkinson
182ab7512b Code for word censor admin, tons o' fun
git-svn-id: file:///svn/phpbb/trunk@967 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-02 10:08:43 +00:00
James Atkinson
92bb3a8905 Templates for word censor
git-svn-id: file:///svn/phpbb/trunk@966 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-02 10:08:04 +00:00
James Atkinson
fc07e5b3aa fixed bug #457604
git-svn-id: file:///svn/phpbb/trunk@965 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-02 08:54:09 +00:00
Paul S. Owen
71f747a252 Updated various internal code, altered some template var names, etc.
git-svn-id: file:///svn/phpbb/trunk@964 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-01 23:11:34 +00:00
Paul S. Owen
e1a620276e Updated and renamed
git-svn-id: file:///svn/phpbb/trunk@963 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-01 23:10:42 +00:00
Paul S. Owen
ccb121a1a5 Added additional cache control headers
git-svn-id: file:///svn/phpbb/trunk@962 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-01 22:04:44 +00:00
Paul S. Owen
d48ebf9e04 Tidied up the sync functions
git-svn-id: file:///svn/phpbb/trunk@961 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-09-01 16:08:24 +00:00
Paul S. Owen
0316d0a490 Removed quoted numeric fields in SQL, tidied up various things
git-svn-id: file:///svn/phpbb/trunk@960 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 23:22:49 +00:00
James Atkinson
c684df1d9b Ccouple minor fixes
git-svn-id: file:///svn/phpbb/trunk@959 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 22:00:44 +00:00
Bart van Bragt
a9afe47b2a Fixed some URL's
git-svn-id: file:///svn/phpbb/trunk@958 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 21:45:05 +00:00
the_systech
9ef75ba2b8 Fix for Paul's Polling problem..
git-svn-id: file:///svn/phpbb/trunk@957 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 20:59:12 +00:00
the_systech
5c6eb1e149 Additions for forum auto_pruning, and fix for form submission on edits
git-svn-id: file:///svn/phpbb/trunk@956 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 20:58:31 +00:00
James Atkinson
ddf104d781 Fixes for bugs 457239 and 457301
git-svn-id: file:///svn/phpbb/trunk@955 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 20:32:44 +00:00
Paul S. Owen
6d77d2348e fixed spelling error in config
git-svn-id: file:///svn/phpbb/trunk@954 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 17:12:55 +00:00
Paul S. Owen
3fa16ba621 Fixed missing zlib extension check
git-svn-id: file:///svn/phpbb/trunk@953 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 15:13:34 +00:00
Bart van Bragt
d25966c0d7 Fixed bug #457043, couldn't edit cats
git-svn-id: file:///svn/phpbb/trunk@952 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 07:16:48 +00:00
gpolins
251eb15fec Changed all error_die to message_die
git-svn-id: file:///svn/phpbb/trunk@951 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 03:09:42 +00:00
James Atkinson
6cd6010e47 Added postgres basic file..can't believe I missed this..
git-svn-id: file:///svn/phpbb/trunk@950 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 00:37:26 +00:00
Paul S. Owen
6600dbad3a Fixed #457051 - USER_GROUPS_TABLE error
git-svn-id: file:///svn/phpbb/trunk@949 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-31 00:08:36 +00:00
James Atkinson
c32f20bc52 Removed referance to viewip templates to remove error in beta 1
git-svn-id: file:///svn/phpbb/trunk@948 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-30 23:53:48 +00:00
Paul S. Owen
13d9b6df5f Try again ...
git-svn-id: file:///svn/phpbb/trunk@947 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-30 23:38:08 +00:00
Paul S. Owen
071e952ab0 Try again ...
git-svn-id: file:///svn/phpbb/trunk@946 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-30 23:36:44 +00:00
Paul S. Owen
8857e88fad Damn binary rubbish
git-svn-id: file:///svn/phpbb/trunk@945 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-30 23:35:17 +00:00
James Atkinson
0b8ecf17a7 Took out debugging stuff for prelim. view ip functions
git-svn-id: file:///svn/phpbb/trunk@944 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-30 22:34:59 +00:00
James Atkinson
191e52086f Re-added GPL disclaimers
git-svn-id: file:///svn/phpbb/trunk@943 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-30 22:20:23 +00:00
Paul S. Owen
8d34f5a0fe Re-added GPL disclaimer
git-svn-id: file:///svn/phpbb/trunk@942 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-30 22:07:08 +00:00
Bart van Bragt
d69d90b9a8 Implemented order modification functions
git-svn-id: file:///svn/phpbb/trunk@941 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-29 14:35:37 +00:00
the_systech
7928be9aa2 Backed out 1.10 changes to 1.9, then redid header changes and fixed PHPSELF to PHP_SELF
git-svn-id: file:///svn/phpbb/trunk@940 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-28 20:36:22 +00:00
the_systech
f62d3fd486 Fix so that it doesn't get directory names, only filenames when looking for smiley images (ie CVS)
git-svn-id: file:///svn/phpbb/trunk@939 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-28 19:58:01 +00:00
the_systech
063c620406 Change smiley select code in admin... Uses javascript in Template (good/bad?)
git-svn-id: file:///svn/phpbb/trunk@938 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-28 19:26:52 +00:00
the_systech
fac05e46a9 addition for sorting smiley codes so that they all work properly on all DBMS's
The smiley functions should probably be moved to bbcode.php at some point


git-svn-id: file:///svn/phpbb/trunk@937 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-28 14:33:28 +00:00
Paul S. Owen
f844ff63a6 Not relevant any more
git-svn-id: file:///svn/phpbb/trunk@936 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-26 14:37:50 +00:00
Paul S. Owen
e1fde13648 Modified header comments
git-svn-id: file:///svn/phpbb/trunk@935 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-26 14:35:39 +00:00
Paul S. Owen
56a52d5c47 Modified header comments
git-svn-id: file:///svn/phpbb/trunk@934 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-26 14:20:29 +00:00
Paul S. Owen
92fda1ce7c Modified header comments
git-svn-id: file:///svn/phpbb/trunk@933 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-26 14:04:27 +00:00
Paul S. Owen
54b29cc125 Modified header comments
git-svn-id: file:///svn/phpbb/trunk@932 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-26 13:53:41 +00:00
Paul S. Owen
1330d26720 Thought it best to add the email validate now
git-svn-id: file:///svn/phpbb/trunk@931 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-24 15:47:14 +00:00
Bart van Bragt
8723edc8c8 Made moving/deleting cats/forums possible
git-svn-id: file:///svn/phpbb/trunk@930 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 22:31:44 +00:00
Paul S. Owen
4d04c8bad5 Fixed error in theme entry
git-svn-id: file:///svn/phpbb/trunk@929 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 21:19:11 +00:00
Paul S. Owen
2782a4a2a3 Fixed error in theme entry
git-svn-id: file:///svn/phpbb/trunk@928 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 21:12:07 +00:00
Paul S. Owen
806d4ed8da New, updated schemas, profile
git-svn-id: file:///svn/phpbb/trunk@927 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 21:00:11 +00:00
Bart van Bragt
81aaa278b1 Adapted for admin_forums
git-svn-id: file:///svn/phpbb/trunk@926 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 18:16:35 +00:00
Paul S. Owen
7dbfbde723 Fixed title for quoted replies
git-svn-id: file:///svn/phpbb/trunk@925 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 15:55:35 +00:00
Paul S. Owen
f1bc3ef37f ODBC only returning associative fields so modded next/prev topic code appropriately
git-svn-id: file:///svn/phpbb/trunk@924 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 15:55:13 +00:00
Paul S. Owen
4ff00f4080 ODBC only returning associative fields so modded next/prev topic code appropriately
git-svn-id: file:///svn/phpbb/trunk@923 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 15:30:12 +00:00
Paul S. Owen
ed26a546c6 Updated already ...
git-svn-id: file:///svn/phpbb/trunk@922 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 15:12:28 +00:00
Paul S. Owen
cb2f931b42 LENGTH not compatible with ODBC
git-svn-id: file:///svn/phpbb/trunk@921 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 15:11:11 +00:00
Paul S. Owen
e5753a1371 Fixed nextid
git-svn-id: file:///svn/phpbb/trunk@920 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 15:06:01 +00:00
Paul S. Owen
415bdfb68b Updated basic inc words
git-svn-id: file:///svn/phpbb/trunk@919 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 14:51:33 +00:00
Paul S. Owen
07bf9ab49c Initial MS Access DB, schema and basic data
git-svn-id: file:///svn/phpbb/trunk@918 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 14:51:23 +00:00
Paul S. Owen
684b1b88d9 Various updates for templates
git-svn-id: file:///svn/phpbb/trunk@917 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 13:17:07 +00:00
Paul S. Owen
c7a0d17672 Fixed problem with not all topics being displayed when there were announcements
git-svn-id: file:///svn/phpbb/trunk@916 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-23 11:43:45 +00:00
James Atkinson
714f77f6ce Some updates to postgres schema
git-svn-id: file:///svn/phpbb/trunk@915 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-22 00:54:26 +00:00
Paul S. Owen
30ca42f6cf Removed trailing newline and windows carriage returns ...
git-svn-id: file:///svn/phpbb/trunk@914 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-21 20:33:51 +00:00
Paul S. Owen
ecabf09f95 Added border=0 as suggested to remove borders around linked smilies
git-svn-id: file:///svn/phpbb/trunk@913 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-21 19:41:28 +00:00
Paul S. Owen
37818e4c9d Fixed problem with index not showing unread topics in forums for recent replies
git-svn-id: file:///svn/phpbb/trunk@912 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-21 16:35:52 +00:00
James Atkinson
68a2c07b2e Fixed mysql_basic file for beta 1
git-svn-id: file:///svn/phpbb/trunk@911 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-21 06:22:08 +00:00
Paul S. Owen
3fe7e0f6cc Beta-1 name changes
git-svn-id: file:///svn/phpbb/trunk@910 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-20 22:23:48 +00:00
Paul S. Owen
fb5cd25094 Group id now taken from group table rather than next_id
git-svn-id: file:///svn/phpbb/trunk@909 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-20 15:59:03 +00:00
gpolins
7d408e5429 Added NOT NULL to 3 unique keys - mysql complained
git-svn-id: file:///svn/phpbb/trunk@908 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-19 22:10:39 +00:00
gpolins
5f0c024f0c Fixed moved topic in sync
git-svn-id: file:///svn/phpbb/trunk@907 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-19 22:09:33 +00:00
dougk_ff7
35e78e31c9 Finishing touches on group admin (for now) :D
git-svn-id: file:///svn/phpbb/trunk@906 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-19 15:01:51 +00:00
Bart van Bragt
b37eace657 Implemented category manegement
git-svn-id: file:///svn/phpbb/trunk@905 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-18 14:35:51 +00:00
Paul S. Owen
7f3db9c245 Removed duplicate users improved guest user output
git-svn-id: file:///svn/phpbb/trunk@904 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-18 13:49:29 +00:00
Paul S. Owen
d78809cb5f Remote avatar support
git-svn-id: file:///svn/phpbb/trunk@903 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-18 12:38:05 +00:00
gpolins
a8a370a6ab Updated deletion to include sync
git-svn-id: file:///svn/phpbb/trunk@902 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-17 22:54:00 +00:00
gpolins
9b12f772cf Fixed bug in updating forum last post in sync
git-svn-id: file:///svn/phpbb/trunk@901 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-17 22:51:56 +00:00
gpolins
ea1f0debe6 Fixed bug in updating forum last post
git-svn-id: file:///svn/phpbb/trunk@900 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-17 22:40:49 +00:00
James Atkinson
edd5b78b36 Group CP done, except for group moderators removing group members
git-svn-id: file:///svn/phpbb/trunk@899 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-17 17:40:37 +00:00
Paul S. Owen
ca10febbbd Do a MySQL version check before running table status
git-svn-id: file:///svn/phpbb/trunk@898 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-17 16:08:18 +00:00
Paul S. Owen
185faf1328 Hot folders working ... only based on hot_threshold for replies
git-svn-id: file:///svn/phpbb/trunk@897 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-17 12:11:13 +00:00
James Atkinson
dcde945443 Fixed viewforum so topic titles show up when you don't have words in your censor list
git-svn-id: file:///svn/phpbb/trunk@896 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-17 05:13:21 +00:00
Paul S. Owen
baddbe3777 Just some jiggling
git-svn-id: file:///svn/phpbb/trunk@895 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-17 00:32:43 +00:00
dougk_ff7
6d29810297 User delete now deletes user from groups
git-svn-id: file:///svn/phpbb/trunk@894 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-16 20:38:49 +00:00
Paul S. Owen
475dd0cd30 Updated for removal of topic_notify
git-svn-id: file:///svn/phpbb/trunk@893 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-16 14:47:23 +00:00
James Atkinson
cc5c71851d Fixed little bug causing parse error
git-svn-id: file:///svn/phpbb/trunk@892 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-16 07:44:57 +00:00
James Atkinson
ab55f28b81 Some work on group cp done. Can apply to join a group and the moderator can approve or deny.
TODO: Implement email sent when approved/denied.
      Implement ability for group moderator to remove a group member.


git-svn-id: file:///svn/phpbb/trunk@891 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-16 07:37:22 +00:00
gpolins
1390d48aa3 Deleting moved topics now works
git-svn-id: file:///svn/phpbb/trunk@890 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-16 04:49:42 +00:00
Paul S. Owen
5c7b614ee1 A few changes and updates, removed fields no longer used, etc.
git-svn-id: file:///svn/phpbb/trunk@889 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 23:45:24 +00:00
Paul S. Owen
aaf2ec5901 Add word censor to preview mode
git-svn-id: file:///svn/phpbb/trunk@888 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 22:54:48 +00:00
Paul S. Owen
88d259a6c2 Another file that shouldve commited ages ago, adds word censor to topic titles
git-svn-id: file:///svn/phpbb/trunk@887 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 22:53:57 +00:00
Bart van Bragt
d4ca9eb809 Parial forum admin, add/edit forum is working
git-svn-id: file:///svn/phpbb/trunk@886 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 22:13:50 +00:00
Paul S. Owen
816f2670fa Match topic and post subject too
git-svn-id: file:///svn/phpbb/trunk@885 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 16:15:26 +00:00
Paul S. Owen
5f3f466898 Wildcard for censored words now works correctly
git-svn-id: file:///svn/phpbb/trunk@884 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 16:00:57 +00:00
the_systech
0f21ea1e90 Hurray the smilies code appears to work :)
git-svn-id: file:///svn/phpbb/trunk@883 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 15:51:02 +00:00
dougk_ff7
a9e82a381d Fixed a bug (hopefully) preventing admin panel from being displayed
git-svn-id: file:///svn/phpbb/trunk@882 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 11:54:40 +00:00
Paul S. Owen
f65f865ccd Updated for possible new images
git-svn-id: file:///svn/phpbb/trunk@881 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 01:55:37 +00:00
Paul S. Owen
b471626ab4 Re-jiggled censored word stuff and added wildcard ... needs testing
git-svn-id: file:///svn/phpbb/trunk@880 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 01:46:27 +00:00
Paul S. Owen
0bc2d131aa Primary key bad, key good ...
git-svn-id: file:///svn/phpbb/trunk@879 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 00:54:31 +00:00
dougk_ff7
f8d5fd6422 Group admin isn't finished, but I felt like committing it anyway...
git-svn-id: file:///svn/phpbb/trunk@878 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-15 00:30:31 +00:00
James Atkinson
e2710a5101 A few changes to topic moving. TOPIC_MOVE constant gets set to the topic_status field so that moved topics don't 'stick' at the top of viewforum. Also, added topic_moved_id field to store the ID that the topic moves to.
git-svn-id: file:///svn/phpbb/trunk@877 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 20:43:56 +00:00
blackpuma
bd8652f186 Word censoring, first part. Does not support wildcards yet but that's coming in the next step.
git-svn-id: file:///svn/phpbb/trunk@876 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 17:55:32 +00:00
the_systech
7503c85590 Ok last bit with the smilies :)
git-svn-id: file:///svn/phpbb/trunk@875 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 17:49:12 +00:00
the_systech
56ca4e53d7 Another attempt at fixing smilies code :)
git-svn-id: file:///svn/phpbb/trunk@874 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 17:17:50 +00:00
the_systech
02ac5e5943 Fix for smilies code ;)
git-svn-id: file:///svn/phpbb/trunk@873 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 17:02:30 +00:00
Paul S. Owen
81f6c68567 Try again
git-svn-id: file:///svn/phpbb/trunk@872 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 16:31:24 +00:00
Paul S. Owen
6288f08544 Messed up
git-svn-id: file:///svn/phpbb/trunk@871 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 16:30:08 +00:00
Paul S. Owen
6982a436fc Try again
git-svn-id: file:///svn/phpbb/trunk@870 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 15:54:48 +00:00
Paul S. Owen
eb25b15f84 Messed up
git-svn-id: file:///svn/phpbb/trunk@869 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 15:54:04 +00:00
Paul S. Owen
369bd203b0 Latest schema
git-svn-id: file:///svn/phpbb/trunk@868 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 15:22:58 +00:00
Paul S. Owen
5a9dd45aaa Error in name of notifyreply var
git-svn-id: file:///svn/phpbb/trunk@867 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 14:49:43 +00:00
Paul S. Owen
18898a19c4 Notify on reply now supposedly fully functional
git-svn-id: file:///svn/phpbb/trunk@866 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 13:45:42 +00:00
Paul S. Owen
07028bc04f Notify on reply now supposedly fully functional
git-svn-id: file:///svn/phpbb/trunk@865 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 13:37:28 +00:00
Paul S. Owen
22471c9e1e Topic notification ... initial stuff
git-svn-id: file:///svn/phpbb/trunk@864 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 00:40:21 +00:00
Paul S. Owen
a23e75b498 Topic notification ... initial stuff
git-svn-id: file:///svn/phpbb/trunk@863 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 00:30:44 +00:00
Paul S. Owen
a34d5d2abb Topic notification ... initial stuff
git-svn-id: file:///svn/phpbb/trunk@862 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-14 00:29:39 +00:00
dougk_ff7
538b793e65 Messed up lang file.
git-svn-id: file:///svn/phpbb/trunk@861 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 22:16:08 +00:00
dougk_ff7
fe77fae929 Quick bugfixes.
git-svn-id: file:///svn/phpbb/trunk@860 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 22:14:11 +00:00
dougk_ff7
095fe73436 Switchover from message_die to admin_message_body template.
git-svn-id: file:///svn/phpbb/trunk@859 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 22:03:03 +00:00
dougk_ff7
c4ca2f5579 Bug fixes, typo (user was successfully ddeleted) :)
git-svn-id: file:///svn/phpbb/trunk@858 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 21:13:19 +00:00
dougk_ff7
b476b503c5 Added user deleting, as well as a few minor changes.
git-svn-id: file:///svn/phpbb/trunk@857 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 20:54:01 +00:00
dougk_ff7
6719728834 You'll need these! :)
git-svn-id: file:///svn/phpbb/trunk@856 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 20:09:24 +00:00
dougk_ff7
a1001079a2 Added user administration. A little left to do...
git-svn-id: file:///svn/phpbb/trunk@855 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 20:05:06 +00:00
gpolins
b9440d53fa Added move topic constants
git-svn-id: file:///svn/phpbb/trunk@854 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 17:42:49 +00:00
gpolins
8c419aa942 Added move topic words
git-svn-id: file:///svn/phpbb/trunk@853 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 17:42:15 +00:00
gpolins
681709bb0b Added move topic viewing
git-svn-id: file:///svn/phpbb/trunk@852 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 17:41:15 +00:00
gpolins
601d3bcc47 Added move topic
git-svn-id: file:///svn/phpbb/trunk@851 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 17:40:42 +00:00
Paul S. Owen
3489840e84 Removed windows returns and final newline
git-svn-id: file:///svn/phpbb/trunk@850 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 14:15:47 +00:00
James Atkinson
f3b3420d21 Removed defunct entries for welcome email and activation emails
git-svn-id: file:///svn/phpbb/trunk@849 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 07:52:11 +00:00
James Atkinson
b30de6fd69 If a user changes their email address, and account activation is turned on, the user will have to re-activate their account via URL sent in email
git-svn-id: file:///svn/phpbb/trunk@848 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 07:40:52 +00:00
dougk_ff7
0073e1ffe4 Fixes a template parsing error.
git-svn-id: file:///svn/phpbb/trunk@847 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 04:08:02 +00:00
James Atkinson
1e1eaa8146 Fixed configuration code, works now
git-svn-id: file:///svn/phpbb/trunk@846 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 03:38:47 +00:00
James Atkinson
282367ea52 Implmented the emailer class everywhere it needs it (just registration and private message notification so far)
git-svn-id: file:///svn/phpbb/trunk@845 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 03:16:35 +00:00
James Atkinson
df3da5934d Added emailer class, did alterations and templates for registration
Welcome message vars can be removed from lang file


git-svn-id: file:///svn/phpbb/trunk@844 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-13 01:07:14 +00:00
Paul S. Owen
887bef5659 Stupid oversight on slashing vars fixed ... doh
git-svn-id: file:///svn/phpbb/trunk@843 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-12 23:22:54 +00:00
Paul S. Owen
902d5c63ed Problems with pagestart removed, some minor mods
git-svn-id: file:///svn/phpbb/trunk@842 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-12 23:01:09 +00:00
James Atkinson
7ff7b65a79 Put a fix back into lang_english so the timezones will display in the 'All times in' section on all pages
git-svn-id: file:///svn/phpbb/trunk@841 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-12 01:52:16 +00:00
Paul S. Owen
348090f167 These apparently didnt commit
git-svn-id: file:///svn/phpbb/trunk@840 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-11 22:02:32 +00:00
Paul S. Owen
4aa5cf9755 Mr Green is back
git-svn-id: file:///svn/phpbb/trunk@839 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-11 11:42:38 +00:00
Paul S. Owen
073c81ab85 Changes to posting body reflecting changes to posting.php
git-svn-id: file:///svn/phpbb/trunk@838 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-10 23:39:31 +00:00
Paul S. Owen
64c167edf4 Only give sig option if user has a signature, display correct signature when editing, do user_id check for edit preview
git-svn-id: file:///svn/phpbb/trunk@837 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-10 23:13:41 +00:00
Paul S. Owen
9899e2b975 Various posting updates
git-svn-id: file:///svn/phpbb/trunk@836 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-10 22:00:12 +00:00
Paul S. Owen
38444b8f10 User posts was not being set as 0 by DEFAULT
git-svn-id: file:///svn/phpbb/trunk@835 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-10 13:58:20 +00:00
Paul S. Owen
3e197abb06 New evil and cry
git-svn-id: file:///svn/phpbb/trunk@834 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-10 13:29:43 +00:00
Paul S. Owen
66b98c3181 Smilies additions to basic config - missed some
git-svn-id: file:///svn/phpbb/trunk@833 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-10 13:06:17 +00:00
Paul S. Owen
8c80fab89c Smilies additions to basic config
git-svn-id: file:///svn/phpbb/trunk@832 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-10 11:52:52 +00:00
Paul S. Owen
5e701365b2 Updates
git-svn-id: file:///svn/phpbb/trunk@831 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-10 11:38:47 +00:00
Paul S. Owen
ee3d0043ed This is what happens when you try porting code from one set of files to another ... silly errors
git-svn-id: file:///svn/phpbb/trunk@830 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-10 00:38:59 +00:00
Paul S. Owen
89dddd9049 Code added to get around double htmlspecialchar stuff + some of my stuff looks to allow HTML even when off, removed
git-svn-id: file:///svn/phpbb/trunk@829 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-10 00:23:39 +00:00
Paul S. Owen
88570ae919 Moved smilies code into functions, would it be better in bbcode.php?
git-svn-id: file:///svn/phpbb/trunk@828 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-09 23:32:52 +00:00
Paul S. Owen
3ed35bfd6f Slight alteration to the whosonline code ... speed impacts unknown
git-svn-id: file:///svn/phpbb/trunk@827 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-09 23:26:03 +00:00
Paul S. Owen
1ff3a93656 Allows only certain tags ... seems broken again which is annoying since I fixed it the day before yesterday
git-svn-id: file:///svn/phpbb/trunk@826 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-09 22:38:39 +00:00
Paul S. Owen
a8ff6858bc Change to reflect path change ... the path could perhaps end up in the template config file ...
git-svn-id: file:///svn/phpbb/trunk@825 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-09 22:26:41 +00:00
Paul S. Owen
56772bb75a More varied changes, again hopefully not breaking anything
git-svn-id: file:///svn/phpbb/trunk@824 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-09 22:21:55 +00:00
Paul S. Owen
5f31c03802 A few additions
git-svn-id: file:///svn/phpbb/trunk@823 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-09 21:08:53 +00:00
Paul S. Owen
5bfa05e0b3 Some more changes ... hopefully not breaking anything else
git-svn-id: file:///svn/phpbb/trunk@822 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-09 21:03:21 +00:00
Paul S. Owen
bd3a6850aa Improved index folder mark code
git-svn-id: file:///svn/phpbb/trunk@821 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-09 17:05:20 +00:00
Paul S. Owen
53150c6803 Some default smilies, many were created by subBlue (Mark)
git-svn-id: file:///svn/phpbb/trunk@820 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-09 14:33:12 +00:00
the_systech
fe78404c7c Changes to enable Smilies
git-svn-id: file:///svn/phpbb/trunk@819 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-08 19:44:50 +00:00
the_systech
15f471cb5a Changes encorporate smily processing...
git-svn-id: file:///svn/phpbb/trunk@818 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-08 19:42:45 +00:00
the_systech
eb081dcb0f Finished changes for smiley admin..
git-svn-id: file:///svn/phpbb/trunk@817 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-08 18:03:11 +00:00
the_systech
d29f574287 Added some $lang variables for smiley admin stuff
git-svn-id: file:///svn/phpbb/trunk@816 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-08 16:38:50 +00:00
the_systech
909b268b21 Fixed problem with Mozilla in determining file type for uploaded file
git-svn-id: file:///svn/phpbb/trunk@815 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-08 14:40:04 +00:00
gpolins
2c5881f8a7 Deleted single quotes around phpbb_themes and its fields
git-svn-id: file:///svn/phpbb/trunk@814 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-08 02:24:26 +00:00
Paul S. Owen
befbbbbd6c New marked folder system
git-svn-id: file:///svn/phpbb/trunk@813 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-07 23:01:03 +00:00
the_systech
2124505c10 Rollback from 1.16 and refix mysql_error thing...
git-svn-id: file:///svn/phpbb/trunk@812 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-07 21:21:02 +00:00
Bart van Bragt
19bcf35a56 Added some NOWRAP for smaller screens
git-svn-id: file:///svn/phpbb/trunk@811 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-07 18:48:56 +00:00
Paul S. Owen
1a48db4c12 I am an idiot ... fixed wrong var name breaking the topicday select
git-svn-id: file:///svn/phpbb/trunk@810 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-04 00:21:12 +00:00
Paul S. Owen
605356a6ca Why do PHP insist the read size for a gzip file be the uncompressed length ... silly
git-svn-id: file:///svn/phpbb/trunk@809 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-03 17:17:08 +00:00
Paul S. Owen
1232718822 Added gzip decompression for uploaded file
git-svn-id: file:///svn/phpbb/trunk@808 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-03 16:25:35 +00:00
Paul S. Owen
07fe228a48 Added gzip decompression for uploaded file
git-svn-id: file:///svn/phpbb/trunk@807 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-03 16:24:20 +00:00
Paul S. Owen
c04d661960 Added gzip compression for downloadable file
git-svn-id: file:///svn/phpbb/trunk@806 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-03 13:17:00 +00:00
Paul S. Owen
9145937a9f Added gzip compression for downloadable file
git-svn-id: file:///svn/phpbb/trunk@805 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-03 13:16:59 +00:00
Bart van Bragt
4255736e23 AAAAAAAAAAARGH! I'm going to bed now..
git-svn-id: file:///svn/phpbb/trunk@804 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-03 01:03:17 +00:00
Bart van Bragt
8b0b59594d Not the screwup is REALLY fixed! Trust me ;)
git-svn-id: file:///svn/phpbb/trunk@803 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-03 00:34:53 +00:00
Paul S. Owen
fbcaf21bc0 Various fixes to remove posts and post text
git-svn-id: file:///svn/phpbb/trunk@802 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-03 00:29:02 +00:00
Bart van Bragt
2b5a355fbd Last fix of screwup
git-svn-id: file:///svn/phpbb/trunk@801 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-03 00:23:01 +00:00
Bart van Bragt
e84bf795a4 Major screwups ;(
git-svn-id: file:///svn/phpbb/trunk@800 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-03 00:02:08 +00:00
Bart van Bragt
077d7a7651 Other admin_forums.php requires other template
git-svn-id: file:///svn/phpbb/trunk@799 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-02 22:35:17 +00:00
Bart van Bragt
2aaadc7b07 Introduced pagestart.inc
git-svn-id: file:///svn/phpbb/trunk@798 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-02 22:33:20 +00:00
Paul S. Owen
c9c11d3a71 I have a horrible feeling the prune function is the cause of some problems, disabled till checked
git-svn-id: file:///svn/phpbb/trunk@797 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-02 20:47:12 +00:00
Paul S. Owen
8e54e38e75 Some language and core updates
git-svn-id: file:///svn/phpbb/trunk@796 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-02 17:07:32 +00:00
the_systech
b71aee15ab Fixed bug in split_sql_file.
git-svn-id: file:///svn/phpbb/trunk@795 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-02 15:26:52 +00:00
Paul S. Owen
1a9142c4c5 A few updates, nothing major
git-svn-id: file:///svn/phpbb/trunk@794 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-02 14:02:54 +00:00
James Atkinson
b70bb3c77c Template for forum management
git-svn-id: file:///svn/phpbb/trunk@793 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-02 08:37:15 +00:00
James Atkinson
981b7056bb Beginnings of the forum managament code (no functionality yet). Also a bit of a fix to view topic so it dosan't screw up when HTML is turned off. Still needs work, HTML works in [quote] tags... havn't tracked it down yet. Nate should look at it!
git-svn-id: file:///svn/phpbb/trunk@792 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-02 08:36:38 +00:00
Paul S. Owen
1d2382ccc0 Wildcard username ban in email banning
git-svn-id: file:///svn/phpbb/trunk@791 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-02 01:02:10 +00:00
Paul S. Owen
1001c86651 Put the text back
git-svn-id: file:///svn/phpbb/trunk@790 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 23:09:09 +00:00
Paul S. Owen
6798764307 Put the text back
git-svn-id: file:///svn/phpbb/trunk@789 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 23:08:16 +00:00
Paul S. Owen
f0ae4443a2 Bold cat shouldnt be bold by default
git-svn-id: file:///svn/phpbb/trunk@788 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 21:58:38 +00:00
Paul S. Owen
f9106aba2a Instant user ban on username or IP
git-svn-id: file:///svn/phpbb/trunk@787 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 21:54:06 +00:00
Paul S. Owen
5c8d352d8e Moved into the index itself
git-svn-id: file:///svn/phpbb/trunk@786 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 20:54:55 +00:00
James Atkinson
1aed8b11fc Small update to timezones in lang file, they display correctly now
git-svn-id: file:///svn/phpbb/trunk@785 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 20:52:09 +00:00
Paul S. Owen
1d304d8340 Slight mod
git-svn-id: file:///svn/phpbb/trunk@784 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 20:43:05 +00:00
Paul S. Owen
a07b69c13f Some mods to allow for default config information useage for CRITICAL MESSAGES
git-svn-id: file:///svn/phpbb/trunk@783 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 20:19:42 +00:00
Paul S. Owen
b2a8fb4a8f Minor mod
git-svn-id: file:///svn/phpbb/trunk@782 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 20:00:12 +00:00
Paul S. Owen
4d8f7cd8a5 User, IP and email banning admin functional
git-svn-id: file:///svn/phpbb/trunk@781 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 19:59:04 +00:00
the_systech
21a6090308 Fixed restore problem with NULL columns, and added some documentation.
git-svn-id: file:///svn/phpbb/trunk@780 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 15:27:13 +00:00
James Atkinson
e98e3e1403 Configuration form work, 'sucsess' message screen needs some work..
git-svn-id: file:///svn/phpbb/trunk@779 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 10:31:20 +00:00
Paul S. Owen
37f287b546 It doesnt do anything if youre wondering
git-svn-id: file:///svn/phpbb/trunk@778 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-08-01 01:07:05 +00:00
Bart van Bragt
e1a361d75c One tables wasn't being dropped
git-svn-id: file:///svn/phpbb/trunk@777 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-31 23:16:56 +00:00
Paul S. Owen
6eca50902d More compliance ... it never ends
git-svn-id: file:///svn/phpbb/trunk@776 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-31 23:13:13 +00:00
Paul S. Owen
6c3a37b20b More compliance ... it never ends
git-svn-id: file:///svn/phpbb/trunk@775 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-31 22:30:41 +00:00
Paul S. Owen
5a1e2e5deb More compliance ... it never ends
git-svn-id: file:///svn/phpbb/trunk@774 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-31 21:56:31 +00:00
Paul S. Owen
56552d1e2b More compliance ... it never ends
git-svn-id: file:///svn/phpbb/trunk@773 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-31 21:34:06 +00:00
the_systech
092c82db7f Fixed so that it won't touch files in the "images" directories.
git-svn-id: file:///svn/phpbb/trunk@772 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-31 20:38:20 +00:00
Paul S. Owen
5fbf899714 More compliance updates + select previous posts in viewtopic
git-svn-id: file:///svn/phpbb/trunk@771 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-31 20:06:50 +00:00
Paul S. Owen
db8652122c More compliance updates + select previous posts in viewtopic
git-svn-id: file:///svn/phpbb/trunk@770 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-31 18:37:25 +00:00
the_systech
b1a20d6123 Fixed missing semicolon
git-svn-id: file:///svn/phpbb/trunk@769 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-31 18:33:39 +00:00
Paul S. Owen
44fa3624a7 HTML 4.01 and XHTML 1.0 compliance changes
git-svn-id: file:///svn/phpbb/trunk@768 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-31 14:17:41 +00:00
Paul S. Owen
b3366f1e35 HTML 4.01 and XHTML 1.0 compliance changes
git-svn-id: file:///svn/phpbb/trunk@767 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-31 14:06:06 +00:00
Paul S. Owen
8b84c5a970 Renamed
git-svn-id: file:///svn/phpbb/trunk@766 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-30 16:00:28 +00:00
Paul S. Owen
5d0408d1a5 Renamed
git-svn-id: file:///svn/phpbb/trunk@765 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-30 15:19:45 +00:00
Paul S. Owen
88490998d8 More admin redirect updates
git-svn-id: file:///svn/phpbb/trunk@764 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-30 15:19:15 +00:00
Paul S. Owen
294569795b Languagified ... like that word? ... and updated a little
git-svn-id: file:///svn/phpbb/trunk@763 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-29 23:26:40 +00:00
Paul S. Owen
8356cd0d05 Finished switching to lang file I think
git-svn-id: file:///svn/phpbb/trunk@762 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-28 18:01:05 +00:00
Paul S. Owen
ffed06e503 Lots of languagification and redirection path change
git-svn-id: file:///svn/phpbb/trunk@761 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-28 16:50:36 +00:00
Paul S. Owen
a37ee4631c Renamed or not needed
git-svn-id: file:///svn/phpbb/trunk@760 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-28 16:47:36 +00:00
Paul S. Owen
91d4f863e4 Lots of languagification and redirection path change
git-svn-id: file:///svn/phpbb/trunk@759 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-28 16:42:12 +00:00
Paul S. Owen
476880a4c0 Languagified the admin index
git-svn-id: file:///svn/phpbb/trunk@758 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-28 14:56:33 +00:00
Paul S. Owen
5c5f38ba40 Languagified the admin index
git-svn-id: file:///svn/phpbb/trunk@757 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-28 14:54:42 +00:00
Paul S. Owen
6697141b5f Session now destroys userdata if autologin fails or isnt activated
git-svn-id: file:///svn/phpbb/trunk@756 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-28 00:38:27 +00:00
Paul S. Owen
0e9313a55c Not needed
git-svn-id: file:///svn/phpbb/trunk@755 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-27 23:31:20 +00:00
Paul S. Owen
928190dab2 Removed header frame, reduced timezone naming, added DB size for MySQL, no major technical changes
git-svn-id: file:///svn/phpbb/trunk@754 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-27 23:29:58 +00:00
Paul S. Owen
8b82f40009 Removed header frame, reduced timezone naming, added DB size for MySQL, no major technical changes
git-svn-id: file:///svn/phpbb/trunk@753 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-27 23:16:09 +00:00
Paul S. Owen
ec851efb3b New split icon + tidied up other mod topic icons
git-svn-id: file:///svn/phpbb/trunk@752 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-25 15:44:36 +00:00
James Atkinson
8f99a9123f Template file for config editing
git-svn-id: file:///svn/phpbb/trunk@751 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 22:12:50 +00:00
James Atkinson
982566faa0 System config admin section started. Can view settings but can't modify them at the moment
git-svn-id: file:///svn/phpbb/trunk@750 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 22:11:24 +00:00
James Atkinson
7dfe41c0b9 More template cleanup
git-svn-id: file:///svn/phpbb/trunk@749 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 19:07:12 +00:00
Paul S. Owen
ec99f3c97d Forum locking now implemented + some updates for future functionality
git-svn-id: file:///svn/phpbb/trunk@748 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 18:26:16 +00:00
Paul S. Owen
bf5856936a Forum locked icon and notice on index
git-svn-id: file:///svn/phpbb/trunk@747 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 18:17:10 +00:00
Paul S. Owen
cfa724410a Forum locking now implemented + some updates for future functionality
git-svn-id: file:///svn/phpbb/trunk@746 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 17:51:21 +00:00
Paul S. Owen
28aaa8f6b0 Not needed
git-svn-id: file:///svn/phpbb/trunk@745 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 17:49:24 +00:00
Paul S. Owen
44990dd2b7 Forum locking now implemented + some updates for future functionality
git-svn-id: file:///svn/phpbb/trunk@744 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 17:34:40 +00:00
James Atkinson
70b74fc706 Cleaned up the stats view, added slightly better code for computing the avatar dir size
git-svn-id: file:///svn/phpbb/trunk@743 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 17:26:32 +00:00
Paul S. Owen
d2cf278d44 Updates for HTML, etc. status
git-svn-id: file:///svn/phpbb/trunk@742 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 13:37:11 +00:00
Paul S. Owen
7090e785a9 Changed extension of templates to php
git-svn-id: file:///svn/phpbb/trunk@741 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 11:39:00 +00:00
Paul S. Owen
66f3131922 Replaced
git-svn-id: file:///svn/phpbb/trunk@740 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 11:38:36 +00:00
Paul S. Owen
ee6e14617e New msgbox icons by dhn
git-svn-id: file:///svn/phpbb/trunk@739 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-24 11:34:31 +00:00
James Atkinson
d082bed3d8 Ok, now it works
git-svn-id: file:///svn/phpbb/trunk@738 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-23 19:29:08 +00:00
James Atkinson
1c40aef060 Blah..
git-svn-id: file:///svn/phpbb/trunk@737 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-23 19:23:38 +00:00
James Atkinson
ce582a0037 Almost done, just gotta figure out how to get the database size
git-svn-id: file:///svn/phpbb/trunk@736 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-23 19:22:27 +00:00
James Atkinson
298ab8e715 Basic stats almost done
git-svn-id: file:///svn/phpbb/trunk@735 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-23 18:59:03 +00:00
James Atkinson
fb52fdddb9 Started on the admin overview/index page
git-svn-id: file:///svn/phpbb/trunk@734 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-23 18:30:35 +00:00
Paul S. Owen
273314d0be Noted HTML,BBCode,Smilies status for signatures
git-svn-id: file:///svn/phpbb/trunk@733 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-23 16:43:10 +00:00
Paul S. Owen
5cea36a3b6 Various updates to session code inc. moving data away from config
git-svn-id: file:///svn/phpbb/trunk@732 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-23 15:27:41 +00:00
Paul S. Owen
2969e2f09a Damn it I did a Bart :)
git-svn-id: file:///svn/phpbb/trunk@731 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-23 15:25:16 +00:00
Paul S. Owen
b607d1d858 Various updates to session code inc. moving data away from config
git-svn-id: file:///svn/phpbb/trunk@730 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-23 15:23:47 +00:00
Paul S. Owen
5a3dbda86a Remove duplicate users
git-svn-id: file:///svn/phpbb/trunk@729 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-22 20:42:34 +00:00
Paul S. Owen
d145bca394 Still seems to be pagination problem, I dont have it so what havent I committed ...
git-svn-id: file:///svn/phpbb/trunk@728 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-22 20:32:05 +00:00
Paul S. Owen
287feac024 Yet another faked if loop
git-svn-id: file:///svn/phpbb/trunk@727 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-22 19:53:08 +00:00
Paul S. Owen
7d83ba703c Moved cookie and session config to DB config table, added MSSQL schema
git-svn-id: file:///svn/phpbb/trunk@726 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-22 16:36:12 +00:00
Paul S. Owen
d7415808ea Re-added topic notify
git-svn-id: file:///svn/phpbb/trunk@725 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-21 21:38:57 +00:00
Paul S. Owen
b8c7a55d92 Template mods
git-svn-id: file:///svn/phpbb/trunk@724 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-21 18:37:08 +00:00
Paul S. Owen
2b8667e728 Double quote replace for slashed single quote
git-svn-id: file:///svn/phpbb/trunk@723 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-21 17:48:04 +00:00
Paul S. Owen
124929b507 Opps, double assigned same board_config var
git-svn-id: file:///svn/phpbb/trunk@722 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-21 14:35:35 +00:00
Paul S. Owen
54fcf137a5 Fixed editpost check for login redirect
git-svn-id: file:///svn/phpbb/trunk@721 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-21 14:17:08 +00:00
Paul S. Owen
b379f26dcf Faking IF...ELSE...ENDIF again
git-svn-id: file:///svn/phpbb/trunk@720 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-21 14:15:19 +00:00
Paul S. Owen
f0b2e3beb1 Using block_vars to fake IF...ELSE...ENDIF capability
git-svn-id: file:///svn/phpbb/trunk@719 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-21 13:45:18 +00:00
Paul S. Owen
5706375aac UG related update
git-svn-id: file:///svn/phpbb/trunk@718 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-21 00:46:04 +00:00
Paul S. Owen
82507fb44c Minor mod to copyright
git-svn-id: file:///svn/phpbb/trunk@717 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-21 00:20:06 +00:00
Paul S. Owen
27ee45c8f5 Some more work on group CP, modified profile to match themes with templates
git-svn-id: file:///svn/phpbb/trunk@716 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-21 00:17:55 +00:00
Paul S. Owen
011d6d99ee Flood control, error reporting fixed
git-svn-id: file:///svn/phpbb/trunk@715 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 19:33:50 +00:00
Paul S. Owen
5a1d4660ba Removed most old language vars, not needed any more
git-svn-id: file:///svn/phpbb/trunk@714 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 19:22:44 +00:00
James Atkinson
7aedb9e62d Ok, I really fixed it this time..I hope..heh
git-svn-id: file:///svn/phpbb/trunk@713 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 17:58:57 +00:00
James Atkinson
56e30a68da Fixed the MySQL basic file
git-svn-id: file:///svn/phpbb/trunk@712 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 17:53:17 +00:00
Paul S. Owen
e5e5db834b Damn it, damn it, damn it
git-svn-id: file:///svn/phpbb/trunk@711 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 17:46:29 +00:00
Paul S. Owen
dc6d590da6 Fixed over-written lang var and updated add profile templates
git-svn-id: file:///svn/phpbb/trunk@710 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 17:39:42 +00:00
Paul S. Owen
0c03ef5dce A few new vars sent to view profile, remain l_ vars changed to lang array
git-svn-id: file:///svn/phpbb/trunk@709 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 17:30:17 +00:00
Paul S. Owen
2a28fafc8e A new icon, all look on in awe and amazement, or maybe not
git-svn-id: file:///svn/phpbb/trunk@708 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 16:25:03 +00:00
Paul S. Owen
c285a885ae Fixed errors, non-sid-appended urls, lang switchovers, etc.
git-svn-id: file:///svn/phpbb/trunk@707 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 15:16:03 +00:00
Paul S. Owen
862f5d6700 Redirect user if not logged in and not authed
git-svn-id: file:///svn/phpbb/trunk@706 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 00:26:56 +00:00
Paul S. Owen
54a6d833a5 And as if by magic another error gets fixed, running out of magic now
git-svn-id: file:///svn/phpbb/trunk@705 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 00:18:29 +00:00
Paul S. Owen
a0428b7b2e And as if by magic one of the errors was fixed, who needs Harry Potter?
git-svn-id: file:///svn/phpbb/trunk@704 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-20 00:10:20 +00:00
Paul S. Owen
3a15df9960 And as if by magic group auth admin appeared
git-svn-id: file:///svn/phpbb/trunk@703 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-19 23:55:11 +00:00
Paul S. Owen
c4506dbbc7 And as if by magic group auth admin appeared
git-svn-id: file:///svn/phpbb/trunk@702 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-19 23:52:10 +00:00
Paul S. Owen
b69afe920c Advanced user auth working, use it, abuse it
git-svn-id: file:///svn/phpbb/trunk@701 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-19 20:07:21 +00:00
Paul S. Owen
a43e27711d Additional security check for auth
git-svn-id: file:///svn/phpbb/trunk@700 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-19 12:41:22 +00:00
Paul S. Owen
4041ad47d2 Im so sick and tired of introducing new bugs each time I commit :(
git-svn-id: file:///svn/phpbb/trunk@699 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-19 11:39:37 +00:00
Paul S. Owen
0da3c2d0df Another bodge to fix a problem temporarily
git-svn-id: file:///svn/phpbb/trunk@698 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-19 00:57:12 +00:00
Paul S. Owen
5e80be9bf6 Minor change so that a page header and footer are output to right pane
git-svn-id: file:///svn/phpbb/trunk@697 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-19 00:25:56 +00:00
Paul S. Owen
e74e62dc7c User auth now works properly I think, gives warnings of group conflicts, only simple mode at present
git-svn-id: file:///svn/phpbb/trunk@696 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-19 00:04:36 +00:00
Paul S. Owen
529399888f I thought I committed this
git-svn-id: file:///svn/phpbb/trunk@695 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-18 17:28:23 +00:00
Paul S. Owen
ae8fe33db9 Didnt I commit this
git-svn-id: file:///svn/phpbb/trunk@694 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-18 17:15:02 +00:00
Paul S. Owen
14cd43533b I really should stop playing with this
git-svn-id: file:///svn/phpbb/trunk@693 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-18 17:14:19 +00:00
Paul S. Owen
e4816a2d99 New theme for PSO, hey, I was bored
git-svn-id: file:///svn/phpbb/trunk@692 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-18 16:29:28 +00:00
Paul S. Owen
34c168d4f1 Minor change to CSS
git-svn-id: file:///svn/phpbb/trunk@691 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-18 15:53:56 +00:00
Paul S. Owen
8430ab391e Updates to get around IE6b handling of div wrapper
git-svn-id: file:///svn/phpbb/trunk@690 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-18 12:41:49 +00:00
Paul S. Owen
b4d7f7aa0c Updates to get around IE6b handling of div wrapper
git-svn-id: file:///svn/phpbb/trunk@689 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-18 12:25:42 +00:00
Paul S. Owen
8bed481f5d Cosmetic change
git-svn-id: file:///svn/phpbb/trunk@688 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-17 23:07:09 +00:00
Paul S. Owen
e0c5725688 New announce and sticky folder icons
git-svn-id: file:///svn/phpbb/trunk@687 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-17 22:49:25 +00:00
Paul S. Owen
9bfae76bef A few updates, mainly template related
git-svn-id: file:///svn/phpbb/trunk@686 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-17 22:40:45 +00:00
Paul S. Owen
f2e90f674f Changed page timezone output to lang file based var setup
git-svn-id: file:///svn/phpbb/trunk@685 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-17 17:23:54 +00:00
Paul S. Owen
0199a23afd Changed page timezone output to lang file based var setup
git-svn-id: file:///svn/phpbb/trunk@684 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-17 14:30:08 +00:00
the_systech
931fd9d642 Update of pruning to add admin interface, and change error_die's to message_die's
git-svn-id: file:///svn/phpbb/trunk@683 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-17 13:26:36 +00:00
Paul S. Owen
58d05e84fb Begone you nasty windows carriage returns
git-svn-id: file:///svn/phpbb/trunk@682 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-16 22:24:38 +00:00
Paul S. Owen
639a8067bd Who is the moron? Hey, stop pointing at me ... fixed mistake in SQL
git-svn-id: file:///svn/phpbb/trunk@681 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-16 21:20:03 +00:00
Paul S. Owen
ddd401d276 Posting lang for viewonline
git-svn-id: file:///svn/phpbb/trunk@680 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-16 21:12:09 +00:00
Bart van Bragt
9793a271b4 Fixed small, but showstopping, typo
git-svn-id: file:///svn/phpbb/trunk@679 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-16 20:12:46 +00:00
Paul S. Owen
0da1cfaa9b Removed unrequired admin checks, modded moderator query, jiggled rank/avatar image stuff
git-svn-id: file:///svn/phpbb/trunk@678 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-16 20:07:20 +00:00
Paul S. Owen
0fadabd02d Removed check/send for admin status, other cleanups
git-svn-id: file:///svn/phpbb/trunk@677 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-16 18:06:01 +00:00
Paul S. Owen
df2d450168 Removed check for admin level, not needed
git-svn-id: file:///svn/phpbb/trunk@676 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-16 15:24:44 +00:00
Paul S. Owen
fc57ccc4cf Was outputting wrong SQL
git-svn-id: file:///svn/phpbb/trunk@675 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-16 00:17:30 +00:00
Paul S. Owen
0aea503a65 Moderators get edited by message when editing own posts
git-svn-id: file:///svn/phpbb/trunk@674 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-15 23:27:16 +00:00
Paul S. Owen
e5211f3d20 Added editing information, no time limit at present
git-svn-id: file:///svn/phpbb/trunk@673 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-15 15:45:09 +00:00
Paul S. Owen
2878b8bad5 An announce post icon + support for sticky topic icon
git-svn-id: file:///svn/phpbb/trunk@672 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-15 12:41:29 +00:00
Paul S. Owen
b032d77ec1 My fault, removed base target from the index and forgot to commit the modified template
git-svn-id: file:///svn/phpbb/trunk@671 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 21:57:28 +00:00
James Atkinson
533e799938 Navigate was opening files in the wrong frame
git-svn-id: file:///svn/phpbb/trunk@670 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 21:54:42 +00:00
Paul S. Owen
f06bb9c1a9 Nav templating re-enabled
git-svn-id: file:///svn/phpbb/trunk@669 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 21:43:57 +00:00
Paul S. Owen
c2b63ace39 Named changed
git-svn-id: file:///svn/phpbb/trunk@668 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 21:37:11 +00:00
Paul S. Owen
2d799f16f6 This should have gone in but didnt
git-svn-id: file:///svn/phpbb/trunk@667 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 21:36:31 +00:00
Paul S. Owen
cd35db637b I was fed up with no posts meaning you cannot post
git-svn-id: file:///svn/phpbb/trunk@666 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 21:06:32 +00:00
Bart van Bragt
bc5165cd5e Initial checkin
git-svn-id: file:///svn/phpbb/trunk@665 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 20:41:52 +00:00
Paul S. Owen
e266fc0488 oopps, missed that
git-svn-id: file:///svn/phpbb/trunk@664 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 20:07:13 +00:00
Paul S. Owen
28a09fcc50 New page headers, cleaned up code, etc.
git-svn-id: file:///svn/phpbb/trunk@663 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 20:00:27 +00:00
Paul S. Owen
92074fdd8c Icon name changes
git-svn-id: file:///svn/phpbb/trunk@662 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 17:30:47 +00:00
Paul S. Owen
5a3a3f56ad Template config system, store relevant config stuff here
git-svn-id: file:///svn/phpbb/trunk@661 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 17:30:21 +00:00
Bart van Bragt
b88ce0ce5a Added authentification
git-svn-id: file:///svn/phpbb/trunk@660 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 15:22:55 +00:00
Paul S. Owen
99c0f09343 Fixed problem with anon users not being able to view avatars
git-svn-id: file:///svn/phpbb/trunk@659 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-14 01:19:21 +00:00
Paul S. Owen
d9b62e9964 A demo of some Group CP functionality
git-svn-id: file:///svn/phpbb/trunk@658 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 23:56:46 +00:00
Paul S. Owen
50902c641e Initial Group CP templates
git-svn-id: file:///svn/phpbb/trunk@657 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 23:55:31 +00:00
James Atkinson
d62d2b336b New lang string for modcp
git-svn-id: file:///svn/phpbb/trunk@656 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 18:24:39 +00:00
James Atkinson
0e6f49d1ed Added a text link to split topic interface. Needs a button
git-svn-id: file:///svn/phpbb/trunk@655 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 18:23:42 +00:00
James Atkinson
769b9673af Split beyond this post works
git-svn-id: file:///svn/phpbb/trunk@654 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 18:22:00 +00:00
Paul S. Owen
66e3d18e3a An example configuration file
git-svn-id: file:///svn/phpbb/trunk@653 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 18:16:11 +00:00
James Atkinson
c9357ff153 Added a needed stripslashes to the topic_title
git-svn-id: file:///svn/phpbb/trunk@652 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 17:17:46 +00:00
Paul S. Owen
cfd7c9e704 Slight mods
git-svn-id: file:///svn/phpbb/trunk@651 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 17:03:25 +00:00
Paul S. Owen
813016d706 Didnt I commit these?
git-svn-id: file:///svn/phpbb/trunk@650 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 17:03:04 +00:00
James Atkinson
8e49899bce Split posts works, split beyond this post does not. Still needs interface work as well
git-svn-id: file:///svn/phpbb/trunk@649 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 16:42:20 +00:00
Paul S. Owen
df799b8a16 Name changes
git-svn-id: file:///svn/phpbb/trunk@648 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 16:25:12 +00:00
Paul S. Owen
27a4ee3f94 Icon name changes
git-svn-id: file:///svn/phpbb/trunk@647 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 16:23:11 +00:00
Paul S. Owen
ea98341099 Changes to include location + some other misc stuff
git-svn-id: file:///svn/phpbb/trunk@646 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 16:14:37 +00:00
Paul S. Owen
79d57c449f New names
git-svn-id: file:///svn/phpbb/trunk@645 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 16:08:41 +00:00
Paul S. Owen
58331bd09e Renamed ... copies are still available from developers
git-svn-id: file:///svn/phpbb/trunk@644 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 16:07:30 +00:00
Paul S. Owen
1ddef57d50 Name changes
git-svn-id: file:///svn/phpbb/trunk@643 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 15:56:57 +00:00
Bart van Bragt
e63085b232 Oh well, why not fix the bad link?
git-svn-id: file:///svn/phpbb/trunk@642 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 14:56:01 +00:00
Bart van Bragt
527c51458e Forgot something during the switch to the PSO-Theme
git-svn-id: file:///svn/phpbb/trunk@641 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 14:39:35 +00:00
Bart van Bragt
be7c44ae75 Aaargh! Damn config file ;)
git-svn-id: file:///svn/phpbb/trunk@640 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 14:18:57 +00:00
Bart van Bragt
384371cdc7 Start of the admin frontend
git-svn-id: file:///svn/phpbb/trunk@639 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 14:16:11 +00:00
Paul S. Owen
2fd984b370 And you thought userauth was bad ...
git-svn-id: file:///svn/phpbb/trunk@638 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 01:19:15 +00:00
James Atkinson
c661eec464 Split topic works
git-svn-id: file:///svn/phpbb/trunk@637 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 01:10:53 +00:00
James Atkinson
cf328f74e5 Split topic works.
git-svn-id: file:///svn/phpbb/trunk@636 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 01:10:30 +00:00
Paul S. Owen
d2d6c8f0ef I hate those damn reset warnings ...
git-svn-id: file:///svn/phpbb/trunk@635 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 00:40:34 +00:00
Paul S. Owen
577e1f7099 Gone and most certainly forgotten
git-svn-id: file:///svn/phpbb/trunk@634 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 00:21:48 +00:00
Paul S. Owen
e49f543336 Basic user auth control, nothing fancy, dont complain if it breask something
git-svn-id: file:///svn/phpbb/trunk@633 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-13 00:18:53 +00:00
Bart van Bragt
d09d393442 Renamed files
git-svn-id: file:///svn/phpbb/trunk@632 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-11 22:29:08 +00:00
James Atkinson
8f0806e149 Added in split body
git-svn-id: file:///svn/phpbb/trunk@631 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-11 21:23:22 +00:00
Bart van Bragt
dcc75e5113 Changed template to PSO, Default is not up to date
git-svn-id: file:///svn/phpbb/trunk@630 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-11 21:14:48 +00:00
Bart van Bragt
45257da395 Added default password to Admin account (passwd= admin)
git-svn-id: file:///svn/phpbb/trunk@629 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-11 20:56:07 +00:00
Paul S. Owen
dc99222cf3 GZIP status output
git-svn-id: file:///svn/phpbb/trunk@628 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-11 16:07:58 +00:00
James Atkinson
255304d87a Split is half done... don't try and use it though its current b0rked :)
git-svn-id: file:///svn/phpbb/trunk@627 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-11 02:19:13 +00:00
Paul S. Owen
2cabdbebc3 Fixed content type check when using Opera
git-svn-id: file:///svn/phpbb/trunk@626 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-11 01:09:26 +00:00
James Atkinson
cef137d818 Confirmation finished for delete, lock, and unlock.
git-svn-id: file:///svn/phpbb/trunk@625 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-11 00:05:52 +00:00
Paul S. Owen
86ab900476 Updated to use confirm
git-svn-id: file:///svn/phpbb/trunk@624 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-11 00:02:24 +00:00
Paul S. Owen
0ec1bc7815 New name
git-svn-id: file:///svn/phpbb/trunk@623 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-10 23:38:09 +00:00
Paul S. Owen
eb733ebc83 Renamed
git-svn-id: file:///svn/phpbb/trunk@622 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-10 23:37:53 +00:00
Paul S. Owen
1b411d013c Minor changes because I am picky
git-svn-id: file:///svn/phpbb/trunk@621 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-10 23:28:23 +00:00
James Atkinson
777f847473 Confirm works with lock/unlock now too. Next up, move and split
git-svn-id: file:///svn/phpbb/trunk@620 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-10 23:25:33 +00:00
James Atkinson
bfcabd3df2 Confirm in moderator control panel works on Deletes
git-svn-id: file:///svn/phpbb/trunk@619 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-10 23:21:00 +00:00
James Atkinson
6a8674bd2d Added template for confirmation page to PSO template set
git-svn-id: file:///svn/phpbb/trunk@618 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-10 23:18:45 +00:00
Paul S. Owen
5fccf26e73 Switchover to message_die + some comment cleanup
git-svn-id: file:///svn/phpbb/trunk@617 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-10 23:07:23 +00:00
Paul S. Owen
3da03f8569 List message now based on last post rather than topic date
git-svn-id: file:///svn/phpbb/trunk@616 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-10 23:06:26 +00:00
Paul S. Owen
fff33ffa07 Lots of checking in posting + delete now works
git-svn-id: file:///svn/phpbb/trunk@615 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-10 22:32:39 +00:00
Paul S. Owen
df269ee087 Some initial guidelines for non-group developers
git-svn-id: file:///svn/phpbb/trunk@614 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-10 13:52:41 +00:00
Paul S. Owen
c14bde269a Remove icons/urls from anonymous post displays
git-svn-id: file:///svn/phpbb/trunk@613 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-09 23:31:33 +00:00
Paul S. Owen
130f401866 Fixed various errors
git-svn-id: file:///svn/phpbb/trunk@612 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-09 23:17:03 +00:00
Paul S. Owen
8d7c6d37ec Switched to associative and numbered fetcharray
git-svn-id: file:///svn/phpbb/trunk@611 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-09 23:11:05 +00:00
James Atkinson
284b14e970 is_first_post was missing from the edit button for some reason..
git-svn-id: file:///svn/phpbb/trunk@610 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-09 22:43:02 +00:00
James Atkinson
fe189c90de Fixed bug in posting (forum_topics was incremented on replies, not just new topics)
One click lock/unlock/delete works for modcp.


git-svn-id: file:///svn/phpbb/trunk@609 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-09 22:35:17 +00:00
Paul S. Owen
a032864974 Avatar upload and remote xfer should be fixed
git-svn-id: file:///svn/phpbb/trunk@608 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-09 20:26:33 +00:00
Paul S. Owen
5125d3f941 Finished lang switchover and various updates
git-svn-id: file:///svn/phpbb/trunk@607 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-08 21:42:43 +00:00
Paul S. Owen
5ce58d0cf0 Changed filename
git-svn-id: file:///svn/phpbb/trunk@606 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-08 20:31:13 +00:00
Paul S. Owen
613d62ac79 Some tidying up and switchover to message_die
git-svn-id: file:///svn/phpbb/trunk@605 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-08 20:24:15 +00:00
Paul S. Owen
d9ff52198b Nothing to see here, move along
git-svn-id: file:///svn/phpbb/trunk@604 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-08 15:59:10 +00:00
Paul S. Owen
8047e0d9c9 Number of queries executed ... for testing only
git-svn-id: file:///svn/phpbb/trunk@603 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-08 15:56:58 +00:00
Paul S. Owen
3497f2adab A couple of minor changes
git-svn-id: file:///svn/phpbb/trunk@602 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-07 14:52:08 +00:00
Paul S. Owen
7cf7b689a4 My first FAQ, I said _FAQ_
git-svn-id: file:///svn/phpbb/trunk@601 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-07 14:21:03 +00:00
Paul S. Owen
be08b05967 Another fix to user_ip determination
git-svn-id: file:///svn/phpbb/trunk@600 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-07 12:27:30 +00:00
Paul S. Owen
9fd4082bf1 Another fix to user_ip determination
git-svn-id: file:///svn/phpbb/trunk@599 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-07 12:26:50 +00:00
Paul S. Owen
e51b0b1cc8 Fixed for reply bug
git-svn-id: file:///svn/phpbb/trunk@598 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-07 11:40:40 +00:00
Paul S. Owen
617135a75e Another show stopping error
git-svn-id: file:///svn/phpbb/trunk@597 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-07 11:10:05 +00:00
Paul S. Owen
ae32ef9822 More user fields available for memberslist template plus graphic changes
git-svn-id: file:///svn/phpbb/trunk@596 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-07 00:57:58 +00:00
Paul S. Owen
44f853004d Minor update to image name
git-svn-id: file:///svn/phpbb/trunk@595 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-07 00:26:11 +00:00
Paul S. Owen
0955639395 More fixes
git-svn-id: file:///svn/phpbb/trunk@594 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-07 00:17:51 +00:00
James Atkinson
99fcfdbb32 More updates
git-svn-id: file:///svn/phpbb/trunk@593 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 23:50:58 +00:00
Paul S. Owen
d5d68e7149 I am a total utter idiot and I will kill those monkies, down cheetah
git-svn-id: file:///svn/phpbb/trunk@592 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 22:57:32 +00:00
Paul S. Owen
9388cb0d65 Minor spelling mistake in url
git-svn-id: file:///svn/phpbb/trunk@591 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 22:45:15 +00:00
James Atkinson
be2cfee4a0 moderator cp shows folders now so you can see whats locked/unlocked/.
Also shows stick/announce status.


git-svn-id: file:///svn/phpbb/trunk@590 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 22:36:29 +00:00
James Atkinson
fd2ec7fad5 Mass lock/unlock done. Locked topic handling in viewforum
git-svn-id: file:///svn/phpbb/trunk@589 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 21:54:33 +00:00
James Atkinson
977503911a Added locked topic folder
git-svn-id: file:///svn/phpbb/trunk@588 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 21:43:16 +00:00
Paul S. Owen
184e4b36f4 Minor irritation with ranks fixed
git-svn-id: file:///svn/phpbb/trunk@587 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 21:28:56 +00:00
James Atkinson
2170cd3a9d Code wasn't updating the topic_replies
git-svn-id: file:///svn/phpbb/trunk@586 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 18:56:19 +00:00
Paul S. Owen
5b505892a0 More images ... now CVS is back up
git-svn-id: file:///svn/phpbb/trunk@585 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 17:47:10 +00:00
Paul S. Owen
8ca99fdbc3 Minor alterations
git-svn-id: file:///svn/phpbb/trunk@584 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 01:23:27 +00:00
Paul S. Owen
1ad5e497ac Small change to user website url creation
git-svn-id: file:///svn/phpbb/trunk@583 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 01:13:16 +00:00
Paul S. Owen
55951c5104 Fixed some errors and ... reply with quote now works
git-svn-id: file:///svn/phpbb/trunk@582 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 01:09:42 +00:00
Paul S. Owen
eeecae34ec More vB inspired icons
git-svn-id: file:///svn/phpbb/trunk@581 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 00:42:44 +00:00
Paul S. Owen
bdffc319be More error fixing
git-svn-id: file:///svn/phpbb/trunk@580 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 00:18:01 +00:00
Paul S. Owen
574bec0638 Fixes and updates
git-svn-id: file:///svn/phpbb/trunk@579 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-06 00:03:51 +00:00
Paul S. Owen
57ca4fb173 Various updates
git-svn-id: file:///svn/phpbb/trunk@578 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 23:03:16 +00:00
the_systech
8e9aaebf5b template for db_utilities
git-svn-id: file:///svn/phpbb/trunk@577 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 21:04:53 +00:00
the_systech
2f0b5cfc4c Update to use templates, and new message_die instead of error_die
git-svn-id: file:///svn/phpbb/trunk@576 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 21:03:45 +00:00
the_systech
3aa6579519 Ok Really fixed the select field thing this time :)
git-svn-id: file:///svn/phpbb/trunk@575 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 20:40:06 +00:00
the_systech
8d0bc60aaa Fix for removed selected field from config table
git-svn-id: file:///svn/phpbb/trunk@574 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 20:38:22 +00:00
James Atkinson
41d3905951 Added private message icon
git-svn-id: file:///svn/phpbb/trunk@573 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 19:47:52 +00:00
James Atkinson
ae836c7f12 Moderator control panel: Mass Delete now works
git-svn-id: file:///svn/phpbb/trunk@572 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 19:42:22 +00:00
Paul S. Owen
56d9b50aa3 Image name update
git-svn-id: file:///svn/phpbb/trunk@571 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 19:38:39 +00:00
Paul S. Owen
eb272d253b New Image
git-svn-id: file:///svn/phpbb/trunk@570 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 19:38:28 +00:00
Paul S. Owen
a8184b4fc2 Minor updates
git-svn-id: file:///svn/phpbb/trunk@569 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 18:17:44 +00:00
Paul S. Owen
6032080761 Announcements always stay in listing using previous x feature
git-svn-id: file:///svn/phpbb/trunk@568 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 17:46:11 +00:00
Paul S. Owen
ec65620f23 Minor updates
git-svn-id: file:///svn/phpbb/trunk@567 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 17:40:50 +00:00
Paul S. Owen
48c93d1568 Altered view next and previous topic code and minor updates or fixes
git-svn-id: file:///svn/phpbb/trunk@566 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 17:39:38 +00:00
Paul S. Owen
a73375e5b0 Minor mods
git-svn-id: file:///svn/phpbb/trunk@565 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 14:50:55 +00:00
uid42062
bfa9603a1b Moderator Control Panel first iteration template
git-svn-id: file:///svn/phpbb/trunk@564 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 01:21:58 +00:00
uid42062
ca9187ff41 Updated sorting methods
git-svn-id: file:///svn/phpbb/trunk@563 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 00:57:28 +00:00
uid29890
af455d9212 Template for mod control panel
git-svn-id: file:///svn/phpbb/trunk@562 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 00:48:18 +00:00
uid29890
eb5b9bfb07 Started on moderator control panel code. Main layout is started, no functionality yet
git-svn-id: file:///svn/phpbb/trunk@561 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-05 00:47:03 +00:00
uid42062
14c6a0a4af Various updates for message.php and others
git-svn-id: file:///svn/phpbb/trunk@560 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 23:33:02 +00:00
uid42062
523ec50f28 Minor updates
git-svn-id: file:///svn/phpbb/trunk@559 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 23:28:58 +00:00
uid42062
fea9ffeb59 Fixes and updates
git-svn-id: file:///svn/phpbb/trunk@558 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 23:26:19 +00:00
uid42062
3aa2873131 Changes related to message.php
git-svn-id: file:///svn/phpbb/trunk@557 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 22:44:15 +00:00
uid42062
da911fcfdd Things that should have commited earlier but apparently did not
git-svn-id: file:///svn/phpbb/trunk@556 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 22:38:13 +00:00
uid42062
8237d4d803 Something is definitely screwy with sourceforge right now
git-svn-id: file:///svn/phpbb/trunk@555 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 21:49:05 +00:00
uid42062
5f20953aa6 More updates, added a previous x day select box
git-svn-id: file:///svn/phpbb/trunk@554 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 21:43:57 +00:00
uid42062
a6723b8a1b Lots of updates
git-svn-id: file:///svn/phpbb/trunk@553 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 19:36:32 +00:00
Paul S. Owen
b2c10ae40b Added anonymous username entry and CSSd
git-svn-id: file:///svn/phpbb/trunk@552 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 01:00:18 +00:00
Paul S. Owen
f5e17d116c Minor updates to joined and posts output
git-svn-id: file:///svn/phpbb/trunk@551 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 00:43:03 +00:00
Paul S. Owen
515368f903 Various changes inc topic type as radio buttons
git-svn-id: file:///svn/phpbb/trunk@550 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 00:36:03 +00:00
Paul S. Owen
d848dae9ef Various changes inc topic type as radio buttons
git-svn-id: file:///svn/phpbb/trunk@549 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-04 00:34:33 +00:00
Paul S. Owen
9c235fca0e Updates related to message.php
git-svn-id: file:///svn/phpbb/trunk@548 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 22:53:31 +00:00
Paul S. Owen
bed1d3ab9a Updates related to message.php and transaction update
git-svn-id: file:///svn/phpbb/trunk@547 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 22:50:56 +00:00
Paul S. Owen
356f845abc Transaction capability moved to DB classes
git-svn-id: file:///svn/phpbb/trunk@546 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 22:47:26 +00:00
Paul S. Owen
8baa46e285 ooppss
git-svn-id: file:///svn/phpbb/trunk@545 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 20:52:24 +00:00
Paul S. Owen
168f0e5fd0 Spot the mess ups
git-svn-id: file:///svn/phpbb/trunk@544 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 00:50:50 +00:00
Paul S. Owen
fdfd3271d6 New template file to go along with message.php
git-svn-id: file:///svn/phpbb/trunk@543 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 00:37:00 +00:00
Paul S. Owen
5c0fca1b60 Update for messages.php
git-svn-id: file:///svn/phpbb/trunk@542 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 00:34:15 +00:00
Paul S. Owen
36411723ad Demos of message_die use
git-svn-id: file:///svn/phpbb/trunk@541 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 00:33:20 +00:00
Paul S. Owen
da5f117fcb Show stopping error fixed
git-svn-id: file:///svn/phpbb/trunk@540 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 00:32:46 +00:00
Paul S. Owen
f80594bb7f Included message.php _and_ error.php
git-svn-id: file:///svn/phpbb/trunk@539 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 00:32:27 +00:00
Paul S. Owen
6f25a26ba4 Added disable board and some avatar related config stuff
git-svn-id: file:///svn/phpbb/trunk@538 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 00:31:34 +00:00
Paul S. Owen
f38726fae2 New template file to go along with message.php
git-svn-id: file:///svn/phpbb/trunk@537 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 00:29:23 +00:00
Paul S. Owen
08679758a0 Various new entries
git-svn-id: file:///svn/phpbb/trunk@536 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 00:28:49 +00:00
Paul S. Owen
7bf07ff820 Replacement for error.php?
git-svn-id: file:///svn/phpbb/trunk@535 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-03 00:28:22 +00:00
Paul S. Owen
770fc35874 Avatars can now be uploaded from remote server
git-svn-id: file:///svn/phpbb/trunk@534 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-02 01:02:43 +00:00
Paul S. Owen
b1f6fe7537 Updates to viewonline location output
git-svn-id: file:///svn/phpbb/trunk@533 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-01 15:36:55 +00:00
Paul S. Owen
520eec3ee4 Added a hidden user option
git-svn-id: file:///svn/phpbb/trunk@532 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-01 15:22:51 +00:00
Bart van Bragt
a5e8db6bef Fixed update query for profile
git-svn-id: file:///svn/phpbb/trunk@531 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-07-01 10:51:45 +00:00
Paul S. Owen
aa4ec32181 Some CSS related updates
git-svn-id: file:///svn/phpbb/trunk@530 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-30 23:54:20 +00:00
Paul S. Owen
ec7110b0f1 Updated gzip encoding for < 4.0.4pl1 I think ...
git-svn-id: file:///svn/phpbb/trunk@529 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-30 23:36:10 +00:00
Paul S. Owen
3c5311ccfa Added some gzip compression capability
git-svn-id: file:///svn/phpbb/trunk@528 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-30 21:04:37 +00:00
Paul S. Owen
7cd3c42c63 Modified username selection
git-svn-id: file:///svn/phpbb/trunk@527 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-25 19:36:05 +00:00
Paul S. Owen
44031d08d7 Disable MS Smart Tags
git-svn-id: file:///svn/phpbb/trunk@526 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-25 15:08:57 +00:00
Paul S. Owen
0396a0f35c Separated mods from forum data query, allows forums with no mods
git-svn-id: file:///svn/phpbb/trunk@525 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-25 15:05:54 +00:00
Paul S. Owen
e81336b95b Do not expect much from this I just felt like commiting it
git-svn-id: file:///svn/phpbb/trunk@524 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-25 00:10:20 +00:00
natec
82fc9744ec Better handling of template data. It's a class member now, so multiple template objects can exist at the same time without sharing data. yippee.
git-svn-id: file:///svn/phpbb/trunk@523 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-24 21:36:21 +00:00
natec
50871fb159 Fixed tabs-to-spaces. Yuck.
git-svn-id: file:///svn/phpbb/trunk@522 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-24 21:25:40 +00:00
Paul S. Owen
b5d2f5914e Added a simple search and select capability to posting messages
git-svn-id: file:///svn/phpbb/trunk@521 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-24 15:13:26 +00:00
James Atkinson
6e9bc6b0fc Working on getting Oracle functional. Almost there, need to deal with the 'AUTO INCREMENT' issue
git-svn-id: file:///svn/phpbb/trunk@520 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-21 03:20:37 +00:00
Paul S. Owen
8276d5728c Fixed small error in bracketing
git-svn-id: file:///svn/phpbb/trunk@519 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-21 00:16:36 +00:00
Paul S. Owen
4dd500a575 Various minorish updates
git-svn-id: file:///svn/phpbb/trunk@518 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-20 20:56:02 +00:00
Paul S. Owen
29ba71e5aa Changes to CSS
git-svn-id: file:///svn/phpbb/trunk@517 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-20 20:41:07 +00:00
the_systech
bc5c16ae82 added auto_prune
git-svn-id: file:///svn/phpbb/trunk@516 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-19 17:38:00 +00:00
Paul S. Owen
7d6c996092 And another fix, whos idea was it to do auth like this ... oh
git-svn-id: file:///svn/phpbb/trunk@515 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-19 00:44:44 +00:00
Paul S. Owen
c47b0b03b1 Some integration of CSS styling ... only CVSd because page_tail needs it
git-svn-id: file:///svn/phpbb/trunk@514 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-19 00:34:45 +00:00
Paul S. Owen
2e7b321b6b Slightly cleaned up schemas
git-svn-id: file:///svn/phpbb/trunk@513 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-18 23:37:59 +00:00
Paul S. Owen
baedfce292 Fixes for more messups on my part
git-svn-id: file:///svn/phpbb/trunk@512 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-18 23:18:40 +00:00
Paul S. Owen
499570030a Some changes to copyright display
git-svn-id: file:///svn/phpbb/trunk@511 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-18 22:16:32 +00:00
Paul S. Owen
3fc9943874 Something I forgot to change a long time ago ... and pretty serious too, bad Paul
git-svn-id: file:///svn/phpbb/trunk@510 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-18 21:56:14 +00:00
Paul S. Owen
92c1957dba Something I forgot to change a long time ago ... and pretty serious too, bad Paul
git-svn-id: file:///svn/phpbb/trunk@509 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-18 21:50:51 +00:00
Paul S. Owen
c3b0c93c16 Fixed error
git-svn-id: file:///svn/phpbb/trunk@508 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-18 00:33:24 +00:00
Paul S. Owen
59c47a1309 Switched forum_auth to the forums table
git-svn-id: file:///svn/phpbb/trunk@507 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-18 00:00:17 +00:00
Paul S. Owen
2ec0206283 Switched forum_auth to the forums table
git-svn-id: file:///svn/phpbb/trunk@506 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-17 23:53:04 +00:00
Paul S. Owen
04b0b11e97 Changed check against topic_type to match change in constant names
git-svn-id: file:///svn/phpbb/trunk@505 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-16 22:51:40 +00:00
Paul S. Owen
b0b5cc368d Added a profile preference for recieving notification on new PMs
git-svn-id: file:///svn/phpbb/trunk@504 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-16 18:31:58 +00:00
Paul S. Owen
3479343882 Fixed spelling error in ANNOUNCEMENT which in caused an incorrect check to occur
git-svn-id: file:///svn/phpbb/trunk@503 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-16 16:43:05 +00:00
Paul S. Owen
dc2cd415d3 Fixed error in return to post link when editing a message
git-svn-id: file:///svn/phpbb/trunk@502 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-16 14:29:49 +00:00
Paul S. Owen
57bd34df47 Private Messaging - Stage 2
git-svn-id: file:///svn/phpbb/trunk@501 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-15 23:51:58 +00:00
Paul S. Owen
302ade3dde Bug test for sent text update
git-svn-id: file:///svn/phpbb/trunk@500 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-14 23:52:08 +00:00
Paul S. Owen
bb51a8c0ef hhmm has this been updated at all recently ... time to commit anyway
git-svn-id: file:///svn/phpbb/trunk@499 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-14 23:49:23 +00:00
Paul S. Owen
cd3e798e75 BBCode decode should be fixed ... should ...
git-svn-id: file:///svn/phpbb/trunk@498 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-14 23:42:39 +00:00
Paul S. Owen
e425bc1377 Reply, quote and edit now work
git-svn-id: file:///svn/phpbb/trunk@497 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-14 22:10:15 +00:00
Paul S. Owen
ee6fb7898d Reply, quote and edit now work
git-svn-id: file:///svn/phpbb/trunk@496 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-14 22:05:00 +00:00
Paul S. Owen
e1e0b9c29b Fixed some problems ... maybe - Part 3 A Sequel too Far
git-svn-id: file:///svn/phpbb/trunk@495 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-14 17:00:14 +00:00
Paul S. Owen
0b7a191854 Fixed some problems ... maybe - Part 2 The Revenge
git-svn-id: file:///svn/phpbb/trunk@494 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-14 16:22:06 +00:00
Paul S. Owen
cabcc3584b Fixed some problems ... maybe
git-svn-id: file:///svn/phpbb/trunk@493 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-14 16:06:45 +00:00
Paul S. Owen
01b5e67342 Bigger holes filled with yet more code
git-svn-id: file:///svn/phpbb/trunk@492 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-14 00:25:40 +00:00
Paul S. Owen
2aa9f56045 Possible security hole closed and a couple of fixes
git-svn-id: file:///svn/phpbb/trunk@491 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-13 23:46:00 +00:00
Paul S. Owen
3c16112836 Improved treatment of forward_page param
git-svn-id: file:///svn/phpbb/trunk@490 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-13 23:17:05 +00:00
Paul S. Owen
d28e5a0f18 Knew I would forget something
git-svn-id: file:///svn/phpbb/trunk@489 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-13 19:42:05 +00:00
Paul S. Owen
fc9163db62 Basic posting of messages, no reply, quote or edit yet
git-svn-id: file:///svn/phpbb/trunk@488 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-13 19:30:27 +00:00
Paul S. Owen
f9b181e0ce Moved prepare message to post.php to enable privmsg to use it
git-svn-id: file:///svn/phpbb/trunk@487 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-13 17:36:58 +00:00
Paul S. Owen
e82e107714 Added last post output
git-svn-id: file:///svn/phpbb/trunk@486 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-13 14:16:47 +00:00
James Atkinson
b4d3854cd2 Added a count of total number of topics to the get_db_stats function
git-svn-id: file:///svn/phpbb/trunk@485 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-13 08:32:32 +00:00
James Atkinson
d707a5f099 Moved current time (S_CURRENT_TIME) to page_header
git-svn-id: file:///svn/phpbb/trunk@484 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-13 07:35:41 +00:00
Paul S. Owen
90b9a95ca5 Found that php has an imagesize function ... doh
git-svn-id: file:///svn/phpbb/trunk@483 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-12 23:46:24 +00:00
Paul S. Owen
ee2ff042db Found that php has an imagesize function ... doh
git-svn-id: file:///svn/phpbb/trunk@482 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-12 23:30:13 +00:00
Paul S. Owen
59b2756448 Switched validate_username check to groups table
git-svn-id: file:///svn/phpbb/trunk@481 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-12 16:37:52 +00:00
the_systech
c08decbf1a Added Table def for auto_prune
git-svn-id: file:///svn/phpbb/trunk@480 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-12 15:11:40 +00:00
Paul S. Owen
81e9d7a7ee Minor language update
git-svn-id: file:///svn/phpbb/trunk@479 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-12 13:39:52 +00:00
Paul S. Owen
06bb1ff532 Some language var switch overs
git-svn-id: file:///svn/phpbb/trunk@478 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-12 13:34:27 +00:00
Paul S. Owen
f8ad3c0c2c Final updates for tonight
git-svn-id: file:///svn/phpbb/trunk@477 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-12 00:54:15 +00:00
Paul S. Owen
89f08f53cb Latest mods
git-svn-id: file:///svn/phpbb/trunk@476 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-12 00:38:59 +00:00
Paul S. Owen
aa1a6bdd24 Some more icons again these must be changed before release
git-svn-id: file:///svn/phpbb/trunk@475 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-12 00:37:50 +00:00
Paul S. Owen
f79fcf1377 Changed name
git-svn-id: file:///svn/phpbb/trunk@474 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-12 00:36:35 +00:00
Paul S. Owen
4830f1ba05 Latest version of messaging
git-svn-id: file:///svn/phpbb/trunk@473 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-12 00:34:43 +00:00
James Atkinson
6a7332aa82 Added privmsgs stuff to default template
git-svn-id: file:///svn/phpbb/trunk@472 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 22:53:11 +00:00
James Atkinson
8a8f587b3b Can unstick/unannounce topics via edit post now
git-svn-id: file:///svn/phpbb/trunk@471 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 20:48:56 +00:00
James Atkinson
678f720455 Made some fixes to posting, next up Reply with Quote
git-svn-id: file:///svn/phpbb/trunk@470 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 20:02:01 +00:00
Paul S. Owen
b7f1a3605c Added a banned email check during registration
git-svn-id: file:///svn/phpbb/trunk@469 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 13:45:22 +00:00
Paul S. Owen
ff8040ab06 Fixed isset and empty checks on userdata so user prefs now work again
git-svn-id: file:///svn/phpbb/trunk@468 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 12:53:35 +00:00
Paul S. Owen
36da30d221 Fixed isset and empty checks on userdata so user prefs now work again
git-svn-id: file:///svn/phpbb/trunk@467 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 12:43:25 +00:00
Paul S. Owen
59785952ff Some new topic icons ... thanks to whoever I got them from
git-svn-id: file:///svn/phpbb/trunk@466 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 12:13:14 +00:00
Paul S. Owen
44ea5b9e50 Minor mods or fixes and PSO preview template
git-svn-id: file:///svn/phpbb/trunk@465 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 12:00:31 +00:00
Paul S. Owen
5ece706945 Added post_username to posts table and altered some minor things
git-svn-id: file:///svn/phpbb/trunk@464 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 11:41:35 +00:00
James Atkinson
cb44575d8a Posting preview done, ability for anonymous users to post with a username
git-svn-id: file:///svn/phpbb/trunk@463 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:58:08 +00:00
Paul S. Owen
b71e098cdc Fixed jump to post problem
git-svn-id: file:///svn/phpbb/trunk@462 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:43:15 +00:00
Paul S. Owen
28a369aab0 Some updates
git-svn-id: file:///svn/phpbb/trunk@461 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:22:35 +00:00
Paul S. Owen
3c978de6ba Oops
git-svn-id: file:///svn/phpbb/trunk@460 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:19:31 +00:00
Paul S. Owen
dd7b3ff604 Basic icon for privmsg on index page
git-svn-id: file:///svn/phpbb/trunk@459 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:18:07 +00:00
Paul S. Owen
7797a70a1a Minor updates
git-svn-id: file:///svn/phpbb/trunk@458 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:14:27 +00:00
Paul S. Owen
f949d2848d Some privmsg icons ... some of these _must_ change since they are M S copyright
git-svn-id: file:///svn/phpbb/trunk@457 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:13:48 +00:00
Paul S. Owen
dc453e9d55 Updates for privmsgs
git-svn-id: file:///svn/phpbb/trunk@456 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:12:40 +00:00
Paul S. Owen
988ab39801 Updates for loginbox
git-svn-id: file:///svn/phpbb/trunk@455 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:11:39 +00:00
Paul S. Owen
123ae33ee9 Updates for privmsgs and loginbox
git-svn-id: file:///svn/phpbb/trunk@454 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:11:13 +00:00
Paul S. Owen
d2b4b4dc51 Some privmsg updates
git-svn-id: file:///svn/phpbb/trunk@453 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:10:54 +00:00
Paul S. Owen
23f0178fd1 Updated for present privmsgs tests
git-svn-id: file:///svn/phpbb/trunk@452 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-11 00:09:08 +00:00
Paul S. Owen
86c7843277 Gone and possibly forgotten ... sob
git-svn-id: file:///svn/phpbb/trunk@451 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-10 23:59:07 +00:00
Paul S. Owen
309fa48081 Some framework for PM ... no posting and little else
git-svn-id: file:///svn/phpbb/trunk@450 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-10 23:57:52 +00:00
Paul S. Owen
1420fc9081 Modified pagination output, Goto page now output by function
git-svn-id: file:///svn/phpbb/trunk@449 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-10 23:55:24 +00:00
Paul S. Owen
71753c87a5 A workaround till if...else available
git-svn-id: file:///svn/phpbb/trunk@448 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-10 23:53:55 +00:00
Paul S. Owen
e92396a826 Minor change to text
git-svn-id: file:///svn/phpbb/trunk@447 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-09 21:33:28 +00:00
Paul S. Owen
118ff9ad24 Likely fix for pagination failure on div 10 boundary
git-svn-id: file:///svn/phpbb/trunk@446 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-09 21:09:00 +00:00
natec
bf8b7659a9 Updated/fixed coding standards doc.
git-svn-id: file:///svn/phpbb/trunk@445 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-09 21:00:12 +00:00
natec
b09d366df6 Bad paul.. no comma.
git-svn-id: file:///svn/phpbb/trunk@444 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-09 20:45:21 +00:00
James Atkinson
ef729558fe Similar problem with the user_timezone field
git-svn-id: file:///svn/phpbb/trunk@443 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-09 01:47:39 +00:00
James Atkinson
ca9b7bf0d6 Check user_dateformat against '' was messing up sourceforge so I changed it to an
if($userdata[user_dateformat])

insted.


git-svn-id: file:///svn/phpbb/trunk@442 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-09 01:42:24 +00:00
Paul S. Owen
9c61aca1b5 Preparations for possible move of forum_auth fields
git-svn-id: file:///svn/phpbb/trunk@441 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-08 18:08:15 +00:00
Paul S. Owen
820df16055 Some basic user auth layout tests
git-svn-id: file:///svn/phpbb/trunk@440 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-08 00:37:26 +00:00
Paul S. Owen
8752cd075c Fixed profile resetting user_level problem ...
git-svn-id: file:///svn/phpbb/trunk@439 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-08 00:33:10 +00:00
Paul S. Owen
b87fbd2d2f Added announce and sticky support
git-svn-id: file:///svn/phpbb/trunk@438 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-07 11:28:02 +00:00
James Atkinson
1010b488ca Forum level annoucements and sticky topics are done.
Added topic_type field to the topics database in order to handle ordering. Would have used topic_status but that would have messed up the ordering when topics were locked


git-svn-id: file:///svn/phpbb/trunk@437 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-07 07:56:45 +00:00
James Atkinson
f49da7909b Fixed postgres query in index
Fixed profile so people arn't created with automatic admin status (eek)


git-svn-id: file:///svn/phpbb/trunk@436 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-07 07:04:26 +00:00
Paul S. Owen
999a0c9d1a Reduced auth code size and added some more auth types
git-svn-id: file:///svn/phpbb/trunk@435 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-06 21:35:08 +00:00
Paul S. Owen
43bc7ac78f Auth now returns a type allowing for more meaningful failure messa ges
git-svn-id: file:///svn/phpbb/trunk@434 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-06 17:50:24 +00:00
Paul S. Owen
6ac0e7b4b3 I taught I taw a puty tat
git-svn-id: file:///svn/phpbb/trunk@433 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-05 23:16:02 +00:00
Paul S. Owen
b3cd4a4d36 Latest session code updates
git-svn-id: file:///svn/phpbb/trunk@432 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-05 22:07:26 +00:00
Paul S. Owen
ba119166a1 Demo topic tracking code ... commented out by default
git-svn-id: file:///svn/phpbb/trunk@431 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-05 21:15:19 +00:00
Paul S. Owen
c5ea123ae7 Basic new post folder colour change
git-svn-id: file:///svn/phpbb/trunk@430 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-05 13:34:23 +00:00
Paul S. Owen
b238891d8c Small change to default date format
git-svn-id: file:///svn/phpbb/trunk@429 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-04 22:10:25 +00:00
the_systech
e79b727ef2 Now functional for Postgres???
git-svn-id: file:///svn/phpbb/trunk@428 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-04 21:39:09 +00:00
Paul S. Owen
e9a6b88b1d Last visit addition
git-svn-id: file:///svn/phpbb/trunk@427 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-04 16:37:48 +00:00
Paul S. Owen
b743fe30e4 Noticed that the initial conditions had been changed so changed them back
git-svn-id: file:///svn/phpbb/trunk@426 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-04 01:35:15 +00:00
Paul S. Owen
b8870fee01 Remember to change all commented out lines for CVS version ... doh
git-svn-id: file:///svn/phpbb/trunk@425 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-04 00:54:57 +00:00
Paul S. Owen
7313f147f9 More functionality ... some user auth info but no direct control yet
git-svn-id: file:///svn/phpbb/trunk@424 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-04 00:46:12 +00:00
Paul S. Owen
df638e5d2e Fixed problem with users editing posts they did not create
git-svn-id: file:///svn/phpbb/trunk@423 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-04 00:14:26 +00:00
Paul S. Owen
764ec889a9 Some emergency updates ...
git-svn-id: file:///svn/phpbb/trunk@422 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-03 23:48:57 +00:00
James Atkinson
10fa55f5a0 Fixed reply w/ quote link (functionality still dosan't exist for it though)
Fixed bug with being able to modifiy someone elses profile
Fixed bug with BBCode not working
Fixed bug with validate_username causing editing of profile to fail (only checks if you actually change you name now)


git-svn-id: file:///svn/phpbb/trunk@421 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-03 23:10:07 +00:00
Paul S. Owen
bfa2136438 Mental note - Remove echos before commiting ...
git-svn-id: file:///svn/phpbb/trunk@420 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-03 20:10:14 +00:00
Paul S. Owen
7858865add Fixed validate_username failure and matched groups field names
git-svn-id: file:///svn/phpbb/trunk@419 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-03 20:09:18 +00:00
Paul S. Owen
dfa753d562 Updates to forumauth and initial userauth
git-svn-id: file:///svn/phpbb/trunk@418 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-03 18:20:51 +00:00
Paul S. Owen
f94c9f01a5 Fixed field type for cat_order
git-svn-id: file:///svn/phpbb/trunk@417 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-03 15:57:23 +00:00
Paul S. Owen
1b8e9222f0 Forum auth admin now works
git-svn-id: file:///svn/phpbb/trunk@416 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-03 13:39:33 +00:00
Paul S. Owen
b8a69e8c93 Some basic Forum Auth control
git-svn-id: file:///svn/phpbb/trunk@415 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-03 02:09:33 +00:00
Paul S. Owen
ee45701ddf Slight mods that should make not difference to current setups
git-svn-id: file:///svn/phpbb/trunk@414 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-02 23:05:58 +00:00
Paul S. Owen
eb7f56a332 Minor change to remove commented out ban check in _pagestart
git-svn-id: file:///svn/phpbb/trunk@413 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-02 23:01:35 +00:00
Paul S. Owen
02402ac147 Minor mods
git-svn-id: file:///svn/phpbb/trunk@412 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-02 18:20:58 +00:00
Paul S. Owen
b4686fb15e Initial default
git-svn-id: file:///svn/phpbb/trunk@411 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-02 18:20:22 +00:00
Paul S. Owen
472867909d User can only search and see results for forums they have auth_view rights
git-svn-id: file:///svn/phpbb/trunk@410 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-02 16:49:22 +00:00
Paul S. Owen
4be30f3a82 More internal changes
git-svn-id: file:///svn/phpbb/trunk@409 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-02 16:48:22 +00:00
the_systech
2ee46df51c Update for better error reporting on backup
git-svn-id: file:///svn/phpbb/trunk@408 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-01 22:05:19 +00:00
Paul S. Owen
9aa4a8b09c Basic images
git-svn-id: file:///svn/phpbb/trunk@407 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-01 17:14:10 +00:00
James Atkinson
0607099468 IP and Delete post icons only show to moderators
git-svn-id: file:///svn/phpbb/trunk@406 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-01 17:11:16 +00:00
James Atkinson
b5e73bc550 Hidden forums work for postgres now.
Note: If the forum dosan't have an entry in the auth_forums it won't show in the index!


git-svn-id: file:///svn/phpbb/trunk@405 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-01 17:08:55 +00:00
the_systech
4578116303 First Version....
git-svn-id: file:///svn/phpbb/trunk@404 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-01 17:01:01 +00:00
Paul S. Owen
2210961fa5 Some hopefully finalish updates to auth schema
git-svn-id: file:///svn/phpbb/trunk@403 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-01 15:00:19 +00:00
Paul S. Owen
ad4cfc051c Allow restricted view forums
git-svn-id: file:///svn/phpbb/trunk@402 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-01 13:44:12 +00:00
Paul S. Owen
f3d9aa24f0 Something else broke, now fixed, probably ... sleep uuugghhh
git-svn-id: file:///svn/phpbb/trunk@401 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-01 01:45:50 +00:00
Paul S. Owen
cb1e99cb91 Some more updates ... head hurts, must sleep
git-svn-id: file:///svn/phpbb/trunk@400 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-01 01:16:28 +00:00
Paul S. Owen
99a804bb34 Updated for latest auth
git-svn-id: file:///svn/phpbb/trunk@399 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-06-01 00:28:50 +00:00
Paul S. Owen
b8758abd17 Moderators now defined by the new auth setup
git-svn-id: file:///svn/phpbb/trunk@398 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 23:16:16 +00:00
Paul S. Owen
3238631c1f More changes ... admin level now set in phpbb_users rather than via auth system
git-svn-id: file:///svn/phpbb/trunk@397 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 23:14:15 +00:00
Paul S. Owen
eec6b08295 Latest update ... should be okay
git-svn-id: file:///svn/phpbb/trunk@396 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 23:09:37 +00:00
Paul S. Owen
bc18a32d45 Added admin link
git-svn-id: file:///svn/phpbb/trunk@395 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 22:57:53 +00:00
Paul S. Owen
326197f7f0 Updated so admin link only displayed for admins
git-svn-id: file:///svn/phpbb/trunk@394 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 22:57:38 +00:00
James Atkinson
ce5f81049e Added instant bbcode to posting Default template
git-svn-id: file:///svn/phpbb/trunk@393 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 21:13:07 +00:00
James Atkinson
5c214088b4 Added images dir for Default template, and instant BBCode images (stole them from opentopic, must get our own befor release)
git-svn-id: file:///svn/phpbb/trunk@392 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 21:12:45 +00:00
Paul S. Owen
64b1a3afbb Minor change
git-svn-id: file:///svn/phpbb/trunk@391 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 20:27:34 +00:00
Paul S. Owen
9cf92abc8c I feel lonely being the only one to have this so here you everyone
git-svn-id: file:///svn/phpbb/trunk@390 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 20:12:53 +00:00
James Atkinson
09e7aef120 Added post subject to postgres schema. Updated viewtopic query to include group by for the auth forums table when linking after posting
git-svn-id: file:///svn/phpbb/trunk@389 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 20:06:23 +00:00
Paul S. Owen
3ed50ce0b7 Changes to allow all auth types to be returned
git-svn-id: file:///svn/phpbb/trunk@388 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 15:39:59 +00:00
the_systech
eb9734b237 Final fix to match current mysql_schema.sql
git-svn-id: file:///svn/phpbb/trunk@387 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 15:13:44 +00:00
the_systech
93e64265cd Added data for new columns in post and post_text
git-svn-id: file:///svn/phpbb/trunk@386 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 14:26:17 +00:00
the_systech
423e8adf26 Fixed error in sql. INSER
git-svn-id: file:///svn/phpbb/trunk@385 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 14:17:40 +00:00
Paul S. Owen
09f0b88365 Added some basic auth info for new auth system
git-svn-id: file:///svn/phpbb/trunk@384 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 14:11:57 +00:00
Paul S. Owen
e512745c01 Possible group admin link ... possibly not necessary
git-svn-id: file:///svn/phpbb/trunk@383 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 11:49:42 +00:00
Paul S. Owen
b653b4dd67 Various changes and fixes to enable search from username and template updates
git-svn-id: file:///svn/phpbb/trunk@382 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-31 11:47:43 +00:00
James Atkinson
0a99b25500 Updated postgres schema
git-svn-id: file:///svn/phpbb/trunk@381 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-30 23:52:22 +00:00
Paul S. Owen
18476eeae9 Small error correction that could be show stopping
git-svn-id: file:///svn/phpbb/trunk@380 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-30 23:16:52 +00:00
Paul S. Owen
02cfff6046 Some auth updates to posting ... these ones work
git-svn-id: file:///svn/phpbb/trunk@379 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-30 21:23:14 +00:00
Paul S. Owen
28bfe84209 Some auth updates to posting
git-svn-id: file:///svn/phpbb/trunk@378 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-30 20:35:36 +00:00
Paul S. Owen
53c41d08d1 Auth Stage-1 goes in
git-svn-id: file:///svn/phpbb/trunk@377 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-30 20:21:42 +00:00
Paul S. Owen
7401fc7d07 Some changes for usergroup addition
git-svn-id: file:///svn/phpbb/trunk@376 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-30 18:22:14 +00:00
Paul S. Owen
5ecbbab23c Updates for auth system
git-svn-id: file:///svn/phpbb/trunk@375 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-30 18:22:06 +00:00
Paul S. Owen
9b8cea9731 Basic user group addition for single user upon registration
git-svn-id: file:///svn/phpbb/trunk@374 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-30 15:46:07 +00:00
Paul S. Owen
dffc9028ee Some updates which may have fixed some probs ...
git-svn-id: file:///svn/phpbb/trunk@373 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-30 12:33:03 +00:00
Paul S. Owen
6f3d969459 Added the jump to post made to posting.php
git-svn-id: file:///svn/phpbb/trunk@372 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-29 19:43:21 +00:00
Paul S. Owen
a474e1481d Added ability to jump to a specific post ... click on the little page post icon
git-svn-id: file:///svn/phpbb/trunk@371 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-29 18:17:14 +00:00
Paul S. Owen
2c282ebdc2 Added ability to jump to specific post
git-svn-id: file:///svn/phpbb/trunk@370 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-29 18:16:46 +00:00
Paul S. Owen
3525a67532 Updates for search
git-svn-id: file:///svn/phpbb/trunk@369 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-29 14:36:33 +00:00
Paul S. Owen
74c48b861f In goes initial search engine
git-svn-id: file:///svn/phpbb/trunk@368 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-29 14:25:09 +00:00
Paul S. Owen
e19e832e1c Slight mod to jump to last post calc
git-svn-id: file:///svn/phpbb/trunk@367 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-29 11:08:40 +00:00
James Atkinson
943901d916 Did some work converting lang file stuff to new format
git-svn-id: file:///svn/phpbb/trunk@366 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-28 20:23:16 +00:00
Paul S. Owen
61d2ea4b29 New images
git-svn-id: file:///svn/phpbb/trunk@365 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-28 17:30:22 +00:00
Paul S. Owen
f3024c3d67 More slash slashing ... this does require magic_quotes_gpc be on though ...
git-svn-id: file:///svn/phpbb/trunk@364 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-28 17:02:27 +00:00
Paul S. Owen
e0f263dd0d Fixed a couple of show stopping errors with avatars
git-svn-id: file:///svn/phpbb/trunk@363 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-28 16:05:57 +00:00
Paul S. Owen
33d5509eb1 Minor updates related to additional info as per last commit
git-svn-id: file:///svn/phpbb/trunk@362 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-28 15:26:38 +00:00
Paul S. Owen
cc213bfc49 Additional page info sent to templates
git-svn-id: file:///svn/phpbb/trunk@361 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-28 15:25:23 +00:00
Paul S. Owen
03dd4c39c3 Fixed problem with post insert
git-svn-id: file:///svn/phpbb/trunk@360 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-28 15:11:20 +00:00
Paul S. Owen
81015f9428 Fixed some slashing problems
git-svn-id: file:///svn/phpbb/trunk@359 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-28 14:06:37 +00:00
Paul S. Owen
a4f2c2f535 Fixed my stupid error ... well ChiSox are playing the Tigers ... I have an excuse
git-svn-id: file:///svn/phpbb/trunk@358 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-28 00:29:27 +00:00
Paul S. Owen
c45c10596d Added filename extension check for avatar image
git-svn-id: file:///svn/phpbb/trunk@357 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-28 00:18:17 +00:00
James Atkinson
7103686e06 Avatars into Default template'
git-svn-id: file:///svn/phpbb/trunk@356 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 22:49:19 +00:00
Paul S. Owen
fb9aa3f905 Commented out current prev/next topic for time being
git-svn-id: file:///svn/phpbb/trunk@355 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 22:08:47 +00:00
Paul S. Owen
dd76a72bc8 A few more additions to new format lang file
git-svn-id: file:///svn/phpbb/trunk@354 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 20:05:06 +00:00
Paul S. Owen
d82257c11a Avatar update
git-svn-id: file:///svn/phpbb/trunk@353 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 19:18:57 +00:00
Paul S. Owen
80e2cec0e2 Uploadable avatars now added ... hey I was bored
git-svn-id: file:///svn/phpbb/trunk@352 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 19:14:35 +00:00
Paul S. Owen
7f08c9f561 Updated
git-svn-id: file:///svn/phpbb/trunk@351 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 18:39:08 +00:00
Paul S. Owen
18014ec472 Corrected and finished some things I commited earlier
git-svn-id: file:///svn/phpbb/trunk@350 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 18:08:02 +00:00
Paul S. Owen
502bff09a0 Updated basic config
git-svn-id: file:///svn/phpbb/trunk@349 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 16:48:30 +00:00
Paul S. Owen
0f41a3a653 Removed encoding of IP (now done in common)
git-svn-id: file:///svn/phpbb/trunk@348 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 16:41:53 +00:00
Paul S. Owen
4f3418bc25 Removed encoding of IP and fixed reversed userdata checks for allow
git-svn-id: file:///svn/phpbb/trunk@347 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 16:41:33 +00:00
Paul S. Owen
2f0a6333aa IP encoding now done in common no need to encode anywhere else
git-svn-id: file:///svn/phpbb/trunk@346 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 16:40:25 +00:00
Paul S. Owen
2d0f44daf4 Introduce a global switch for smilies
git-svn-id: file:///svn/phpbb/trunk@345 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 16:11:57 +00:00
Paul S. Owen
3b10f25083 More updates to who is online display
git-svn-id: file:///svn/phpbb/trunk@344 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 16:08:53 +00:00
Paul S. Owen
042f98a968 Further changes
git-svn-id: file:///svn/phpbb/trunk@343 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 15:55:47 +00:00
Paul S. Owen
4f2f7c1ff4 Various new expressions and basic start of array creation
git-svn-id: file:///svn/phpbb/trunk@342 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 15:15:17 +00:00
Paul S. Owen
8cabcdea5f Minor update
git-svn-id: file:///svn/phpbb/trunk@341 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 15:14:37 +00:00
Paul S. Owen
da2756078f Update to who is online display
git-svn-id: file:///svn/phpbb/trunk@340 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 14:37:22 +00:00
Paul S. Owen
b9465a32cb Updates for post heading
git-svn-id: file:///svn/phpbb/trunk@339 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 14:22:43 +00:00
Paul S. Owen
8ab5d08333 Membership listing
git-svn-id: file:///svn/phpbb/trunk@338 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 14:22:27 +00:00
Paul S. Owen
af35302cda Updates for near-future capabilities
git-svn-id: file:///svn/phpbb/trunk@337 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 14:21:45 +00:00
James Atkinson
9889b8ba53 More work on posting. Editing now works. Also replies can have subjects.
git-svn-id: file:///svn/phpbb/trunk@336 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 03:11:27 +00:00
James Atkinson
1fc155f93d Moved where the 'Display topics...' drop down box was..looks better now IMO
git-svn-id: file:///svn/phpbb/trunk@335 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-27 01:57:45 +00:00
Paul S. Owen
9df538795c As I said in a post at phpBB.com today nothing has gone right first time
git-svn-id: file:///svn/phpbb/trunk@334 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-26 21:51:03 +00:00
Paul S. Owen
81c26eef7e Fixed a problem with newlines replacing breaks in sigs
git-svn-id: file:///svn/phpbb/trunk@333 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-26 21:40:58 +00:00
Paul S. Owen
e1139ff198 Updated display of previous day select
git-svn-id: file:///svn/phpbb/trunk@332 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-26 14:36:30 +00:00
Paul S. Owen
16a49b96a9 Fixed a small problem with pagination
git-svn-id: file:///svn/phpbb/trunk@331 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-26 13:07:18 +00:00
Paul S. Owen
0228ab8270 Further improvements to view topic select ... well fixes actually
git-svn-id: file:///svn/phpbb/trunk@330 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-26 13:06:39 +00:00
Paul S. Owen
8a60622f0f Altered displayed text for previous x days select
git-svn-id: file:///svn/phpbb/trunk@329 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-26 12:47:27 +00:00
James Atkinson
bb1679af9a Lots of work on posting. New topic and reply functionality is mostly done. Edit post loads the form but needs database functionality
All this is only been tested on Postgres, donno if it works as well on MySQL yet, will test when I can get access to sourceforge again


git-svn-id: file:///svn/phpbb/trunk@328 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-26 00:25:50 +00:00
James Atkinson
0fee31117b Touched up some of the default templates
git-svn-id: file:///svn/phpbb/trunk@327 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-25 21:22:32 +00:00
James Atkinson
7ab6eaf3de Users sigs display correctly.
Some minor improvments to posting...still LOTS to be done


git-svn-id: file:///svn/phpbb/trunk@326 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-25 07:02:48 +00:00
James Atkinson
cbed447842 Stupid UltraEdit did the windows carriage returns again..warg..I think I have it fixed now.
git-svn-id: file:///svn/phpbb/trunk@325 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-25 06:54:38 +00:00
James Atkinson
2a3abfe286 Next ID didn't need the + 1
git-svn-id: file:///svn/phpbb/trunk@324 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-25 06:52:03 +00:00
James Atkinson
48312a6566 Got started on the posting functions. Can post new topics as Anonymous, yay!
git-svn-id: file:///svn/phpbb/trunk@323 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-25 00:56:07 +00:00
James Atkinson
f3b1ccdebc Updated postgres schema so it'll work correctly with sql_nextid
Also removed all the "'s, they were screwing up the table creates


git-svn-id: file:///svn/phpbb/trunk@322 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-25 00:16:29 +00:00
James Atkinson
b7f6539036 Fixed some little bugs in viewtopic. Also made sure viewtopic's next/prev functionality only views topics in the current forum.
Added some extra error messages to modify profile for when the query fails.


git-svn-id: file:///svn/phpbb/trunk@321 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-24 20:10:34 +00:00
James Atkinson
d525c3bc51 Added docs dir and some docs. Also working on Template 'how-to' doc, will be added later
git-svn-id: file:///svn/phpbb/trunk@320 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-24 20:09:11 +00:00
Paul S. Owen
c650e708c1 Minor fixes
git-svn-id: file:///svn/phpbb/trunk@319 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-22 15:25:53 +00:00
James Atkinson
4bf900ebae Took out some debugging code
git-svn-id: file:///svn/phpbb/trunk@318 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-22 02:58:11 +00:00
Paul S. Owen
84925d852d Moved the append_sid routine to the sessions.php file
git-svn-id: file:///svn/phpbb/trunk@317 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-20 20:58:55 +00:00
Paul S. Owen
fdf043fa2b Removed the debug checks I enabled in last commit ...
git-svn-id: file:///svn/phpbb/trunk@316 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-18 17:43:46 +00:00
Paul S. Owen
a3945e19a6 Update to cookielife setting
git-svn-id: file:///svn/phpbb/trunk@315 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-18 15:25:34 +00:00
Paul S. Owen
84f64f715c Some fiddling ...
git-svn-id: file:///svn/phpbb/trunk@314 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-18 13:30:09 +00:00
Paul S. Owen
308bd4a93b Changed the allow/disallow fields to match the profile template
git-svn-id: file:///svn/phpbb/trunk@313 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-17 16:37:45 +00:00
Paul S. Owen
a16d51a4a5 Added jumpbox output for all profile pages
git-svn-id: file:///svn/phpbb/trunk@312 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-17 15:14:11 +00:00
Paul S. Owen
b621f70cd1 Removed separate header/footers and moved into each pages body
git-svn-id: file:///svn/phpbb/trunk@311 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-17 14:48:39 +00:00
Paul S. Owen
dcf65b486e Gone and quite possibly forgotten, how terrible
git-svn-id: file:///svn/phpbb/trunk@310 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-17 14:45:47 +00:00
Paul S. Owen
1884b5ef62 Removed separate header/footers and moved into each pages body
git-svn-id: file:///svn/phpbb/trunk@309 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-17 14:22:16 +00:00
Paul S. Owen
63539ba7f3 Gone and quite possibly forgotten, how terrible
git-svn-id: file:///svn/phpbb/trunk@308 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-17 14:21:05 +00:00
Paul S. Owen
7438f4f287 Crikey, how did I miss updating this
git-svn-id: file:///svn/phpbb/trunk@307 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-17 00:14:38 +00:00
Paul S. Owen
cf492d3748 Upgraded last post feature
git-svn-id: file:///svn/phpbb/trunk@306 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-16 21:59:57 +00:00
Paul S. Owen
36cb30de90 Added a view posts in previoux x day capability to viewforum
git-svn-id: file:///svn/phpbb/trunk@305 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-16 20:07:23 +00:00
James Atkinson
cca94aa778 Freeking windows carriage returns...someone tell me how to fix UltraEdit so it does do this..
git-svn-id: file:///svn/phpbb/trunk@304 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-16 07:04:01 +00:00
James Atkinson
a0ee803f48 Removed the Oracle specific SQL statment, the non-mysql one works fine with it
git-svn-id: file:///svn/phpbb/trunk@303 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-16 06:45:44 +00:00
James Atkinson
37c8601548 Introduced the $operator variable and cut the amount of SQL statments in half :)
git-svn-id: file:///svn/phpbb/trunk@302 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-16 00:56:59 +00:00
James Atkinson
47dce29bbd Added functionality for the next/prev buttions in viewtopic
git-svn-id: file:///svn/phpbb/trunk@301 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-16 00:49:06 +00:00
the_systech
6dfe84827d Add post in demo forum
git-svn-id: file:///svn/phpbb/trunk@300 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-15 14:08:27 +00:00
Paul S. Owen
078f63bc8a Re-did OUTER JOIN query since it is required here
git-svn-id: file:///svn/phpbb/trunk@299 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-15 13:40:05 +00:00
Paul S. Owen
d548bbeb2b This fixes the error that I though I fixed in the last commit ... doh
git-svn-id: file:///svn/phpbb/trunk@298 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-15 01:22:14 +00:00
Paul S. Owen
8e1f0cf096 Various updates
git-svn-id: file:///svn/phpbb/trunk@297 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-15 00:15:26 +00:00
James Atkinson
647864f581 Added some missing semi-colons
git-svn-id: file:///svn/phpbb/trunk@296 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-14 23:20:31 +00:00
Paul S. Owen
61b1fc9d2c Matches current MySQL schema
git-svn-id: file:///svn/phpbb/trunk@295 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-14 15:14:48 +00:00
Paul S. Owen
2ca28725f4 Fixed some more issues
git-svn-id: file:///svn/phpbb/trunk@294 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-14 15:10:31 +00:00
Paul S. Owen
ffb911d1e1 Altered SQL slightly for Postgres
git-svn-id: file:///svn/phpbb/trunk@293 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-14 15:10:05 +00:00
Paul S. Owen
60c507756c Fixed LIMIT and other issues
git-svn-id: file:///svn/phpbb/trunk@292 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-14 14:23:29 +00:00
Paul S. Owen
03923a2665 Mental note - ftp file to server before committing :)
git-svn-id: file:///svn/phpbb/trunk@291 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 20:38:14 +00:00
Paul S. Owen
e22f7fc7c0 Fixed display of forums - all pages should now work fine
git-svn-id: file:///svn/phpbb/trunk@290 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 20:31:37 +00:00
Paul S. Owen
10450b3f9c Replaced preg_replace
git-svn-id: file:///svn/phpbb/trunk@289 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 19:47:01 +00:00
Paul S. Owen
b3e8c6a82e Re-added after their last commit corrupted them -> these are binary files
git-svn-id: file:///svn/phpbb/trunk@288 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 19:34:36 +00:00
Paul S. Owen
0de9b9d73e Re-added after their last commit corrupted them -> these are binary files
git-svn-id: file:///svn/phpbb/trunk@287 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 19:33:45 +00:00
Paul S. Owen
98c93d45c5 Yet another overlooked error fixed ... strange this never showed up before ...
git-svn-id: file:///svn/phpbb/trunk@286 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 17:13:10 +00:00
Paul S. Owen
a325e482a8 Small error in viewonline fixed
git-svn-id: file:///svn/phpbb/trunk@285 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 17:11:03 +00:00
Paul S. Owen
99fbeda889 Workaround for LOWER -> LCASE for msaccess - mark 2
git-svn-id: file:///svn/phpbb/trunk@284 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 17:09:02 +00:00
Paul S. Owen
12d405c8a3 Workaround for LOWER -> LCASE for msaccess
git-svn-id: file:///svn/phpbb/trunk@283 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 17:08:04 +00:00
Paul S. Owen
557887b0d1 Various updates
git-svn-id: file:///svn/phpbb/trunk@282 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 16:49:41 +00:00
Paul S. Owen
e3bd966042 Initial SQL updates complete
git-svn-id: file:///svn/phpbb/trunk@281 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 16:02:30 +00:00
Paul S. Owen
bdaedc9afc Minor alt
git-svn-id: file:///svn/phpbb/trunk@280 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 12:13:34 +00:00
Paul S. Owen
fd890fb095 First of changes to SQL
git-svn-id: file:///svn/phpbb/trunk@279 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 12:12:44 +00:00
James Atkinson
460d7f70bc Blah, parse error..
git-svn-id: file:///svn/phpbb/trunk@278 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 01:00:05 +00:00
James Atkinson
74d20fcc96 *** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@277 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 00:28:39 +00:00
James Atkinson
07148f9f31 Re-added the error message and query echo to DEBUG error message
PLEASE do not remove it, it is very helpfull when debugging errors


git-svn-id: file:///svn/phpbb/trunk@276 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-13 00:27:04 +00:00
Paul S. Owen
3f4ea178d6 Fixed various errors, added issets, removed unneeded sql error messages
git-svn-id: file:///svn/phpbb/trunk@275 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-12 11:43:48 +00:00
James Atkinson
7da5561d24 Fixed stupid windows carriage returns...
Fixed pagination


git-svn-id: file:///svn/phpbb/trunk@274 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-12 01:37:28 +00:00
James Atkinson
ddbc01bb36 More work on memberlist
git-svn-id: file:///svn/phpbb/trunk@273 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-11 23:35:29 +00:00
James Atkinson
d3adc86325 Memberlist working. Pagination seems to have problems. Might be generate_pagination code...
git-svn-id: file:///svn/phpbb/trunk@272 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-11 23:16:31 +00:00
Paul S. Owen
caaf04c197 Altered ban checking, this will be replaced by auth I think
git-svn-id: file:///svn/phpbb/trunk@271 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-11 12:24:50 +00:00
Paul S. Owen
40e59aad2b Altered ban checking, this will be replaced by auth I think
git-svn-id: file:///svn/phpbb/trunk@270 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-11 12:22:44 +00:00
Paul S. Owen
7b51bc1dc2 Possible fix for SQL JOIN syntax and MySQL 3.22
git-svn-id: file:///svn/phpbb/trunk@269 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-11 11:10:33 +00:00
James Atkinson
3fb9761959 Made the schema work with MySQL 3.22
git-svn-id: file:///svn/phpbb/trunk@268 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-10 18:14:02 +00:00
James Atkinson
3ee09c613c Added code to create an instance of $template if it does not exist
git-svn-id: file:///svn/phpbb/trunk@267 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-10 18:13:15 +00:00
the_systech
689d58525e New file for smtp mail
git-svn-id: file:///svn/phpbb/trunk@266 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-09 21:47:49 +00:00
Paul S. Owen
2efd2e97b8 Added generate_pagination routine
git-svn-id: file:///svn/phpbb/trunk@265 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-07 23:04:16 +00:00
the_systech
2d6c917744 Fixed value orders to match column orders
git-svn-id: file:///svn/phpbb/trunk@264 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-07 14:55:59 +00:00
the_systech
828ebd88a1 Modified to add DROP TABLE for each phpBB2 Table
git-svn-id: file:///svn/phpbb/trunk@263 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-07 14:23:11 +00:00
Paul S. Owen
b3431f05d0 Minor update
git-svn-id: file:///svn/phpbb/trunk@262 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 22:29:56 +00:00
Paul S. Owen
f89e2a6d70 Minor changes to where template vars are assigned
git-svn-id: file:///svn/phpbb/trunk@261 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 22:29:28 +00:00
Paul S. Owen
4129a8e7bb Send post id to template for possible anchor name ref
git-svn-id: file:///svn/phpbb/trunk@260 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 17:39:01 +00:00
Paul S. Owen
d211e09459 Now allow for GET based session - additions
git-svn-id: file:///svn/phpbb/trunk@259 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 16:58:54 +00:00
Paul S. Owen
4e056b99a9 Now allow for GET based session
git-svn-id: file:///svn/phpbb/trunk@258 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 16:58:36 +00:00
Paul S. Owen
93fb7ac165 Now allow for GET based session
git-svn-id: file:///svn/phpbb/trunk@257 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 16:26:16 +00:00
Paul S. Owen
6a74951029 Now allow for GET based session
git-svn-id: file:///svn/phpbb/trunk@256 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 16:16:22 +00:00
Paul S. Owen
99edaf843c oops, two colours round the wrong way
git-svn-id: file:///svn/phpbb/trunk@255 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 15:46:09 +00:00
Paul S. Owen
802525a864 'New' theme for my template
git-svn-id: file:///svn/phpbb/trunk@254 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 12:34:33 +00:00
Paul S. Owen
a2fbeecb15 Additions for session code update
git-svn-id: file:///svn/phpbb/trunk@253 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 12:34:04 +00:00
Paul S. Owen
fbfcef1366 Fixed problem with incorrect conversion of line breaks in alter profile
git-svn-id: file:///svn/phpbb/trunk@252 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 12:31:05 +00:00
Paul S. Owen
0938e28471 Minor updates
git-svn-id: file:///svn/phpbb/trunk@251 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 12:30:25 +00:00
Paul S. Owen
b0f75874dc Changed as per FDF topic
git-svn-id: file:///svn/phpbb/trunk@250 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 11:35:32 +00:00
Paul S. Owen
d894fd0c1b Removed display of Anonymous is username field if no user logged on
git-svn-id: file:///svn/phpbb/trunk@249 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 00:25:45 +00:00
Paul S. Owen
981415805d Fixed problem where password was cleared even if unchanged
git-svn-id: file:///svn/phpbb/trunk@248 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-06 00:25:23 +00:00
Paul S. Owen
e6de886e1a Corrected small error in HTML
git-svn-id: file:///svn/phpbb/trunk@247 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-05 00:24:22 +00:00
Paul S. Owen
1f1043e7d0 Now remembers profile changes on error
git-svn-id: file:///svn/phpbb/trunk@246 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-05 00:23:38 +00:00
James Atkinson
2344d1f2d7 Users can now edit profile. However, it dosan't retain the data on an error, yet
git-svn-id: file:///svn/phpbb/trunk@245 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-04 23:51:52 +00:00
the_systech
7573e4c1d4 Modified users and config inserts to match column counts in mysql_schema.sql
git-svn-id: file:///svn/phpbb/trunk@244 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-04 18:10:58 +00:00
James Atkinson
657edfb09a Little fix to login so de-activated accounts won't be able to login
git-svn-id: file:///svn/phpbb/trunk@243 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-04 00:36:06 +00:00
Paul S. Owen
3735013fba Various updates, templating var changes, config array updates, etc.
git-svn-id: file:///svn/phpbb/trunk@242 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-04 00:35:31 +00:00
Paul S. Owen
1f0632f5fa Latest update
git-svn-id: file:///svn/phpbb/trunk@241 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-03 23:34:21 +00:00
Paul S. Owen
42fa6de7bf Updated to include PSO template default theme
git-svn-id: file:///svn/phpbb/trunk@240 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-03 23:26:16 +00:00
Paul S. Owen
b44f5ef02b Pauls alternate template, this _requires_ a theme
git-svn-id: file:///svn/phpbb/trunk@239 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-03 23:25:25 +00:00
Paul S. Owen
5c92a2a2dd Updated to use same style as rest of default template
git-svn-id: file:///svn/phpbb/trunk@238 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-03 23:17:39 +00:00
Paul S. Owen
aa8a051a98 Moved config, images vars to arrays and various other fixes
git-svn-id: file:///svn/phpbb/trunk@237 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-03 22:10:23 +00:00
Paul S. Owen
df716e1e83 Changed a templating var to match changed placement in page_header.php
git-svn-id: file:///svn/phpbb/trunk@236 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-03 00:05:21 +00:00
Paul S. Owen
d2bca34492 Changed joined_date to use create_date
git-svn-id: file:///svn/phpbb/trunk@235 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-03 00:04:38 +00:00
Paul S. Owen
4621442a27 Added extra defaults
git-svn-id: file:///svn/phpbb/trunk@234 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-02 22:33:29 +00:00
Paul S. Owen
379d70fab8 An extra TABLES constant for possible multiple autologin keys
git-svn-id: file:///svn/phpbb/trunk@233 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-02 22:31:56 +00:00
Paul S. Owen
dc5fce4710 Moved several functions to profile.php
git-svn-id: file:///svn/phpbb/trunk@232 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-02 22:31:23 +00:00
Paul S. Owen
252685e4f3 Updates to match profile.php changes
git-svn-id: file:///svn/phpbb/trunk@231 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-02 22:30:58 +00:00
Paul S. Owen
8b068f0428 Some code cleanup and various updates + moved certain functions here
git-svn-id: file:///svn/phpbb/trunk@230 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-02 22:27:58 +00:00
Paul S. Owen
a7493e7455 Convert old user_regdates to gmtime integers
git-svn-id: file:///svn/phpbb/trunk@229 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-02 22:14:32 +00:00
James Atkinson
10e68a9556 Ran John's fix_files script to fix all the windows carriage returns.
Also added the script in the develop dir. To use it copy it to the phpBB2 root dir and run it


git-svn-id: file:///svn/phpbb/trunk@228 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-02 17:46:45 +00:00
Paul S. Owen
3ffd49782c Updated to use create_date rather than date
git-svn-id: file:///svn/phpbb/trunk@227 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-02 00:50:27 +00:00
Paul S. Owen
65bf7081c1 Fixed bug in utilising user selected timezone
git-svn-id: file:///svn/phpbb/trunk@226 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-02 00:42:33 +00:00
Paul S. Owen
94187506c9 Remove extra -ve from being printed for timezones behind GMT
git-svn-id: file:///svn/phpbb/trunk@225 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-02 00:33:00 +00:00
Paul S. Owen
30eb41b4dd Prevent logged in user logging in again from diff IP in same sess
git-svn-id: file:///svn/phpbb/trunk@224 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-02 00:32:10 +00:00
James Atkinson
ccbd1cdfdd Added some passthru support to login
Got edit profile half working..


git-svn-id: file:///svn/phpbb/trunk@223 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-01 20:27:36 +00:00
James Atkinson
b5743048e7 Fixed a pile of Windows carriage returns
git-svn-id: file:///svn/phpbb/trunk@222 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-01 19:10:09 +00:00
James Atkinson
76453deb61 Removed some windows carriage returns
git-svn-id: file:///svn/phpbb/trunk@221 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-01 18:23:13 +00:00
Paul S. Owen
2531a39358 Updated GMT - x hours text
git-svn-id: file:///svn/phpbb/trunk@220 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-05-01 13:08:32 +00:00
Paul S. Owen
e4cf961900 Minor updates and alterations mainly to templating vars
git-svn-id: file:///svn/phpbb/trunk@219 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-30 15:21:31 +00:00
Paul S. Owen
9c16714d85 Added stripslashes to unserialize ... not a good idea to change php.ini updating code
git-svn-id: file:///svn/phpbb/trunk@218 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-29 21:20:19 +00:00
James Atkinson
085a3b07e9 Fixed theme_id field so its not null. schemea would not work on mysql 3.23 with theme_id primary key and nullable
git-svn-id: file:///svn/phpbb/trunk@217 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-29 20:42:27 +00:00
Paul S. Owen
1b95e1ecb1 Added forgotten default_theme to global declarations
git-svn-id: file:///svn/phpbb/trunk@216 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-29 20:21:33 +00:00
Paul S. Owen
6e54257d30 Minor change to var in user_prefs
git-svn-id: file:///svn/phpbb/trunk@215 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-29 20:18:22 +00:00
Paul S. Owen
bec72db2be Grab default_theme setting from DB
git-svn-id: file:///svn/phpbb/trunk@214 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-29 20:16:08 +00:00
Paul S. Owen
d2ee2c82a2 Added view latest post
git-svn-id: file:///svn/phpbb/trunk@213 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-29 14:20:12 +00:00
Paul S. Owen
22c8c4f9ff Minor update to session_end
git-svn-id: file:///svn/phpbb/trunk@212 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-29 13:35:42 +00:00
Paul S. Owen
3ef0ecf9ed Corrected error in viewing categories
git-svn-id: file:///svn/phpbb/trunk@211 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-28 23:43:22 +00:00
Paul S. Owen
2f50dea9f7 Minor updates
git-svn-id: file:///svn/phpbb/trunk@210 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-28 22:46:00 +00:00
Paul S. Owen
0e2d4c9903 Added online users output to page header and from that, index
git-svn-id: file:///svn/phpbb/trunk@209 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-28 20:14:05 +00:00
Paul S. Owen
ec21217a2a Overhauled session code ... in a big way
git-svn-id: file:///svn/phpbb/trunk@208 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-28 17:54:22 +00:00
Paul S. Owen
9a155b4870 Minor update which may fix some multiple session probs
git-svn-id: file:///svn/phpbb/trunk@207 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-28 01:54:52 +00:00
Paul S. Owen
728d6f6609 Quoted default values ...
git-svn-id: file:///svn/phpbb/trunk@206 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-24 22:51:56 +00:00
Paul S. Owen
4643364792 Modify to template sendpassword.php as U_ url
git-svn-id: file:///svn/phpbb/trunk@205 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-24 22:36:50 +00:00
Paul S. Owen
11c85b2fa9 Theme all font terms
git-svn-id: file:///svn/phpbb/trunk@204 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-24 22:34:12 +00:00
Paul S. Owen
a8a1ad65fe Updated for generic theming
git-svn-id: file:///svn/phpbb/trunk@203 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-24 22:32:57 +00:00
Paul S. Owen
a624033c5b Okay it seems the template setup has moved to the DB ... thanks for telling me :)
git-svn-id: file:///svn/phpbb/trunk@202 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-22 23:08:57 +00:00
Paul S. Owen
47519c63b3 Someone removed the template instance ...
git-svn-id: file:///svn/phpbb/trunk@201 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-22 23:00:14 +00:00
James Atkinson
42039bc31a Added user selectable templates, and put the system template into the config database. Updated mysql_schema as well
git-svn-id: file:///svn/phpbb/trunk@200 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-20 07:30:45 +00:00
Paul S. Owen
e150b48726 Added l_hours for timezone indication
git-svn-id: file:///svn/phpbb/trunk@199 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-20 01:13:13 +00:00
Paul S. Owen
2f558be76f Added jumpbox template to newtopic
git-svn-id: file:///svn/phpbb/trunk@198 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-20 01:08:05 +00:00
Paul S. Owen
bd1fc382e9 Fixed forum_id check
git-svn-id: file:///svn/phpbb/trunk@197 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-20 01:07:42 +00:00
Paul S. Owen
79f898e053 Fixed call to get_userdata
git-svn-id: file:///svn/phpbb/trunk@196 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-20 01:07:19 +00:00
Paul S. Owen
d133dc9874 Templating var assignment changes and various updates or fixes
git-svn-id: file:///svn/phpbb/trunk@195 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 22:24:13 +00:00
Paul S. Owen
562a2e5592 Minor cleanup
git-svn-id: file:///svn/phpbb/trunk@194 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 21:17:16 +00:00
Paul S. Owen
895ac6e0df Clean up and added timezone output to templates
git-svn-id: file:///svn/phpbb/trunk@193 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 21:07:47 +00:00
Paul S. Owen
80cca03c90 Fixed profile viewing url
git-svn-id: file:///svn/phpbb/trunk@192 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 17:35:13 +00:00
Paul S. Owen
525c09e3e6 Small mods to login page
git-svn-id: file:///svn/phpbb/trunk@191 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 17:26:24 +00:00
Paul S. Owen
fdbafb32f6 Introduced a full page login box inc prelim themeing
git-svn-id: file:///svn/phpbb/trunk@190 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 16:58:35 +00:00
Paul S. Owen
87b7ae578f Removed need to send db as a parameter to functions
git-svn-id: file:///svn/phpbb/trunk@189 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 15:05:39 +00:00
Paul S. Owen
4c05450291 Replaced previously removed anon and non-logged-in user templating info
git-svn-id: file:///svn/phpbb/trunk@188 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 14:46:11 +00:00
Paul S. Owen
40640febbf Modified as per Nathans suggestion - Mark II
git-svn-id: file:///svn/phpbb/trunk@187 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 14:24:58 +00:00
Paul S. Owen
1129c4e0aa Modified as per Nathans suggestion
git-svn-id: file:///svn/phpbb/trunk@186 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 14:17:56 +00:00
Paul S. Owen
8870e21858 Changed IP types to char 8 for time being
git-svn-id: file:///svn/phpbb/trunk@185 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 13:38:06 +00:00
Paul S. Owen
28cb384994 Moved defaults to common + dir move changes
git-svn-id: file:///svn/phpbb/trunk@184 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 13:30:47 +00:00
Paul S. Owen
329b5e116b Off to the realm of Mordor we go
git-svn-id: file:///svn/phpbb/trunk@183 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 13:25:46 +00:00
Paul S. Owen
175d4a049f Moved all included files to includes
git-svn-id: file:///svn/phpbb/trunk@182 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 13:18:57 +00:00
James Atkinson
6c17dca246 Added current time to overall footer
git-svn-id: file:///svn/phpbb/trunk@181 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 06:24:23 +00:00
James Atkinson
3d234d391c Some more fine turning on the profile section
git-svn-id: file:///svn/phpbb/trunk@180 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 06:21:36 +00:00
James Atkinson
91b23e00e7 Fix for viewonline templates
git-svn-id: file:///svn/phpbb/trunk@179 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 06:15:40 +00:00
James Atkinson
9a2d961b4c Some small fixes in the viewonline templates
git-svn-id: file:///svn/phpbb/trunk@178 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 06:15:00 +00:00
James Atkinson
4952eb77d0 create_date function needs to use gmdate in order to output a correct date.
git-svn-id: file:///svn/phpbb/trunk@177 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-19 06:07:37 +00:00
Paul S. Owen
5654680b5b minor updates to add domain, path, secure
git-svn-id: file:///svn/phpbb/trunk@176 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-18 17:39:46 +00:00
Paul S. Owen
3c48f4cf2f cookie additions
git-svn-id: file:///svn/phpbb/trunk@175 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-18 17:39:12 +00:00
James Atkinson
756427797d Updated mysql_basic file with new user fields
git-svn-id: file:///svn/phpbb/trunk@174 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-18 06:42:01 +00:00
James Atkinson
bc7a2fbc9a Latest mysql schema dump
git-svn-id: file:///svn/phpbb/trunk@173 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-18 06:35:16 +00:00
James Atkinson
d73080b03f Made index.php use the POST_USERS_URL constant everywhere
git-svn-id: file:///svn/phpbb/trunk@172 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-18 06:30:10 +00:00
James Atkinson
3b5a1b549a Most of profile and registration done
git-svn-id: file:///svn/phpbb/trunk@171 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-18 06:26:01 +00:00
James Atkinson
55ef5ae794 Added profile view template
git-svn-id: file:///svn/phpbb/trunk@170 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-18 06:25:08 +00:00
James Atkinson
26f5fb7dfc Fixed some hard coded referances to table names
git-svn-id: file:///svn/phpbb/trunk@169 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-17 07:14:50 +00:00
natec
9468f91ea0 oops
git-svn-id: file:///svn/phpbb/trunk@168 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 20:44:52 +00:00
natec
b684289bb1 Interim fix for template data destruction
git-svn-id: file:///svn/phpbb/trunk@167 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 20:42:20 +00:00
Bart van Bragt
8f097ef156 Added a mod otherwise viewforum craps out
git-svn-id: file:///svn/phpbb/trunk@166 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 19:22:48 +00:00
Bart van Bragt
d833a55c36 Initial checkin
git-svn-id: file:///svn/phpbb/trunk@165 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 19:15:47 +00:00
Bart van Bragt
7f566438d4 Removed some debugging stuff
git-svn-id: file:///svn/phpbb/trunk@164 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 19:05:09 +00:00
Bart van Bragt
867172c744 Fixed session code for existing userid cookie but not corresponding DB entry
git-svn-id: file:///svn/phpbb/trunk@163 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 18:55:52 +00:00
Bart van Bragt
39ee44442b Delete functionality that has been moved to the session code
git-svn-id: file:///svn/phpbb/trunk@162 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 14:49:35 +00:00
Bart van Bragt
834d31c776 Changed session_forum to session_page
git-svn-id: file:///svn/phpbb/trunk@161 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 14:32:39 +00:00
Paul S. Owen
cc8257f069 Another damn bug ... I swear ... no I really am swearing
git-svn-id: file:///svn/phpbb/trunk@160 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 01:15:54 +00:00
Paul S. Owen
fdecd320a6 Yep more commits where werent
git-svn-id: file:///svn/phpbb/trunk@159 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 01:11:40 +00:00
Paul S. Owen
b7acb6b54b yet another file that did not appear to commit
git-svn-id: file:///svn/phpbb/trunk@158 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 00:45:18 +00:00
Paul S. Owen
a6445a2841 Right that is it I don't want to see this again till tomorrow
git-svn-id: file:///svn/phpbb/trunk@157 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 00:19:36 +00:00
Paul S. Owen
ed922102c8 still more damn viewonline updates ... that I forgot
git-svn-id: file:///svn/phpbb/trunk@156 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 00:14:34 +00:00
Paul S. Owen
17edd92527 viewonline updates
git-svn-id: file:///svn/phpbb/trunk@155 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-16 00:02:06 +00:00
Paul S. Owen
830535cdca timezone and dateformat update to config
git-svn-id: file:///svn/phpbb/trunk@154 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 22:09:59 +00:00
Paul S. Owen
b91f972c48 Potential split of viewonline status
git-svn-id: file:///svn/phpbb/trunk@153 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 22:04:35 +00:00
Paul S. Owen
89d1446795 Minor username error update
git-svn-id: file:///svn/phpbb/trunk@152 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 19:35:52 +00:00
Paul S. Owen
0c49c9569e Page tail updates for viewonline
git-svn-id: file:///svn/phpbb/trunk@151 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 17:44:46 +00:00
Paul S. Owen
13c7b8d39d error_die changes and various bug fixes
git-svn-id: file:///svn/phpbb/trunk@150 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 17:33:02 +00:00
Paul S. Owen
eecdd3049f error_die changes and various bug fixes to files
git-svn-id: file:///svn/phpbb/trunk@149 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 17:32:12 +00:00
Paul S. Owen
cbafa0db4e And as if by magic the shopkeeper disappeared
git-svn-id: file:///svn/phpbb/trunk@148 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 16:43:24 +00:00
Paul S. Owen
c04a882d64 Change to GET rather than POST
git-svn-id: file:///svn/phpbb/trunk@147 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 16:38:33 +00:00
Paul S. Owen
b830750d51 Whosonline implementation
git-svn-id: file:///svn/phpbb/trunk@146 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 16:37:53 +00:00
Paul S. Owen
079fc418f9 Compatibility and template updates
git-svn-id: file:///svn/phpbb/trunk@145 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 14:34:52 +00:00
Paul S. Owen
5ff33e38fe Users online update
git-svn-id: file:///svn/phpbb/trunk@144 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 14:21:19 +00:00
Paul S. Owen
7791a31260 Session code updates
git-svn-id: file:///svn/phpbb/trunk@143 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-15 14:14:56 +00:00
Bart van Bragt
e63c33bb2c Fixed stupid mistake :(
git-svn-id: file:///svn/phpbb/trunk@142 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-09 19:57:07 +00:00
Bart van Bragt
3fe9ed7921 Added tool to delete contents of a DB
git-svn-id: file:///svn/phpbb/trunk@141 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-09 19:52:49 +00:00
Bart van Bragt
9cabdd8656 removed bbcode_conversion.php from main dir
git-svn-id: file:///svn/phpbb/trunk@140 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-09 19:26:15 +00:00
Paul S. Owen
6a74fcad44 Date conversion now done to GMT based epoch
git-svn-id: file:///svn/phpbb/trunk@139 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-04 01:22:38 +00:00
Paul S. Owen
ab57859a18 Errm, modified the forum query in make_jumpbox, doh
git-svn-id: file:///svn/phpbb/trunk@138 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-02 14:48:56 +00:00
Paul S. Owen
582b838ae9 Reduced SQL queries in make_jumpbox
git-svn-id: file:///svn/phpbb/trunk@137 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-02 14:37:08 +00:00
Paul S. Owen
f0b7c3d345 Ranks now work
git-svn-id: file:///svn/phpbb/trunk@136 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-04-02 14:36:36 +00:00
Paul S. Owen
c6819f87c8 Changed eregi limit match to preg_match
git-svn-id: file:///svn/phpbb/trunk@135 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-23 15:57:52 +00:00
James Atkinson
483c0dd581 Handing of BBCode and HTML in sigs. BBCode/HTML settings apply to sigs as well as messages
git-svn-id: file:///svn/phpbb/trunk@134 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-23 01:39:26 +00:00
Paul S. Owen
7c82d91c76 Changed default base date format - no other changes
git-svn-id: file:///svn/phpbb/trunk@133 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-23 01:31:49 +00:00
Paul S. Owen
2eb4b3955b Complete overhaul ... see www.phpbb.com for details
git-svn-id: file:///svn/phpbb/trunk@132 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-23 01:17:48 +00:00
natec
db594b3df2 forgot to check in the new schema when I did bbcode.
git-svn-id: file:///svn/phpbb/trunk@131 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-22 23:38:33 +00:00
James Atkinson
2e21a25c01 scripts in develop will work from that dir now
git-svn-id: file:///svn/phpbb/trunk@130 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-22 23:10:40 +00:00
James Atkinson
c11d9105d7 Registration is almost done, coppa support is in..
git-svn-id: file:///svn/phpbb/trunk@129 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-22 01:33:42 +00:00
James Atkinson
1ccf0a5b17 Added blank cookiepath, domain, and secure settings for full browser compat.
git-svn-id: file:///svn/phpbb/trunk@128 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-22 00:53:23 +00:00
Paul S. Owen
06ee7fa7fd Minor update
git-svn-id: file:///svn/phpbb/trunk@127 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-22 00:45:20 +00:00
Paul S. Owen
d7dc3a536a Removed invalid indexes on session
git-svn-id: file:///svn/phpbb/trunk@126 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 23:52:43 +00:00
Paul S. Owen
ae0a59e333 Pointless exercise ... much like most types of exercise really
git-svn-id: file:///svn/phpbb/trunk@125 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 23:48:53 +00:00
Paul S. Owen
4ffcbd88a4 config changes for session updates ... ignore config.php-new
git-svn-id: file:///svn/phpbb/trunk@124 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 23:47:23 +00:00
Bart van Bragt
012256d744 Moved to /develop/ dir
git-svn-id: file:///svn/phpbb/trunk@123 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 23:37:01 +00:00
Paul S. Owen
46d7b32640 Changes related to session code updates
git-svn-id: file:///svn/phpbb/trunk@122 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 23:25:03 +00:00
Paul S. Owen
1952a83d31 Changed for new session stuff
git-svn-id: file:///svn/phpbb/trunk@121 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 23:23:09 +00:00
Paul S. Owen
61b3ee1520 New session code ... lotsa changes
git-svn-id: file:///svn/phpbb/trunk@120 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 23:18:39 +00:00
Paul S. Owen
c33d7500fb Changed to tie in with session code updates
git-svn-id: file:///svn/phpbb/trunk@119 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 23:16:41 +00:00
Paul S. Owen
19c5037dd5 New config file ... use this as basis for additions
git-svn-id: file:///svn/phpbb/trunk@118 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 23:11:38 +00:00
Paul S. Owen
2a108490e6 Fixed problem with next_id and affected_rows
git-svn-id: file:///svn/phpbb/trunk@117 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 18:32:30 +00:00
James Atkinson
3ac46fc0fd *** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@116 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 07:58:19 +00:00
natec
61a067434b Added make_clickable()
git-svn-id: file:///svn/phpbb/trunk@115 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 07:26:10 +00:00
natec
bf7ec7c8f0 v2 BBcode now being used.. run bbcode_conversion.php to convert your database. It WILL make a backup posts_text table.
git-svn-id: file:///svn/phpbb/trunk@114 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 07:17:11 +00:00
James Atkinson
e4380fff1d Started postgres schema, still mostly MySQL specific
git-svn-id: file:///svn/phpbb/trunk@113 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-21 02:03:15 +00:00
Paul S. Owen
6b421afc05 Well it works this time, sort of
git-svn-id: file:///svn/phpbb/trunk@112 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-20 21:17:10 +00:00
Paul S. Owen
72aa8fbfd1 Benchmarking script for phpBB2
git-svn-id: file:///svn/phpbb/trunk@111 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-20 21:08:22 +00:00
Paul S. Owen
f83af8fbd6 IP integer encoding and decoding added
git-svn-id: file:///svn/phpbb/trunk@110 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-20 20:07:47 +00:00
Paul S. Owen
1fbbc382cc Removed set_db and added affectedrows
git-svn-id: file:///svn/phpbb/trunk@109 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-20 15:19:20 +00:00
James Atkinson
bcf7d2b674 Added mailing address and fax info stuff to language file for COPPA page
git-svn-id: file:///svn/phpbb/trunk@108 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-19 21:38:36 +00:00
Paul S. Owen
11241d3884 Corrected for proper English spelling
git-svn-id: file:///svn/phpbb/trunk@107 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-19 10:56:12 +00:00
James Atkinson
9eff772508 User registration works.
git-svn-id: file:///svn/phpbb/trunk@106 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-19 01:35:04 +00:00
natec
40f1f172a8 New template system. Lots of merging conflicts, so let nate know if he broke stuff.
git-svn-id: file:///svn/phpbb/trunk@105 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-17 00:46:26 +00:00
James Atkinson
b1ce902c02 Some cleanup
git-svn-id: file:///svn/phpbb/trunk@104 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-16 22:49:23 +00:00
James Atkinson
3fe77c8d09 Start of LIMIT functionality...got to tired to finish it
git-svn-id: file:///svn/phpbb/trunk@103 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-16 08:35:56 +00:00
James Atkinson
1283c46dcb Almost done, needs sql_nexid and LIMIT handling.
git-svn-id: file:///svn/phpbb/trunk@102 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-16 08:10:26 +00:00
James Atkinson
90d222fe12 More work on the oracle DB abstraction class
git-svn-id: file:///svn/phpbb/trunk@101 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-16 07:19:05 +00:00
James Atkinson
a8465af3f8 Added oracle class, needs LOTS of work.
Dosan't handle LIMIT.
Still has MySQL code in it


git-svn-id: file:///svn/phpbb/trunk@100 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-16 01:42:30 +00:00
James Atkinson
b829bfa2a5 Fixed some links, added 'Goto Page:' link in viewforum.
git-svn-id: file:///svn/phpbb/trunk@99 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-12 19:24:23 +00:00
James Atkinson
f276636450 Fixed viewforum. Now shows correct last post info and topic starter
git-svn-id: file:///svn/phpbb/trunk@98 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-11 02:31:05 +00:00
Bart van Bragt
dafd3e778c Merged some stat functions (total users/posts etc)
git-svn-id: file:///svn/phpbb/trunk@97 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-10 11:49:20 +00:00
natec
afae95b90f Performance hacks in template.inc - let me know if stuff breaks.
git-svn-id: file:///svn/phpbb/trunk@96 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-10 03:42:46 +00:00
Bart van Bragt
66bc8a309b Changed USER_IP to $user_ip
git-svn-id: file:///svn/phpbb/trunk@95 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-09 23:38:13 +00:00
Bart van Bragt
d3d031d9ee Moved include files
git-svn-id: file:///svn/phpbb/trunk@94 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-09 23:33:06 +00:00
Paul S. Owen
6be03b553d Current (perhaps) MySQL schema for phpBB2
git-svn-id: file:///svn/phpbb/trunk@93 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-09 20:37:44 +00:00
James Atkinson
0642a9f062 me == moron...
git-svn-id: file:///svn/phpbb/trunk@92 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-09 18:20:41 +00:00
James Atkinson
e0e3f7df6d fixed little bug in viewtopic
git-svn-id: file:///svn/phpbb/trunk@91 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-09 17:43:52 +00:00
Bart van Bragt
80a8394b1e Fixed URL backward compatibility
git-svn-id: file:///svn/phpbb/trunk@90 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-09 16:43:07 +00:00
Paul S. Owen
c4e6b3ec78 Allow for legacy topic_id as url param
git-svn-id: file:///svn/phpbb/trunk@89 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-09 15:23:03 +00:00
Paul S. Owen
deca0a35a8 Update to url parameter names - _topic only_
git-svn-id: file:///svn/phpbb/trunk@88 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-09 14:19:54 +00:00
Paul S. Owen
68dd148f6c Reduced query number, changed parameter names
git-svn-id: file:///svn/phpbb/trunk@87 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-09 14:04:48 +00:00
Paul S. Owen
a5173dd59b constants added for url parameter names
git-svn-id: file:///svn/phpbb/trunk@86 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-09 14:03:17 +00:00
hd2000
012e64b3d2 Added del_backup_table function to delete the backup tables
git-svn-id: file:///svn/phpbb/trunk@85 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-07 18:54:38 +00:00
James Atkinson
adbe70c23d Stupid error
git-svn-id: file:///svn/phpbb/trunk@84 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-07 07:15:58 +00:00
James Atkinson
9ef35696d2 Started on posting.php, got the logic done for displaying the new topic form
git-svn-id: file:///svn/phpbb/trunk@83 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-07 06:53:39 +00:00
James Atkinson
231c945e35 More work on viewtopic, still needs SQL tweeking (normal ranks arn't working)
git-svn-id: file:///svn/phpbb/trunk@82 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-05 01:40:39 +00:00
James Atkinson
476718aa43 Viewtopic mostly done. Need private forum stuff, pagination, and some SQL tweaks
git-svn-id: file:///svn/phpbb/trunk@81 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-04 04:17:02 +00:00
James Atkinson
9411996f45 Misc fixes
git-svn-id: file:///svn/phpbb/trunk@80 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-04 01:27:58 +00:00
Bart van Bragt
e9aedae48f Added some new DB fields, fixed bug where all topics where assigned to one forum
git-svn-id: file:///svn/phpbb/trunk@79 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-03 23:17:39 +00:00
Bart van Bragt
f4a63f8dbb Changed f.forums_order to f.forum_order
git-svn-id: file:///svn/phpbb/trunk@78 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-03 22:43:39 +00:00
Paul S. Owen
810863d318 Adjusted cellpadding
git-svn-id: file:///svn/phpbb/trunk@77 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-02 22:27:55 +00:00
Paul S. Owen
1f13c1bb65 Perhaps temporary, perhaps permanent INNER JOIN fix
git-svn-id: file:///svn/phpbb/trunk@76 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-02 18:19:18 +00:00
Paul S. Owen
d2ec2d3874 eregi for LIMIT updated to cope with control chars
git-svn-id: file:///svn/phpbb/trunk@75 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-02 13:17:19 +00:00
James Atkinson
f51b6b9345 Viewforum gets moderator list now
git-svn-id: file:///svn/phpbb/trunk@74 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-02 06:32:50 +00:00
James Atkinson
dcc2b2fe19 Started translation implemenation, added 1.2 english lang file
git-svn-id: file:///svn/phpbb/trunk@73 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-02 05:46:32 +00:00
natec
adb77ffa23 Major bbcode refactoring. Also removed all non-relevant bbcode functions.
git-svn-id: file:///svn/phpbb/trunk@72 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-02 05:15:59 +00:00
Paul S. Owen
864262c2ab MySQL compatibility update of MSSQL compability.
git-svn-id: file:///svn/phpbb/trunk@71 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-02 01:31:39 +00:00
Paul S. Owen
4b809856ac Preliminary MSSQL compability updates
git-svn-id: file:///svn/phpbb/trunk@70 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-02 01:26:55 +00:00
Paul S. Owen
bed1036f6c Various updates
git-svn-id: file:///svn/phpbb/trunk@69 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-03-02 01:26:12 +00:00
Paul S. Owen
760e5a23eb Add forum ordering to Index
git-svn-id: file:///svn/phpbb/trunk@68 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-27 18:52:10 +00:00
Paul S. Owen
ad9d4d2605 Move jumpbox to separate template
git-svn-id: file:///svn/phpbb/trunk@67 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-27 18:50:36 +00:00
Paul S. Owen
cb964c96c7 A few corrections inc. DB2 compatibility
git-svn-id: file:///svn/phpbb/trunk@66 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-26 01:00:57 +00:00
James Atkinson
83b6163b4b Added login/logout file and logic to login a user
git-svn-id: file:///svn/phpbb/trunk@65 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 22:24:17 +00:00
James Atkinson
9bb944225a Added login failer constant
git-svn-id: file:///svn/phpbb/trunk@64 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 22:15:12 +00:00
Paul S. Owen
381a2275f4 Minor fix to rowseek
git-svn-id: file:///svn/phpbb/trunk@63 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 16:54:01 +00:00
Paul S. Owen
7f6ddf8f75 Possible future forum ordering
git-svn-id: file:///svn/phpbb/trunk@62 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 15:11:59 +00:00
Paul S. Owen
fa9d60b536 Updated for odbc
git-svn-id: file:///svn/phpbb/trunk@61 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 15:11:25 +00:00
Paul S. Owen
fb54a622ff Initial working odbc class (MS Access compatible)
git-svn-id: file:///svn/phpbb/trunk@60 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 15:07:50 +00:00
James Atkinson
35f60609f9 *** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@59 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 04:02:12 +00:00
Paul S. Owen
c965a3daf4 First ODBC class, not fully functional please don't use or modify.
git-svn-id: file:///svn/phpbb/trunk@58 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 01:34:31 +00:00
James Atkinson
79612d540e Aded GENERAL_ERROR to constants
git-svn-id: file:///svn/phpbb/trunk@57 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 01:23:32 +00:00
James Atkinson
ead4422667 A forum with no forums/cats now shows a nice message insted of a big ugly messed up template
git-svn-id: file:///svn/phpbb/trunk@56 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 01:22:36 +00:00
James Atkinson
04978aa044 Added line number/filename to error die function
git-svn-id: file:///svn/phpbb/trunk@55 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 00:07:50 +00:00
James Atkinson
5d9b97857c Added DEBUG constant for debuggin level
git-svn-id: file:///svn/phpbb/trunk@54 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-25 00:00:06 +00:00
James Atkinson
2e5030b7f6 Added link to view profile for last post user
git-svn-id: file:///svn/phpbb/trunk@53 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 23:58:30 +00:00
Bart van Bragt
52c15e54c6 Cosmetic change, added NOWRAP to table cell
git-svn-id: file:///svn/phpbb/trunk@52 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 23:13:54 +00:00
Bart van Bragt
cc0f5f6453 Some minor fixes (i.e. set_time_limit())
git-svn-id: file:///svn/phpbb/trunk@51 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 22:22:24 +00:00
Paul S. Owen
6b4ee5a8ed MySQL DB schema : Devel Edition
git-svn-id: file:///svn/phpbb/trunk@50 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 22:21:09 +00:00
Paul S. Owen
b250bba47d Minor layout and jumpbox changes
git-svn-id: file:///svn/phpbb/trunk@49 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 22:06:49 +00:00
Paul S. Owen
cc74b3559d Update related to jumpbox creation
git-svn-id: file:///svn/phpbb/trunk@48 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 22:03:43 +00:00
Paul S. Owen
28196e4f61 Change to jumpbox creation
git-svn-id: file:///svn/phpbb/trunk@47 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 22:03:15 +00:00
Paul S. Owen
f37e152b6b Some array rejiggling of moderator checks
git-svn-id: file:///svn/phpbb/trunk@46 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 17:45:41 +00:00
Paul S. Owen
a797580600 viewcat now works also modified moderators construction, now faster
git-svn-id: file:///svn/phpbb/trunk@45 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 17:18:53 +00:00
Paul S. Owen
7ee5829185 Fixed some layout issues
git-svn-id: file:///svn/phpbb/trunk@44 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 14:05:52 +00:00
Paul S. Owen
9f5ffef337 Fixed error reporting
git-svn-id: file:///svn/phpbb/trunk@43 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 12:08:53 +00:00
Bart van Bragt
05bb6c1fff Changed way of setting table prefix
git-svn-id: file:///svn/phpbb/trunk@42 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 10:06:40 +00:00
Bart van Bragt
ec0dde0675 Changed the order of some statements
git-svn-id: file:///svn/phpbb/trunk@41 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 10:01:48 +00:00
Bart van Bragt
671510cb72 Fixed some indenting
git-svn-id: file:///svn/phpbb/trunk@40 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 09:57:32 +00:00
James Atkinson
852eaf0da9 Forums can have moderators now..
git-svn-id: file:///svn/phpbb/trunk@39 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 01:02:41 +00:00
Paul S. Owen
ddc2cd6ead Centralise common includes and setup
git-svn-id: file:///svn/phpbb/trunk@38 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-24 00:31:58 +00:00
James Atkinson
4e5538cb78 Viewforum works, and error die outputs nice, templated, errors
git-svn-id: file:///svn/phpbb/trunk@37 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 23:39:42 +00:00
James Atkinson
8523870f8e *** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@36 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 23:02:02 +00:00
James Atkinson
f8f5458de8 *** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@35 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 21:50:53 +00:00
James Atkinson
52544a7385 View forum page is started. Need private forum checking
git-svn-id: file:///svn/phpbb/trunk@34 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 20:34:43 +00:00
James Atkinson
fb2ae00b71 Added error body template
git-svn-id: file:///svn/phpbb/trunk@33 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 20:33:54 +00:00
James Atkinson
c63eabe2c6 Added another error code to ccnfig
git-svn-id: file:///svn/phpbb/trunk@32 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 20:20:45 +00:00
James Atkinson
6ea01fbf8a Added viewforum section to page_header
git-svn-id: file:///svn/phpbb/trunk@31 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 19:12:08 +00:00
James Atkinson
13f30633b4 Added viewforum templates
git-svn-id: file:///svn/phpbb/trunk@30 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 19:11:35 +00:00
Paul S. Owen
fb77adef04 Add forum_last_post_id to forums
git-svn-id: file:///svn/phpbb/trunk@29 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 18:25:50 +00:00
Paul S. Owen
363d4c0582 Redo querying structure - minor error update
git-svn-id: file:///svn/phpbb/trunk@28 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 18:24:33 +00:00
Paul S. Owen
f040ef160e Redo querying structure
git-svn-id: file:///svn/phpbb/trunk@27 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 18:13:35 +00:00
Paul S. Owen
3c73050aac Added PHPEX to the overall_header template
git-svn-id: file:///svn/phpbb/trunk@26 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 18:10:49 +00:00
Paul S. Owen
888d78b63a Minor layout and HTML changes
git-svn-id: file:///svn/phpbb/trunk@25 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 18:09:19 +00:00
James Atkinson
ae7023d024 Added misc functions file
git-svn-id: file:///svn/phpbb/trunk@24 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 01:32:02 +00:00
James Atkinson
693d62c521 *** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@23 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 01:31:43 +00:00
Paul S. Owen
3fcfc52b93 A few minor fixes and general cleanup
git-svn-id: file:///svn/phpbb/trunk@22 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 00:43:07 +00:00
Paul S. Owen
8f193b2a39 Switch table naming vars to constants
git-svn-id: file:///svn/phpbb/trunk@21 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-23 00:22:10 +00:00
James Atkinson
acfee8f3f1 Implementing the total topics/posts/last post in forums table thing
git-svn-id: file:///svn/phpbb/trunk@20 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-22 21:40:02 +00:00
Paul S. Owen
4317bbe9be Implement user defined table prefixes
git-svn-id: file:///svn/phpbb/trunk@19 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-22 18:59:06 +00:00
Paul S. Owen
22a1da47f3 Minor correction to the connect update
git-svn-id: file:///svn/phpbb/trunk@18 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-22 18:48:26 +00:00
Paul S. Owen
91b48b0e2c Minor connection update
git-svn-id: file:///svn/phpbb/trunk@17 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-22 18:31:37 +00:00
Paul S. Owen
a3558291dc Implement user defined table prefixes
git-svn-id: file:///svn/phpbb/trunk@16 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-22 18:17:52 +00:00
Paul S. Owen
7fee269d2f Fixed a couple of limit & fetchrowset issues
git-svn-id: file:///svn/phpbb/trunk@15 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-22 16:12:07 +00:00
James Atkinson
7cde919ef0 *** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@14 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-22 07:53:34 +00:00
James Atkinson
8918532a13 phpBB 2 is started
git-svn-id: file:///svn/phpbb/trunk@13 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-22 06:10:12 +00:00
Paul S. Owen
658df35cd4 Fixed small server error. Updated layout
git-svn-id: file:///svn/phpbb/trunk@12 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-22 01:31:04 +00:00
Paul S. Owen
3f3c0d56be Complete Update. Should be fully functional
git-svn-id: file:///svn/phpbb/trunk@11 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-22 01:29:35 +00:00
James Atkinson
89c18cc4f7 added default template
git-svn-id: file:///svn/phpbb/trunk@10 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-22 01:08:57 +00:00
James Atkinson
848ab21f8c Added extension.inc
git-svn-id: file:///svn/phpbb/trunk@9 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-21 18:16:18 +00:00
James Atkinson
51c9f0e4ac Replaced extention.inc with extension.inc :)
git-svn-id: file:///svn/phpbb/trunk@8 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-21 18:15:55 +00:00
James Atkinson
852573b198 Added more needed files. Error handling functions file and PHPLib templates lib
git-svn-id: file:///svn/phpbb/trunk@7 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-21 07:38:38 +00:00
ffeingol
160aea48c4 initial revision
git-svn-id: file:///svn/phpbb/trunk@6 89ea8834-ac86-4346-8a33-228a782c2dd0
2001-02-20 04:08:58 +00:00
317 changed files with 50788 additions and 2043 deletions

View File

@@ -1,27 +1,329 @@
<?php
/***************************************************************************
*
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
* admin_board.php
* -------------------
* begin : Thursday, Jul 12, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
define('IN_PHPBB', 1);
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
if( !empty($setmodules) )
{
$file = basename(__FILE__);
$module['General']['Configuration'] = "$file";
return;
}
//
// Let's set the root dir for phpBB
//
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
//
// Pull all config data
//
$sql = "SELECT *
FROM " . CONFIG_TABLE;
if(!$result = $db->sql_query($sql))
{
message_die(CRITICAL_ERROR, "Could not query config information in admin_board", "", __LINE__, __FILE__, $sql);
}
else
{
while( $row = $db->sql_fetchrow($result) )
{
$config_name = $row['config_name'];
$config_value = $row['config_value'];
$default_config[$config_name] = isset($HTTP_POST_VARS['submit']) ? str_replace("'", "\'", $config_value) : $config_value;
$new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name];
if ($config_name == 'cookie_name')
{
$cookie_name = str_replace('.', '_', $new['cookie_name']);
}
if( isset($HTTP_POST_VARS['submit']) )
{
$sql = "UPDATE " . CONFIG_TABLE . " SET
config_value = '" . str_replace("\'", "''", $new[$config_name]) . "'
WHERE config_name = '$config_name'";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql);
}
}
}
if( isset($HTTP_POST_VARS['submit']) )
{
$message = $lang['Config_updated'] . "<br /><br />" . sprintf($lang['Click_return_config'], "<a href=\"" . append_sid("admin_board.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
}
$style_select = style_select($new['default_style'], 'default_style', "../templates");
$lang_select = language_select($new['default_lang'], 'default_lang', "language");
$timezone_select = tz_select($new['board_timezone'], 'board_timezone');
$disable_board_yes = ( $new['board_disable'] ) ? "checked=\"checked\"" : "";
$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : "";
$cookie_secure_yes = ( $new['cookie_secure'] ) ? "checked=\"checked\"" : "";
$cookie_secure_no = ( !$new['cookie_secure'] ) ? "checked=\"checked\"" : "";
$html_tags = $new['allow_html_tags'];
$override_user_style_yes = ( $new['override_user_style'] ) ? "checked=\"checked\"" : "";
$override_user_style_no = ( !$new['override_user_style'] ) ? "checked=\"checked\"" : "";
$html_yes = ( $new['allow_html'] ) ? "checked=\"checked\"" : "";
$html_no = ( !$new['allow_html'] ) ? "checked=\"checked\"" : "";
$bbcode_yes = ( $new['allow_bbcode'] ) ? "checked=\"checked\"" : "";
$bbcode_no = ( !$new['allow_bbcode'] ) ? "checked=\"checked\"" : "";
$activation_none = ( $new['require_activation'] == USER_ACTIVATION_NONE ) ? "checked=\"checked\"" : "";
$activation_user = ( $new['require_activation'] == USER_ACTIVATION_SELF ) ? "checked=\"checked\"" : "";
$activation_admin = ( $new['require_activation'] == USER_ACTIVATION_ADMIN ) ? "checked=\"checked\"" : "";
$confirm_yes = ($new['enable_confirm']) ? 'checked="checked"' : '';
$confirm_no = (!$new['enable_confirm']) ? 'checked="checked"' : '';
$board_email_form_yes = ( $new['board_email_form'] ) ? "checked=\"checked\"" : "";
$board_email_form_no = ( !$new['board_email_form'] ) ? "checked=\"checked\"" : "";
$gzip_yes = ( $new['gzip_compress'] ) ? "checked=\"checked\"" : "";
$gzip_no = ( !$new['gzip_compress'] ) ? "checked=\"checked\"" : "";
$privmsg_on = ( !$new['privmsg_disable'] ) ? "checked=\"checked\"" : "";
$privmsg_off = ( $new['privmsg_disable'] ) ? "checked=\"checked\"" : "";
$prune_yes = ( $new['prune_enable'] ) ? "checked=\"checked\"" : "";
$prune_no = ( !$new['prune_enable'] ) ? "checked=\"checked\"" : "";
$smile_yes = ( $new['allow_smilies'] ) ? "checked=\"checked\"" : "";
$smile_no = ( !$new['allow_smilies'] ) ? "checked=\"checked\"" : "";
$sig_yes = ( $new['allow_sig'] ) ? "checked=\"checked\"" : "";
$sig_no = ( !$new['allow_sig'] ) ? "checked=\"checked\"" : "";
$namechange_yes = ( $new['allow_namechange'] ) ? "checked=\"checked\"" : "";
$namechange_no = ( !$new['allow_namechange'] ) ? "checked=\"checked\"" : "";
$avatars_local_yes = ( $new['allow_avatar_local'] ) ? "checked=\"checked\"" : "";
$avatars_local_no = ( !$new['allow_avatar_local'] ) ? "checked=\"checked\"" : "";
$avatars_remote_yes = ( $new['allow_avatar_remote'] ) ? "checked=\"checked\"" : "";
$avatars_remote_no = ( !$new['allow_avatar_remote'] ) ? "checked=\"checked\"" : "";
$avatars_upload_yes = ( $new['allow_avatar_upload'] ) ? "checked=\"checked\"" : "";
$avatars_upload_no = ( !$new['allow_avatar_upload'] ) ? "checked=\"checked\"" : "";
$smtp_yes = ( $new['smtp_delivery'] ) ? "checked=\"checked\"" : "";
$smtp_no = ( !$new['smtp_delivery'] ) ? "checked=\"checked\"" : "";
$template->set_filenames(array(
"body" => "admin/board_config_body.tpl")
);
//
// Escape any quotes in the site description for proper display in the text
// box on the admin page
//
$new['site_desc'] = str_replace('"', '&quot;', $new['site_desc']);
$new['sitename'] = str_replace('"', '&quot;', strip_tags($new['sitename']));
$template->assign_vars(array(
"S_CONFIG_ACTION" => append_sid("admin_board.$phpEx"),
"L_YES" => $lang['Yes'],
"L_NO" => $lang['No'],
"L_CONFIGURATION_TITLE" => $lang['General_Config'],
"L_CONFIGURATION_EXPLAIN" => $lang['Config_explain'],
"L_GENERAL_SETTINGS" => $lang['General_settings'],
"L_SERVER_NAME" => $lang['Server_name'],
"L_SERVER_NAME_EXPLAIN" => $lang['Server_name_explain'],
"L_SERVER_PORT" => $lang['Server_port'],
"L_SERVER_PORT_EXPLAIN" => $lang['Server_port_explain'],
"L_SCRIPT_PATH" => $lang['Script_path'],
"L_SCRIPT_PATH_EXPLAIN" => $lang['Script_path_explain'],
"L_SITE_NAME" => $lang['Site_name'],
"L_SITE_DESCRIPTION" => $lang['Site_desc'],
"L_DISABLE_BOARD" => $lang['Board_disable'],
"L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'],
"L_ACCT_ACTIVATION" => $lang['Acct_activation'],
"L_NONE" => $lang['Acc_None'],
"L_USER" => $lang['Acc_User'],
"L_ADMIN" => $lang['Acc_Admin'],
"L_VISUAL_CONFIRM" => $lang['Visual_confirm'],
"L_VISUAL_CONFIRM_EXPLAIN" => $lang['Visual_confirm_explain'],
"L_COOKIE_SETTINGS" => $lang['Cookie_settings'],
"L_COOKIE_SETTINGS_EXPLAIN" => $lang['Cookie_settings_explain'],
"L_COOKIE_DOMAIN" => $lang['Cookie_domain'],
"L_COOKIE_NAME" => $lang['Cookie_name'],
"L_COOKIE_PATH" => $lang['Cookie_path'],
"L_COOKIE_SECURE" => $lang['Cookie_secure'],
"L_COOKIE_SECURE_EXPLAIN" => $lang['Cookie_secure_explain'],
"L_SESSION_LENGTH" => $lang['Session_length'],
"L_PRIVATE_MESSAGING" => $lang['Private_Messaging'],
"L_INBOX_LIMIT" => $lang['Inbox_limits'],
"L_SENTBOX_LIMIT" => $lang['Sentbox_limits'],
"L_SAVEBOX_LIMIT" => $lang['Savebox_limits'],
"L_DISABLE_PRIVATE_MESSAGING" => $lang['Disable_privmsg'],
"L_ENABLED" => $lang['Enabled'],
"L_DISABLED" => $lang['Disabled'],
"L_ABILITIES_SETTINGS" => $lang['Abilities_settings'],
"L_MAX_POLL_OPTIONS" => $lang['Max_poll_options'],
"L_FLOOD_INTERVAL" => $lang['Flood_Interval'],
"L_FLOOD_INTERVAL_EXPLAIN" => $lang['Flood_Interval_explain'],
"L_BOARD_EMAIL_FORM" => $lang['Board_email_form'],
"L_BOARD_EMAIL_FORM_EXPLAIN" => $lang['Board_email_form_explain'],
"L_TOPICS_PER_PAGE" => $lang['Topics_per_page'],
"L_POSTS_PER_PAGE" => $lang['Posts_per_page'],
"L_HOT_THRESHOLD" => $lang['Hot_threshold'],
"L_DEFAULT_STYLE" => $lang['Default_style'],
"L_OVERRIDE_STYLE" => $lang['Override_style'],
"L_OVERRIDE_STYLE_EXPLAIN" => $lang['Override_style_explain'],
"L_DEFAULT_LANGUAGE" => $lang['Default_language'],
"L_DATE_FORMAT" => $lang['Date_format'],
"L_SYSTEM_TIMEZONE" => $lang['System_timezone'],
"L_ENABLE_GZIP" => $lang['Enable_gzip'],
"L_ENABLE_PRUNE" => $lang['Enable_prune'],
"L_ALLOW_HTML" => $lang['Allow_HTML'],
"L_ALLOW_BBCODE" => $lang['Allow_BBCode'],
"L_ALLOWED_TAGS" => $lang['Allowed_tags'],
"L_ALLOWED_TAGS_EXPLAIN" => $lang['Allowed_tags_explain'],
"L_ALLOW_SMILIES" => $lang['Allow_smilies'],
"L_SMILIES_PATH" => $lang['Smilies_path'],
"L_SMILIES_PATH_EXPLAIN" => $lang['Smilies_path_explain'],
"L_ALLOW_SIG" => $lang['Allow_sig'],
"L_MAX_SIG_LENGTH" => $lang['Max_sig_length'],
"L_MAX_SIG_LENGTH_EXPLAIN" => $lang['Max_sig_length_explain'],
"L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],
"L_AVATAR_SETTINGS" => $lang['Avatar_settings'],
"L_ALLOW_LOCAL" => $lang['Allow_local'],
"L_ALLOW_REMOTE" => $lang['Allow_remote'],
"L_ALLOW_REMOTE_EXPLAIN" => $lang['Allow_remote_explain'],
"L_ALLOW_UPLOAD" => $lang['Allow_upload'],
"L_MAX_FILESIZE" => $lang['Max_filesize'],
"L_MAX_FILESIZE_EXPLAIN" => $lang['Max_filesize_explain'],
"L_MAX_AVATAR_SIZE" => $lang['Max_avatar_size'],
"L_MAX_AVATAR_SIZE_EXPLAIN" => $lang['Max_avatar_size_explain'],
"L_AVATAR_STORAGE_PATH" => $lang['Avatar_storage_path'],
"L_AVATAR_STORAGE_PATH_EXPLAIN" => $lang['Avatar_storage_path_explain'],
"L_AVATAR_GALLERY_PATH" => $lang['Avatar_gallery_path'],
"L_AVATAR_GALLERY_PATH_EXPLAIN" => $lang['Avatar_gallery_path_explain'],
"L_COPPA_SETTINGS" => $lang['COPPA_settings'],
"L_COPPA_FAX" => $lang['COPPA_fax'],
"L_COPPA_MAIL" => $lang['COPPA_mail'],
"L_COPPA_MAIL_EXPLAIN" => $lang['COPPA_mail_explain'],
"L_EMAIL_SETTINGS" => $lang['Email_settings'],
"L_ADMIN_EMAIL" => $lang['Admin_email'],
"L_EMAIL_SIG" => $lang['Email_sig'],
"L_EMAIL_SIG_EXPLAIN" => $lang['Email_sig_explain'],
"L_USE_SMTP" => $lang['Use_SMTP'],
"L_USE_SMTP_EXPLAIN" => $lang['Use_SMTP_explain'],
"L_SMTP_SERVER" => $lang['SMTP_server'],
"L_SMTP_USERNAME" => $lang['SMTP_username'],
"L_SMTP_USERNAME_EXPLAIN" => $lang['SMTP_username_explain'],
"L_SMTP_PASSWORD" => $lang['SMTP_password'],
"L_SMTP_PASSWORD_EXPLAIN" => $lang['SMTP_password_explain'],
"L_SUBMIT" => $lang['Submit'],
"L_RESET" => $lang['Reset'],
"SERVER_NAME" => $new['server_name'],
"SCRIPT_PATH" => $new['script_path'],
"SERVER_PORT" => $new['server_port'],
"SITENAME" => $new['sitename'],
"SITE_DESCRIPTION" => $new['site_desc'],
"S_DISABLE_BOARD_YES" => $disable_board_yes,
"S_DISABLE_BOARD_NO" => $disable_board_no,
"ACTIVATION_NONE" => USER_ACTIVATION_NONE,
"ACTIVATION_NONE_CHECKED" => $activation_none,
"ACTIVATION_USER" => USER_ACTIVATION_SELF,
"ACTIVATION_USER_CHECKED" => $activation_user,
"ACTIVATION_ADMIN" => USER_ACTIVATION_ADMIN,
"ACTIVATION_ADMIN_CHECKED" => $activation_admin,
"CONFIRM_ENABLE" => $confirm_yes,
"CONFIRM_DISABLE" => $confirm_no,
"ACTIVATION_NONE_CHECKED" => $activation_none,
"BOARD_EMAIL_FORM_ENABLE" => $board_email_form_yes,
"BOARD_EMAIL_FORM_DISABLE" => $board_email_form_no,
"MAX_POLL_OPTIONS" => $new['max_poll_options'],
"FLOOD_INTERVAL" => $new['flood_interval'],
"TOPICS_PER_PAGE" => $new['topics_per_page'],
"POSTS_PER_PAGE" => $new['posts_per_page'],
"HOT_TOPIC" => $new['hot_threshold'],
"STYLE_SELECT" => $style_select,
"OVERRIDE_STYLE_YES" => $override_user_style_yes,
"OVERRIDE_STYLE_NO" => $override_user_style_no,
"LANG_SELECT" => $lang_select,
"L_DATE_FORMAT_EXPLAIN" => $lang['Date_format_explain'],
"DEFAULT_DATEFORMAT" => $new['default_dateformat'],
"TIMEZONE_SELECT" => $timezone_select,
"S_PRIVMSG_ENABLED" => $privmsg_on,
"S_PRIVMSG_DISABLED" => $privmsg_off,
"INBOX_LIMIT" => $new['max_inbox_privmsgs'],
"SENTBOX_LIMIT" => $new['max_sentbox_privmsgs'],
"SAVEBOX_LIMIT" => $new['max_savebox_privmsgs'],
"COOKIE_DOMAIN" => $new['cookie_domain'],
"COOKIE_NAME" => $new['cookie_name'],
"COOKIE_PATH" => $new['cookie_path'],
"SESSION_LENGTH" => $new['session_length'],
"S_COOKIE_SECURE_ENABLED" => $cookie_secure_yes,
"S_COOKIE_SECURE_DISABLED" => $cookie_secure_no,
"GZIP_YES" => $gzip_yes,
"GZIP_NO" => $gzip_no,
"PRUNE_YES" => $prune_yes,
"PRUNE_NO" => $prune_no,
"HTML_TAGS" => $html_tags,
"HTML_YES" => $html_yes,
"HTML_NO" => $html_no,
"BBCODE_YES" => $bbcode_yes,
"BBCODE_NO" => $bbcode_no,
"SMILE_YES" => $smile_yes,
"SMILE_NO" => $smile_no,
"SIG_YES" => $sig_yes,
"SIG_NO" => $sig_no,
"SIG_SIZE" => $new['max_sig_chars'],
"NAMECHANGE_YES" => $namechange_yes,
"NAMECHANGE_NO" => $namechange_no,
"AVATARS_LOCAL_YES" => $avatars_local_yes,
"AVATARS_LOCAL_NO" => $avatars_local_no,
"AVATARS_REMOTE_YES" => $avatars_remote_yes,
"AVATARS_REMOTE_NO" => $avatars_remote_no,
"AVATARS_UPLOAD_YES" => $avatars_upload_yes,
"AVATARS_UPLOAD_NO" => $avatars_upload_no,
"AVATAR_FILESIZE" => $new['avatar_filesize'],
"AVATAR_MAX_HEIGHT" => $new['avatar_max_height'],
"AVATAR_MAX_WIDTH" => $new['avatar_max_width'],
"AVATAR_PATH" => $new['avatar_path'],
"AVATAR_GALLERY_PATH" => $new['avatar_gallery_path'],
"SMILIES_PATH" => $new['smilies_path'],
"INBOX_PRIVMSGS" => $new['max_inbox_privmsgs'],
"SENTBOX_PRIVMSGS" => $new['max_sentbox_privmsgs'],
"SAVEBOX_PRIVMSGS" => $new['max_savebox_privmsgs'],
"EMAIL_FROM" => $new['board_email'],
"EMAIL_SIG" => $new['board_email_sig'],
"SMTP_YES" => $smtp_yes,
"SMTP_NO" => $smtp_no,
"SMTP_HOST" => $new['smtp_host'],
"SMTP_USERNAME" => $new['smtp_username'],
"SMTP_PASSWORD" => $new['smtp_password'],
"COPPA_MAIL" => $new['coppa_mail'],
"COPPA_FAX" => $new['coppa_fax'])
);
$template->pparse("body");
include('./page_footer_admin.'.$phpEx);
?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,146 @@
<?php
/***************************************************************************
* admin_disallow.php
* -------------------
* begin : Tuesday, Oct 05, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
$filename = basename(__FILE__);
$module['Users']['Disallow'] = append_sid($filename);
return;
}
//
// Include required files, get $phpEx and check permissions
//
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
if( isset($HTTP_POST_VARS['add_name']) )
{
include($phpbb_root_path . 'includes/functions_validate.'.$phpEx);
$disallowed_user = ( isset($HTTP_POST_VARS['disallowed_user']) ) ? trim($HTTP_POST_VARS['disallowed_user']) : trim($HTTP_GET_VARS['disallowed_user']);
if ($disallowed_user == '')
{
message_die(MESSAGE, $lang['Fields_empty']);
}
if( !validate_username($disallowed_user) )
{
$message = $lang['Disallowed_already'];
}
else
{
$sql = "INSERT INTO " . DISALLOW_TABLE . " (disallow_username)
VALUES('" . str_replace("\'", "''", $disallowed_user) . "')";
$result = $db->sql_query( $sql );
if ( !$result )
{
message_die(GENERAL_ERROR, "Could not add disallowed user.", "",__LINE__, __FILE__, $sql);
}
$message = $lang['Disallow_successful'];
}
$message .= "<br /><br />" . sprintf($lang['Click_return_disallowadmin'], "<a href=\"" . append_sid("admin_disallow.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
else if( isset($HTTP_POST_VARS['delete_name']) )
{
$disallowed_id = ( isset($HTTP_POST_VARS['disallowed_id']) ) ? intval( $HTTP_POST_VARS['disallowed_id'] ) : intval( $HTTP_GET_VARS['disallowed_id'] );
$sql = "DELETE FROM " . DISALLOW_TABLE . "
WHERE disallow_id = $disallowed_id";
$result = $db->sql_query($sql);
if( !$result )
{
message_die(GENERAL_ERROR, "Couldn't removed disallowed user.", "",__LINE__, __FILE__, $sql);
}
$message .= $lang['Disallowed_deleted'] . "<br /><br />" . sprintf($lang['Click_return_disallowadmin'], "<a href=\"" . append_sid("admin_disallow.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
//
// Grab the current list of disallowed usernames...
//
$sql = "SELECT *
FROM " . DISALLOW_TABLE;
$result = $db->sql_query($sql);
if( !$result )
{
message_die(GENERAL_ERROR, "Couldn't get disallowed users.", "", __LINE__, __FILE__, $sql );
}
$disallowed = $db->sql_fetchrowset($result);
//
// Ok now generate the info for the template, which will be put out no matter
// what mode we are in.
//
$disallow_select = '<select name="disallowed_id">';
if( trim($disallowed) == "" )
{
$disallow_select .= '<option value="">' . $lang['no_disallowed'] . '</option>';
}
else
{
$user = array();
for( $i = 0; $i < count($disallowed); $i++ )
{
$disallow_select .= '<option value="' . $disallowed[$i]['disallow_id'] . '">' . $disallowed[$i]['disallow_username'] . '</option>';
}
}
$disallow_select .= '</select>';
$template->set_filenames(array(
"body" => "admin/disallow_body.tpl")
);
$template->assign_vars(array(
"S_DISALLOW_SELECT" => $disallow_select,
"S_FORM_ACTION" => append_sid("admin_disallow.$phpEx"),
"L_INFO" => $output_info,
"L_DISALLOW_TITLE" => $lang['Disallow_control'],
"L_DISALLOW_EXPLAIN" => $lang['Disallow_explain'],
"L_DELETE" => $lang['Delete_disallow'],
"L_DELETE_DISALLOW" => $lang['Delete_disallow_title'],
"L_DELETE_EXPLAIN" => $lang['Delete_disallow_explain'],
"L_ADD" => $lang['Add_disallow'],
"L_ADD_DISALLOW" => $lang['Add_disallow_title'],
"L_ADD_EXPLAIN" => $lang['Add_disallow_explain'],
"L_USERNAME" => $lang['Username'])
);
$template->pparse("body");
include('./page_footer_admin.'.$phpEx);
?>

View File

@@ -0,0 +1,199 @@
<?php
/***************************************************************************
* admin_forum_prune.php
* -------------------
* begin : Mon Jul 31, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
****************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
if ( !empty($setmodules) )
{
$filename = basename(__FILE__);
$module['Forums']['Prune'] = $filename;
return;
}
//
// Load default header
//
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
require($phpbb_root_path . 'includes/prune.'.$phpEx);
require($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
//
// Get the forum ID for pruning
//
if( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL]) )
{
$forum_id = ( isset($HTTP_POST_VARS[POST_FORUM_URL]) ) ? $HTTP_POST_VARS[POST_FORUM_URL] : $HTTP_GET_VARS[POST_FORUM_URL];
if( $forum_id == -1 )
{
$forum_sql = '';
}
else
{
$forum_id = intval($forum_id);
$forum_sql = "AND forum_id = $forum_id";
}
}
else
{
$forum_id = '';
$forum_sql = '';
}
//
// Get a list of forum's or the data for the forum that we are pruning.
//
$sql = "SELECT f.*
FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
WHERE c.cat_id = f.cat_id
$forum_sql
ORDER BY c.cat_order ASC, f.forum_order ASC";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain list of forums for pruning', '', __LINE__, __FILE__, $sql);
}
$forum_rows = array();
while( $row = $db->sql_fetchrow($result) )
{
$forum_rows[] = $row;
}
//
// Check for submit to be equal to Prune. If so then proceed with the pruning.
//
if( isset($HTTP_POST_VARS['doprune']) )
{
$prunedays = ( isset($HTTP_POST_VARS['prunedays']) ) ? intval($HTTP_POST_VARS['prunedays']) : 0;
// Convert days to seconds for timestamp functions...
$prunedate = time() - ( $prunedays * 86400 );
$template->set_filenames(array(
'body' => 'admin/forum_prune_result_body.tpl')
);
for($i = 0; $i < count($forum_rows); $i++)
{
$p_result = prune($forum_rows[$i]['forum_id'], $prunedate);
sync('forum', $forum_rows[$i]['forum_id']);
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars('prune_results', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FORUM_NAME' => $forum_rows[$i]['forum_name'],
'FORUM_TOPICS' => $p_result['topics'],
'FORUM_POSTS' => $p_result['posts'])
);
}
$template->assign_vars(array(
'L_FORUM_PRUNE' => $lang['Forum_Prune'],
'L_FORUM' => $lang['Forum'],
'L_TOPICS_PRUNED' => $lang['Topics_pruned'],
'L_POSTS_PRUNED' => $lang['Posts_pruned'],
'L_PRUNE_RESULT' => $lang['Prune_success'])
);
}
else
{
//
// If they haven't selected a forum for pruning yet then
// display a select box to use for pruning.
//
if( empty($HTTP_POST_VARS[POST_FORUM_URL]) )
{
//
// Output a selection table if no forum id has been specified.
//
$template->set_filenames(array(
'body' => 'admin/forum_prune_select_body.tpl')
);
$select_list = '<select name="' . POST_FORUM_URL . '">';
$select_list .= '<option value="-1">' . $lang['All_Forums'] . '</option>';
for($i = 0; $i < count($forum_rows); $i++)
{
$select_list .= '<option value="' . $forum_rows[$i]['forum_id'] . '">' . $forum_rows[$i]['forum_name'] . '</option>';
}
$select_list .= '</select>';
//
// Assign the template variables.
//
$template->assign_vars(array(
'L_FORUM_PRUNE' => $lang['Forum_Prune'],
'L_SELECT_FORUM' => $lang['Select_a_Forum'],
'L_LOOK_UP' => $lang['Look_up_Forum'],
'S_FORUMPRUNE_ACTION' => append_sid("admin_forum_prune.$phpEx"),
'S_FORUMS_SELECT' => $select_list)
);
}
else
{
$forum_id = intval($HTTP_POST_VARS[POST_FORUM_URL]);
//
// Output the form to retrieve Prune information.
//
$template->set_filenames(array(
'body' => 'admin/forum_prune_body.tpl')
);
$forum_name = ( $forum_id == -1 ) ? $lang['All_Forums'] : $forum_rows[0]['forum_name'];
$prune_data = $lang['Prune_topics_not_posted'] . " ";
$prune_data .= '<input class="post" type="text" name="prunedays" size="4"> ' . $lang['Days'];
$hidden_input = '<input type="hidden" name="' . POST_FORUM_URL . '" value="' . $forum_id . '" />';
//
// Assign the template variables.
//
$template->assign_vars(array(
'FORUM_NAME' => $forum_name,
'L_FORUM' => $lang['Forum'],
'L_FORUM_PRUNE' => $lang['Forum_Prune'],
'L_FORUM_PRUNE_EXPLAIN' => $lang['Forum_Prune_explain'],
'L_DO_PRUNE' => $lang['Do_Prune'],
'S_FORUMPRUNE_ACTION' => append_sid("admin_forum_prune.$phpEx"),
'S_PRUNE_DATA' => $prune_data,
'S_HIDDEN_VARS' => $hidden_input)
);
}
}
//
// Actually output the page here.
//
$template->pparse('body');
include('./page_footer_admin.'.$phpEx);
?>

View File

@@ -0,0 +1,328 @@
<?php
/***************************************************************************
* admin_forumauth.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
$filename = basename(__FILE__);
$module['Forums']['Permissions'] = $filename;
return;
}
//
// Load default header
//
$no_page_header = TRUE;
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
//
// Start program - define vars
//
// View Read Post Reply Edit Delete Sticky Announce Vote Poll
$simple_auth_ary = array(
0 => array(AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG),
1 => array(AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG),
2 => array(AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG),
3 => array(AUTH_ALL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_MOD, AUTH_ACL, AUTH_ACL),
4 => array(AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_MOD, AUTH_ACL, AUTH_ACL),
5 => array(AUTH_ALL, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD),
6 => array(AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD),
);
$simple_auth_types = array($lang['Public'], $lang['Registered'], $lang['Registered'] . ' [' . $lang['Hidden'] . ']', $lang['Private'], $lang['Private'] . ' [' . $lang['Hidden'] . ']', $lang['Moderators'], $lang['Moderators'] . ' [' . $lang['Hidden'] . ']');
$forum_auth_fields = array('auth_view', 'auth_read', 'auth_post', 'auth_reply', 'auth_edit', 'auth_delete', 'auth_sticky', 'auth_announce', 'auth_vote', 'auth_pollcreate');
$field_names = array(
'auth_view' => $lang['View'],
'auth_read' => $lang['Read'],
'auth_post' => $lang['Post'],
'auth_reply' => $lang['Reply'],
'auth_edit' => $lang['Edit'],
'auth_delete' => $lang['Delete'],
'auth_sticky' => $lang['Sticky'],
'auth_announce' => $lang['Announce'],
'auth_vote' => $lang['Vote'],
'auth_pollcreate' => $lang['Pollcreate']);
$forum_auth_levels = array('ALL', 'REG', 'PRIVATE', 'MOD', 'ADMIN');
$forum_auth_const = array(AUTH_ALL, AUTH_REG, AUTH_ACL, AUTH_MOD, AUTH_ADMIN);
if(isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL]))
{
$forum_id = (isset($HTTP_POST_VARS[POST_FORUM_URL])) ? intval($HTTP_POST_VARS[POST_FORUM_URL]) : intval($HTTP_GET_VARS[POST_FORUM_URL]);
$forum_sql = "AND forum_id = $forum_id";
}
else
{
unset($forum_id);
$forum_sql = '';
}
if( isset($HTTP_GET_VARS['adv']) )
{
$adv = intval($HTTP_GET_VARS['adv']);
}
else
{
unset($adv);
}
//
// Start program proper
//
if( isset($HTTP_POST_VARS['submit']) )
{
$sql = '';
if(!empty($forum_id))
{
if(isset($HTTP_POST_VARS['simpleauth']))
{
$simple_ary = $simple_auth_ary[intval($HTTP_POST_VARS['simpleauth'])];
for($i = 0; $i < count($simple_ary); $i++)
{
$sql .= ( ( $sql != '' ) ? ', ' : '' ) . $forum_auth_fields[$i] . ' = ' . $simple_ary[$i];
}
if (is_array($simple_ary))
{
$sql = "UPDATE " . FORUMS_TABLE . " SET $sql WHERE forum_id = $forum_id";
}
}
else
{
for($i = 0; $i < count($forum_auth_fields); $i++)
{
$value = intval($HTTP_POST_VARS[$forum_auth_fields[$i]]);
if ( $forum_auth_fields[$i] == 'auth_vote' )
{
if ( $HTTP_POST_VARS['auth_vote'] == AUTH_ALL )
{
$value = AUTH_REG;
}
}
$sql .= ( ( $sql != '' ) ? ', ' : '' ) .$forum_auth_fields[$i] . ' = ' . $value;
}
$sql = "UPDATE " . FORUMS_TABLE . " SET $sql WHERE forum_id = $forum_id";
}
if ( $sql != '' )
{
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update auth table', '', __LINE__, __FILE__, $sql);
}
}
$forum_sql = '';
$adv = 0;
}
$template->assign_vars(array(
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("admin_forumauth.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">')
);
$message = $lang['Forum_auth_updated'] . '<br /><br />' . sprintf($lang['Click_return_forumauth'], '<a href="' . append_sid("admin_forumauth.$phpEx") . '">', "</a>");
message_die(GENERAL_MESSAGE, $message);
} // End of submit
//
// Get required information, either all forums if
// no id was specified or just the requsted if it
// was
//
$sql = "SELECT f.*
FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
WHERE c.cat_id = f.cat_id
$forum_sql
ORDER BY c.cat_order ASC, f.forum_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain forum list", "", __LINE__, __FILE__, $sql);
}
$forum_rows = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
if( empty($forum_id) )
{
//
// Output the selection table if no forum id was
// specified
//
$template->set_filenames(array(
'body' => 'admin/auth_select_body.tpl')
);
$select_list = '<select name="' . POST_FORUM_URL . '">';
for($i = 0; $i < count($forum_rows); $i++)
{
$select_list .= '<option value="' . $forum_rows[$i]['forum_id'] . '">' . $forum_rows[$i]['forum_name'] . '</option>';
}
$select_list .= '</select>';
$template->assign_vars(array(
'L_AUTH_TITLE' => $lang['Auth_Control_Forum'],
'L_AUTH_EXPLAIN' => $lang['Forum_auth_explain'],
'L_AUTH_SELECT' => $lang['Select_a_Forum'],
'L_LOOK_UP' => $lang['Look_up_Forum'],
'S_AUTH_ACTION' => append_sid("admin_forumauth.$phpEx"),
'S_AUTH_SELECT' => $select_list)
);
}
else
{
//
// Output the authorisation details if an id was
// specified
//
$template->set_filenames(array(
'body' => 'admin/auth_forum_body.tpl')
);
$forum_name = $forum_rows[0]['forum_name'];
@reset($simple_auth_ary);
while( list($key, $auth_levels) = each($simple_auth_ary))
{
$matched = 1;
for($k = 0; $k < count($auth_levels); $k++)
{
$matched_type = $key;
if ( $forum_rows[0][$forum_auth_fields[$k]] != $auth_levels[$k] )
{
$matched = 0;
}
}
if ( $matched )
{
break;
}
}
//
// If we didn't get a match above then we
// automatically switch into 'advanced' mode
//
if ( !isset($adv) && !$matched )
{
$adv = 1;
}
$s_column_span == 0;
if ( empty($adv) )
{
$simple_auth = '<select name="simpleauth">';
for($j = 0; $j < count($simple_auth_types); $j++)
{
$selected = ( $matched_type == $j ) ? ' selected="selected"' : '';
$simple_auth .= '<option value="' . $j . '"' . $selected . '>' . $simple_auth_types[$j] . '</option>';
}
$simple_auth .= '</select>';
$template->assign_block_vars('forum_auth_titles', array(
'CELL_TITLE' => $lang['Simple_mode'])
);
$template->assign_block_vars('forum_auth_data', array(
'S_AUTH_LEVELS_SELECT' => $simple_auth)
);
$s_column_span++;
}
else
{
//
// Output values of individual
// fields
//
for($j = 0; $j < count($forum_auth_fields); $j++)
{
$custom_auth[$j] = '&nbsp;<select name="' . $forum_auth_fields[$j] . '">';
for($k = 0; $k < count($forum_auth_levels); $k++)
{
$selected = ( $forum_rows[0][$forum_auth_fields[$j]] == $forum_auth_const[$k] ) ? ' selected="selected"' : '';
$custom_auth[$j] .= '<option value="' . $forum_auth_const[$k] . '"' . $selected . '>' . $lang['Forum_' . $forum_auth_levels[$k]] . '</option>';
}
$custom_auth[$j] .= '</select>&nbsp;';
$cell_title = $field_names[$forum_auth_fields[$j]];
$template->assign_block_vars('forum_auth_titles', array(
'CELL_TITLE' => $cell_title)
);
$template->assign_block_vars('forum_auth_data', array(
'S_AUTH_LEVELS_SELECT' => $custom_auth[$j])
);
$s_column_span++;
}
}
$adv_mode = ( empty($adv) ) ? '1' : '0';
$switch_mode = append_sid("admin_forumauth.$phpEx?" . POST_FORUM_URL . "=" . $forum_id . "&adv=". $adv_mode);
$switch_mode_text = ( empty($adv) ) ? $lang['Advanced_mode'] : $lang['Simple_mode'];
$u_switch_mode = '<a href="' . $switch_mode . '">' . $switch_mode_text . '</a>';
$s_hidden_fields = '<input type="hidden" name="' . POST_FORUM_URL . '" value="' . $forum_id . '">';
$template->assign_vars(array(
'FORUM_NAME' => $forum_name,
'L_FORUM' => $lang['Forum'],
'L_AUTH_TITLE' => $lang['Auth_Control_Forum'],
'L_AUTH_EXPLAIN' => $lang['Forum_auth_explain'],
'L_SUBMIT' => $lang['Submit'],
'L_RESET' => $lang['Reset'],
'U_SWITCH_MODE' => $u_switch_mode,
'S_FORUMAUTH_ACTION' => append_sid("admin_forumauth.$phpEx"),
'S_COLUMN_SPAN' => $s_column_span,
'S_HIDDEN_FIELDS' => $s_hidden_fields)
);
}
include('./page_header_admin.'.$phpEx);
$template->pparse('body');
include('./page_footer_admin.'.$phpEx);
?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,412 @@
<?php
/***************************************************************************
* admin_groups.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', 1);
if ( !empty($setmodules) )
{
$filename = basename(__FILE__);
$module['Groups']['Manage'] = $filename;
return;
}
//
// Load default header
//
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
if ( isset($HTTP_POST_VARS[POST_GROUPS_URL]) || isset($HTTP_GET_VARS[POST_GROUPS_URL]) )
{
$group_id = ( isset($HTTP_POST_VARS[POST_GROUPS_URL]) ) ? intval($HTTP_POST_VARS[POST_GROUPS_URL]) : intval($HTTP_GET_VARS[POST_GROUPS_URL]);
}
else
{
$group_id = 0;
}
if ( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) )
{
$mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode'];
$mode = htmlspecialchars($mode);
}
else
{
$mode = '';
}
if ( isset($HTTP_POST_VARS['edit']) || isset($HTTP_POST_VARS['new']) )
{
//
// Ok they are editing a group or creating a new group
//
$template->set_filenames(array(
'body' => 'admin/group_edit_body.tpl')
);
if ( isset($HTTP_POST_VARS['edit']) )
{
//
// They're editing. Grab the vars.
//
$sql = "SELECT *
FROM " . GROUPS_TABLE . "
WHERE group_single_user <> " . TRUE . "
AND group_id = $group_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql);
}
if ( !($group_info = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_MESSAGE, $lang['Group_not_exist']);
}
$mode = 'editgroup';
$template->assign_block_vars('group_edit', array());
}
else if ( isset($HTTP_POST_VARS['new']) )
{
$group_info = array (
'group_name' => '',
'group_description' => '',
'group_moderator' => '',
'group_type' => GROUP_OPEN);
$group_open = ' checked="checked"';
$mode = 'newgroup';
}
//
// Ok, now we know everything about them, let's show the page.
//
$sql = "SELECT user_id, username
FROM " . USERS_TABLE . "
WHERE user_id <> " . ANONYMOUS . "
ORDER BY username";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user info for moderator list', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
if ( $row['user_id'] == $group_info['group_moderator'] )
{
$group_moderator = $row['username'];
}
}
$group_open = ( $group_info['group_type'] == GROUP_OPEN ) ? ' checked="checked"' : '';
$group_closed = ( $group_info['group_type'] == GROUP_CLOSED ) ? ' checked="checked"' : '';
$group_hidden = ( $group_info['group_type'] == GROUP_HIDDEN ) ? ' checked="checked"' : '';
$s_hidden_fields = '<input type="hidden" name="mode" value="' . $mode . '" /><input type="hidden" name="' . POST_GROUPS_URL . '" value="' . $group_id . '" />';
$template->assign_vars(array(
'GROUP_NAME' => $group_info['group_name'],
'GROUP_DESCRIPTION' => $group_info['group_description'],
'GROUP_MODERATOR' => $group_moderator,
'L_GROUP_TITLE' => $lang['Group_administration'],
'L_GROUP_EDIT_DELETE' => ( isset($HTTP_POST_VARS['new']) ) ? $lang['New_group'] : $lang['Edit_group'],
'L_GROUP_NAME' => $lang['group_name'],
'L_GROUP_DESCRIPTION' => $lang['group_description'],
'L_GROUP_MODERATOR' => $lang['group_moderator'],
'L_FIND_USERNAME' => $lang['Find_username'],
'L_GROUP_STATUS' => $lang['group_status'],
'L_GROUP_OPEN' => $lang['group_open'],
'L_GROUP_CLOSED' => $lang['group_closed'],
'L_GROUP_HIDDEN' => $lang['group_hidden'],
'L_GROUP_DELETE' => $lang['group_delete'],
'L_GROUP_DELETE_CHECK' => $lang['group_delete_check'],
'L_SUBMIT' => $lang['Submit'],
'L_RESET' => $lang['Reset'],
'L_DELETE_MODERATOR' => $lang['delete_group_moderator'],
'L_DELETE_MODERATOR_EXPLAIN' => $lang['delete_moderator_explain'],
'L_YES' => $lang['Yes'],
'U_SEARCH_USER' => append_sid("../search.$phpEx?mode=searchuser"),
'S_GROUP_OPEN_TYPE' => GROUP_OPEN,
'S_GROUP_CLOSED_TYPE' => GROUP_CLOSED,
'S_GROUP_HIDDEN_TYPE' => GROUP_HIDDEN,
'S_GROUP_OPEN_CHECKED' => $group_open,
'S_GROUP_CLOSED_CHECKED' => $group_closed,
'S_GROUP_HIDDEN_CHECKED' => $group_hidden,
'S_GROUP_ACTION' => append_sid("admin_groups.$phpEx"),
'S_HIDDEN_FIELDS' => $s_hidden_fields)
);
$template->pparse('body');
}
else if ( isset($HTTP_POST_VARS['group_update']) )
{
//
// Ok, they are submitting a group, let's save the data based on if it's new or editing
//
if ( isset($HTTP_POST_VARS['group_delete']) )
{
//
// Reset User Moderator Level
//
// Is Group moderating a forum ?
$sql = "SELECT auth_mod FROM " . AUTH_ACCESS_TABLE . "
WHERE group_id = " . $group_id;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select auth_access', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if (intval($row['auth_mod']) == 1)
{
// Yes, get the assigned users and update their Permission if they are no longer moderator of one of the forums
$sql = "SELECT user_id FROM " . USER_GROUP_TABLE . "
WHERE group_id = " . $group_id;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select user_group', '', __LINE__, __FILE__, $sql);
}
$rows = $db->sql_fetchrowset($result);
for ($i = 0; $i < count($rows); $i++)
{
$sql = "SELECT g.group_id FROM " . AUTH_ACCESS_TABLE . " a, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug
WHERE (a.auth_mod = 1) AND (g.group_id = a.group_id) AND (a.group_id = ug.group_id) AND (g.group_id = ug.group_id)
AND (ug.user_id = " . intval($rows[$i]['user_id']) . ") AND (ug.group_id <> " . $group_id . ")";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain moderator permissions', '', __LINE__, __FILE__, $sql);
}
if ($db->sql_numrows($result) == 0)
{
$sql = "UPDATE " . USERS_TABLE . " SET user_level = " . USER . "
WHERE user_level = " . MOD . " AND user_id = " . intval($rows[$i]['user_id']);
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update moderator permissions', '', __LINE__, __FILE__, $sql);
}
}
}
}
//
// Delete Group
//
$sql = "DELETE FROM " . GROUPS_TABLE . "
WHERE group_id = " . $group_id;
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . USER_GROUP_TABLE . "
WHERE group_id = " . $group_id;
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update user_group', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . AUTH_ACCESS_TABLE . "
WHERE group_id = " . $group_id;
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update auth_access', '', __LINE__, __FILE__, $sql);
}
$message = $lang['Deleted_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . append_sid("admin_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
else
{
$group_type = isset($HTTP_POST_VARS['group_type']) ? intval($HTTP_POST_VARS['group_type']) : GROUP_OPEN;
$group_name = isset($HTTP_POST_VARS['group_name']) ? trim($HTTP_POST_VARS['group_name']) : '';
$group_description = isset($HTTP_POST_VARS['group_description']) ? trim($HTTP_POST_VARS['group_description']) : '';
$group_moderator = isset($HTTP_POST_VARS['username']) ? $HTTP_POST_VARS['username'] : '';
$delete_old_moderator = isset($HTTP_POST_VARS['delete_old_moderator']) ? true : false;
if ( $group_name == '' )
{
message_die(GENERAL_MESSAGE, $lang['No_group_name']);
}
else if ( $group_moderator == '' )
{
message_die(GENERAL_MESSAGE, $lang['No_group_moderator']);
}
$this_userdata = get_userdata($group_moderator, true);
$group_moderator = $this_userdata['user_id'];
if ( !$group_moderator )
{
message_die(GENERAL_MESSAGE, $lang['No_group_moderator']);
}
if( $mode == "editgroup" )
{
$sql = "SELECT *
FROM " . GROUPS_TABLE . "
WHERE group_single_user <> " . TRUE . "
AND group_id = " . $group_id;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql);
}
if( !($group_info = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_MESSAGE, $lang['Group_not_exist']);
}
if ( $group_info['group_moderator'] != $group_moderator )
{
if ( $delete_old_moderator )
{
$sql = "DELETE FROM " . USER_GROUP_TABLE . "
WHERE user_id = " . $group_info['group_moderator'] . "
AND group_id = " . $group_id;
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group moderator', '', __LINE__, __FILE__, $sql);
}
}
$sql = "SELECT user_id
FROM " . USER_GROUP_TABLE . "
WHERE user_id = $group_moderator
AND group_id = $group_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Failed to obtain current group moderator info', '', __LINE__, __FILE__, $sql);
}
if ( !($row = $db->sql_fetchrow($result)) )
{
$sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending)
VALUES (" . $group_id . ", " . $group_moderator . ", 0)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group moderator', '', __LINE__, __FILE__, $sql);
}
}
}
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_type = $group_type, group_name = '" . str_replace("\'", "''", $group_name) . "', group_description = '" . str_replace("\'", "''", $group_description) . "', group_moderator = $group_moderator
WHERE group_id = $group_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql);
}
$message = $lang['Updated_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . append_sid("admin_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');;
message_die(GENERAL_MESSAGE, $message);
}
else if( $mode == 'newgroup' )
{
$sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_single_user)
VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '0')";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert new group', '', __LINE__, __FILE__, $sql);
}
$new_group_id = $db->sql_nextid();
$sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending)
VALUES ($new_group_id, $group_moderator, 0)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert new user-group info', '', __LINE__, __FILE__, $sql);
}
$message = $lang['Added_new_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . append_sid("admin_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');;
message_die(GENERAL_MESSAGE, $message);
}
else
{
message_die(GENERAL_MESSAGE, $lang['No_group_action']);
}
}
}
else
{
$sql = "SELECT group_id, group_name
FROM " . GROUPS_TABLE . "
WHERE group_single_user <> " . TRUE . "
ORDER BY group_name";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain group list', '', __LINE__, __FILE__, $sql);
}
$select_list = '';
if ( $row = $db->sql_fetchrow($result) )
{
$select_list .= '<select name="' . POST_GROUPS_URL . '">';
do
{
$select_list .= '<option value="' . $row['group_id'] . '">' . $row['group_name'] . '</option>';
}
while ( $row = $db->sql_fetchrow($result) );
$select_list .= '</select>';
}
$template->set_filenames(array(
'body' => 'admin/group_select_body.tpl')
);
$template->assign_vars(array(
'L_GROUP_TITLE' => $lang['Group_administration'],
'L_GROUP_EXPLAIN' => $lang['Group_admin_explain'],
'L_GROUP_SELECT' => $lang['Select_group'],
'L_LOOK_UP' => $lang['Look_up_group'],
'L_CREATE_NEW_GROUP' => $lang['New_group'],
'S_GROUP_ACTION' => append_sid("admin_groups.$phpEx"),
'S_GROUP_SELECT' => $select_list)
);
if ( $select_list != '' )
{
$template->assign_block_vars('select_box', array());
}
$template->pparse('body');
}
include('./page_footer_admin.'.$phpEx);
?>

View File

@@ -0,0 +1,213 @@
<?php
/***************************************************************************
* admin_mass_email.php
* -------------------
* begin : Thu May 31, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
****************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
$filename = basename(__FILE__);
$module['General']['Mass_Email'] = $filename;
return;
}
//
// Load default header
//
$no_page_header = TRUE;
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
//
// Increase maximum execution time in case of a lot of users, but don't complain about it if it isn't
// allowed.
//
@set_time_limit(1200);
$message = '';
$subject = '';
//
// Do the job ...
//
if ( isset($HTTP_POST_VARS['submit']) )
{
$subject = stripslashes(trim($HTTP_POST_VARS['subject']));
$message = stripslashes(trim($HTTP_POST_VARS['message']));
$error = FALSE;
$error_msg = '';
if ( empty($subject) )
{
$error = true;
$error_msg .= ( !empty($error_msg) ) ? '<br />' . $lang['Empty_subject'] : $lang['Empty_subject'];
}
if ( empty($message) )
{
$error = true;
$error_msg .= ( !empty($error_msg) ) ? '<br />' . $lang['Empty_message'] : $lang['Empty_message'];
}
$group_id = intval($HTTP_POST_VARS[POST_GROUPS_URL]);
$sql = ( $group_id != -1 ) ? "SELECT u.user_email FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug WHERE ug.group_id = $group_id AND ug.user_pending <> " . TRUE . " AND u.user_id = ug.user_id" : "SELECT user_email FROM " . USERS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select group members', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
$bcc_list = array();
do
{
$bcc_list[] = $row['user_email'];
}
while ( $row = $db->sql_fetchrow($result) );
$db->sql_freeresult($result);
}
else
{
$message = ( $group_id != -1 ) ? $lang['Group_not_exist'] : $lang['No_such_user'];
$error = true;
$error_msg .= ( !empty($error_msg) ) ? '<br />' . $message : $message;
}
if ( !$error )
{
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
//
// Let's do some checking to make sure that mass mail functions
// are working in win32 versions of php.
//
if ( preg_match('/[c-z]:\\\.*/i', getenv('PATH')) && !$board_config['smtp_delivery'])
{
$ini_val = ( @phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var';
// We are running on windows, force delivery to use our smtp functions
// since php's are broken by default
$board_config['smtp_delivery'] = 1;
$board_config['smtp_host'] = @$ini_val('SMTP');
}
$emailer = new emailer($board_config['smtp_delivery']);
$emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
for ($i = 0; $i < count($bcc_list); $i++)
{
$emailer->bcc($bcc_list[$i]);
}
$email_headers = 'X-AntiAbuse: Board servername - ' . $board_config['server_name'] . "\n";
$email_headers .= 'X-AntiAbuse: User_id - ' . $userdata['user_id'] . "\n";
$email_headers .= 'X-AntiAbuse: Username - ' . $userdata['username'] . "\n";
$email_headers .= 'X-AntiAbuse: User IP - ' . decode_ip($user_ip) . "\n";
$emailer->use_template('admin_send_email');
$emailer->email_address($board_config['board_email']);
$emailer->set_subject($subject);
$emailer->extra_headers($email_headers);
$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'BOARD_EMAIL' => $board_config['board_email'],
'MESSAGE' => $message)
);
$emailer->send();
$emailer->reset();
message_die(GENERAL_MESSAGE, $lang['Email_sent'] . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>'));
}
}
if ( $error )
{
$template->set_filenames(array(
'reg_header' => 'error_body.tpl')
);
$template->assign_vars(array(
'ERROR_MESSAGE' => $error_msg)
);
$template->assign_var_from_handle('ERROR_BOX', 'reg_header');
}
//
// Initial selection
//
$sql = "SELECT group_id, group_name
FROM ".GROUPS_TABLE . "
WHERE group_single_user <> 1";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain list of groups', '', __LINE__, __FILE__, $sql);
}
$select_list = '<select name = "' . POST_GROUPS_URL . '"><option value = "-1">' . $lang['All_users'] . '</option>';
if ( $row = $db->sql_fetchrow($result) )
{
do
{
$select_list .= '<option value = "' . $row['group_id'] . '">' . $row['group_name'] . '</option>';
}
while ( $row = $db->sql_fetchrow($result) );
}
$select_list .= '</select>';
//
// Generate page
//
include('./page_header_admin.'.$phpEx);
$template->set_filenames(array(
'body' => 'admin/user_email_body.tpl')
);
$template->assign_vars(array(
'MESSAGE' => $message,
'SUBJECT' => $subject,
'L_EMAIL_TITLE' => $lang['Email'],
'L_EMAIL_EXPLAIN' => $lang['Mass_email_explain'],
'L_COMPOSE' => $lang['Compose'],
'L_RECIPIENTS' => $lang['Recipients'],
'L_EMAIL_SUBJECT' => $lang['Subject'],
'L_EMAIL_MSG' => $lang['Message'],
'L_EMAIL' => $lang['Email'],
'L_NOTICE' => $notice,
'S_USER_ACTION' => append_sid('admin_mass_email.'.$phpEx),
'S_GROUP_SELECT' => $select_list)
);
$template->pparse('body');
include('./page_footer_admin.'.$phpEx);
?>

376
phpBB/admin/admin_ranks.php Normal file
View File

@@ -0,0 +1,376 @@
<?php
/***************************************************************************
* admin_ranks.php
* -------------------
* begin : Thursday, Jul 12, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
$file = basename(__FILE__);
$module['Users']['Ranks'] = "$file";
return;
}
//
// Let's set the root dir for phpBB
//
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
{
$mode = ($HTTP_GET_VARS['mode']) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
$mode = htmlspecialchars($mode);
}
else
{
//
// These could be entered via a form button
//
if( isset($HTTP_POST_VARS['add']) )
{
$mode = "add";
}
else if( isset($HTTP_POST_VARS['save']) )
{
$mode = "save";
}
else
{
$mode = "";
}
}
if( $mode != "" )
{
if( $mode == "edit" || $mode == "add" )
{
//
// They want to add a new rank, show the form.
//
$rank_id = ( isset($HTTP_GET_VARS['id']) ) ? intval($HTTP_GET_VARS['id']) : 0;
$s_hidden_fields = "";
if( $mode == "edit" )
{
if( empty($rank_id) )
{
message_die(GENERAL_MESSAGE, $lang['Must_select_rank']);
}
$sql = "SELECT * FROM " . RANKS_TABLE . "
WHERE rank_id = $rank_id";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Couldn't obtain rank data", "", __LINE__, __FILE__, $sql);
}
$rank_info = $db->sql_fetchrow($result);
$s_hidden_fields .= '<input type="hidden" name="id" value="' . $rank_id . '" />';
}
else
{
$rank_info['rank_special'] = 0;
}
$s_hidden_fields .= '<input type="hidden" name="mode" value="save" />';
$rank_is_special = ( $rank_info['rank_special'] ) ? "checked=\"checked\"" : "";
$rank_is_not_special = ( !$rank_info['rank_special'] ) ? "checked=\"checked\"" : "";
$template->set_filenames(array(
"body" => "admin/ranks_edit_body.tpl")
);
$template->assign_vars(array(
"RANK" => $rank_info['rank_title'],
"SPECIAL_RANK" => $rank_is_special,
"NOT_SPECIAL_RANK" => $rank_is_not_special,
"MINIMUM" => ( $rank_is_special ) ? "" : $rank_info['rank_min'],
"IMAGE" => ( $rank_info['rank_image'] != "" ) ? $rank_info['rank_image'] : "",
"IMAGE_DISPLAY" => ( $rank_info['rank_image'] != "" ) ? '<img src="../' . $rank_info['rank_image'] . '" />' : "",
"L_RANKS_TITLE" => $lang['Ranks_title'],
"L_RANKS_TEXT" => $lang['Ranks_explain'],
"L_RANK_TITLE" => $lang['Rank_title'],
"L_RANK_SPECIAL" => $lang['Rank_special'],
"L_RANK_MINIMUM" => $lang['Rank_minimum'],
"L_RANK_IMAGE" => $lang['Rank_image'],
"L_RANK_IMAGE_EXPLAIN" => $lang['Rank_image_explain'],
"L_SUBMIT" => $lang['Submit'],
"L_RESET" => $lang['Reset'],
"L_YES" => $lang['Yes'],
"L_NO" => $lang['No'],
"S_RANK_ACTION" => append_sid("admin_ranks.$phpEx"),
"S_HIDDEN_FIELDS" => $s_hidden_fields)
);
}
else if( $mode == "save" )
{
//
// Ok, they sent us our info, let's update it.
//
$rank_id = ( isset($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : 0;
$rank_title = ( isset($HTTP_POST_VARS['title']) ) ? trim($HTTP_POST_VARS['title']) : "";
$special_rank = ( $HTTP_POST_VARS['special_rank'] == 1 ) ? TRUE : 0;
$min_posts = ( isset($HTTP_POST_VARS['min_posts']) ) ? intval($HTTP_POST_VARS['min_posts']) : -1;
$rank_image = ( (isset($HTTP_POST_VARS['rank_image'])) ) ? trim($HTTP_POST_VARS['rank_image']) : "";
if( $rank_title == "" )
{
message_die(GENERAL_MESSAGE, $lang['Must_select_rank']);
}
if( $special_rank == 1 )
{
$max_posts = -1;
$min_posts = -1;
}
//
// The rank image has to be a jpg, gif or png
//
if($rank_image != "")
{
if ( !preg_match("/(\.gif|\.png|\.jpg)$/is", $rank_image))
{
$rank_image = "";
}
}
if ($rank_id)
{
if (!$special_rank)
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_rank = 0
WHERE user_rank = $rank_id";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, $lang['No_update_ranks'], "", __LINE__, __FILE__, $sql);
}
}
$sql = "UPDATE " . RANKS_TABLE . "
SET rank_title = '" . str_replace("\'", "''", $rank_title) . "', rank_special = $special_rank, rank_min = $min_posts, rank_image = '" . str_replace("\'", "''", $rank_image) . "'
WHERE rank_id = $rank_id";
$message = $lang['Rank_updated'];
}
else
{
$sql = "INSERT INTO " . RANKS_TABLE . " (rank_title, rank_special, rank_min, rank_image)
VALUES ('" . str_replace("\'", "''", $rank_title) . "', $special_rank, $min_posts, '" . str_replace("\'", "''", $rank_image) . "')";
$message = $lang['Rank_added'];
}
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't update/insert into ranks table", "", __LINE__, __FILE__, $sql);
}
$message .= "<br /><br />" . sprintf($lang['Click_return_rankadmin'], "<a href=\"" . append_sid("admin_ranks.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
else if( $mode == "delete" )
{
//
// Ok, they want to delete their rank
//
if( isset($HTTP_POST_VARS['id']) || isset($HTTP_GET_VARS['id']) )
{
$rank_id = ( isset($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : intval($HTTP_GET_VARS['id']);
}
else
{
$rank_id = 0;
}
if( $rank_id )
{
$sql = "DELETE FROM " . RANKS_TABLE . "
WHERE rank_id = $rank_id";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't delete rank data", "", __LINE__, __FILE__, $sql);
}
$sql = "UPDATE " . USERS_TABLE . "
SET user_rank = 0
WHERE user_rank = $rank_id";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, $lang['No_update_ranks'], "", __LINE__, __FILE__, $sql);
}
$message = $lang['Rank_removed'] . "<br /><br />" . sprintf($lang['Click_return_rankadmin'], "<a href=\"" . append_sid("admin_ranks.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
else
{
message_die(GENERAL_MESSAGE, $lang['Must_select_rank']);
}
}
else
{
//
// They didn't feel like giving us any information. Oh, too bad, we'll just display the
// list then...
//
$template->set_filenames(array(
"body" => "admin/ranks_list_body.tpl")
);
$sql = "SELECT * FROM " . RANKS_TABLE . "
ORDER BY rank_min, rank_title";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't obtain ranks data", "", __LINE__, __FILE__, $sql);
}
$rank_rows = $db->sql_fetchrowset($result);
$rank_count = count($rank_rows);
$template->assign_vars(array(
"L_RANKS_TITLE" => $lang['Ranks_title'],
"L_RANKS_TEXT" => $lang['Ranks_explain'],
"L_RANK" => $lang['Rank_title'],
"L_RANK_MINIMUM" => $lang['Rank_minimum'],
"L_SPECIAL_RANK" => $lang['Special_rank'],
"L_EDIT" => $lang['Edit'],
"L_DELETE" => $lang['Delete'],
"L_ADD_RANK" => $lang['Add_new_rank'],
"L_ACTION" => $lang['Action'],
"S_RANKS_ACTION" => append_sid("admin_ranks.$phpEx"))
);
for( $i = 0; $i < $rank_count; $i++)
{
$rank = $rank_rows[$i]['rank_title'];
$special_rank = $rank_rows[$i]['rank_special'];
$rank_id = $rank_rows[$i]['rank_id'];
$rank_min = $rank_rows[$i]['rank_min'];
if($special_rank)
{
$rank_min = $rank_max = "-";
}
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars("ranks", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"RANK" => $rank,
"RANK_MIN" => $rank_min,
"SPECIAL_RANK" => ( $special_rank == 1 ) ? $lang['Yes'] : $lang['No'],
"U_RANK_EDIT" => append_sid("admin_ranks.$phpEx?mode=edit&amp;id=$rank_id"),
"U_RANK_DELETE" => append_sid("admin_ranks.$phpEx?mode=delete&amp;id=$rank_id"))
);
}
}
}
else
{
//
// Show the default page
//
$template->set_filenames(array(
"body" => "admin/ranks_list_body.tpl")
);
$sql = "SELECT * FROM " . RANKS_TABLE . "
ORDER BY rank_min ASC, rank_special ASC";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't obtain ranks data", "", __LINE__, __FILE__, $sql);
}
$rank_count = $db->sql_numrows($result);
$rank_rows = $db->sql_fetchrowset($result);
$template->assign_vars(array(
"L_RANKS_TITLE" => $lang['Ranks_title'],
"L_RANKS_TEXT" => $lang['Ranks_explain'],
"L_RANK" => $lang['Rank_title'],
"L_RANK_MINIMUM" => $lang['Rank_minimum'],
"L_SPECIAL_RANK" => $lang['Rank_special'],
"L_EDIT" => $lang['Edit'],
"L_DELETE" => $lang['Delete'],
"L_ADD_RANK" => $lang['Add_new_rank'],
"L_ACTION" => $lang['Action'],
"S_RANKS_ACTION" => append_sid("admin_ranks.$phpEx"))
);
for($i = 0; $i < $rank_count; $i++)
{
$rank = $rank_rows[$i]['rank_title'];
$special_rank = $rank_rows[$i]['rank_special'];
$rank_id = $rank_rows[$i]['rank_id'];
$rank_min = $rank_rows[$i]['rank_min'];
if( $special_rank == 1 )
{
$rank_min = $rank_max = "-";
}
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$rank_is_special = ( $special_rank ) ? $lang['Yes'] : $lang['No'];
$template->assign_block_vars("ranks", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"RANK" => $rank,
"SPECIAL_RANK" => $rank_is_special,
"RANK_MIN" => $rank_min,
"U_RANK_EDIT" => append_sid("admin_ranks.$phpEx?mode=edit&amp;id=$rank_id"),
"U_RANK_DELETE" => append_sid("admin_ranks.$phpEx?mode=delete&amp;id=$rank_id"))
);
}
}
$template->pparse("body");
include('./page_footer_admin.'.$phpEx);
?>

View File

@@ -0,0 +1,559 @@
<?php
/***************************************************************************
* admin_smilies.php
* -------------------
* begin : Thu May 31, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
****************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
/**************************************************************************
* This file will be used for modifying the smiley settings for a board.
**************************************************************************/
define('IN_PHPBB', 1);
//
// First we do the setmodules stuff for the admin cp.
//
if( !empty($setmodules) )
{
$filename = basename(__FILE__);
$module['General']['Smilies'] = $filename;
return;
}
//
// Load default header
//
if( isset($HTTP_GET_VARS['export_pack']) )
{
if ( $HTTP_GET_VARS['export_pack'] == "send" )
{
$no_page_header = true;
}
}
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
//
// Check to see what mode we should operate in.
//
if( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) )
{
$mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode'];
$mode = htmlspecialchars($mode);
}
else
{
$mode = "";
}
$delimeter = '=+:';
//
// Read a listing of uploaded smilies for use in the add or edit smliey code...
//
$dir = @opendir($phpbb_root_path . $board_config['smilies_path']);
while($file = @readdir($dir))
{
if( !@is_dir(phpbb_realpath($phpbb_root_path . $board_config['smilies_path'] . '/' . $file)) )
{
$img_size = @getimagesize($phpbb_root_path . $board_config['smilies_path'] . '/' . $file);
if( $img_size[0] && $img_size[1] )
{
$smiley_images[] = $file;
}
else if( eregi('.pak$', $file) )
{
$smiley_paks[] = $file;
}
}
}
@closedir($dir);
//
// Select main mode
//
if( isset($HTTP_GET_VARS['import_pack']) || isset($HTTP_POST_VARS['import_pack']) )
{
//
// Import a list a "Smiley Pack"
//
$smile_pak = ( isset($HTTP_POST_VARS['smile_pak']) ) ? $HTTP_POST_VARS['smile_pak'] : $HTTP_GET_VARS['smile_pak'];
$clear_current = ( isset($HTTP_POST_VARS['clear_current']) ) ? $HTTP_POST_VARS['clear_current'] : $HTTP_GET_VARS['clear_current'];
$replace_existing = ( isset($HTTP_POST_VARS['replace']) ) ? $HTTP_POST_VARS['replace'] : $HTTP_GET_VARS['replace'];
if ( !empty($smile_pak) )
{
//
// The user has already selected a smile_pak file.. Import it.
//
if( !empty($clear_current) )
{
$sql = "DELETE
FROM " . SMILIES_TABLE;
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't delete current smilies", "", __LINE__, __FILE__, $sql);
}
}
else
{
$sql = "SELECT code
FROM ". SMILIES_TABLE;
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't get current smilies", "", __LINE__, __FILE__, $sql);
}
$cur_smilies = $db->sql_fetchrowset($result);
for( $i = 0; $i < count($cur_smilies); $i++ )
{
$k = $cur_smilies[$i]['code'];
$smiles[$k] = 1;
}
}
$fcontents = @file($phpbb_root_path . $board_config['smilies_path'] . '/'. $smile_pak);
if( empty($fcontents) )
{
message_die(GENERAL_ERROR, "Couldn't read smiley pak file", "", __LINE__, __FILE__, $sql);
}
for( $i = 0; $i < count($fcontents); $i++ )
{
$smile_data = explode($delimeter, trim(addslashes($fcontents[$i])));
for( $j = 2; $j < count($smile_data); $j++)
{
//
// Replace > and < with the proper html_entities for matching.
//
$smile_data[$j] = str_replace("<", "&lt;", $smile_data[$j]);
$smile_data[$j] = str_replace(">", "&gt;", $smile_data[$j]);
$k = $smile_data[$j];
if( $smiles[$k] == 1 )
{
if( !empty($replace_existing) )
{
$sql = "UPDATE " . SMILIES_TABLE . "
SET smile_url = '" . str_replace("\'", "''", $smile_data[0]) . "', emoticon = '" . str_replace("\'", "''", $smile_data[1]) . "'
WHERE code = '" . str_replace("\'", "''", $smile_data[$j]) . "'";
}
else
{
$sql = '';
}
}
else
{
$sql = "INSERT INTO " . SMILIES_TABLE . " (code, smile_url, emoticon)
VALUES('" . str_replace("\'", "''", $smile_data[$j]) . "', '" . str_replace("\'", "''", $smile_data[0]) . "', '" . str_replace("\'", "''", $smile_data[1]) . "')";
}
if( $sql != '' )
{
$result = $db->sql_query($sql);
if( !$result )
{
message_die(GENERAL_ERROR, "Couldn't update smilies!", "", __LINE__, __FILE__, $sql);
}
}
}
}
$message = $lang['smiley_import_success'] . "<br /><br />" . sprintf($lang['Click_return_smileadmin'], "<a href=\"" . append_sid("admin_smilies.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
else
{
//
// Display the script to get the smile_pak cfg file...
//
$smile_paks_select = "<select name='smile_pak'><option value=''>" . $lang['Select_pak'] . "</option>";
while( list($key, $value) = @each($smiley_paks) )
{
if ( !empty($value) )
{
$smile_paks_select .= "<option>" . $value . "</option>";
}
}
$smile_paks_select .= "</select>";
$hidden_vars = "<input type='hidden' name='mode' value='import'>";
$template->set_filenames(array(
"body" => "admin/smile_import_body.tpl")
);
$template->assign_vars(array(
"L_SMILEY_TITLE" => $lang['smiley_title'],
"L_SMILEY_EXPLAIN" => $lang['smiley_import_inst'],
"L_SMILEY_IMPORT" => $lang['smiley_import'],
"L_SELECT_LBL" => $lang['choose_smile_pak'],
"L_IMPORT" => $lang['import'],
"L_CONFLICTS" => $lang['smile_conflicts'],
"L_DEL_EXISTING" => $lang['del_existing_smileys'],
"L_REPLACE_EXISTING" => $lang['replace_existing'],
"L_KEEP_EXISTING" => $lang['keep_existing'],
"S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"),
"S_SMILE_SELECT" => $smile_paks_select,
"S_HIDDEN_FIELDS" => $hidden_vars)
);
$template->pparse("body");
}
}
else if( isset($HTTP_POST_VARS['export_pack']) || isset($HTTP_GET_VARS['export_pack']) )
{
//
// Export our smiley config as a smiley pak...
//
if ( $HTTP_GET_VARS['export_pack'] == "send" )
{
$sql = "SELECT *
FROM " . SMILIES_TABLE;
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not get smiley list", "", __LINE__, __FILE__, $sql);
}
$resultset = $db->sql_fetchrowset($result);
$smile_pak = "";
for($i = 0; $i < count($resultset); $i++ )
{
$smile_pak .= $resultset[$i]['smile_url'] . $delimeter;
$smile_pak .= $resultset[$i]['emoticon'] . $delimeter;
$smile_pak .= $resultset[$i]['code'] . "\n";
}
header("Content-Type: text/x-delimtext; name=\"smiles.pak\"");
header("Content-disposition: attachment; filename=smiles.pak");
echo $smile_pak;
exit;
}
$message = sprintf($lang['export_smiles'], "<a href=\"" . append_sid("admin_smilies.$phpEx?export_pack=send", true) . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_smileadmin'], "<a href=\"" . append_sid("admin_smilies.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
else if( isset($HTTP_POST_VARS['add']) || isset($HTTP_GET_VARS['add']) )
{
//
// Admin has selected to add a smiley.
//
$template->set_filenames(array(
"body" => "admin/smile_edit_body.tpl")
);
$filename_list = "";
for( $i = 0; $i < count($smiley_images); $i++ )
{
$filename_list .= '<option value="' . $smiley_images[$i] . '">' . $smiley_images[$i] . '</option>';
}
$s_hidden_fields = '<input type="hidden" name="mode" value="savenew" />';
$template->assign_vars(array(
"L_SMILEY_TITLE" => $lang['smiley_title'],
"L_SMILEY_CONFIG" => $lang['smiley_config'],
"L_SMILEY_EXPLAIN" => $lang['smile_desc'],
"L_SMILEY_CODE" => $lang['smiley_code'],
"L_SMILEY_URL" => $lang['smiley_url'],
"L_SMILEY_EMOTION" => $lang['smiley_emot'],
"L_SUBMIT" => $lang['Submit'],
"L_RESET" => $lang['Reset'],
"SMILEY_IMG" => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smiley_images[0],
"S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"),
"S_HIDDEN_FIELDS" => $s_hidden_fields,
"S_FILENAME_OPTIONS" => $filename_list,
"S_SMILEY_BASEDIR" => $phpbb_root_path . $board_config['smilies_path'])
);
$template->pparse("body");
}
else if ( $mode != "" )
{
switch( $mode )
{
case 'delete':
//
// Admin has selected to delete a smiley.
//
$smiley_id = ( !empty($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id'];
$smiley_id = intval($smiley_id);
$sql = "DELETE FROM " . SMILIES_TABLE . "
WHERE smilies_id = " . $smiley_id;
$result = $db->sql_query($sql);
if( !$result )
{
message_die(GENERAL_ERROR, "Couldn't delete smiley", "", __LINE__, __FILE__, $sql);
}
$message = $lang['smiley_del_success'] . "<br /><br />" . sprintf($lang['Click_return_smileadmin'], "<a href=\"" . append_sid("admin_smilies.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
break;
case 'edit':
//
// Admin has selected to edit a smiley.
//
$smiley_id = ( !empty($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id'];
$smiley_id = intval($smiley_id);
$sql = "SELECT *
FROM " . SMILIES_TABLE . "
WHERE smilies_id = " . $smiley_id;
$result = $db->sql_query($sql);
if( !$result )
{
message_die(GENERAL_ERROR, 'Could not obtain emoticon information', "", __LINE__, __FILE__, $sql);
}
$smile_data = $db->sql_fetchrow($result);
$filename_list = "";
for( $i = 0; $i < count($smiley_images); $i++ )
{
if( $smiley_images[$i] == $smile_data['smile_url'] )
{
$smiley_selected = "selected=\"selected\"";
$smiley_edit_img = $smiley_images[$i];
}
else
{
$smiley_selected = "";
}
$filename_list .= '<option value="' . $smiley_images[$i] . '"' . $smiley_selected . '>' . $smiley_images[$i] . '</option>';
}
$template->set_filenames(array(
"body" => "admin/smile_edit_body.tpl")
);
$s_hidden_fields = '<input type="hidden" name="mode" value="save" /><input type="hidden" name="smile_id" value="' . $smile_data['smilies_id'] . '" />';
$template->assign_vars(array(
"SMILEY_CODE" => $smile_data['code'],
"SMILEY_EMOTICON" => $smile_data['emoticon'],
"L_SMILEY_TITLE" => $lang['smiley_title'],
"L_SMILEY_CONFIG" => $lang['smiley_config'],
"L_SMILEY_EXPLAIN" => $lang['smile_desc'],
"L_SMILEY_CODE" => $lang['smiley_code'],
"L_SMILEY_URL" => $lang['smiley_url'],
"L_SMILEY_EMOTION" => $lang['smiley_emot'],
"L_SUBMIT" => $lang['Submit'],
"L_RESET" => $lang['Reset'],
"SMILEY_IMG" => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smiley_edit_img,
"S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"),
"S_HIDDEN_FIELDS" => $s_hidden_fields,
"S_FILENAME_OPTIONS" => $filename_list,
"S_SMILEY_BASEDIR" => $phpbb_root_path . $board_config['smilies_path'])
);
$template->pparse("body");
break;
case "save":
//
// Admin has submitted changes while editing a smiley.
//
//
// Get the submitted data, being careful to ensure that we only
// accept the data we are looking for.
//
$smile_code = ( isset($HTTP_POST_VARS['smile_code']) ) ? trim($HTTP_POST_VARS['smile_code']) : trim($HTTP_GET_VARS['smile_code']);
$smile_url = ( isset($HTTP_POST_VARS['smile_url']) ) ? trim($HTTP_POST_VARS['smile_url']) : trim($HTTP_GET_VARS['smile_url']);
$smile_emotion = ( isset($HTTP_POST_VARS['smile_emotion']) ) ? trim($HTTP_POST_VARS['smile_emotion']) : trim($HTTP_GET_VARS['smile_emotion']);
$smile_id = ( isset($HTTP_POST_VARS['smile_id']) ) ? intval($HTTP_POST_VARS['smile_id']) : intval($HTTP_GET_VARS['smile_id']);
// If no code was entered complain ...
if ($smile_code == '' || $smile_url == '')
{
message_die(MESSAGE, $lang['Fields_empty']);
}
//
// Convert < and > to proper htmlentities for parsing.
//
$smile_code = str_replace('<', '&lt;', $smile_code);
$smile_code = str_replace('>', '&gt;', $smile_code);
//
// Proceed with updating the smiley table.
//
$sql = "UPDATE " . SMILIES_TABLE . "
SET code = '" . str_replace("\'", "''", $smile_code) . "', smile_url = '" . str_replace("\'", "''", $smile_url) . "', emoticon = '" . str_replace("\'", "''", $smile_emotion) . "'
WHERE smilies_id = $smile_id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update smilies info", "", __LINE__, __FILE__, $sql);
}
$message = $lang['smiley_edit_success'] . "<br /><br />" . sprintf($lang['Click_return_smileadmin'], "<a href=\"" . append_sid("admin_smilies.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
break;
case "savenew":
//
// Admin has submitted changes while adding a new smiley.
//
//
// Get the submitted data being careful to ensure the the data
// we recieve and process is only the data we are looking for.
//
$smile_code = ( isset($HTTP_POST_VARS['smile_code']) ) ? $HTTP_POST_VARS['smile_code'] : $HTTP_GET_VARS['smile_code'];
$smile_url = ( isset($HTTP_POST_VARS['smile_url']) ) ? $HTTP_POST_VARS['smile_url'] : $HTTP_GET_VARS['smile_url'];
$smile_emotion = ( isset($HTTP_POST_VARS['smile_emotion']) ) ? $HTTP_POST_VARS['smile_emotion'] : $HTTP_GET_VARS['smile_emotion'];
$smile_code = trim($smile_code);
$smile_url = trim($smile_url);
$smile_emotion = trim($smile_emotion);
// If no code was entered complain ...
if ($smile_code == '' || $smile_url == '')
{
message_die(MESSAGE, $lang['Fields_empty']);
}
//
// Convert < and > to proper htmlentities for parsing.
//
$smile_code = str_replace('<', '&lt;', $smile_code);
$smile_code = str_replace('>', '&gt;', $smile_code);
//
// Save the data to the smiley table.
//
$sql = "INSERT INTO " . SMILIES_TABLE . " (code, smile_url, emoticon)
VALUES ('" . str_replace("\'", "''", $smile_code) . "', '" . str_replace("\'", "''", $smile_url) . "', '" . str_replace("\'", "''", $smile_emotion) . "')";
$result = $db->sql_query($sql);
if( !$result )
{
message_die(GENERAL_ERROR, "Couldn't insert new smiley", "", __LINE__, __FILE__, $sql);
}
$message = $lang['smiley_add_success'] . "<br /><br />" . sprintf($lang['Click_return_smileadmin'], "<a href=\"" . append_sid("admin_smilies.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
break;
}
}
else
{
//
// This is the main display of the page before the admin has selected
// any options.
//
$sql = "SELECT *
FROM " . SMILIES_TABLE;
$result = $db->sql_query($sql);
if( !$result )
{
message_die(GENERAL_ERROR, "Couldn't obtain smileys from database", "", __LINE__, __FILE__, $sql);
}
$smilies = $db->sql_fetchrowset($result);
$template->set_filenames(array(
"body" => "admin/smile_list_body.tpl")
);
$template->assign_vars(array(
"L_ACTION" => $lang['Action'],
"L_SMILEY_TITLE" => $lang['smiley_title'],
"L_SMILEY_TEXT" => $lang['smile_desc'],
"L_DELETE" => $lang['Delete'],
"L_EDIT" => $lang['Edit'],
"L_SMILEY_ADD" => $lang['smile_add'],
"L_CODE" => $lang['Code'],
"L_EMOT" => $lang['Emotion'],
"L_SMILE" => $lang['Smile'],
"L_IMPORT_PACK" => $lang['import_smile_pack'],
"L_EXPORT_PACK" => $lang['export_smile_pack'],
"S_HIDDEN_FIELDS" => $s_hidden_fields,
"S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"))
);
//
// Loop throuh the rows of smilies setting block vars for the template.
//
for($i = 0; $i < count($smilies); $i++)
{
//
// Replace htmlentites for < and > with actual character.
//
$smilies[$i]['code'] = str_replace('&lt;', '<', $smilies[$i]['code']);
$smilies[$i]['code'] = str_replace('&gt;', '>', $smilies[$i]['code']);
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars("smiles", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"SMILEY_IMG" => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'],
"CODE" => $smilies[$i]['code'],
"EMOT" => $smilies[$i]['emoticon'],
"U_SMILEY_EDIT" => append_sid("admin_smilies.$phpEx?mode=edit&amp;id=" . $smilies[$i]['smilies_id']),
"U_SMILEY_DELETE" => append_sid("admin_smilies.$phpEx?mode=delete&amp;id=" . $smilies[$i]['smilies_id']))
);
}
//
// Spit out the page.
//
$template->pparse("body");
}
//
// Page Footer
//
include('./page_footer_admin.'.$phpEx);
?>

View File

@@ -0,0 +1,940 @@
<?php
/***************************************************************************
* admin_styles.php
* -------------------
* begin : Thursday, Jul 12, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
$file = basename(__FILE__);
$module['Styles']['Add_new'] = "$file?mode=addnew";
$module['Styles']['Create_new'] = "$file?mode=create";
$module['Styles']['Manage'] = "$file";
$module['Styles']['Export'] = "$file?mode=export";
return;
}
//
// Load default header
//
//
// Check if the user has cancled a confirmation message.
//
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
$confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? TRUE : FALSE;
$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : FALSE;
$no_page_header = (!empty($HTTP_POST_VARS['send_file']) || $cancel) ? TRUE : FALSE;
require('./pagestart.' . $phpEx);
$confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? TRUE : FALSE;
$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : FALSE;
if ($cancel)
{
redirect('admin/' . append_sid("admin_styles.$phpEx", true));
}
if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
{
$mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
$mode = htmlspecialchars($mode);
}
else
{
$mode = "";
}
switch( $mode )
{
case "addnew":
$install_to = ( isset($HTTP_GET_VARS['install_to']) ) ? urldecode($HTTP_GET_VARS['install_to']) : $HTTP_POST_VARS['install_to'];
$style_name = ( isset($HTTP_GET_VARS['style']) ) ? urldecode($HTTP_GET_VARS['style']) : $HTTP_POST_VARS['style'];
if( isset($install_to) )
{
include($phpbb_root_path. "templates/" . basename($install_to) . "/theme_info.cfg");
$template_name = $$install_to;
$found = FALSE;
for($i = 0; $i < count($template_name) && !$found; $i++)
{
if( $template_name[$i]['style_name'] == $style_name )
{
while(list($key, $val) = each($template_name[$i]))
{
$db_fields[] = $key;
$db_values[] = str_replace("\'", "''" , $val);
}
}
}
$sql = "INSERT INTO " . THEMES_TABLE . " (";
for($i = 0; $i < count($db_fields); $i++)
{
$sql .= $db_fields[$i];
if($i != (count($db_fields) - 1))
{
$sql .= ", ";
}
}
$sql .= ") VALUES (";
for($i = 0; $i < count($db_values); $i++)
{
$sql .= "'" . $db_values[$i] . "'";
if($i != (count($db_values) - 1))
{
$sql .= ", ";
}
}
$sql .= ")";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not insert theme data!", "", __LINE__, __FILE__, $sql);
}
$message = $lang['Theme_installed'] . "<br /><br />" . sprintf($lang['Click_return_styleadmin'], "<a href=\"" . append_sid("admin_styles.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
else
{
$installable_themes = array();
if( $dir = @opendir($phpbb_root_path. "templates/") )
{
while( $sub_dir = @readdir($dir) )
{
if( !is_file(phpbb_realpath($phpbb_root_path . 'templates/' .$sub_dir)) && !is_link(phpbb_realpath($phpbb_root_path . 'templates/' .$sub_dir)) && $sub_dir != "." && $sub_dir != ".." && $sub_dir != "CVS" )
{
if( @file_exists(@phpbb_realpath($phpbb_root_path. "templates/" . $sub_dir . "/theme_info.cfg")) )
{
include($phpbb_root_path. "templates/" . $sub_dir . "/theme_info.cfg");
for($i = 0; $i < count($$sub_dir); $i++)
{
$working_data = $$sub_dir;
$style_name = $working_data[$i]['style_name'];
$sql = "SELECT themes_id
FROM " . THEMES_TABLE . "
WHERE style_name = '" . str_replace("\'", "''", $style_name) . "'";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not query themes table!", "", __LINE__, __FILE__, $sql);
}
if(!$db->sql_numrows($result))
{
$installable_themes[] = $working_data[$i];
}
}
}
}
}
$template->set_filenames(array(
"body" => "admin/styles_addnew_body.tpl")
);
$template->assign_vars(array(
"L_STYLES_TITLE" => $lang['Styles_admin'],
"L_STYLES_ADD_TEXT" => $lang['Styles_addnew_explain'],
"L_STYLE" => $lang['Style'],
"L_TEMPLATE" => $lang['Template'],
"L_INSTALL" => $lang['Install'],
"L_ACTION" => $lang['Action'])
);
for($i = 0; $i < count($installable_themes); $i++)
{
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars("styles", array(
"ROW_CLASS" => $row_class,
"ROW_COLOR" => "#" . $row_color,
"STYLE_NAME" => $installable_themes[$i]['style_name'],
"TEMPLATE_NAME" => $installable_themes[$i]['template_name'],
"U_STYLES_INSTALL" => append_sid("admin_styles.$phpEx?mode=addnew&amp;style=" . urlencode($installable_themes[$i]['style_name']) . "&amp;install_to=" . urlencode($installable_themes[$i]['template_name'])))
);
}
$template->pparse("body");
}
closedir($dir);
}
break;
case "create":
case "edit":
$submit = ( isset($HTTP_POST_VARS['submit']) ) ? TRUE : 0;
if( $submit )
{
//
// DAMN! Thats alot of data to validate...
//
$updated['style_name'] = $HTTP_POST_VARS['style_name'];
$updated['template_name'] = $HTTP_POST_VARS['template_name'];
$updated['head_stylesheet'] = $HTTP_POST_VARS['head_stylesheet'];
$updated['body_background'] = $HTTP_POST_VARS['body_background'];
$updated['body_bgcolor'] = $HTTP_POST_VARS['body_bgcolor'];
$updated['body_text'] = $HTTP_POST_VARS['body_text'];
$updated['body_link'] = $HTTP_POST_VARS['body_link'];
$updated['body_vlink'] = $HTTP_POST_VARS['body_vlink'];
$updated['body_alink'] = $HTTP_POST_VARS['body_alink'];
$updated['body_hlink'] = $HTTP_POST_VARS['body_hlink'];
$updated['tr_color1'] = $HTTP_POST_VARS['tr_color1'];
$updated_name['tr_color1_name'] = $HTTP_POST_VARS['tr_color1_name'];
$updated['tr_color2'] = $HTTP_POST_VARS['tr_color2'];
$updated_name['tr_color2_name'] = $HTTP_POST_VARS['tr_color2_name'];
$updated['tr_color3'] = $HTTP_POST_VARS['tr_color3'];
$updated_name['tr_color3_name'] = $HTTP_POST_VARS['tr_color3_name'];
$updated['tr_class1'] = $HTTP_POST_VARS['tr_class1'];
$updated_name['tr_class1_name'] = $HTTP_POST_VARS['tr_class1_name'];
$updated['tr_class2'] = $HTTP_POST_VARS['tr_class2'];
$updated_name['tr_class2_name'] = $HTTP_POST_VARS['tr_class2_name'];
$updated['tr_class3'] = $HTTP_POST_VARS['tr_class3'];
$updated_name['tr_class3_name'] = $HTTP_POST_VARS['tr_class3_name'];
$updated['th_color1'] = $HTTP_POST_VARS['th_color1'];
$updated_name['th_color1_name'] = $HTTP_POST_VARS['th_color1_name'];
$updated['th_color2'] = $HTTP_POST_VARS['th_color2'];
$updated_name['th_color2_name'] = $HTTP_POST_VARS['th_color2_name'];
$updated['th_color3'] = $HTTP_POST_VARS['th_color3'];
$updated_name['th_color3_name'] = $HTTP_POST_VARS['th_color3_name'];
$updated['th_class1'] = $HTTP_POST_VARS['th_class1'];
$updated_name['th_class1_name'] = $HTTP_POST_VARS['th_class1_name'];
$updated['th_class2'] = $HTTP_POST_VARS['th_class2'];
$updated_name['th_class2_name'] = $HTTP_POST_VARS['th_class2_name'];
$updated['th_class3'] = $HTTP_POST_VARS['th_class3'];
$updated_name['th_class3_name'] = $HTTP_POST_VARS['th_class3_name'];
$updated['td_color1'] = $HTTP_POST_VARS['td_color1'];
$updated_name['td_color1_name'] = $HTTP_POST_VARS['td_color1_name'];
$updated['td_color2'] = $HTTP_POST_VARS['td_color2'];
$updated_name['td_color2_name'] = $HTTP_POST_VARS['td_color2_name'];
$updated['td_color3'] = $HTTP_POST_VARS['td_color3'];
$updated_name['td_color3_name'] = $HTTP_POST_VARS['td_color3_name'];
$updated['td_class1'] = $HTTP_POST_VARS['td_class1'];
$updated_name['td_class1_name'] = $HTTP_POST_VARS['td_class1_name'];
$updated['td_class2'] = $HTTP_POST_VARS['td_class2'];
$updated_name['td_class2_name'] = $HTTP_POST_VARS['td_class2_name'];
$updated['td_class3'] = $HTTP_POST_VARS['td_class3'];
$updated_name['td_class3_name'] = $HTTP_POST_VARS['td_class3_name'];
$updated['fontface1'] = $HTTP_POST_VARS['fontface1'];
$updated_name['fontface1_name'] = $HTTP_POST_VARS['fontface1_name'];
$updated['fontface2'] = $HTTP_POST_VARS['fontface2'];
$updated_name['fontface2_name'] = $HTTP_POST_VARS['fontface2_name'];
$updated['fontface3'] = $HTTP_POST_VARS['fontface3'];
$updated_name['fontface3_name'] = $HTTP_POST_VARS['fontface3_name'];
$updated['fontsize1'] = intval($HTTP_POST_VARS['fontsize1']);
$updated_name['fontsize1_name'] = $HTTP_POST_VARS['fontsize1_name'];
$updated['fontsize2'] = intval($HTTP_POST_VARS['fontsize2']);
$updated_name['fontsize2_name'] = $HTTP_POST_VARS['fontsize2_name'];
$updated['fontsize3'] = intval($HTTP_POST_VARS['fontsize3']);
$updated_name['fontsize3_name'] = $HTTP_POST_VARS['fontsize3_name'];
$updated['fontcolor1'] = $HTTP_POST_VARS['fontcolor1'];
$updated_name['fontcolor1_name'] = $HTTP_POST_VARS['fontcolor1_name'];
$updated['fontcolor2'] = $HTTP_POST_VARS['fontcolor2'];
$updated_name['fontcolor2_name'] = $HTTP_POST_VARS['fontcolor2_name'];
$updated['fontcolor3'] = $HTTP_POST_VARS['fontcolor3'];
$updated_name['fontcolor3_name'] = $HTTP_POST_VARS['fontcolor3_name'];
$updated['span_class1'] = $HTTP_POST_VARS['span_class1'];
$updated_name['span_class1_name'] = $HTTP_POST_VARS['span_class1_name'];
$updated['span_class2'] = $HTTP_POST_VARS['span_class2'];
$updated_name['span_class2_name'] = $HTTP_POST_VARS['span_class2_name'];
$updated['span_class3'] = $HTTP_POST_VARS['span_class3'];
$updated_name['span_class3_name'] = $HTTP_POST_VARS['span_class3_name'];
$style_id = intval($HTTP_POST_VARS['style_id']);
//
// Wheeeew! Thank heavens for copy and paste and search and replace :D
//
if($mode == "edit")
{
$sql = "UPDATE " . THEMES_TABLE . " SET ";
$count = 0;
while(list($key, $val) = each($updated))
{
if($count != 0)
{
$sql .= ", ";
}
//
// I don't like this but it'll keep MSSQL from throwing
// an error and save me alot of typing
//
$sql .= ( stristr($key, "fontsize") ) ? "$key = $val" : "$key = '" . str_replace("\'", "''", $val) . "'";
$count++;
}
$sql .= " WHERE themes_id = $style_id";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not update themes table!", "", __LINE__, __FILE__, $sql);
}
//
// Check if there's a names table entry for this style
//
$sql = "SELECT themes_id
FROM " . THEMES_NAME_TABLE . "
WHERE themes_id = $style_id";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not get data from themes_name table", "", __LINE__, __FILE__, $sql);
}
if($db->sql_numrows($result) > 0)
{
$sql = "UPDATE " . THEMES_NAME_TABLE . "
SET ";
$count = 0;
while(list($key, $val) = each($updated_name))
{
if($count != 0)
{
$sql .= ", ";
}
$sql .= "$key = '$val'";
$count++;
}
$sql .= " WHERE themes_id = $style_id";
}
else
{
//
// Nope, no names entry so we create a new one.
//
$sql = "INSERT INTO " . THEMES_NAME_TABLE . " (themes_id, ";
while(list($key, $val) = each($updated_name))
{
$fields[] = $key;
$vals[] = str_replace("\'", "''", $val);
}
for($i = 0; $i < count($fields); $i++)
{
if($i > 0)
{
$sql .= ", ";
}
$sql .= $fields[$i];
}
$sql .= ") VALUES ($style_id, ";
for($i = 0; $i < count($vals); $i++)
{
if($i > 0)
{
$sql .= ", ";
}
$sql .= "'" . $vals[$i] . "'";
}
$sql .= ")";
}
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not update themes name table!", "", __LINE__, __FILE__, $sql);
}
$message = $lang['Theme_updated'] . "<br /><br />" . sprintf($lang['Click_return_styleadmin'], "<a href=\"" . append_sid("admin_styles.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
else
{
//
// First, check if we already have a style by this name
//
$sql = "SELECT themes_id
FROM " . THEMES_TABLE . "
WHERE style_name = '" . str_replace("\'", "''", $updated['style_name']) . "'";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not query themes table", "", __LINE__, __FILE__, $sql);
}
if($db->sql_numrows($result))
{
message_die(GENERAL_ERROR, $lang['Style_exists'], $lang['Error']);
}
while(list($key, $val) = each($updated))
{
$field_names[] = $key;
if(stristr($key, "fontsize"))
{
$values[] = "$val";
}
else
{
$values[] = "'" . str_replace("\'", "''", $val) . "'";
}
}
$sql = "INSERT
INTO " . THEMES_TABLE . " (";
for($i = 0; $i < count($field_names); $i++)
{
if($i != 0)
{
$sql .= ", ";
}
$sql .= $field_names[$i];
}
$sql .= ") VALUES (";
for($i = 0; $i < count($values); $i++)
{
if($i != 0)
{
$sql .= ", ";
}
$sql .= $values[$i];
}
$sql .= ")";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not update themes table!", "", __LINE__, __FILE__, $sql);
}
$style_id = $db->sql_nextid();
//
// Insert names data
//
$sql = "INSERT INTO " . THEMES_NAME_TABLE . " (themes_id, ";
while(list($key, $val) = each($updated_name))
{
$fields[] = $key;
$vals[] = $val;
}
for($i = 0; $i < count($fields); $i++)
{
if($i > 0)
{
$sql .= ", ";
}
$sql .= $fields[$i];
}
$sql .= ") VALUES ($style_id, ";
for($i = 0; $i < count($vals); $i++)
{
if($i > 0)
{
$sql .= ", ";
}
$sql .= "'" . $vals[$i] . "'";
}
$sql .= ")";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not insert themes name table!", "", __LINE__, __FILE__, $sql);
}
$message = $lang['Theme_created'] . "<br /><br />" . sprintf($lang['Click_return_styleadmin'], "<a href=\"" . append_sid("admin_styles.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
}
else
{
if($mode == "edit")
{
$themes_title = $lang['Edit_theme'];
$themes_explain = $lang['Edit_theme_explain'];
$style_id = intval($HTTP_GET_VARS['style_id']);
$selected_names = array();
$selected_values = array();
//
// Fetch the Theme Info from the db
//
$sql = "SELECT *
FROM " . THEMES_TABLE . "
WHERE themes_id = $style_id";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not get data from themes table", "", __LINE__, __FILE__, $sql);
}
if ( $selected_values = $db->sql_fetchrow($result) )
{
while(list($key, $val) = @each($selected_values))
{
$selected[$key] = $val;
}
}
//
// Fetch the Themes Name data
//
$sql = "SELECT *
FROM " . THEMES_NAME_TABLE . "
WHERE themes_id = $style_id";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not get data from themes name table", "", __LINE__, __FILE__, $sql);
}
if ( $selected_names = $db->sql_fetchrow($result) )
{
while(list($key, $val) = @each($selected_names))
{
$selected[$key] = $val;
}
}
$s_hidden_fields = '<input type="hidden" name="style_id" value="' . $style_id . '" />';
}
else
{
$themes_title = $lang['Create_theme'];
$themes_explain = $lang['Create_theme_explain'];
}
$template->set_filenames(array(
"body" => "admin/styles_edit_body.tpl")
);
if( $dir = @opendir($phpbb_root_path . 'templates/') )
{
$s_template_select = '<select name="template_name">';
while( $file = @readdir($dir) )
{
if( !is_file(phpbb_realpath($phpbb_root_path . 'templates/' . $file)) && !is_link(phpbb_realpath($phpbb_root_path . 'templates/' . $file)) && $file != "." && $file != ".." && $file != "CVS" )
{
if($file == $selected['template_name'])
{
$s_template_select .= '<option value="' . $file . '" selected="selected">' . $file . "</option>\n";
}
else
{
$s_template_select .= '<option value="' . $file . '">' . $file . "</option>\n";
}
}
}
$s_template_select .= '</select>';
}
else
{
message_die(GENERAL_MESSAGE, $lang['No_template_dir']);
}
$s_hidden_fields .= '<input type="hidden" name="mode" value="' . $mode . '" />';
$template->assign_vars(array(
"L_THEMES_TITLE" => $themes_title,
"L_THEMES_EXPLAIN" => $themes_explain,
"L_THEME_NAME" => $lang['Theme_name'],
"L_TEMPLATE" => $lang['Template'],
"L_THEME_SETTINGS" => $lang['Theme_settings'],
"L_THEME_ELEMENT" => $lang['Theme_element'],
"L_SIMPLE_NAME" => $lang['Simple_name'],
"L_VALUE" => $lang['Value'],
"L_STYLESHEET" => $lang['Stylesheet'],
"L_BACKGROUND_IMAGE" => $lang['Background_image'],
"L_BACKGROUND_COLOR" => $lang['Background_color'],
"L_BODY_TEXT_COLOR" => $lang['Text_color'],
"L_BODY_LINK_COLOR" => $lang['Link_color'],
"L_BODY_VLINK_COLOR" => $lang['VLink_color'],
"L_BODY_ALINK_COLOR" => $lang['ALink_color'],
"L_BODY_HLINK_COLOR" => $lang['HLink_color'],
"L_TR_COLOR1" => $lang['Tr_color1'],
"L_TR_COLOR2" => $lang['Tr_color2'],
"L_TR_COLOR3" => $lang['Tr_color3'],
"L_TR_CLASS1" => $lang['Tr_class1'],
"L_TR_CLASS2" => $lang['Tr_class2'],
"L_TR_CLASS3" => $lang['Tr_class3'],
"L_TH_COLOR1" => $lang['Th_color1'],
"L_TH_COLOR2" => $lang['Th_color2'],
"L_TH_COLOR3" => $lang['Th_color3'],
"L_TH_CLASS1" => $lang['Th_class1'],
"L_TH_CLASS2" => $lang['Th_class2'],
"L_TH_CLASS3" => $lang['Th_class3'],
"L_TD_COLOR1" => $lang['Td_color1'],
"L_TD_COLOR2" => $lang['Td_color2'],
"L_TD_COLOR3" => $lang['Td_color3'],
"L_TD_CLASS1" => $lang['Td_class1'],
"L_TD_CLASS2" => $lang['Td_class2'],
"L_TD_CLASS3" => $lang['Td_class3'],
"L_FONTFACE_1" => $lang['fontface1'],
"L_FONTFACE_2" => $lang['fontface2'],
"L_FONTFACE_3" => $lang['fontface3'],
"L_FONTSIZE_1" => $lang['fontsize1'],
"L_FONTSIZE_2" => $lang['fontsize2'],
"L_FONTSIZE_3" => $lang['fontsize3'],
"L_FONTCOLOR_1" => $lang['fontcolor1'],
"L_FONTCOLOR_2" => $lang['fontcolor2'],
"L_FONTCOLOR_3" => $lang['fontcolor3'],
"L_SPAN_CLASS_1" => $lang['span_class1'],
"L_SPAN_CLASS_2" => $lang['span_class2'],
"L_SPAN_CLASS_3" => $lang['span_class3'],
"L_SAVE_SETTINGS" => $lang['Save_Settings'],
"THEME_NAME" => $selected['style_name'],
"HEAD_STYLESHEET" => $selected['head_stylesheet'],
"BODY_BACKGROUND" => $selected['body_background'],
"BODY_BGCOLOR" => $selected['body_bgcolor'],
"BODY_TEXT_COLOR" => $selected['body_text'],
"BODY_LINK_COLOR" => $selected['body_link'],
"BODY_VLINK_COLOR" => $selected['body_vlink'],
"BODY_ALINK_COLOR" => $selected['body_alink'],
"BODY_HLINK_COLOR" => $selected['body_hlink'],
"TR_COLOR1" => $selected['tr_color1'],
"TR_COLOR2" => $selected['tr_color2'],
"TR_COLOR3" => $selected['tr_color3'],
"TR_CLASS1" => $selected['tr_class1'],
"TR_CLASS2" => $selected['tr_class2'],
"TR_CLASS3" => $selected['tr_class3'],
"TH_COLOR1" => $selected['th_color1'],
"TH_COLOR2" => $selected['th_color2'],
"TH_COLOR3" => $selected['th_color3'],
"TH_CLASS1" => $selected['th_class1'],
"TH_CLASS2" => $selected['th_class2'],
"TH_CLASS3" => $selected['th_class3'],
"TD_COLOR1" => $selected['td_color1'],
"TD_COLOR2" => $selected['td_color2'],
"TD_COLOR3" => $selected['td_color3'],
"TD_CLASS1" => $selected['td_class1'],
"TD_CLASS2" => $selected['td_class2'],
"TD_CLASS3" => $selected['td_class3'],
"FONTFACE1" => $selected['fontface1'],
"FONTFACE2" => $selected['fontface2'],
"FONTFACE3" => $selected['fontface3'],
"FONTSIZE1" => $selected['fontsize1'],
"FONTSIZE2" => $selected['fontsize2'],
"FONTSIZE3" => $selected['fontsize3'],
"FONTCOLOR1" => $selected['fontcolor1'],
"FONTCOLOR2" => $selected['fontcolor2'],
"FONTCOLOR3" => $selected['fontcolor3'],
"SPAN_CLASS1" => $selected['span_class1'],
"SPAN_CLASS2" => $selected['span_class2'],
"SPAN_CLASS3" => $selected['span_class3'],
"TR_COLOR1_NAME" => $selected['tr_color1_name'],
"TR_COLOR2_NAME" => $selected['tr_color2_name'],
"TR_COLOR3_NAME" => $selected['tr_color3_name'],
"TR_CLASS1_NAME" => $selected['tr_class1_name'],
"TR_CLASS2_NAME" => $selected['tr_class2_name'],
"TR_CLASS3_NAME" => $selected['tr_class3_name'],
"TH_COLOR1_NAME" => $selected['th_color1_name'],
"TH_COLOR2_NAME" => $selected['th_color2_name'],
"TH_COLOR3_NAME" => $selected['th_color3_name'],
"TH_CLASS1_NAME" => $selected['th_class1_name'],
"TH_CLASS2_NAME" => $selected['th_class2_name'],
"TH_CLASS3_NAME" => $selected['th_class3_name'],
"TD_COLOR1_NAME" => $selected['td_color1_name'],
"TD_COLOR2_NAME" => $selected['td_color2_name'],
"TD_COLOR3_NAME" => $selected['td_color3_name'],
"TD_CLASS1_NAME" => $selected['td_class1_name'],
"TD_CLASS2_NAME" => $selected['td_class2_name'],
"TD_CLASS3_NAME" => $selected['td_class3_name'],
"FONTFACE1_NAME" => $selected['fontface1_name'],
"FONTFACE2_NAME" => $selected['fontface2_name'],
"FONTFACE3_NAME" => $selected['fontface3_name'],
"FONTSIZE1_NAME" => $selected['fontsize1_name'],
"FONTSIZE2_NAME" => $selected['fontsize2_name'],
"FONTSIZE3_NAME" => $selected['fontsize3_name'],
"FONTCOLOR1_NAME" => $selected['fontcolor1_name'],
"FONTCOLOR2_NAME" => $selected['fontcolor2_name'],
"FONTCOLOR3_NAME" => $selected['fontcolor3_name'],
"SPAN_CLASS1_NAME" => $selected['span_class1_name'],
"SPAN_CLASS2_NAME" => $selected['span_class2_name'],
"SPAN_CLASS3_NAME" => $selected['span_class3_name'],
"S_THEME_ACTION" => append_sid("admin_styles.$phpEx"),
"S_TEMPLATE_SELECT" => $s_template_select,
"S_HIDDEN_FIELDS" => $s_hidden_fields)
);
$template->pparse("body");
}
break;
case "export";
if($HTTP_POST_VARS['export_template'])
{
$template_name = $HTTP_POST_VARS['export_template'];
$sql = "SELECT *
FROM " . THEMES_TABLE . "
WHERE template_name = '" . str_replace("\'", "''", $template_name) . "'";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not get theme data for selected template", "", __LINE__, __FILE__, $sql);
}
$theme_rowset = $db->sql_fetchrowset($result);
if( count($theme_rowset) == 0 )
{
message_die(GENERAL_MESSAGE, $lang['No_themes']);
}
$theme_data = '<?php'."\n\n";
$theme_data .= "//\n// phpBB 2.x auto-generated theme config file for $template_name\n// Do not change anything in this file!\n//\n\n";
for($i = 0; $i < count($theme_rowset); $i++)
{
while(list($key, $val) = each($theme_rowset[$i]))
{
if(!intval($key) && $key != "0" && $key != "themes_id")
{
$theme_data .= '$' . $template_name . "[$i]['$key'] = \"" . addslashes($val) . "\";\n";
}
}
$theme_data .= "\n";
}
$theme_data .= '?' . '>'; // Done this to prevent highlighting editors getting confused!
@umask(0111);
$fp = @fopen($phpbb_root_path . 'templates/' . basename($template_name) . '/theme_info.cfg', 'w');
if( !$fp )
{
//
// Unable to open the file writeable do something here as an attempt
// to get around that...
//
$s_hidden_fields = '<input type="hidden" name="theme_info" value="' . htmlspecialchars($theme_data) . '" />';
$s_hidden_fields .= '<input type="hidden" name="send_file" value="1" /><input type="hidden" name="mode" value="export" />';
$download_form = '<form action="' . append_sid("admin_styles.$phpEx") . '" method="post"><input class="mainoption" type="submit" name="submit" value="' . $lang['Download'] . '" />' . $s_hidden_fields;
$template->set_filenames(array(
"body" => "message_body.tpl")
);
$template->assign_vars(array(
"MESSAGE_TITLE" => $lang['Export_themes'],
"MESSAGE_TEXT" => $lang['Download_theme_cfg'] . "<br /><br />" . $download_form)
);
$template->pparse('body');
exit();
}
$result = @fputs($fp, $theme_data, strlen($theme_data));
fclose($fp);
$message = $lang['Theme_info_saved'] . "<br /><br />" . sprintf($lang['Click_return_styleadmin'], "<a href=\"" . append_sid("admin_styles.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
else if($HTTP_POST_VARS['send_file'])
{
header("Content-Type: text/x-delimtext; name=\"theme_info.cfg\"");
header("Content-disposition: attachment; filename=theme_info.cfg");
echo stripslashes($HTTP_POST_VARS['theme_info']);
}
else
{
$template->set_filenames(array(
"body" => "admin/styles_exporter.tpl")
);
if( $dir = @opendir($phpbb_root_path . 'templates/') )
{
$s_template_select = '<select name="export_template">';
while( $file = @readdir($dir) )
{
if( !is_file(phpbb_realpath($phpbb_root_path . 'templates/' . $file)) && !is_link(phpbb_realpath($phpbb_root_path . 'templates/' .$file)) && $file != "." && $file != ".." && $file != "CVS" )
{
$s_template_select .= '<option value="' . $file . '">' . $file . "</option>\n";
}
}
$s_template_select .= '</select>';
}
else
{
message_die(GENERAL_MESSAGE, $lang['No_template_dir']);
}
$template->assign_vars(array(
"L_STYLE_EXPORTER" => $lang['Export_themes'],
"L_EXPORTER_EXPLAIN" => $lang['Export_explain'],
"L_TEMPLATE_SELECT" => $lang['Select_template'],
"L_SUBMIT" => $lang['Submit'],
"S_EXPORTER_ACTION" => append_sid("admin_styles.$phpEx?mode=export"),
"S_TEMPLATE_SELECT" => $s_template_select)
);
$template->pparse("body");
}
break;
case "delete":
$style_id = ( isset($HTTP_GET_VARS['style_id']) ) ? intval($HTTP_GET_VARS['style_id']) : intval($HTTP_POST_VARS['style_id']);
if( !$confirm )
{
if($style_id == $board_config['default_style'])
{
message_die(GENERAL_MESSAGE, $lang['Cannot_remove_style']);
}
$hidden_fields = '<input type="hidden" name="mode" value="'.$mode.'" /><input type="hidden" name="style_id" value="'.$style_id.'" />';
//
// Set template files
//
$template->set_filenames(array(
"confirm" => "confirm_body.tpl")
);
$template->assign_vars(array(
"MESSAGE_TITLE" => $lang['Confirm'],
"MESSAGE_TEXT" => $lang['Confirm_delete_style'],
"L_YES" => $lang['Yes'],
"L_NO" => $lang['No'],
"S_CONFIRM_ACTION" => append_sid("admin_styles.$phpEx"),
"S_HIDDEN_FIELDS" => $hidden_fields)
);
$template->pparse("confirm");
}
else
{
//
// The user has confirmed the delete. Remove the style, the style element
// names and update any users who might be using this style
//
$sql = "DELETE FROM " . THEMES_TABLE . "
WHERE themes_id = $style_id";
if(!$result = $db->sql_query($sql, BEGIN_TRANSACTION))
{
message_die(GENERAL_ERROR, "Could not remove style data!", "", __LINE__, __FILE__, $sql);
}
//
// There may not be any theme name data so don't throw an error
// if the SQL dosan't work
//
$sql = "DELETE FROM " . THEMES_NAME_TABLE . "
WHERE themes_id = $style_id";
$db->sql_query($sql);
$sql = "UPDATE " . USERS_TABLE . "
SET user_style = " . $board_config['default_style'] . "
WHERE user_style = $style_id";
if(!$result = $db->sql_query($sql, END_TRANSACTION))
{
message_die(GENERAL_ERROR, "Could not update user style information", "", __LINE__, __FILE__, $sql);
}
$message = $lang['Style_removed'] . "<br /><br />" . sprintf($lang['Click_return_styleadmin'], "<a href=\"" . append_sid("admin_styles.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
break;
default:
$sql = "SELECT themes_id, template_name, style_name
FROM " . THEMES_TABLE . "
ORDER BY template_name";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not get style information!", "", __LINE__, __FILE__, $sql);
}
$style_rowset = $db->sql_fetchrowset($result);
$template->set_filenames(array(
"body" => "admin/styles_list_body.tpl")
);
$template->assign_vars(array(
"L_STYLES_TITLE" => $lang['Styles_admin'],
"L_STYLES_TEXT" => $lang['Styles_explain'],
"L_STYLE" => $lang['Style'],
"L_TEMPLATE" => $lang['Template'],
"L_EDIT" => $lang['Edit'],
"L_DELETE" => $lang['Delete'])
);
for($i = 0; $i < count($style_rowset); $i++)
{
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars("styles", array(
"ROW_CLASS" => $row_class,
"ROW_COLOR" => $row_color,
"STYLE_NAME" => $style_rowset[$i]['style_name'],
"TEMPLATE_NAME" => $style_rowset[$i]['template_name'],
"U_STYLES_EDIT" => append_sid("admin_styles.$phpEx?mode=edit&amp;style_id=" . $style_rowset[$i]['themes_id']),
"U_STYLES_DELETE" => append_sid("admin_styles.$phpEx?mode=delete&amp;style_id=" . $style_rowset[$i]['themes_id']))
);
}
$template->pparse("body");
break;
}
if (empty($HTTP_POST_VARS['send_file']))
{
include('./page_footer_admin.'.$phpEx);
}
?>

View File

@@ -0,0 +1,990 @@
<?php
/***************************************************************************
* admin_ug_auth.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
$filename = basename(__FILE__);
$module['Users']['Permissions'] = $filename . "?mode=user";
$module['Groups']['Permissions'] = $filename . "?mode=group";
return;
}
//
// Load default header
//
$no_page_header = TRUE;
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
$params = array('mode' => 'mode', 'user_id' => POST_USERS_URL, 'group_id' => POST_GROUPS_URL, 'adv' => 'adv');
while( list($var, $param) = @each($params) )
{
if ( !empty($HTTP_POST_VARS[$param]) || !empty($HTTP_GET_VARS[$param]) )
{
$$var = ( !empty($HTTP_POST_VARS[$param]) ) ? $HTTP_POST_VARS[$param] : $HTTP_GET_VARS[$param];
}
else
{
$$var = "";
}
}
$user_id = intval($user_id);
$group_id = intval($group_id);
$adv = intval($adv);
$mode = htmlspecialchars($mode);
//
// Start program - define vars
//
$forum_auth_fields = array('auth_view', 'auth_read', 'auth_post', 'auth_reply', 'auth_edit', 'auth_delete', 'auth_sticky', 'auth_announce', 'auth_vote', 'auth_pollcreate');
$auth_field_match = array(
'auth_view' => AUTH_VIEW,
'auth_read' => AUTH_READ,
'auth_post' => AUTH_POST,
'auth_reply' => AUTH_REPLY,
'auth_edit' => AUTH_EDIT,
'auth_delete' => AUTH_DELETE,
'auth_sticky' => AUTH_STICKY,
'auth_announce' => AUTH_ANNOUNCE,
'auth_vote' => AUTH_VOTE,
'auth_pollcreate' => AUTH_POLLCREATE);
$field_names = array(
'auth_view' => $lang['View'],
'auth_read' => $lang['Read'],
'auth_post' => $lang['Post'],
'auth_reply' => $lang['Reply'],
'auth_edit' => $lang['Edit'],
'auth_delete' => $lang['Delete'],
'auth_sticky' => $lang['Sticky'],
'auth_announce' => $lang['Announce'],
'auth_vote' => $lang['Vote'],
'auth_pollcreate' => $lang['Pollcreate']);
// ---------------
// Start Functions
//
function check_auth($type, $key, $u_access, $is_admin)
{
$auth_user = 0;
if( count($u_access) )
{
for($j = 0; $j < count($u_access); $j++)
{
$result = 0;
switch($type)
{
case AUTH_ACL:
$result = $u_access[$j][$key];
case AUTH_MOD:
$result = $result || $u_access[$j]['auth_mod'];
case AUTH_ADMIN:
$result = $result || $is_admin;
break;
}
$auth_user = $auth_user || $result;
}
}
else
{
$auth_user = $is_admin;
}
return $auth_user;
}
//
// End Functions
// -------------
if ( isset($HTTP_POST_VARS['submit']) && ( ( $mode == 'user' && $user_id ) || ( $mode == 'group' && $group_id ) ) )
{
$user_level = '';
if ( $mode == 'user' )
{
//
// Get group_id for this user_id
//
$sql = "SELECT g.group_id, u.user_level
FROM " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u, " . GROUPS_TABLE . " g
WHERE u.user_id = $user_id
AND ug.user_id = u.user_id
AND g.group_id = ug.group_id
AND g.group_single_user = " . TRUE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select info from user/user_group table', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$group_id = $row['group_id'];
$user_level = $row['user_level'];
$db->sql_freeresult($result);
}
//
// Carry out requests
//
if ( $mode == 'user' && $HTTP_POST_VARS['userlevel'] == 'admin' && $user_level != ADMIN )
{
//
// Make user an admin (if already user)
//
if ( $userdata['user_id'] != $user_id )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_level = " . ADMIN . "
WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . AUTH_ACCESS_TABLE . "
WHERE group_id = $group_id
AND auth_mod = 0";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't delete auth access info", "", __LINE__, __FILE__, $sql);
}
//
// Delete any entries in auth_access, they are not required if user is becoming an
// admin
//
$sql = "UPDATE " . AUTH_ACCESS_TABLE . "
SET auth_view = 0, auth_read = 0, auth_post = 0, auth_reply = 0, auth_edit = 0, auth_delete = 0, auth_sticky = 0, auth_announce = 0
WHERE group_id = $group_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update auth access", "", __LINE__, __FILE__, $sql);
}
}
$message = $lang['Auth_updated'] . '<br /><br />' . sprintf($lang['Click_return_userauth'], '<a href="' . append_sid("admin_ug_auth.$phpEx?mode=$mode") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
else
{
if ( $mode == 'user' && $HTTP_POST_VARS['userlevel'] == 'user' && $user_level == ADMIN )
{
//
// Make admin a user (if already admin) ... ignore if you're trying
// to change yourself from an admin to user!
//
if ( $userdata['user_id'] != $user_id )
{
$sql = "UPDATE " . AUTH_ACCESS_TABLE . "
SET auth_view = 0, auth_read = 0, auth_post = 0, auth_reply = 0, auth_edit = 0, auth_delete = 0, auth_sticky = 0, auth_announce = 0
WHERE group_id = $group_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update auth access', '', __LINE__, __FILE__, $sql);
}
//
// Update users level, reset to USER
//
$sql = "UPDATE " . USERS_TABLE . "
SET user_level = " . USER . "
WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql);
}
}
$message = $lang['Auth_updated'] . '<br /><br />' . sprintf($lang['Click_return_userauth'], '<a href="' . append_sid("admin_ug_auth.$phpEx?mode=$mode") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
}
else
{
$change_mod_list = ( isset($HTTP_POST_VARS['moderator']) ) ? $HTTP_POST_VARS['moderator'] : false;
if ( empty($adv) )
{
$change_acl_list = ( isset($HTTP_POST_VARS['private']) ) ? $HTTP_POST_VARS['private'] : false;
}
else
{
$change_acl_list = array();
for($j = 0; $j < count($forum_auth_fields); $j++)
{
$auth_field = $forum_auth_fields[$j];
while( list($forum_id, $value) = @each($HTTP_POST_VARS['private_' . $auth_field]) )
{
$change_acl_list[$forum_id][$auth_field] = $value;
}
}
}
$sql = "SELECT *
FROM " . FORUMS_TABLE . " f
ORDER BY forum_order";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain forum information", "", __LINE__, __FILE__, $sql);
}
$forum_access = array();
while( $row = $db->sql_fetchrow($result) )
{
$forum_access[] = $row;
}
$db->sql_freeresult($result);
$sql = ( $mode == 'user' ) ? "SELECT aa.* FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE. " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND aa.group_id = ug.group_id AND g.group_single_user = " . TRUE : "SELECT * FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = $group_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql);
}
$auth_access = array();
while( $row = $db->sql_fetchrow($result) )
{
$auth_access[$row['forum_id']] = $row;
}
$db->sql_freeresult($result);
$forum_auth_action = array();
$update_acl_status = array();
$update_mod_status = array();
for($i = 0; $i < count($forum_access); $i++)
{
$forum_id = $forum_access[$i]['forum_id'];
if (
( isset($auth_access[$forum_id]['auth_mod']) && $change_mod_list[$forum_id]['auth_mod'] != $auth_access[$forum_id]['auth_mod'] ) ||
( !isset($auth_access[$forum_id]['auth_mod']) && !empty($change_mod_list[$forum_id]['auth_mod']) )
)
{
$update_mod_status[$forum_id] = $change_mod_list[$forum_id]['auth_mod'];
if ( !$update_mod_status[$forum_id] )
{
$forum_auth_action[$forum_id] = 'delete';
}
else if ( !isset($auth_access[$forum_id]['auth_mod']) )
{
$forum_auth_action[$forum_id] = 'insert';
}
else
{
$forum_auth_action[$forum_id] = 'update';
}
}
for($j = 0; $j < count($forum_auth_fields); $j++)
{
$auth_field = $forum_auth_fields[$j];
if( $forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id][$auth_field]) )
{
if ( ( empty($auth_access[$forum_id]['auth_mod']) &&
( isset($auth_access[$forum_id][$auth_field]) && $change_acl_list[$forum_id][$auth_field] != $auth_access[$forum_id][$auth_field] ) ||
( !isset($auth_access[$forum_id][$auth_field]) && !empty($change_acl_list[$forum_id][$auth_field]) ) ) ||
!empty($update_mod_status[$forum_id])
)
{
$update_acl_status[$forum_id][$auth_field] = ( !empty($update_mod_status[$forum_id]) ) ? 0 : $change_acl_list[$forum_id][$auth_field];
if ( isset($auth_access[$forum_id][$auth_field]) && empty($update_acl_status[$forum_id][$auth_field]) && $forum_auth_action[$forum_id] != 'insert' && $forum_auth_action[$forum_id] != 'update' )
{
$forum_auth_action[$forum_id] = 'delete';
}
else if ( !isset($auth_access[$forum_id][$auth_field]) && !( $forum_auth_action[$forum_id] == 'delete' && empty($update_acl_status[$forum_id][$auth_field]) ) )
{
$forum_auth_action[$forum_id] = 'insert';
}
else if ( isset($auth_access[$forum_id][$auth_field]) && !empty($update_acl_status[$forum_id][$auth_field]) )
{
$forum_auth_action[$forum_id] = 'update';
}
}
else if ( ( empty($auth_access[$forum_id]['auth_mod']) &&
( isset($auth_access[$forum_id][$auth_field]) && $change_acl_list[$forum_id][$auth_field] == $auth_access[$forum_id][$auth_field] ) ) && $forum_auth_action[$forum_id] == 'delete' )
{
$forum_auth_action[$forum_id] = 'update';
}
}
}
}
//
// Checks complete, make updates to DB
//
$delete_sql = '';
while( list($forum_id, $action) = @each($forum_auth_action) )
{
if ( $action == 'delete' )
{
$delete_sql .= ( ( $delete_sql != '' ) ? ', ' : '' ) . $forum_id;
}
else
{
if ( $action == 'insert' )
{
$sql_field = '';
$sql_value = '';
while ( list($auth_type, $value) = @each($update_acl_status[$forum_id]) )
{
$sql_field .= ( ( $sql_field != '' ) ? ', ' : '' ) . $auth_type;
$sql_value .= ( ( $sql_value != '' ) ? ', ' : '' ) . $value;
}
$sql_field .= ( ( $sql_field != '' ) ? ', ' : '' ) . 'auth_mod';
$sql_value .= ( ( $sql_value != '' ) ? ', ' : '' ) . ( ( !isset($update_mod_status[$forum_id]) ) ? 0 : $update_mod_status[$forum_id]);
$sql = "INSERT INTO " . AUTH_ACCESS_TABLE . " (forum_id, group_id, $sql_field)
VALUES ($forum_id, $group_id, $sql_value)";
}
else
{
$sql_values = '';
while ( list($auth_type, $value) = @each($update_acl_status[$forum_id]) )
{
$sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . $auth_type . ' = ' . $value;
}
$sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . 'auth_mod = ' . ( ( !isset($update_mod_status[$forum_id]) ) ? 0 : $update_mod_status[$forum_id]);
$sql = "UPDATE " . AUTH_ACCESS_TABLE . "
SET $sql_values
WHERE group_id = $group_id
AND forum_id = $forum_id";
}
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update private forum permissions", "", __LINE__, __FILE__, $sql);
}
}
}
if ( $delete_sql != '' )
{
$sql = "DELETE FROM " . AUTH_ACCESS_TABLE . "
WHERE group_id = $group_id
AND forum_id IN ($delete_sql)";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't delete permission entries", "", __LINE__, __FILE__, $sql);
}
}
$l_auth_return = ( $mode == 'user' ) ? $lang['Click_return_userauth'] : $lang['Click_return_groupauth'];
$message = $lang['Auth_updated'] . '<br /><br />' . sprintf($l_auth_return, '<a href="' . append_sid("admin_ug_auth.$phpEx?mode=$mode") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
}
//
// Update user level to mod for appropriate users
//
$sql = "SELECT u.user_id
FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u
WHERE ug.group_id = aa.group_id
AND u.user_id = ug.user_id
AND u.user_level NOT IN (" . MOD . ", " . ADMIN . ")
GROUP BY u.user_id
HAVING SUM(aa.auth_mod) > 0";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql);
}
$set_mod = '';
while( $row = $db->sql_fetchrow($result) )
{
$set_mod .= ( ( $set_mod != '' ) ? ', ' : '' ) . $row['user_id'];
}
$db->sql_freeresult($result);
//
// Update user level to user for appropriate users
//
switch ( SQL_LAYER )
{
case 'postgresql':
$sql = "SELECT u.user_id
FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa
WHERE ug.user_id = u.user_id
AND aa.group_id = ug.group_id
AND u.user_level NOT IN (" . USER . ", " . ADMIN . ")
GROUP BY u.user_id
HAVING SUM(aa.auth_mod) = 0
UNION (
SELECT u.user_id
FROM " . USERS_TABLE . " u
WHERE NOT EXISTS (
SELECT aa.auth_mod
FROM " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa
WHERE ug.user_id = u.user_id
AND aa.group_id = ug.group_id
)
AND u.user_level NOT IN (" . USER . ", " . ADMIN . ")
GROUP BY u.user_id
)";
break;
case 'oracle':
$sql = "SELECT u.user_id
FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa
WHERE ug.user_id = u.user_id(+)
AND aa.group_id = ug.group_id(+)
AND u.user_level NOT IN (" . USER . ", " . ADMIN . ")
GROUP BY u.user_id
HAVING SUM(aa.auth_mod) = 0";
break;
default:
$sql = "SELECT u.user_id
FROM ( ( " . USERS_TABLE . " u
LEFT JOIN " . USER_GROUP_TABLE . " ug ON ug.user_id = u.user_id )
LEFT JOIN " . AUTH_ACCESS_TABLE . " aa ON aa.group_id = ug.group_id )
WHERE u.user_level NOT IN (" . USER . ", " . ADMIN . ")
GROUP BY u.user_id
HAVING SUM(aa.auth_mod) = 0";
break;
}
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql);
}
$unset_mod = "";
while( $row = $db->sql_fetchrow($result) )
{
$unset_mod .= ( ( $unset_mod != '' ) ? ', ' : '' ) . $row['user_id'];
}
$db->sql_freeresult($result);
if ( $set_mod != '' )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_level = " . MOD . "
WHERE user_id IN ($set_mod)";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update user level", "", __LINE__, __FILE__, $sql);
}
}
if ( $unset_mod != '' )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_level = " . USER . "
WHERE user_id IN ($unset_mod)";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update user level", "", __LINE__, __FILE__, $sql);
}
}
$sql = 'SELECT user_id FROM ' . USER_GROUP_TABLE . "
WHERE group_id = $group_id";
$result = $db->sql_query($sql);
$group_user = array();
while ($row = $db->sql_fetchrow($result))
{
$group_user[$row['user_id']] = $row['user_id'];
}
$db->sql_freeresult($result);
$sql = "SELECT ug.user_id, COUNT(auth_mod) AS is_auth_mod
FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug
WHERE ug.user_id IN (" . implode(', ', $group_user) . ")
AND aa.group_id = ug.group_id
AND aa.auth_mod = 1
GROUP BY ug.user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain moderator status', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result))
{
if ($row['is_auth_mod'])
{
unset($group_user[$row['user_id']]);
}
}
$db->sql_freeresult($result);
if (sizeof($group_user))
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_level = " . USER . "
WHERE user_id IN (" . implode(', ', $group_user) . ") AND user_level = " . MOD;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql);
}
}
message_die(GENERAL_MESSAGE, $message);
}
}
else if ( ( $mode == 'user' && ( isset($HTTP_POST_VARS['username']) || $user_id ) ) || ( $mode == 'group' && $group_id ) )
{
if ( isset($HTTP_POST_VARS['username']) )
{
$this_userdata = get_userdata($HTTP_POST_VARS['username'], true);
if ( !is_array($this_userdata) )
{
message_die(GENERAL_MESSAGE, $lang['No_such_user']);
}
$user_id = $this_userdata['user_id'];
}
//
// Front end
//
$sql = "SELECT *
FROM " . FORUMS_TABLE . " f
ORDER BY forum_order";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain forum information", "", __LINE__, __FILE__, $sql);
}
$forum_access = array();
while( $row = $db->sql_fetchrow($result) )
{
$forum_access[] = $row;
}
$db->sql_freeresult($result);
if( empty($adv) )
{
for($i = 0; $i < count($forum_access); $i++)
{
$forum_id = $forum_access[$i]['forum_id'];
$forum_auth_level[$forum_id] = AUTH_ALL;
for($j = 0; $j < count($forum_auth_fields); $j++)
{
$forum_access[$i][$forum_auth_fields[$j]] . ' :: ';
if ( $forum_access[$i][$forum_auth_fields[$j]] == AUTH_ACL )
{
$forum_auth_level[$forum_id] = AUTH_ACL;
$forum_auth_level_fields[$forum_id][] = $forum_auth_fields[$j];
}
}
}
}
$sql = "SELECT u.user_id, u.username, u.user_level, g.group_id, g.group_name, g.group_single_user FROM " . USERS_TABLE . " u, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug WHERE ";
$sql .= ( $mode == 'user' ) ? "u.user_id = $user_id AND ug.user_id = u.user_id AND g.group_id = ug.group_id" : "g.group_id = $group_id AND ug.group_id = g.group_id AND u.user_id = ug.user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain user/group information", "", __LINE__, __FILE__, $sql);
}
$ug_info = array();
while( $row = $db->sql_fetchrow($result) )
{
$ug_info[] = $row;
}
$db->sql_freeresult($result);
$sql = ( $mode == 'user' ) ? "SELECT aa.*, g.group_single_user FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE. " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND aa.group_id = ug.group_id AND g.group_single_user = 1" : "SELECT * FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = $group_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql);
}
$auth_access = array();
$auth_access_count = array();
while( $row = $db->sql_fetchrow($result) )
{
$auth_access[$row['forum_id']][] = $row;
$auth_access_count[$row['forum_id']]++;
}
$db->sql_freeresult($result);
$is_admin = ( $mode == 'user' ) ? ( ( $ug_info[0]['user_level'] == ADMIN && $ug_info[0]['user_id'] != ANONYMOUS ) ? 1 : 0 ) : 0;
for($i = 0; $i < count($forum_access); $i++)
{
$forum_id = $forum_access[$i]['forum_id'];
unset($prev_acl_setting);
for($j = 0; $j < count($forum_auth_fields); $j++)
{
$key = $forum_auth_fields[$j];
$value = $forum_access[$i][$key];
switch( $value )
{
case AUTH_ALL:
case AUTH_REG:
$auth_ug[$forum_id][$key] = 1;
break;
case AUTH_ACL:
$auth_ug[$forum_id][$key] = ( !empty($auth_access_count[$forum_id]) ) ? check_auth(AUTH_ACL, $key, $auth_access[$forum_id], $is_admin) : 0;
$auth_field_acl[$forum_id][$key] = $auth_ug[$forum_id][$key];
if ( isset($prev_acl_setting) )
{
if ( $prev_acl_setting != $auth_ug[$forum_id][$key] && empty($adv) )
{
$adv = 1;
}
}
$prev_acl_setting = $auth_ug[$forum_id][$key];
break;
case AUTH_MOD:
$auth_ug[$forum_id][$key] = ( !empty($auth_access_count[$forum_id]) ) ? check_auth(AUTH_MOD, $key, $auth_access[$forum_id], $is_admin) : 0;
break;
case AUTH_ADMIN:
$auth_ug[$forum_id][$key] = $is_admin;
break;
default:
$auth_ug[$forum_id][$key] = 0;
break;
}
}
//
// Is user a moderator?
//
$auth_ug[$forum_id]['auth_mod'] = ( !empty($auth_access_count[$forum_id]) ) ? check_auth(AUTH_MOD, 'auth_mod', $auth_access[$forum_id], 0) : 0;
}
$i = 0;
@reset($auth_ug);
while( list($forum_id, $user_ary) = @each($auth_ug) )
{
if ( empty($adv) )
{
if ( $forum_auth_level[$forum_id] == AUTH_ACL )
{
$allowed = 1;
for($j = 0; $j < count($forum_auth_level_fields[$forum_id]); $j++)
{
if ( !$auth_ug[$forum_id][$forum_auth_level_fields[$forum_id][$j]] )
{
$allowed = 0;
}
}
$optionlist_acl = '<select name="private[' . $forum_id . ']">';
if ( $is_admin || $user_ary['auth_mod'] )
{
$optionlist_acl .= '<option value="1">' . $lang['Allowed_Access'] . '</option>';
}
else if ( $allowed )
{
$optionlist_acl .= '<option value="1" selected="selected">' . $lang['Allowed_Access'] . '</option><option value="0">'. $lang['Disallowed_Access'] . '</option>';
}
else
{
$optionlist_acl .= '<option value="1">' . $lang['Allowed_Access'] . '</option><option value="0" selected="selected">' . $lang['Disallowed_Access'] . '</option>';
}
$optionlist_acl .= '</select>';
}
else
{
$optionlist_acl = '&nbsp;';
}
}
else
{
for($j = 0; $j < count($forum_access); $j++)
{
if ( $forum_access[$j]['forum_id'] == $forum_id )
{
for($k = 0; $k < count($forum_auth_fields); $k++)
{
$field_name = $forum_auth_fields[$k];
if( $forum_access[$j][$field_name] == AUTH_ACL )
{
$optionlist_acl_adv[$forum_id][$k] = '<select name="private_' . $field_name . '[' . $forum_id . ']">';
if( isset($auth_field_acl[$forum_id][$field_name]) && !($is_admin || $user_ary['auth_mod']) )
{
if( !$auth_field_acl[$forum_id][$field_name] )
{
$optionlist_acl_adv[$forum_id][$k] .= '<option value="1">' . $lang['ON'] . '</option><option value="0" selected="selected">' . $lang['OFF'] . '</option>';
}
else
{
$optionlist_acl_adv[$forum_id][$k] .= '<option value="1" selected="selected">' . $lang['ON'] . '</option><option value="0">' . $lang['OFF'] . '</option>';
}
}
else
{
if( $is_admin || $user_ary['auth_mod'] )
{
$optionlist_acl_adv[$forum_id][$k] .= '<option value="1">' . $lang['ON'] . '</option>';
}
else
{
$optionlist_acl_adv[$forum_id][$k] .= '<option value="1">' . $lang['ON'] . '</option><option value="0" selected="selected">' . $lang['OFF'] . '</option>';
}
}
$optionlist_acl_adv[$forum_id][$k] .= '</select>';
}
}
}
}
}
$optionlist_mod = '<select name="moderator[' . $forum_id . ']">';
$optionlist_mod .= ( $user_ary['auth_mod'] ) ? '<option value="1" selected="selected">' . $lang['Is_Moderator'] . '</option><option value="0">' . $lang['Not_Moderator'] . '</option>' : '<option value="1">' . $lang['Is_Moderator'] . '</option><option value="0" selected="selected">' . $lang['Not_Moderator'] . '</option>';
$optionlist_mod .= '</select>';
$row_class = ( !( $i % 2 ) ) ? 'row2' : 'row1';
$row_color = ( !( $i % 2 ) ) ? $theme['td_color1'] : $theme['td_color2'];
$template->assign_block_vars('forums', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FORUM_NAME' => $forum_access[$i]['forum_name'],
'U_FORUM_AUTH' => append_sid("admin_forumauth.$phpEx?f=" . $forum_access[$i]['forum_id']),
'S_MOD_SELECT' => $optionlist_mod)
);
if( !$adv )
{
$template->assign_block_vars('forums.aclvalues', array(
'S_ACL_SELECT' => $optionlist_acl)
);
}
else
{
for($j = 0; $j < count($forum_auth_fields); $j++)
{
$template->assign_block_vars('forums.aclvalues', array(
'S_ACL_SELECT' => $optionlist_acl_adv[$forum_id][$j])
);
}
}
$i++;
}
@reset($auth_user);
if ( $mode == 'user' )
{
$t_username = $ug_info[0]['username'];
$s_user_type = ( $is_admin ) ? '<select name="userlevel"><option value="admin" selected="selected">' . $lang['Auth_Admin'] . '</option><option value="user">' . $lang['Auth_User'] . '</option></select>' : '<select name="userlevel"><option value="admin">' . $lang['Auth_Admin'] . '</option><option value="user" selected="selected">' . $lang['Auth_User'] . '</option></select>';
}
else
{
$t_groupname = $ug_info[0]['group_name'];
}
$name = array();
$id = array();
for($i = 0; $i < count($ug_info); $i++)
{
if( ( $mode == 'user' && !$ug_info[$i]['group_single_user'] ) || $mode == 'group' )
{
$name[] = ( $mode == 'user' ) ? $ug_info[$i]['group_name'] : $ug_info[$i]['username'];
$id[] = ( $mode == 'user' ) ? intval($ug_info[$i]['group_id']) : intval($ug_info[$i]['user_id']);
}
}
if( count($name) )
{
$t_usergroup_list = '';
for($i = 0; $i < count($ug_info); $i++)
{
$ug = ( $mode == 'user' ) ? 'group&amp;' . POST_GROUPS_URL : 'user&amp;' . POST_USERS_URL;
$t_usergroup_list .= ( ( $t_usergroup_list != '' ) ? ', ' : '' ) . '<a href="' . append_sid("admin_ug_auth.$phpEx?mode=$ug=" . $id[$i]) . '">' . $name[$i] . '</a>';
}
}
else
{
$t_usergroup_list = $lang['None'];
}
$s_column_span = 2; // Two columns always present
if( !$adv )
{
$template->assign_block_vars('acltype', array(
'L_UG_ACL_TYPE' => $lang['Simple_Permission'])
);
$s_column_span++;
}
else
{
for($i = 0; $i < count($forum_auth_fields); $i++)
{
$cell_title = $field_names[$forum_auth_fields[$i]];
$template->assign_block_vars('acltype', array(
'L_UG_ACL_TYPE' => $cell_title)
);
$s_column_span++;
}
}
//
// Dump in the page header ...
//
include('./page_header_admin.'.$phpEx);
$template->set_filenames(array(
"body" => 'admin/auth_ug_body.tpl')
);
$adv_switch = ( empty($adv) ) ? 1 : 0;
$u_ug_switch = ( $mode == 'user' ) ? POST_USERS_URL . "=" . $user_id : POST_GROUPS_URL . "=" . $group_id;
$switch_mode = append_sid("admin_ug_auth.$phpEx?mode=$mode&amp;" . $u_ug_switch . "&amp;adv=$adv_switch");
$switch_mode_text = ( empty($adv) ) ? $lang['Advanced_mode'] : $lang['Simple_mode'];
$u_switch_mode = '<a href="' . $switch_mode . '">' . $switch_mode_text . '</a>';
$s_hidden_fields = '<input type="hidden" name="mode" value="' . $mode . '" /><input type="hidden" name="adv" value="' . $adv . '" />';
$s_hidden_fields .= ( $mode == 'user' ) ? '<input type="hidden" name="' . POST_USERS_URL . '" value="' . $user_id . '" />' : '<input type="hidden" name="' . POST_GROUPS_URL . '" value="' . $group_id . '" />';
if ( $mode == 'user' )
{
$template->assign_block_vars('switch_user_auth', array());
$template->assign_vars(array(
'USERNAME' => $t_username,
'USER_LEVEL' => $lang['User_Level'] . " : " . $s_user_type,
'USER_GROUP_MEMBERSHIPS' => $lang['Group_memberships'] . ' : ' . $t_usergroup_list)
);
}
else
{
$template->assign_block_vars("switch_group_auth", array());
$template->assign_vars(array(
'USERNAME' => $t_groupname,
'GROUP_MEMBERSHIP' => $lang['Usergroup_members'] . ' : ' . $t_usergroup_list)
);
}
$template->assign_vars(array(
'L_USER_OR_GROUPNAME' => ( $mode == 'user' ) ? $lang['Username'] : $lang['Group_name'],
'L_AUTH_TITLE' => ( $mode == 'user' ) ? $lang['Auth_Control_User'] : $lang['Auth_Control_Group'],
'L_AUTH_EXPLAIN' => ( $mode == 'user' ) ? $lang['User_auth_explain'] : $lang['Group_auth_explain'],
'L_MODERATOR_STATUS' => $lang['Moderator_status'],
'L_PERMISSIONS' => $lang['Permissions'],
'L_SUBMIT' => $lang['Submit'],
'L_RESET' => $lang['Reset'],
'L_FORUM' => $lang['Forum'],
'U_USER_OR_GROUP' => append_sid("admin_ug_auth.$phpEx"),
'U_SWITCH_MODE' => $u_switch_mode,
'S_COLUMN_SPAN' => $s_column_span,
'S_AUTH_ACTION' => append_sid("admin_ug_auth.$phpEx"),
'S_HIDDEN_FIELDS' => $s_hidden_fields)
);
}
else
{
//
// Select a user/group
//
include('./page_header_admin.'.$phpEx);
$template->set_filenames(array(
'body' => ( $mode == 'user' ) ? 'admin/user_select_body.tpl' : 'admin/auth_select_body.tpl')
);
if ( $mode == 'user' )
{
$template->assign_vars(array(
'L_FIND_USERNAME' => $lang['Find_username'],
'U_SEARCH_USER' => append_sid("../search.$phpEx?mode=searchuser"))
);
}
else
{
$sql = "SELECT group_id, group_name
FROM " . GROUPS_TABLE . "
WHERE group_single_user <> " . TRUE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't get group list", "", __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
$select_list = '<select name="' . POST_GROUPS_URL . '">';
do
{
$select_list .= '<option value="' . $row['group_id'] . '">' . $row['group_name'] . '</option>';
}
while ( $row = $db->sql_fetchrow($result) );
$select_list .= '</select>';
}
$template->assign_vars(array(
'S_AUTH_SELECT' => $select_list)
);
}
$s_hidden_fields = '<input type="hidden" name="mode" value="' . $mode . '" />';
$l_type = ( $mode == 'user' ) ? 'USER' : 'AUTH';
$template->assign_vars(array(
'L_' . $l_type . '_TITLE' => ( $mode == 'user' ) ? $lang['Auth_Control_User'] : $lang['Auth_Control_Group'],
'L_' . $l_type . '_EXPLAIN' => ( $mode == 'user' ) ? $lang['User_auth_explain'] : $lang['Group_auth_explain'],
'L_' . $l_type . '_SELECT' => ( $mode == 'user' ) ? $lang['Select_a_User'] : $lang['Select_a_Group'],
'L_LOOK_UP' => ( $mode == 'user' ) ? $lang['Look_up_User'] : $lang['Look_up_Group'],
'S_HIDDEN_FIELDS' => $s_hidden_fields,
'S_' . $l_type . '_ACTION' => append_sid("admin_ug_auth.$phpEx"))
);
}
$template->pparse('body');
include('./page_footer_admin.'.$phpEx);
?>

View File

@@ -0,0 +1,452 @@
<?php
/***************************************************************************
* admin_user_ban.php
* -------------------
* begin : Tuesday, Jul 31, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', 1);
if ( !empty($setmodules) )
{
$filename = basename(__FILE__);
$module['Users']['Ban_Management'] = $filename;
return;
}
//
// Load default header
//
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
//
// Start program
//
if ( isset($HTTP_POST_VARS['submit']) )
{
$user_bansql = '';
$email_bansql = '';
$ip_bansql = '';
$user_list = array();
if ( !empty($HTTP_POST_VARS['username']) )
{
$this_userdata = get_userdata($HTTP_POST_VARS['username'], true);
if( !$this_userdata )
{
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );
}
$user_list[] = $this_userdata['user_id'];
}
$ip_list = array();
if ( isset($HTTP_POST_VARS['ban_ip']) )
{
$ip_list_temp = explode(',', $HTTP_POST_VARS['ban_ip']);
for($i = 0; $i < count($ip_list_temp); $i++)
{
if ( preg_match('/^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})[ ]*\-[ ]*([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/', trim($ip_list_temp[$i]), $ip_range_explode) )
{
//
// Don't ask about all this, just don't ask ... !
//
$ip_1_counter = $ip_range_explode[1];
$ip_1_end = $ip_range_explode[5];
while ( $ip_1_counter <= $ip_1_end )
{
$ip_2_counter = ( $ip_1_counter == $ip_range_explode[1] ) ? $ip_range_explode[2] : 0;
$ip_2_end = ( $ip_1_counter < $ip_1_end ) ? 254 : $ip_range_explode[6];
if ( $ip_2_counter == 0 && $ip_2_end == 254 )
{
$ip_2_counter = 255;
$ip_2_fragment = 255;
$ip_list[] = encode_ip("$ip_1_counter.255.255.255");
}
while ( $ip_2_counter <= $ip_2_end )
{
$ip_3_counter = ( $ip_2_counter == $ip_range_explode[2] && $ip_1_counter == $ip_range_explode[1] ) ? $ip_range_explode[3] : 0;
$ip_3_end = ( $ip_2_counter < $ip_2_end || $ip_1_counter < $ip_1_end ) ? 254 : $ip_range_explode[7];
if ( $ip_3_counter == 0 && $ip_3_end == 254 )
{
$ip_3_counter = 255;
$ip_3_fragment = 255;
$ip_list[] = encode_ip("$ip_1_counter.$ip_2_counter.255.255");
}
while ( $ip_3_counter <= $ip_3_end )
{
$ip_4_counter = ( $ip_3_counter == $ip_range_explode[3] && $ip_2_counter == $ip_range_explode[2] && $ip_1_counter == $ip_range_explode[1] ) ? $ip_range_explode[4] : 0;
$ip_4_end = ( $ip_3_counter < $ip_3_end || $ip_2_counter < $ip_2_end ) ? 254 : $ip_range_explode[8];
if ( $ip_4_counter == 0 && $ip_4_end == 254 )
{
$ip_4_counter = 255;
$ip_4_fragment = 255;
$ip_list[] = encode_ip("$ip_1_counter.$ip_2_counter.$ip_3_counter.255");
}
while ( $ip_4_counter <= $ip_4_end )
{
$ip_list[] = encode_ip("$ip_1_counter.$ip_2_counter.$ip_3_counter.$ip_4_counter");
$ip_4_counter++;
}
$ip_3_counter++;
}
$ip_2_counter++;
}
$ip_1_counter++;
}
}
else if ( preg_match('/^([\w\-_]\.?){2,}$/is', trim($ip_list_temp[$i])) )
{
$ip = gethostbynamel(trim($ip_list_temp[$i]));
for($j = 0; $j < count($ip); $j++)
{
if ( !empty($ip[$j]) )
{
$ip_list[] = encode_ip($ip[$j]);
}
}
}
else if ( preg_match('/^([0-9]{1,3})\.([0-9\*]{1,3})\.([0-9\*]{1,3})\.([0-9\*]{1,3})$/', trim($ip_list_temp[$i])) )
{
$ip_list[] = encode_ip(str_replace('*', '255', trim($ip_list_temp[$i])));
}
}
}
$email_list = array();
if ( isset($HTTP_POST_VARS['ban_email']) )
{
$email_list_temp = explode(',', $HTTP_POST_VARS['ban_email']);
for($i = 0; $i < count($email_list_temp); $i++)
{
//
// This ereg match is based on one by php@unreelpro.com
// contained in the annotated php manual at php.com (ereg
// section)
//
if (preg_match('#^(([a-z0-9&.-_+])|(\*))+@[a-z0-9\-]+\.([a-z0-9\-]+\.)*?[a-z]+$#is', trim($email_list_temp[$i])))
{
$email_list[] = trim($email_list_temp[$i]);
}
}
}
$sql = "SELECT *
FROM " . BANLIST_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain banlist information", "", __LINE__, __FILE__, $sql);
}
$current_banlist = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
$kill_session_sql = '';
for($i = 0; $i < count($user_list); $i++)
{
$in_banlist = false;
for($j = 0; $j < count($current_banlist); $j++)
{
if ( $user_list[$i] == $current_banlist[$j]['ban_userid'] )
{
$in_banlist = true;
}
}
if ( !$in_banlist )
{
$kill_session_sql .= ( ( $kill_session_sql != '' ) ? ' OR ' : '' ) . "session_user_id = " . $user_list[$i];
$sql = "INSERT INTO " . BANLIST_TABLE . " (ban_userid)
VALUES (" . $user_list[$i] . ")";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't insert ban_userid info into database", "", __LINE__, __FILE__, $sql);
}
}
}
for($i = 0; $i < count($ip_list); $i++)
{
$in_banlist = false;
for($j = 0; $j < count($current_banlist); $j++)
{
if ( $ip_list[$i] == $current_banlist[$j]['ban_ip'] )
{
$in_banlist = true;
}
}
if ( !$in_banlist )
{
if ( preg_match('/(ff\.)|(\.ff)/is', chunk_split($ip_list[$i], 2, '.')) )
{
$kill_ip_sql = "session_ip LIKE '" . str_replace('.', '', preg_replace('/(ff\.)|(\.ff)/is', '%', chunk_split($ip_list[$i], 2, "."))) . "'";
}
else
{
$kill_ip_sql = "session_ip = '" . $ip_list[$i] . "'";
}
$kill_session_sql .= ( ( $kill_session_sql != '' ) ? ' OR ' : '' ) . $kill_ip_sql;
$sql = "INSERT INTO " . BANLIST_TABLE . " (ban_ip)
VALUES ('" . $ip_list[$i] . "')";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't insert ban_ip info into database", "", __LINE__, __FILE__, $sql);
}
}
}
//
// Now we'll delete all entries from the session table with any of the banned
// user or IP info just entered into the ban table ... this will force a session
// initialisation resulting in an instant ban
//
if ( $kill_session_sql != '' )
{
$sql = "DELETE FROM " . SESSIONS_TABLE . "
WHERE $kill_session_sql";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't delete banned sessions from database", "", __LINE__, __FILE__, $sql);
}
}
for($i = 0; $i < count($email_list); $i++)
{
$in_banlist = false;
for($j = 0; $j < count($current_banlist); $j++)
{
if ( $email_list[$i] == $current_banlist[$j]['ban_email'] )
{
$in_banlist = true;
}
}
if ( !$in_banlist )
{
$sql = "INSERT INTO " . BANLIST_TABLE . " (ban_email)
VALUES ('" . str_replace("\'", "''", $email_list[$i]) . "')";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't insert ban_email info into database", "", __LINE__, __FILE__, $sql);
}
}
}
$where_sql = '';
if ( isset($HTTP_POST_VARS['unban_user']) )
{
$user_list = $HTTP_POST_VARS['unban_user'];
for($i = 0; $i < count($user_list); $i++)
{
if ( $user_list[$i] != -1 )
{
$where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . intval($user_list[$i]);
}
}
}
if ( isset($HTTP_POST_VARS['unban_ip']) )
{
$ip_list = $HTTP_POST_VARS['unban_ip'];
for($i = 0; $i < count($ip_list); $i++)
{
if ( $ip_list[$i] != -1 )
{
$where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . str_replace("\'", "''", $ip_list[$i]);
}
}
}
if ( isset($HTTP_POST_VARS['unban_email']) )
{
$email_list = $HTTP_POST_VARS['unban_email'];
for($i = 0; $i < count($email_list); $i++)
{
if ( $email_list[$i] != -1 )
{
$where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . str_replace("\'", "''", $email_list[$i]);
}
}
}
if ( $where_sql != '' )
{
$sql = "DELETE FROM " . BANLIST_TABLE . "
WHERE ban_id IN ($where_sql)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't delete ban info from database", "", __LINE__, __FILE__, $sql);
}
}
$message = $lang['Ban_update_sucessful'] . '<br /><br />' . sprintf($lang['Click_return_banadmin'], '<a href="' . append_sid("admin_user_ban.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
else
{
$template->set_filenames(array(
'body' => 'admin/user_ban_body.tpl')
);
$template->assign_vars(array(
'L_BAN_TITLE' => $lang['Ban_control'],
'L_BAN_EXPLAIN' => $lang['Ban_explain'],
'L_BAN_EXPLAIN_WARN' => $lang['Ban_explain_warn'],
'L_IP_OR_HOSTNAME' => $lang['IP_hostname'],
'L_EMAIL_ADDRESS' => $lang['Email_address'],
'L_SUBMIT' => $lang['Submit'],
'L_RESET' => $lang['Reset'],
'S_BANLIST_ACTION' => append_sid("admin_user_ban.$phpEx"))
);
$template->assign_vars(array(
'L_BAN_USER' => $lang['Ban_username'],
'L_BAN_USER_EXPLAIN' => $lang['Ban_username_explain'],
'L_BAN_IP' => $lang['Ban_IP'],
'L_BAN_IP_EXPLAIN' => $lang['Ban_IP_explain'],
'L_BAN_EMAIL' => $lang['Ban_email'],
'L_BAN_EMAIL_EXPLAIN' => $lang['Ban_email_explain'])
);
$userban_count = 0;
$ipban_count = 0;
$emailban_count = 0;
$sql = "SELECT b.ban_id, u.user_id, u.username
FROM " . BANLIST_TABLE . " b, " . USERS_TABLE . " u
WHERE u.user_id = b.ban_userid
AND b.ban_userid <> 0
AND u.user_id <> " . ANONYMOUS . "
ORDER BY u.user_id ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select current user_id ban list', '', __LINE__, __FILE__, $sql);
}
$user_list = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
$select_userlist = '';
for($i = 0; $i < count($user_list); $i++)
{
$select_userlist .= '<option value="' . $user_list[$i]['ban_id'] . '">' . $user_list[$i]['username'] . '</option>';
$userban_count++;
}
if( $select_userlist == '' )
{
$select_userlist = '<option value="-1">' . $lang['No_banned_users'] . '</option>';
}
$select_userlist = '<select name="unban_user[]" multiple="multiple" size="5">' . $select_userlist . '</select>';
$sql = "SELECT ban_id, ban_ip, ban_email
FROM " . BANLIST_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select current ip ban list', '', __LINE__, __FILE__, $sql);
}
$banlist = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
$select_iplist = '';
$select_emaillist = '';
for($i = 0; $i < count($banlist); $i++)
{
$ban_id = $banlist[$i]['ban_id'];
if ( !empty($banlist[$i]['ban_ip']) )
{
$ban_ip = str_replace('255', '*', decode_ip($banlist[$i]['ban_ip']));
$select_iplist .= '<option value="' . $ban_id . '">' . $ban_ip . '</option>';
$ipban_count++;
}
else if ( !empty($banlist[$i]['ban_email']) )
{
$ban_email = $banlist[$i]['ban_email'];
$select_emaillist .= '<option value="' . $ban_id . '">' . $ban_email . '</option>';
$emailban_count++;
}
}
if ( $select_iplist == '' )
{
$select_iplist = '<option value="-1">' . $lang['No_banned_ip'] . '</option>';
}
if ( $select_emaillist == '' )
{
$select_emaillist = '<option value="-1">' . $lang['No_banned_email'] . '</option>';
}
$select_iplist = '<select name="unban_ip[]" multiple="multiple" size="5">' . $select_iplist . '</select>';
$select_emaillist = '<select name="unban_email[]" multiple="multiple" size="5">' . $select_emaillist . '</select>';
$template->assign_vars(array(
'L_UNBAN_USER' => $lang['Unban_username'],
'L_UNBAN_USER_EXPLAIN' => $lang['Unban_username_explain'],
'L_UNBAN_IP' => $lang['Unban_IP'],
'L_UNBAN_IP_EXPLAIN' => $lang['Unban_IP_explain'],
'L_UNBAN_EMAIL' => $lang['Unban_email'],
'L_UNBAN_EMAIL_EXPLAIN' => $lang['Unban_email_explain'],
'L_USERNAME' => $lang['Username'],
'L_LOOK_UP' => $lang['Look_up_User'],
'L_FIND_USERNAME' => $lang['Find_username'],
'U_SEARCH_USER' => append_sid("./../search.$phpEx?mode=searchuser"),
'S_UNBAN_USERLIST_SELECT' => $select_userlist,
'S_UNBAN_IPLIST_SELECT' => $select_iplist,
'S_UNBAN_EMAILLIST_SELECT' => $select_emaillist,
'S_BAN_ACTION' => append_sid("admin_user_ban.$phpEx"))
);
}
$template->pparse('body');
include('./page_footer_admin.'.$phpEx);
?>

File diff suppressed because it is too large Load Diff

237
phpBB/admin/admin_words.php Normal file
View File

@@ -0,0 +1,237 @@
<?php
/***************************************************************************
* admin_words.php
* -------------------
* begin : Thursday, Jul 12, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
$file = basename(__FILE__);
$module['General']['Word_Censor'] = "$file";
return;
}
//
// Load default header
//
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
{
$mode = ($HTTP_GET_VARS['mode']) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
$mode = htmlspecialchars($mode);
}
else
{
//
// These could be entered via a form button
//
if( isset($HTTP_POST_VARS['add']) )
{
$mode = "add";
}
else if( isset($HTTP_POST_VARS['save']) )
{
$mode = "save";
}
else
{
$mode = "";
}
}
if( $mode != "" )
{
if( $mode == "edit" || $mode == "add" )
{
$word_id = ( isset($HTTP_GET_VARS['id']) ) ? intval($HTTP_GET_VARS['id']) : 0;
$template->set_filenames(array(
"body" => "admin/words_edit_body.tpl")
);
$s_hidden_fields = '';
if( $mode == "edit" )
{
if( $word_id )
{
$sql = "SELECT *
FROM " . WORDS_TABLE . "
WHERE word_id = $word_id";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not query words table", "Error", __LINE__, __FILE__, $sql);
}
$word_info = $db->sql_fetchrow($result);
$s_hidden_fields .= '<input type="hidden" name="id" value="' . $word_id . '" />';
}
else
{
message_die(GENERAL_MESSAGE, $lang['No_word_selected']);
}
}
$template->assign_vars(array(
"WORD" => $word_info['word'],
"REPLACEMENT" => $word_info['replacement'],
"L_WORDS_TITLE" => $lang['Words_title'],
"L_WORDS_TEXT" => $lang['Words_explain'],
"L_WORD_CENSOR" => $lang['Edit_word_censor'],
"L_WORD" => $lang['Word'],
"L_REPLACEMENT" => $lang['Replacement'],
"L_SUBMIT" => $lang['Submit'],
"S_WORDS_ACTION" => append_sid("admin_words.$phpEx"),
"S_HIDDEN_FIELDS" => $s_hidden_fields)
);
$template->pparse("body");
include('./page_footer_admin.'.$phpEx);
}
else if( $mode == "save" )
{
$word_id = ( isset($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : 0;
$word = ( isset($HTTP_POST_VARS['word']) ) ? trim($HTTP_POST_VARS['word']) : "";
$replacement = ( isset($HTTP_POST_VARS['replacement']) ) ? trim($HTTP_POST_VARS['replacement']) : "";
if($word == "" || $replacement == "")
{
message_die(GENERAL_MESSAGE, $lang['Must_enter_word']);
}
if( $word_id )
{
$sql = "UPDATE " . WORDS_TABLE . "
SET word = '" . str_replace("\'", "''", $word) . "', replacement = '" . str_replace("\'", "''", $replacement) . "'
WHERE word_id = $word_id";
$message = $lang['Word_updated'];
}
else
{
$sql = "INSERT INTO " . WORDS_TABLE . " (word, replacement)
VALUES ('" . str_replace("\'", "''", $word) . "', '" . str_replace("\'", "''", $replacement) . "')";
$message = $lang['Word_added'];
}
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not insert data into words table", $lang['Error'], __LINE__, __FILE__, $sql);
}
$message .= "<br /><br />" . sprintf($lang['Click_return_wordadmin'], "<a href=\"" . append_sid("admin_words.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
else if( $mode == "delete" )
{
if( isset($HTTP_POST_VARS['id']) || isset($HTTP_GET_VARS['id']) )
{
$word_id = ( isset($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id'];
$word_id = intval($word_id);
}
else
{
$word_id = 0;
}
if( $word_id )
{
$sql = "DELETE FROM " . WORDS_TABLE . "
WHERE word_id = $word_id";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not remove data from words table", $lang['Error'], __LINE__, __FILE__, $sql);
}
$message = $lang['Word_removed'] . "<br /><br />" . sprintf($lang['Click_return_wordadmin'], "<a href=\"" . append_sid("admin_words.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
else
{
message_die(GENERAL_MESSAGE, $lang['No_word_selected']);
}
}
}
else
{
$template->set_filenames(array(
"body" => "admin/words_list_body.tpl")
);
$sql = "SELECT *
FROM " . WORDS_TABLE . "
ORDER BY word";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not query words table", $lang['Error'], __LINE__, __FILE__, $sql);
}
$word_rows = $db->sql_fetchrowset($result);
$word_count = count($word_rows);
$template->assign_vars(array(
"L_WORDS_TITLE" => $lang['Words_title'],
"L_WORDS_TEXT" => $lang['Words_explain'],
"L_WORD" => $lang['Word'],
"L_REPLACEMENT" => $lang['Replacement'],
"L_EDIT" => $lang['Edit'],
"L_DELETE" => $lang['Delete'],
"L_ADD_WORD" => $lang['Add_new_word'],
"L_ACTION" => $lang['Action'],
"S_WORDS_ACTION" => append_sid("admin_words.$phpEx"),
"S_HIDDEN_FIELDS" => '')
);
for($i = 0; $i < $word_count; $i++)
{
$word = $word_rows[$i]['word'];
$replacement = $word_rows[$i]['replacement'];
$word_id = $word_rows[$i]['word_id'];
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars("words", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"WORD" => $word,
"REPLACEMENT" => $replacement,
"U_WORD_EDIT" => append_sid("admin_words.$phpEx?mode=edit&amp;id=$word_id"),
"U_WORD_DELETE" => append_sid("admin_words.$phpEx?mode=delete&amp;id=$word_id"))
);
}
}
$template->pparse("body");
include('./page_footer_admin.'.$phpEx);
?>

View File

@@ -1,27 +1,657 @@
<?php
/***************************************************************************
*
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
* (admin) index.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
define('IN_PHPBB', 1);
//
// Load default header
//
$no_page_header = TRUE;
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
// ---------------
// Begin functions
//
function inarray($needle, $haystack)
{
for($i = 0; $i < sizeof($haystack); $i++ )
{
if( $haystack[$i] == $needle )
{
return true;
}
}
return false;
}
//
// End functions
// -------------
?>
//
// Generate relevant output
//
if( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'left' )
{
$dir = @opendir(".");
$setmodules = 1;
while( $file = @readdir($dir) )
{
if( preg_match("/^admin_.*?\." . $phpEx . "$/", $file) )
{
include($file);
}
}
@closedir($dir);
unset($setmodules);
include('./page_header_admin.'.$phpEx);
$template->set_filenames(array(
"body" => "admin/index_navigate.tpl")
);
$template->assign_vars(array(
"U_FORUM_INDEX" => append_sid("../index.$phpEx"),
"U_ADMIN_INDEX" => append_sid("index.$phpEx?pane=right"),
"L_FORUM_INDEX" => $lang['Main_index'],
"L_ADMIN_INDEX" => $lang['Admin_Index'],
"L_PREVIEW_FORUM" => $lang['Preview_forum'])
);
ksort($module);
while( list($cat, $action_array) = each($module) )
{
$cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat);
$template->assign_block_vars("catrow", array(
"ADMIN_CATEGORY" => $cat)
);
ksort($action_array);
$row_count = 0;
while( list($action, $file) = each($action_array) )
{
$row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];
$action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action);
$template->assign_block_vars("catrow.modulerow", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"ADMIN_MODULE" => $action,
"U_ADMIN_MODULE" => append_sid($file))
);
$row_count++;
}
}
$template->pparse("body");
include('./page_footer_admin.'.$phpEx);
}
elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' )
{
include('./page_header_admin.'.$phpEx);
$template->set_filenames(array(
"body" => "admin/index_body.tpl")
);
$template->assign_vars(array(
"L_WELCOME" => $lang['Welcome_phpBB'],
"L_ADMIN_INTRO" => $lang['Admin_intro'],
"L_FORUM_STATS" => $lang['Forum_stats'],
"L_WHO_IS_ONLINE" => $lang['Who_is_Online'],
"L_USERNAME" => $lang['Username'],
"L_LOCATION" => $lang['Location'],
"L_LAST_UPDATE" => $lang['Last_updated'],
"L_IP_ADDRESS" => $lang['IP_Address'],
"L_STATISTIC" => $lang['Statistic'],
"L_VALUE" => $lang['Value'],
"L_NUMBER_POSTS" => $lang['Number_posts'],
"L_POSTS_PER_DAY" => $lang['Posts_per_day'],
"L_NUMBER_TOPICS" => $lang['Number_topics'],
"L_TOPICS_PER_DAY" => $lang['Topics_per_day'],
"L_NUMBER_USERS" => $lang['Number_users'],
"L_USERS_PER_DAY" => $lang['Users_per_day'],
"L_BOARD_STARTED" => $lang['Board_started'],
"L_AVATAR_DIR_SIZE" => $lang['Avatar_dir_size'],
"L_DB_SIZE" => $lang['Database_size'],
"L_FORUM_LOCATION" => $lang['Forum_Location'],
"L_STARTED" => $lang['Login'],
"L_GZIP_COMPRESSION" => $lang['Gzip_compression'])
);
//
// Get forum statistics
//
$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
$total_topics = get_db_stat('topiccount');
$start_date = create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']);
$boarddays = ( time() - $board_config['board_startdate'] ) / 86400;
$posts_per_day = sprintf("%.2f", $total_posts / $boarddays);
$topics_per_day = sprintf("%.2f", $total_topics / $boarddays);
$users_per_day = sprintf("%.2f", $total_users / $boarddays);
$avatar_dir_size = 0;
if ($avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path']))
{
while( $file = @readdir($avatar_dir) )
{
if( $file != "." && $file != ".." )
{
$avatar_dir_size += @filesize($phpbb_root_path . $board_config['avatar_path'] . "/" . $file);
}
}
@closedir($avatar_dir);
//
// This bit of code translates the avatar directory size into human readable format
// Borrowed the code from the PHP.net annoted manual, origanally written by:
// Jesse (jesse@jess.on.ca)
//
if($avatar_dir_size >= 1048576)
{
$avatar_dir_size = round($avatar_dir_size / 1048576 * 100) / 100 . " MB";
}
else if($avatar_dir_size >= 1024)
{
$avatar_dir_size = round($avatar_dir_size / 1024 * 100) / 100 . " KB";
}
else
{
$avatar_dir_size = $avatar_dir_size . " Bytes";
}
}
else
{
// Couldn't open Avatar dir.
$avatar_dir_size = $lang['Not_available'];
}
if($posts_per_day > $total_posts)
{
$posts_per_day = $total_posts;
}
if($topics_per_day > $total_topics)
{
$topics_per_day = $total_topics;
}
if($users_per_day > $total_users)
{
$users_per_day = $total_users;
}
//
// DB size ... MySQL only
//
// This code is heavily influenced by a similar routine
// in phpMyAdmin 2.2.0
//
if( preg_match("/^mysql/", SQL_LAYER) )
{
$sql = "SELECT VERSION() AS mysql_version";
if($result = $db->sql_query($sql))
{
$row = $db->sql_fetchrow($result);
$version = $row['mysql_version'];
if( preg_match("/^(3\.23|4\.)/", $version) )
{
$db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)/", $version) ) ? "`$dbname`" : $dbname;
$sql = "SHOW TABLE STATUS
FROM " . $db_name;
if($result = $db->sql_query($sql))
{
$tabledata_ary = $db->sql_fetchrowset($result);
$dbsize = 0;
for($i = 0; $i < count($tabledata_ary); $i++)
{
if( $tabledata_ary[$i]['Type'] != "MRG_MyISAM" )
{
if( $table_prefix != "" )
{
if( strstr($tabledata_ary[$i]['Name'], $table_prefix) )
{
$dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length'];
}
}
else
{
$dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length'];
}
}
}
} // Else we couldn't get the table status.
}
else
{
$dbsize = $lang['Not_available'];
}
}
else
{
$dbsize = $lang['Not_available'];
}
}
else if( preg_match("/^mssql/", SQL_LAYER) )
{
$sql = "SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize
FROM sysfiles";
if( $result = $db->sql_query($sql) )
{
$dbsize = ( $row = $db->sql_fetchrow($result) ) ? intval($row['dbsize']) : $lang['Not_available'];
}
else
{
$dbsize = $lang['Not_available'];
}
}
else
{
$dbsize = $lang['Not_available'];
}
if ( is_integer($dbsize) )
{
if( $dbsize >= 1048576 )
{
$dbsize = sprintf("%.2f MB", ( $dbsize / 1048576 ));
}
else if( $dbsize >= 1024 )
{
$dbsize = sprintf("%.2f KB", ( $dbsize / 1024 ));
}
else
{
$dbsize = sprintf("%.2f Bytes", $dbsize);
}
}
$template->assign_vars(array(
"NUMBER_OF_POSTS" => $total_posts,
"NUMBER_OF_TOPICS" => $total_topics,
"NUMBER_OF_USERS" => $total_users,
"START_DATE" => $start_date,
"POSTS_PER_DAY" => $posts_per_day,
"TOPICS_PER_DAY" => $topics_per_day,
"USERS_PER_DAY" => $users_per_day,
"AVATAR_DIR_SIZE" => $avatar_dir_size,
"DB_SIZE" => $dbsize,
"GZIP_COMPRESSION" => ( $board_config['gzip_compress'] ) ? $lang['ON'] : $lang['OFF'])
);
//
// End forum statistics
//
//
// Get users online information.
//
$sql = "SELECT u.user_id, u.username, u.user_session_time, u.user_session_page, s.session_logged_in, s.session_ip, s.session_start
FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s
WHERE s.session_logged_in = " . TRUE . "
AND u.user_id = s.session_user_id
AND u.user_id <> " . ANONYMOUS . "
AND s.session_time >= " . ( time() - 300 ) . "
ORDER BY u.user_session_time DESC";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Couldn't obtain regd user/online information.", "", __LINE__, __FILE__, $sql);
}
$onlinerow_reg = $db->sql_fetchrowset($result);
$sql = "SELECT session_page, session_logged_in, session_time, session_ip, session_start
FROM " . SESSIONS_TABLE . "
WHERE session_logged_in = 0
AND session_time >= " . ( time() - 300 ) . "
ORDER BY session_time DESC";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Couldn't obtain guest user/online information.", "", __LINE__, __FILE__, $sql);
}
$onlinerow_guest = $db->sql_fetchrowset($result);
$sql = "SELECT forum_name, forum_id
FROM " . FORUMS_TABLE;
if($forums_result = $db->sql_query($sql))
{
while($forumsrow = $db->sql_fetchrow($forums_result))
{
$forum_data[$forumsrow['forum_id']] = $forumsrow['forum_name'];
}
}
else
{
message_die(GENERAL_ERROR, "Couldn't obtain user/online forums information.", "", __LINE__, __FILE__, $sql);
}
$reg_userid_ary = array();
if( count($onlinerow_reg) )
{
$registered_users = 0;
for($i = 0; $i < count($onlinerow_reg); $i++)
{
if( !inarray($onlinerow_reg[$i]['user_id'], $reg_userid_ary) )
{
$reg_userid_ary[] = $onlinerow_reg[$i]['user_id'];
$username = $onlinerow_reg[$i]['username'];
if( $onlinerow_reg[$i]['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
{
$registered_users++;
$hidden = FALSE;
}
else
{
$hidden_users++;
$hidden = TRUE;
}
if( $onlinerow_reg[$i]['user_session_page'] < 1 )
{
switch($onlinerow_reg[$i]['user_session_page'])
{
case PAGE_INDEX:
$location = $lang['Forum_index'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_POSTING:
$location = $lang['Posting_message'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_LOGIN:
$location = $lang['Logging_on'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_SEARCH:
$location = $lang['Searching_forums'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_PROFILE:
$location = $lang['Viewing_profile'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_VIEWONLINE:
$location = $lang['Viewing_online'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_VIEWMEMBERS:
$location = $lang['Viewing_member_list'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_PRIVMSGS:
$location = $lang['Viewing_priv_msgs'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
default:
$location = $lang['Forum_index'];
$location_url = "index.$phpEx?pane=right";
}
}
else
{
$location_url = append_sid("admin_forums.$phpEx?mode=editforum&amp;" . POST_FORUM_URL . "=" . $onlinerow_reg[$i]['user_session_page']);
$location = $forum_data[$onlinerow_reg[$i]['user_session_page']];
}
$row_color = ( $registered_users % 2 ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( $registered_users % 2 ) ? $theme['td_class1'] : $theme['td_class2'];
$reg_ip = decode_ip($onlinerow_reg[$i]['session_ip']);
$template->assign_block_vars("reg_user_row", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"USERNAME" => $username,
"STARTED" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['session_start'], $board_config['board_timezone']),
"LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['user_session_time'], $board_config['board_timezone']),
"FORUM_LOCATION" => $location,
"IP_ADDRESS" => $reg_ip,
"U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$reg_ip",
"U_USER_PROFILE" => append_sid("admin_users.$phpEx?mode=edit&amp;" . POST_USERS_URL . "=" . $onlinerow_reg[$i]['user_id']),
"U_FORUM_LOCATION" => append_sid($location_url))
);
}
}
}
else
{
$template->assign_vars(array(
"L_NO_REGISTERED_USERS_BROWSING" => $lang['No_users_browsing'])
);
}
//
// Guest users
//
if( count($onlinerow_guest) )
{
$guest_users = 0;
for($i = 0; $i < count($onlinerow_guest); $i++)
{
$guest_userip_ary[] = $onlinerow_guest[$i]['session_ip'];
$guest_users++;
if( $onlinerow_guest[$i]['session_page'] < 1 )
{
switch( $onlinerow_guest[$i]['session_page'] )
{
case PAGE_INDEX:
$location = $lang['Forum_index'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_POSTING:
$location = $lang['Posting_message'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_LOGIN:
$location = $lang['Logging_on'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_SEARCH:
$location = $lang['Searching_forums'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_PROFILE:
$location = $lang['Viewing_profile'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_VIEWONLINE:
$location = $lang['Viewing_online'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_VIEWMEMBERS:
$location = $lang['Viewing_member_list'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_PRIVMSGS:
$location = $lang['Viewing_priv_msgs'];
$location_url = "index.$phpEx?pane=right";
break;
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
default:
$location = $lang['Forum_index'];
$location_url = "index.$phpEx?pane=right";
}
}
else
{
$location_url = append_sid("admin_forums.$phpEx?mode=editforum&amp;" . POST_FORUM_URL . "=" . $onlinerow_guest[$i]['session_page']);
$location = $forum_data[$onlinerow_guest[$i]['session_page']];
}
$row_color = ( $guest_users % 2 ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( $guest_users % 2 ) ? $theme['td_class1'] : $theme['td_class2'];
$guest_ip = decode_ip($onlinerow_guest[$i]['session_ip']);
$template->assign_block_vars("guest_user_row", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"USERNAME" => $lang['Guest'],
"STARTED" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_start'], $board_config['board_timezone']),
"LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_time'], $board_config['board_timezone']),
"FORUM_LOCATION" => $location,
"IP_ADDRESS" => $guest_ip,
"U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$guest_ip",
"U_FORUM_LOCATION" => append_sid($location_url))
);
}
}
else
{
$template->assign_vars(array(
"L_NO_GUESTS_BROWSING" => $lang['No_users_browsing'])
);
}
// Check for new version
$current_version = explode('.', '2' . $board_config['version']);
$minor_revision = (int) $current_version[2];
$errno = 0;
$errstr = $version_info = '';
if ($fsock = @fsockopen('www.phpbb.com', 80, $errno, $errstr))
{
@fputs($fsock, "GET /updatecheck/20x.txt HTTP/1.1\r\n");
@fputs($fsock, "HOST: www.phpbb.com\r\n");
@fputs($fsock, "Connection: close\r\n\r\n");
$get_info = false;
while (!@feof($fsock))
{
if ($get_info)
{
$version_info .= @fread($fsock, 1024);
}
else
{
if (@fgets($fsock, 1024) == "\r\n")
{
$get_info = true;
}
}
}
@fclose($fsock);
$version_info = explode("\n", $version_info);
$latest_head_revision = (int) $version_info[0];
$latest_minor_revision = (int) $version_info[2];
$latest_version = (int) $version_info[0] . '.' . (int) $version_info[1] . '.' . (int) $version_info[2];
if ($latest_head_revision == 2 && $minor_revision == $latest_minor_revision)
{
$version_info = '<p style="color:green">' . $lang['Version_up_to_date'] . '</p>';
}
else
{
$version_info = '<p style="color:red">' . $lang['Version_not_up_to_date'];
$version_info .= '<br />' . sprintf($lang['Latest_version_info'], $latest_version) . sprintf($lang['Current_version_info'], '2' . $board_config['version']) . '</p>';
}
}
else
{
if ($errstr)
{
$version_info = '<p style="color:red">' . sprintf($lang['Connect_socket_error'], $errstr) . '</p>';
}
else
{
$version_info = '<p>' . $lang['Socket_functions_disabled'] . '</p>';
}
}
$version_info .= '<p>' . $lang['Mailing_list_subscribe_reminder'] . '</p>';
$template->assign_vars(array(
'VERSION_INFO' => $version_info,
'L_VERSION_INFORMATION' => $lang['Version_information'])
);
$template->pparse("body");
include('./page_footer_admin.'.$phpEx);
}
else
{
//
// Generate frameset
//
$template->set_filenames(array(
"body" => "admin/index_frameset.tpl")
);
$template->assign_vars(array(
"S_FRAME_NAV" => append_sid("index.$phpEx?pane=left"),
"S_FRAME_MAIN" => append_sid("index.$phpEx?pane=right"))
);
header ("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
$template->pparse("body");
$db->sql_close();
exit;
}
?>

View File

@@ -0,0 +1,73 @@
<?php
/***************************************************************************
* page_footer_admin.php
* -------------------
* begin : Saturday, Jul 14, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
//
// Show the overall footer.
//
$template->set_filenames(array(
'page_footer' => 'admin/page_footer.tpl')
);
$template->assign_vars(array(
'PHPBB_VERSION' => ($userdata['user_level'] == ADMIN && $userdata['user_id'] != ANONYMOUS) ? '2' . $board_config['version'] : '',
'TRANSLATION_INFO' => $lang['TRANSLATION_INFO'])
);
$template->pparse('page_footer');
//
// Close our DB connection.
//
$db->sql_close();
//
// Compress buffered output if required
// and send to browser
//
if( $do_gzip_compress )
{
//
// Borrowed from php.net!
//
$gzip_contents = ob_get_contents();
ob_end_clean();
$gzip_size = strlen($gzip_contents);
$gzip_crc = crc32($gzip_contents);
$gzip_contents = gzcompress($gzip_contents, 9);
$gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);
echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
echo $gzip_contents;
echo pack('V', $gzip_crc);
echo pack('V', $gzip_size);
}
exit;
?>

View File

@@ -0,0 +1,138 @@
<?php
/***************************************************************************
* page_header_admin.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
define('HEADER_INC', true);
//
// gzip_compression
//
$do_gzip_compress = FALSE;
if ( $board_config['gzip_compress'] )
{
$phpver = phpversion();
$useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT');
if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) )
{
if ( extension_loaded('zlib') )
{
ob_start('ob_gzhandler');
}
}
else if ( $phpver > '4.0' )
{
if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
{
if ( extension_loaded('zlib') )
{
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
header('Content-Encoding: gzip');
}
}
}
}
$template->set_filenames(array(
'header' => 'admin/page_header.tpl')
);
// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
$l_timezone = explode('.', $board_config['board_timezone']);
$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];
//
// The following assigns all _common_ variables that may be used at any point
// in a template. Note that all URL's should be wrapped in append_sid, as
// should all S_x_ACTIONS for forms.
//
$template->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'PAGE_TITLE' => $page_title,
'L_ADMIN' => $lang['Admin'],
'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),
'L_FAQ' => $lang['FAQ'],
'U_INDEX' => append_sid('../index.'.$phpEx),
'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone),
'S_LOGIN_ACTION' => append_sid('../login.'.$phpEx),
'S_JUMPBOX_ACTION' => append_sid('../viewforum.'.$phpEx),
'S_CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])),
'S_CONTENT_DIRECTION' => $lang['DIRECTION'],
'S_CONTENT_ENCODING' => $lang['ENCODING'],
'S_CONTENT_DIR_LEFT' => $lang['LEFT'],
'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'],
'T_HEAD_STYLESHEET' => $theme['head_stylesheet'],
'T_BODY_BACKGROUND' => $theme['body_background'],
'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'],
'T_BODY_TEXT' => '#'.$theme['body_text'],
'T_BODY_LINK' => '#'.$theme['body_link'],
'T_BODY_VLINK' => '#'.$theme['body_vlink'],
'T_BODY_ALINK' => '#'.$theme['body_alink'],
'T_BODY_HLINK' => '#'.$theme['body_hlink'],
'T_TR_COLOR1' => '#'.$theme['tr_color1'],
'T_TR_COLOR2' => '#'.$theme['tr_color2'],
'T_TR_COLOR3' => '#'.$theme['tr_color3'],
'T_TR_CLASS1' => $theme['tr_class1'],
'T_TR_CLASS2' => $theme['tr_class2'],
'T_TR_CLASS3' => $theme['tr_class3'],
'T_TH_COLOR1' => '#'.$theme['th_color1'],
'T_TH_COLOR2' => '#'.$theme['th_color2'],
'T_TH_COLOR3' => '#'.$theme['th_color3'],
'T_TH_CLASS1' => $theme['th_class1'],
'T_TH_CLASS2' => $theme['th_class2'],
'T_TH_CLASS3' => $theme['th_class3'],
'T_TD_COLOR1' => '#'.$theme['td_color1'],
'T_TD_COLOR2' => '#'.$theme['td_color2'],
'T_TD_COLOR3' => '#'.$theme['td_color3'],
'T_TD_CLASS1' => $theme['td_class1'],
'T_TD_CLASS2' => $theme['td_class2'],
'T_TD_CLASS3' => $theme['td_class3'],
'T_FONTFACE1' => $theme['fontface1'],
'T_FONTFACE2' => $theme['fontface2'],
'T_FONTFACE3' => $theme['fontface3'],
'T_FONTSIZE1' => $theme['fontsize1'],
'T_FONTSIZE2' => $theme['fontsize2'],
'T_FONTSIZE3' => $theme['fontsize3'],
'T_FONTCOLOR1' => '#'.$theme['fontcolor1'],
'T_FONTCOLOR2' => '#'.$theme['fontcolor2'],
'T_FONTCOLOR3' => '#'.$theme['fontcolor3'],
'T_SPAN_CLASS1' => $theme['span_class1'],
'T_SPAN_CLASS2' => $theme['span_class2'],
'T_SPAN_CLASS3' => $theme['span_class3'])
);
$template->pparse('header');
?>

74
phpBB/admin/pagestart.php Normal file
View File

@@ -0,0 +1,74 @@
<?php
/***************************************************************************
* pagestart.php
* -------------------
* begin : Thursday, Aug 2, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if (!defined('IN_PHPBB'))
{
die("Hacking attempt");
}
define('IN_ADMIN', true);
// Include files
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
if (!$userdata['session_logged_in'])
{
redirect(append_sid("login.$phpEx?redirect=admin/", true));
}
else if ($userdata['user_level'] != ADMIN)
{
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
if ($HTTP_GET_VARS['sid'] != $userdata['session_id'])
{
$url = str_replace(preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])), '', $HTTP_SERVER_VARS['REQUEST_URI']);
$url = str_replace(preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])), '', $url);
$url = str_replace('//', '/', $url);
$url = preg_replace('/sid=([^&]*)(&?)/i', '', $url);
$url = preg_replace('/\?$/', '', $url);
$url .= ((strpos($url, '?')) ? '&' : '?') . 'sid=' . $userdata['session_id'];
redirect("index.$phpEx?sid=" . $userdata['session_id']);
}
if (!$userdata['session_admin'])
{
redirect(append_sid("login.$phpEx?redirect=admin/&admin=1", true));
}
if (empty($no_page_header))
{
// Not including the pageheader can be neccesarry if META tags are
// needed in the calling script.
include('./page_header_admin.'.$phpEx);
}
?>

240
phpBB/common.php Normal file
View File

@@ -0,0 +1,240 @@
<?php
/***************************************************************************
* common.php
* -------------------
* begin : Saturday, Feb 23, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
//
error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
// The following code (unsetting globals) was contributed by Matt Kavanagh
// PHP5 with register_long_arrays off?
if (!isset($HTTP_POST_VARS) && isset($_POST))
{
$HTTP_POST_VARS = $_POST;
$HTTP_GET_VARS = $_GET;
$HTTP_SERVER_VARS = $_SERVER;
$HTTP_COOKIE_VARS = $_COOKIE;
$HTTP_ENV_VARS = $_ENV;
$HTTP_POST_FILES = $_FILES;
// _SESSION is the only superglobal which is conditionally set
if (isset($_SESSION))
{
$HTTP_SESSION_VARS = $_SESSION;
}
}
if (@phpversion() < '4.0.0')
{
// PHP3 path; in PHP3, globals are _always_ registered
// We 'flip' the array of variables to test like this so that
// we can validate later with isset($test[$var]) (no in_array())
$test = array('HTTP_GET_VARS' => NULL, 'HTTP_POST_VARS' => NULL, 'HTTP_COOKIE_VARS' => NULL, 'HTTP_SERVER_VARS' => NULL, 'HTTP_ENV_VARS' => NULL, 'HTTP_POST_FILES' => NULL, 'phpEx' => NULL, 'phpbb_root_path' => NULL);
// Loop through each input array
@reset($test);
while (list($input,) = @each($test))
{
while (list($var,) = @each($$input))
{
// Validate the variable to be unset
if (!isset($test[$var]) && $var != 'test' && $var != 'input')
{
unset($$var);
}
}
}
}
else if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on')
{
// PHP4+ path
$not_unset = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS', 'HTTP_ENV_VARS', 'HTTP_POST_FILES', 'phpEx', 'phpbb_root_path');
// Not only will array_merge give a warning if a parameter
// is not an array, it will actually fail. So we check if
// HTTP_SESSION_VARS has been initialised.
if (!isset($HTTP_SESSION_VARS))
{
$HTTP_SESSION_VARS = array();
}
// Merge all into one extremely huge array; unset
// this later
$input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES);
unset($input['input']);
unset($input['not_unset']);
while (list($var,) = @each($input))
{
if (!in_array($var, $not_unset))
{
unset($$var);
}
}
unset($input);
}
//
// addslashes to vars if magic_quotes_gpc is off
// this is a security precaution to prevent someone
// trying to break out of a SQL statement.
//
if( !get_magic_quotes_gpc() )
{
if( is_array($HTTP_GET_VARS) )
{
while( list($k, $v) = each($HTTP_GET_VARS) )
{
if( is_array($HTTP_GET_VARS[$k]) )
{
while( list($k2, $v2) = each($HTTP_GET_VARS[$k]) )
{
$HTTP_GET_VARS[$k][$k2] = addslashes($v2);
}
@reset($HTTP_GET_VARS[$k]);
}
else
{
$HTTP_GET_VARS[$k] = addslashes($v);
}
}
@reset($HTTP_GET_VARS);
}
if( is_array($HTTP_POST_VARS) )
{
while( list($k, $v) = each($HTTP_POST_VARS) )
{
if( is_array($HTTP_POST_VARS[$k]) )
{
while( list($k2, $v2) = each($HTTP_POST_VARS[$k]) )
{
$HTTP_POST_VARS[$k][$k2] = addslashes($v2);
}
@reset($HTTP_POST_VARS[$k]);
}
else
{
$HTTP_POST_VARS[$k] = addslashes($v);
}
}
@reset($HTTP_POST_VARS);
}
if( is_array($HTTP_COOKIE_VARS) )
{
while( list($k, $v) = each($HTTP_COOKIE_VARS) )
{
if( is_array($HTTP_COOKIE_VARS[$k]) )
{
while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) )
{
$HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2);
}
@reset($HTTP_COOKIE_VARS[$k]);
}
else
{
$HTTP_COOKIE_VARS[$k] = addslashes($v);
}
}
@reset($HTTP_COOKIE_VARS);
}
}
//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//
$board_config = array();
$userdata = array();
$theme = array();
$images = array();
$lang = array();
$nav_links = array();
$gen_simple_header = FALSE;
include($phpbb_root_path . 'config.'.$phpEx);
if( !defined("PHPBB_INSTALLED") )
{
header("Location: install/install.$phpEx");
exit;
}
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/template.'.$phpEx);
include($phpbb_root_path . 'includes/sessions.'.$phpEx);
include($phpbb_root_path . 'includes/auth.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
//
// Obtain and encode users IP
//
// I'm removing HTTP_X_FORWARDED_FOR ... this may well cause other problems such as
// private range IP's appearing instead of the guilty routable IP, tough, don't
// even bother complaining ... go scream and shout at the idiots out there who feel
// "clever" is doing harm rather than good ... karma is a great thing ... :)
//
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') );
$user_ip = encode_ip($client_ip);
//
// Setup forum wide options, if this fails
// then we output a CRITICAL_ERROR since
// basic forum information is not available
//
$sql = "SELECT *
FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}
if (file_exists('install') || file_exists('contrib'))
{
message_die(GENERAL_MESSAGE, 'Please ensure both the install/ and contrib/ directories are deleted');
}
//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
?>

View File

@@ -1,27 +0,0 @@
<?php
/***************************************************************************
*
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
?>

View File

@@ -1,27 +0,0 @@
<?php
/***************************************************************************
*
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
?>

421
phpBB/db/db2.php Normal file
View File

@@ -0,0 +1,421 @@
<?php
/***************************************************************************
* db2.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if(!defined("SQL_LAYER"))
{
define("SQL_LAYER","db2");
class sql_db
{
var $db_connect_id;
var $query_result;
var $query_resultset;
var $query_numrows;
var $next_id;
var $row = array();
var $rowset = array();
var $row_index;
var $num_queries = 0;
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
$this->persistency = $persistency;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->dbname = $database;
$this->server = $sqlserver;
if($this->persistency)
{
$this->db_connect_id = odbc_pconnect($this->server, "", "");
}
else
{
$this->db_connect_id = odbc_connect($this->server, "", "");
}
if($this->db_connect_id)
{
@odbc_autocommit($this->db_connect_id, off);
return $this->db_connect_id;
}
else
{
return false;
}
}
//
// Other base methods
//
function sql_close()
{
if($this->db_connect_id)
{
if($this->query_result)
{
@odbc_free_result($this->query_result);
}
$result = @odbc_close($this->db_connect_id);
return $result;
}
else
{
return false;
}
}
//
// Query method
//
function sql_query($query = "", $transaction = FALSE)
{
//
// Remove any pre-existing queries
//
unset($this->query_result);
unset($this->row);
if($query != "")
{
$this->num_queries++;
if(!eregi("^INSERT ",$query))
{
if(eregi("LIMIT", $query))
{
preg_match("/^(.*)LIMIT ([0-9]+)[, ]*([0-9]+)*/s", $query, $limits);
$query = $limits[1];
if($limits[3])
{
$row_offset = $limits[2];
$num_rows = $limits[3];
}
else
{
$row_offset = 0;
$num_rows = $limits[2];
}
$query .= " FETCH FIRST ".($row_offset+$num_rows)." ROWS ONLY OPTIMIZE FOR ".($row_offset+$num_rows)." ROWS";
$this->query_result = odbc_exec($this->db_connect_id, $query);
$query_limit_offset = $row_offset;
$this->result_numrows[$this->query_result] = $num_rows;
}
else
{
$this->query_result = odbc_exec($this->db_connect_id, $query);
$row_offset = 0;
$this->result_numrows[$this->query_result] = 5E6;
}
$result_id = $this->query_result;
if($this->query_result && eregi("^SELECT", $query))
{
for($i = 1; $i < odbc_num_fields($result_id)+1; $i++)
{
$this->result_field_names[$result_id][] = odbc_field_name($result_id, $i);
}
$i = $row_offset + 1;
$k = 0;
while(odbc_fetch_row($result_id, $i) && $k < $this->result_numrows[$result_id])
{
for($j = 1; $j < count($this->result_field_names[$result_id])+1; $j++)
{
$this->result_rowset[$result_id][$k][$this->result_field_names[$result_id][$j-1]] = odbc_result($result_id, $j);
}
$i++;
$k++;
}
$this->result_numrows[$result_id] = $k;
$this->row_index[$result_id] = 0;
}
else
{
$this->result_numrows[$result_id] = @odbc_num_rows($result_id);
$this->row_index[$result_id] = 0;
}
}
else
{
if(eregi("^(INSERT|UPDATE) ", $query))
{
$query = preg_replace("/\\\'/s", "''", $query);
}
$this->query_result = odbc_exec($this->db_connect_id, $query);
if($this->query_result)
{
$sql_id = "VALUES(IDENTITY_VAL_LOCAL())";
$id_result = odbc_exec($this->db_connect_id, $sql_id);
if($id_result)
{
$row_result = odbc_fetch_row($id_result);
if($row_result)
{
$this->next_id[$this->query_result] = odbc_result($id_result, 1);
}
}
}
odbc_commit($this->db_connect_id);
$this->query_limit_offset[$this->query_result] = 0;
$this->result_numrows[$this->query_result] = 0;
}
return $this->query_result;
}
else
{
return false;
}
}
//
// Other query methods
//
function sql_numrows($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
return $this->result_numrows[$query_id];
}
else
{
return false;
}
}
function sql_affectedrows($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
return $this->result_numrows[$query_id];
}
else
{
return false;
}
}
function sql_numfields($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = count($this->result_field_names[$query_id]);
return $result;
}
else
{
return false;
}
}
function sql_fieldname($offset, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = $this->result_field_names[$query_id][$offset];
return $result;
}
else
{
return false;
}
}
function sql_fieldtype($offset, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @odbc_field_type($query_id, $offset);
return $result;
}
else
{
return false;
}
}
function sql_fetchrow($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
if($this->row_index[$query_id] < $this->result_numrows[$query_id])
{
$result = $this->result_rowset[$query_id][$this->row_index[$query_id]];
$this->row_index[$query_id]++;
return $result;
}
else
{
return false;
}
}
else
{
return false;
}
}
function sql_fetchrowset($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$this->row_index[$query_id] = $this->result_numrows[$query_id];
return $this->result_rowset[$query_id];
}
else
{
return false;
}
}
function sql_fetchfield($field, $row = -1, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
if($row < $this->result_numrows[$query_id])
{
if($row == -1)
{
$getrow = $this->row_index[$query_id]-1;
}
else
{
$getrow = $row;
}
return $this->result_rowset[$query_id][$getrow][$this->result_field_names[$query_id][$field]];
}
else
{
return false;
}
}
else
{
return false;
}
}
function sql_rowseek($offset, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$this->row_index[$query_id] = 0;
return true;
}
else
{
return false;
}
}
function sql_nextid($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
return $this->next_id[$query_id];
}
else
{
return false;
}
}
function sql_freeresult($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @odbc_free_result($query_id);
return $result;
}
else
{
return false;
}
}
function sql_error($query_id = 0)
{
// $result['code'] = @odbc_error($this->db_connect_id);
// $result['message'] = @odbc_errormsg($this->db_connect_id);
return "";
}
} // class sql_db
} // if ... define
?>

10
phpBB/db/index.htm Normal file
View File

@@ -0,0 +1,10 @@
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>

389
phpBB/db/msaccess.php Normal file
View File

@@ -0,0 +1,389 @@
<?php
/***************************************************************************
* msaccess.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if(!defined("SQL_LAYER"))
{
define("SQL_LAYER","msaccess");
class sql_db
{
var $db_connect_id;
var $result_ids = array();
var $result;
var $next_id;
var $num_rows = array();
var $current_row = array();
var $field_names = array();
var $field_types = array();
var $result_rowset = array();
var $num_queries = 0;
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
$this->persistency = $persistency;
$this->server = $sqlserver;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->dbname = $database;
$this->db_connect_id = ($this->persistency) ? odbc_pconnect($this->server, $this->user, $this->password) : odbc_connect($this->server, $this->user, $this->password);
return ( $this->db_connect_id ) ? $this->db_connect_id : false;
}
//
// Other base methods
//
function sql_close()
{
if($this->db_connect_id)
{
if( $this->in_transaction )
{
@odbc_commit($this->db_connect_id);
}
if( count($this->result_rowset) )
{
unset($this->result_rowset);
unset($this->field_names);
unset($this->field_types);
unset($this->num_rows);
unset($this->current_row);
}
return @odbc_close($this->db_connect_id);
}
else
{
return false;
}
}
//
// Query method
//
function sql_query($query = "", $transaction = FALSE)
{
if( $query != "" )
{
$this->num_queries++;
if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction )
{
if( !odbc_autocommit($this->db_connect_id, false) )
{
return false;
}
$this->in_transaction = TRUE;
}
$query = str_replace("LOWER(", "LCASE(", $query);
if( preg_match("/^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$/s", $query, $limits) )
{
$query = $limits[1];
if( !empty($limits[2]) )
{
$row_offset = ( $limits[4] ) ? $limits[3] : "";
$num_rows = ( $limits[4] ) ? $limits[4] : $limits[3];
$query = "TOP " . ( $row_offset + $num_rows ) . $query;
}
$this->result = odbc_exec($this->db_connect_id, "SELECT $query");
if( $this->result )
{
if( empty($this->field_names[$this->result]) )
{
for($i = 1; $i < odbc_num_fields($this->result) + 1; $i++)
{
$this->field_names[$this->result][] = odbc_field_name($this->result, $i);
$this->field_types[$this->result][] = odbc_field_type($this->result, $i);
}
}
$this->current_row[$this->result] = 0;
$this->result_rowset[$this->result] = array();
$row_outer = ( isset($row_offset) ) ? $row_offset + 1 : 1;
$row_outer_max = ( isset($num_rows) ) ? $row_offset + $num_rows + 1 : 1E9;
$row_inner = 0;
while( odbc_fetch_row($this->result, $row_outer) && $row_outer < $row_outer_max )
{
for($j = 0; $j < count($this->field_names[$this->result]); $j++)
{
$this->result_rowset[$this->result][$row_inner][$this->field_names[$this->result][$j]] = stripslashes(odbc_result($this->result, $j + 1));
}
$row_outer++;
$row_inner++;
}
$this->num_rows[$this->result] = count($this->result_rowset[$this->result]);
odbc_free_result($this->result);
}
}
else if( eregi("^INSERT ", $query) )
{
$this->result = odbc_exec($this->db_connect_id, $query);
if( $this->result )
{
$result_id = odbc_exec($this->db_connect_id, "SELECT @@IDENTITY");
if( $result_id )
{
if( odbc_fetch_row($result_id) )
{
$this->next_id[$this->db_connect_id] = odbc_result($result_id, 1);
$this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result);
}
}
}
}
else
{
$this->result = odbc_exec($this->db_connect_id, $query);
if( $this->result )
{
$this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result);
}
}
if( !$this->result )
{
if( $this->in_transaction )
{
odbc_rollback($this->db_connect_id);
odbc_autocommit($this->db_connect_id, true);
$this->in_transaction = FALSE;
}
return false;
}
if( $transaction == END_TRANSACTION && $this->in_transaction )
{
$this->in_transaction = FALSE;
if ( !@odbc_commit($this->db_connect_id) )
{
odbc_rollback($this->db_connect_id);
odbc_autocommit($this->db_connect_id, true);
return false;
}
odbc_autocommit($this->db_connect_id, true);
}
return $this->result;
}
else
{
if( $transaction == END_TRANSACTION && $this->in_transaction )
{
$this->in_transaction = FALSE;
if ( !@odbc_commit($this->db_connect_id) )
{
odbc_rollback($this->db_connect_id);
odbc_autocommit($this->db_connect_id, true);
return false;
}
odbc_autocommit($this->db_connect_id, true);
}
return true;
}
}
//
// Other query methods
//
function sql_numrows($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
return ( $query_id ) ? $this->num_rows[$query_id] : false;
}
function sql_numfields($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
return ( $query_id ) ? count($this->field_names[$query_id]) : false;
}
function sql_fieldname($offset, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
return ( $query_id ) ? $this->field_names[$query_id][$offset] : false;
}
function sql_fieldtype($offset, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
return ( $query_id ) ? $this->field_types[$query_id][$offset] : false;
}
function sql_fetchrow($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
return ( $this->num_rows[$query_id] && $this->current_row[$query_id] < $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id][$this->current_row[$query_id]++] : false;
}
else
{
return false;
}
}
function sql_fetchrowset($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
return ( $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id] : false;
}
else
{
return false;
}
}
function sql_fetchfield($field, $row = -1, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
if( $row < $this->num_rows[$query_id] )
{
$getrow = ($row == -1) ? $this->current_row[$query_id] - 1 : $row;
return $this->result_rowset[$query_id][$getrow][$this->field_names[$query_id][$field]];
}
else
{
return false;
}
}
else
{
return false;
}
}
function sql_rowseek($offset, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
$this->current_row[$query_id] = $offset - 1;
return true;
}
else
{
return false;
}
}
function sql_nextid()
{
return ( $this->next_id[$this->db_connect_id] ) ? $this->next_id[$this->db_connect_id] : false;
}
function sql_affectedrows()
{
return ( $this->affected_rows[$this->db_connect_id] ) ? $this->affected_rows[$this->db_connect_id] : false;
}
function sql_freeresult($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
unset($this->num_rows[$query_id]);
unset($this->current_row[$query_id]);
unset($this->result_rowset[$query_id]);
unset($this->field_names[$query_id]);
unset($this->field_types[$query_id]);
return true;
}
function sql_error()
{
$error['code'] = "";//odbc_error($this->db_connect_id);
$error['message'] = "Error";//odbc_errormsg($this->db_connect_id);
return $error;
}
} // class sql_db
} // if ... define
?>

387
phpBB/db/mssql-odbc.php Normal file
View File

@@ -0,0 +1,387 @@
<?php
/***************************************************************************
* mssql-odbc.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if(!defined("SQL_LAYER"))
{
define("SQL_LAYER","mssql-odbc");
class sql_db
{
var $db_connect_id;
var $result;
var $next_id;
var $num_rows = array();
var $current_row = array();
var $field_names = array();
var $field_types = array();
var $result_rowset = array();
var $num_queries = 0;
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
$this->persistency = $persistency;
$this->server = $sqlserver;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->dbname = $database;
$this->db_connect_id = ($this->persistency) ? odbc_pconnect($this->server, $this->user, $this->password) : odbc_connect($this->server, $this->user, $this->password);
return ( $this->db_connect_id ) ? $this->db_connect_id : false;
}
//
// Other base methods
//
function sql_close()
{
if($this->db_connect_id)
{
if( $this->in_transaction )
{
@odbc_commit($this->db_connect_id);
}
if( count($this->result_rowset) )
{
unset($this->result_rowset);
unset($this->field_names);
unset($this->field_types);
unset($this->num_rows);
unset($this->current_row);
}
return @odbc_close($this->db_connect_id);
}
else
{
return false;
}
}
//
// Query method
//
function sql_query($query = "", $transaction = FALSE)
{
if( $query != "" )
{
$this->num_queries++;
if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction )
{
if( !odbc_autocommit($this->db_connect_id, false) )
{
return false;
}
$this->in_transaction = TRUE;
}
if( preg_match("/^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$/s", $query, $limits) )
{
$query = $limits[1];
if( !empty($limits[2]) )
{
$row_offset = ( $limits[4] ) ? $limits[3] : "";
$num_rows = ( $limits[4] ) ? $limits[4] : $limits[3];
$query = "TOP " . ( $row_offset + $num_rows ) . $query;
}
$this->result = odbc_exec($this->db_connect_id, "SELECT $query");
if( $this->result )
{
if( empty($this->field_names[$this->result]) )
{
for($i = 1; $i < odbc_num_fields($this->result) + 1; $i++)
{
$this->field_names[$this->result][] = odbc_field_name($this->result, $i);
$this->field_types[$this->result][] = odbc_field_type($this->result, $i);
}
}
$this->current_row[$this->result] = 0;
$this->result_rowset[$this->result] = array();
$row_outer = ( isset($row_offset) ) ? $row_offset + 1 : 1;
$row_outer_max = ( isset($num_rows) ) ? $row_offset + $num_rows + 1 : 1E9;
$row_inner = 0;
while( odbc_fetch_row($this->result, $row_outer) && $row_outer < $row_outer_max )
{
for($j = 0; $j < count($this->field_names[$this->result]); $j++)
{
$this->result_rowset[$this->result][$row_inner][$this->field_names[$this->result][$j]] = stripslashes(odbc_result($this->result, $j + 1));
}
$row_outer++;
$row_inner++;
}
$this->num_rows[$this->result] = count($this->result_rowset[$this->result]);
}
}
else if( eregi("^INSERT ", $query) )
{
$this->result = odbc_exec($this->db_connect_id, $query);
if( $this->result )
{
$result_id = odbc_exec($this->db_connect_id, "SELECT @@IDENTITY");
if( $result_id )
{
if( odbc_fetch_row($result_id) )
{
$this->next_id[$this->db_connect_id] = odbc_result($result_id, 1);
$this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result);
}
}
}
}
else
{
$this->result = odbc_exec($this->db_connect_id, $query);
if( $this->result )
{
$this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result);
}
}
if( !$this->result )
{
if( $this->in_transaction )
{
odbc_rollback($this->db_connect_id);
odbc_autocommit($this->db_connect_id, true);
$this->in_transaction = FALSE;
}
return false;
}
if( $transaction == END_TRANSACTION && $this->in_transaction )
{
$this->in_transaction = FALSE;
if ( !odbc_commit($this->db_connect_id) )
{
odbc_rollback($this->db_connect_id);
odbc_autocommit($this->db_connect_id, true);
return false;
}
odbc_autocommit($this->db_connect_id, true);
}
odbc_free_result($this->result);
return $this->result;
}
else
{
if( $transaction == END_TRANSACTION && $this->in_transaction )
{
$this->in_transaction = FALSE;
if ( !@odbc_commit($this->db_connect_id) )
{
odbc_rollback($this->db_connect_id);
odbc_autocommit($this->db_connect_id, true);
return false;
}
odbc_autocommit($this->db_connect_id, true);
}
return true;
}
}
//
// Other query methods
//
function sql_numrows($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
return ( $query_id ) ? $this->num_rows[$query_id] : false;
}
function sql_numfields($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
return ( $query_id ) ? count($this->field_names[$query_id]) : false;
}
function sql_fieldname($offset, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
return ( $query_id ) ? $this->field_names[$query_id][$offset] : false;
}
function sql_fieldtype($offset, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
return ( $query_id ) ? $this->field_types[$query_id][$offset] : false;
}
function sql_fetchrow($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
return ( $this->num_rows[$query_id] && $this->current_row[$query_id] < $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id][$this->current_row[$query_id]++] : false;
}
else
{
return false;
}
}
function sql_fetchrowset($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
return ( $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id] : false;
}
else
{
return false;
}
}
function sql_fetchfield($field, $row = -1, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
if( $row < $this->num_rows[$query_id] )
{
$getrow = ( $row == -1 ) ? $this->current_row[$query_id] - 1 : $row;
return $this->result_rowset[$query_id][$getrow][$this->field_names[$query_id][$field]];
}
else
{
return false;
}
}
else
{
return false;
}
}
function sql_rowseek($offset, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
$this->current_row[$query_id] = $offset - 1;
return true;
}
else
{
return false;
}
}
function sql_nextid()
{
return ( $this->next_id[$this->db_connect_id] ) ? $this->next_id[$this->db_connect_id] : false;
}
function sql_affectedrows()
{
return ( $this->affected_rows[$this->db_connect_id] ) ? $this->affected_rows[$this->db_connect_id] : false;
}
function sql_freeresult($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
unset($this->num_rows[$query_id]);
unset($this->current_row[$query_id]);
unset($this->result_rowset[$query_id]);
unset($this->field_names[$query_id]);
unset($this->field_types[$query_id]);
return true;
}
function sql_error()
{
$error['code'] = odbc_error($this->db_connect_id);
$error['message'] = odbc_errormsg($this->db_connect_id);
return $error;
}
} // class sql_db
} // if ... define
?>

View File

@@ -4,7 +4,7 @@
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
* email : supportphpbb.com
*
* $Id$
*
@@ -18,191 +18,401 @@
* (at your option) any later version.
*
***************************************************************************/
if(!defined("SQL_LAYER")){
if(!defined("SQL_LAYER"))
{
define("SQL_LAYER","mssql");
class sql_db {
class sql_db
{
var $db_connect_id;
var $query_result;
var $row;
var $db_connect_id;
var $result;
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency=false){
var $next_id;
var $in_transaction = 0;
$this->persistency = $persistency;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->host = $sqlserver;
$this->dbname = $database;
var $row = array();
var $rowset = array();
var $limit_offset;
var $query_limit_success;
if($this->persistency){
$this->db_connect_id = @mssql_pconnect($this->server,$this->user,$this->password);
} else {
$this->db_connect_id = @mssql_connect($this->server,$this->user,$this->password);
}
if($this->db_connect_id){
if($this->dbname != ""){
$dbselect = @mssql_select_db($this->dbname);
if(!$dbselect){
@mssql_close($this->db_connect_id);
$this->db_connect_id = $dbselect;
}
}
}
return $this->db_connect_id;
}
//
// Other base methods
//
function sql_setdb($database){
$this->dbname = $database;
$dbselect = @mssql_select_db($this->dbname);
if(!$dbselect){
sql_close();
$this->db_connect_id = $dbselect;
}
return $this->db_connect_id;
}
function sql_close(){
if($this->db_connect_id){
if($this->query_result){
@mssql_free_result($this->query_result);
}
$result = @mssql_close($this->db_connect_id);
return $result;
} else {
return false;
}
}
var $num_queries = 0;
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
$this->persistency = $persistency;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->server = $sqlserver;
$this->dbname = $database;
$this->db_connect_id = ( $this->persistency ) ? @mssql_pconnect($this->server, $this->user, $this->password) : @mssql_connect($this->server, $this->user, $this->password);
if( $this->db_connect_id && $this->dbname != "" )
{
if( !mssql_select_db($this->dbname, $this->db_connect_id) )
{
mssql_close($this->db_connect_id);
return false;
}
}
return $this->db_connect_id;
}
//
// Other base methods
//
function sql_close()
{
if($this->db_connect_id)
{
//
// Commit any remaining transactions
//
if( $this->in_transaction )
{
@mssql_query("COMMIT", $this->db_connect_id);
}
return @mssql_close($this->db_connect_id);
}
else
{
return false;
}
}
//
// Query method
//
function sql_query($query=""){
// Remove any pre-existing queries
unset($this->query_result);
unset($this->row);
if($query != ""){
// Does query contain any LIMIT code?
// If so pull out relevant start and num_results
// This isn't terribly easy with MSSQL, the best way is
// to use a temporary table.
if(eregi("LIMIT ",$query){
eregi("LIMIT ([0-9]+)[, ]+([0-9]+)", $query, $limits);
$row_offset = $limits[1];
if($limits[2])
$num_rows = $limits[2];
} else {
$this->query_result = @mssql_query($query, $this->db_connect_id);
}
return $this->query_result;
} else {
return 0;
}
}
//
// Other query methods
//
function sql_numrows(){
if($this->query_result){
$result = @mssql_num_rows($this->query_result);
return $result;
} else {
return false;
}
}
function sql_numfields(){
if($this->query_result){
$result = @mssql_num_fields($this->query_result);
return $result;
} else {
return false;
}
}
function sql_fieldname($offset){
if($this->query_result){
$result = @mssql_field_name($this->query_result, $offset);
return $result;
} else {
return false;
}
}
function sql_fieldtype($offset){
if($this->query_result){
$result = @mssql_field_type($this->query_result, $offset);
return $result;
} else {
return false;
}
}
function sql_fetchrow(){
if($this->query_result){
$this->row = @mssql_fetch_array($this->query_result);
return $this->row;
} else {
return false;
}
}
function sql_fetchrowset(){
if($this->query_result){
empty($this->rowset);
while($this->rowset = @mssql_fetch_array($this->query_result)){
$result[] = $this->rowset;
}
return $result;
} else {
return false;
}
}
function sql_fetchfield($field, $row=-1) {
if($this->query_result){
if($row != -1){
$result=@mssql_result($this->query_result, $row, $field);
} else {
if(empty($this->row))
$this->row = @mssql_fetch_array($this->query_result);
$result = $this->row[$field];
}
return $result;
} else {
return false;
}
}
function sql_rowseek($offset){
if($this->query_result){
$result = @mssql_data_seek($this->query_result, $rownum);
return $result;
} else {
return false;
}
}
function sql_nextid(){
if($this->query_result){
return $result;
} else {
return false;
}
}
function sql_freeresult(){
if($this->query_result){
@mssql_free_result($this->query_result);
return;
} else {
return false;
}
}
function sql_error(){
$result[message] = @mssql_get_last_message();
return $result;
}
//
// Query method
//
function sql_query($query = '', $transaction = FALSE)
{
//
// Remove any pre-existing queries
//
unset($this->result);
unset($this->row);
if ( $query != '' )
{
$this->num_queries++;
if ( $transaction == BEGIN_TRANSACTION && !$this->in_transaction )
{
if ( !@mssql_query('BEGIN TRANSACTION', $this->db_connect_id) )
{
return false;
}
$this->in_transaction = TRUE;
}
//
// Does query contain any LIMIT code? If so pull out relevant start and num_results
// This isn't terribly easy with MSSQL, whatever you do will potentially impact
// performance compared to an 'in-built' limit
//
// Another issue is the 'lack' of a returned true value when a query is valid but has
// no result set (as with all the other DB interfaces). It seems though that it's
// 'fair' to say that if a query returns a false result (ie. no resource id) then the
// SQL was valid but had no result set. If the query returns nothing but the rowcount
// returns something then there's a problem. This may well be a false assumption though
// ... needs checking under Windows itself.
//
if( preg_match('#^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$#s', $query, $limits) )
{
$query = $limits[1];
if( !empty($limits[2]) )
{
$row_offset = ( $limits[4] ) ? $limits[3] : "";
$num_rows = ( $limits[4] ) ? $limits[4] : $limits[3];
$query = 'TOP ' . ( $row_offset + $num_rows ) . $query;
}
$this->result = @mssql_query("SELECT $query", $this->db_connect_id);
if( $this->result )
{
$this->limit_offset[$this->result] = ( !empty($row_offset) ) ? $row_offset : 0;
if( $row_offset > 0 )
{
@mssql_data_seek($this->result, $row_offset);
}
}
}
else if( preg_match('#^INSERT #i', $query) )
{
if( @mssql_query($query, $this->db_connect_id) )
{
$this->result = time() + microtime();
$result_id = @mssql_query('SELECT @@IDENTITY AS id, @@ROWCOUNT as affected', $this->db_connect_id);
if( $result_id )
{
if( $row = @mssql_fetch_array($result_id) )
{
$this->next_id[$this->db_connect_id] = $row['id'];
$this->affected_rows[$this->db_connect_id] = $row['affected'];
}
}
}
}
else
{
if( @mssql_query($query, $this->db_connect_id) )
{
$this->result = time() + microtime();
$result_id = @mssql_query('SELECT @@ROWCOUNT as affected', $this->db_connect_id);
if( $result_id )
{
if( $row = @mssql_fetch_array($result_id) )
{
$this->affected_rows[$this->db_connect_id] = $row['affected'];
}
}
}
}
if( !$this->result )
{
if( $this->in_transaction )
{
@mssql_query('ROLLBACK', $this->db_connect_id);
$this->in_transaction = FALSE;
}
return false;
}
if( $transaction == END_TRANSACTION && $this->in_transaction )
{
$this->in_transaction = FALSE;
if( !@mssql_query('COMMIT', $this->db_connect_id) )
{
@mssql_query("ROLLBACK", $this->db_connect_id);
return false;
}
}
return $this->result;
}
else
{
if( $transaction == END_TRANSACTION && $this->in_transaction )
{
$this->in_transaction = FALSE;
if( !@mssql_query('COMMIT', $this->db_connect_id) )
{
@mssql_query('ROLLBACK', $this->db_connect_id);
return false;
}
}
return true;
}
}
//
// Other query methods
//
function sql_numrows($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
return ( !empty($this->limit_offset[$query_id]) ) ? @mssql_num_rows($query_id) - $this->limit_offset[$query_id] : @mssql_num_rows($query_id);
}
else
{
return false;
}
}
function sql_numfields($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
return ( $query_id ) ? @mssql_num_fields($query_id) : false;
}
function sql_fieldname($offset, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
return ( $query_id ) ? @mssql_field_name($query_id, $offset) : false;
}
function sql_fieldtype($offset, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->result;
}
return ( $query_id ) ? @mssql_field_type($query_id, $offset) : false;
}
function sql_fetchrow($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
empty($row);
$row = @mssql_fetch_array($query_id);
while( list($key, $value) = @each($row) )
{
$row[$key] = stripslashes($value);
}
@reset($row);
return $row;
}
else
{
return false;
}
}
function sql_fetchrowset($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
$i = 0;
empty($rowset);
while( $row = @mssql_fetch_array($query_id))
{
while( list($key, $value) = @each($row) )
{
$rowset[$i][$key] = stripslashes($value);
}
$i++;
}
@reset($rowset);
return $rowset;
}
else
{
return false;
}
}
function sql_fetchfield($field, $row = -1, $query_id)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
if( $row != -1 )
{
if( $this->limit_offset[$query_id] > 0 )
{
$result = ( !empty($this->limit_offset[$query_id]) ) ? @mssql_result($this->result, ($this->limit_offset[$query_id] + $row), $field) : false;
}
else
{
$result = @mssql_result($this->result, $row, $field);
}
}
else
{
if( empty($this->row[$query_id]) )
{
$this->row[$query_id] = @mssql_fetch_array($query_id);
$result = stripslashes($this->row[$query_id][$field]);
}
}
return $result;
}
else
{
return false;
}
}
function sql_rowseek($rownum, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
if( $query_id )
{
return ( !empty($this->limit_offset[$query_id]) ) ? @mssql_data_seek($query_id, ($this->limit_offset[$query_id] + $rownum)) : @mssql_data_seek($query_id, $rownum);
}
else
{
return false;
}
}
function sql_nextid()
{
return ( $this->next_id[$this->db_connect_id] ) ? $this->next_id[$this->db_connect_id] : false;
}
function sql_affectedrows()
{
return ( $this->affected_rows[$this->db_connect_id] ) ? $this->affected_rows[$this->db_connect_id] : false;
}
function sql_freeresult($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->result;
}
return ( $query_id ) ? @mssql_free_result($query_id) : false;
}
function sql_error($query_id = 0)
{
$result['message'] = @mssql_get_last_message();
return $result;
}
} // class sql_db
} // if ... define
?>
?>

View File

@@ -1,6 +1,6 @@
<?php
/***************************************************************************
* mysql.php
* mysql.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
@@ -19,217 +19,317 @@
*
***************************************************************************/
if(!defined("SQL_LAYER")){
if(!defined("SQL_LAYER"))
{
define("SQL_LAYER","mysql");
class sql_db {
class sql_db
{
var $db_connect_id;
var $query_result;
var $row;
var $db_connect_id;
var $query_result;
var $row = array();
var $rowset = array();
var $num_queries = 0;
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency=true){
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
$this->persistency = $persistency;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->host = $sqlserver;
$this->persistency = $persistency;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->server = $sqlserver;
$this->dbname = $database;
if($this->persistency){
$this->db_connect_id = @mysql_pconnect($this->server, $this->user, $this->password);
} else {
$this->db_connect_id = @mysql_connect($this->server, $this->user, $this->password);
}
if($this->db_connect_id){
if($database != ""){
$this->dbname = $database;
$dbselect = @mysql_select_db($this->dbname);
if(!$dbselect){
mysql_close($this->db_connect_id);
$this->db_connect_id = $dbselect;
}
}
}
return $this->db_connect_id;
}
//
// Other base methods
//
function sql_setdb($database){
if($database != ""){
$this->dbname = $database;
$dbselect = @mysql_select_db($this->dbname);
if(!$dbselect){
sql_close();
$this->db_connect_id = $dbselect;
}
return $this->db_connect_id;
} else {
return false;
}
}
function sql_close(){
if($this->db_connect_id){
if($this->query_result){
@mysql_free_result($this->query_result);
}
$result = @mysql_close($this->db_connect_id);
return $result;
} else {
return false;
}
}
if($this->persistency)
{
$this->db_connect_id = @mysql_pconnect($this->server, $this->user, $this->password);
}
else
{
$this->db_connect_id = @mysql_connect($this->server, $this->user, $this->password);
}
if($this->db_connect_id)
{
if($database != "")
{
$this->dbname = $database;
$dbselect = @mysql_select_db($this->dbname);
if(!$dbselect)
{
@mysql_close($this->db_connect_id);
$this->db_connect_id = $dbselect;
}
}
return $this->db_connect_id;
}
else
{
return false;
}
}
//
// Base query method
//
function sql_query($query=""){
// Remove any pre-existing queries
unset($this->query_result);
if($query != ""){
$this->query_result = @mysql_query($query, $this->db_connect_id);
}
if($this->query_result){
unset($this->row[$this->query_result]);
unset($this->rowset[$this->query_result]);
return $this->query_result;
} else {
return false;
}
}
//
// Other query methods
//
function sql_numrows($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$result = @mysql_num_rows($query_id);
return $result;
} else {
return false;
}
}
function sql_numfields($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$result = @mysql_num_fields($query_id);
return $result;
} else {
return false;
}
}
function sql_fieldname($offset, $query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$result = @mysql_field_name($query_id, $offset);
return $result;
} else {
return false;
}
}
function sql_fieldtype($offset, $query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$result = @mysql_field_type($query_id, $offset);
return $result;
} else {
return false;
}
}
function sql_fetchrow($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$this->row[$query_id] = @mysql_fetch_array($query_id);
return $this->row[$query_id];
} else {
return false;
}
}
function sql_fetchrowset($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
unset($this->rowset[$query_id]);
unset($this->row[$query_id]);
while($this->rowset[$query_id] = @mysql_fetch_array($query_id)){
$result[] = $this->rowset[$query_id];
}
return $result;
} else {
return false;
}
}
function sql_fetchfield($field, $rownum=-1, $query_id = 0) {
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
if($rownum > -1){
$result = @mysql_result($query_id, $rownum, $field);
} else {
if(empty($this->row[$query_id]) && empty($this->rowset[$query_id])){
if($this->sql_fetchrow())
$result = $this->row[$query_id][$field];
} else {
if($this->rowset[$query_id]){
$result = $this->rowset[$query_id][$field];
} else if($this->row[$query_id]){
$result = $this->row[$query_id][$field];
}
}
}
return $result;
} else {
return false;
}
}
function sql_rowseek($rownum, $query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$result = @mysql_data_seek($query_id, $rownum);
return $result;
} else {
return false;
}
}
function sql_nextid(){
if($this->db_connection_id){
$result = @mysql_insert_id();
return $result;
} else {
return false;
}
}
function sql_freeresult($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$result = @mysql_free_result($query_id);
return $result;
} else {
return false;
}
}
function sql_error($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
$result[message] = @mysql_error($query_id);
$result[code] = @mysql_errno($query_id);
//
// Other base methods
//
function sql_close()
{
if($this->db_connect_id)
{
if($this->query_result)
{
@mysql_free_result($this->query_result);
}
$result = @mysql_close($this->db_connect_id);
return $result;
}
else
{
return false;
}
}
return $result;
}
//
// Base query method
//
function sql_query($query = "", $transaction = FALSE)
{
// Remove any pre-existing queries
unset($this->query_result);
if($query != "")
{
$this->num_queries++;
$this->query_result = @mysql_query($query, $this->db_connect_id);
}
if($this->query_result)
{
unset($this->row[$this->query_result]);
unset($this->rowset[$this->query_result]);
return $this->query_result;
}
else
{
return ( $transaction == END_TRANSACTION ) ? true : false;
}
}
//
// Other query methods
//
function sql_numrows($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @mysql_num_rows($query_id);
return $result;
}
else
{
return false;
}
}
function sql_affectedrows()
{
if($this->db_connect_id)
{
$result = @mysql_affected_rows($this->db_connect_id);
return $result;
}
else
{
return false;
}
}
function sql_numfields($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @mysql_num_fields($query_id);
return $result;
}
else
{
return false;
}
}
function sql_fieldname($offset, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @mysql_field_name($query_id, $offset);
return $result;
}
else
{
return false;
}
}
function sql_fieldtype($offset, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @mysql_field_type($query_id, $offset);
return $result;
}
else
{
return false;
}
}
function sql_fetchrow($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$this->row[$query_id] = @mysql_fetch_array($query_id);
return $this->row[$query_id];
}
else
{
return false;
}
}
function sql_fetchrowset($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
unset($this->rowset[$query_id]);
unset($this->row[$query_id]);
while($this->rowset[$query_id] = @mysql_fetch_array($query_id))
{
$result[] = $this->rowset[$query_id];
}
return $result;
}
else
{
return false;
}
}
function sql_fetchfield($field, $rownum = -1, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
if($rownum > -1)
{
$result = @mysql_result($query_id, $rownum, $field);
}
else
{
if(empty($this->row[$query_id]) && empty($this->rowset[$query_id]))
{
if($this->sql_fetchrow())
{
$result = $this->row[$query_id][$field];
}
}
else
{
if($this->rowset[$query_id])
{
$result = $this->rowset[$query_id][$field];
}
else if($this->row[$query_id])
{
$result = $this->row[$query_id][$field];
}
}
}
return $result;
}
else
{
return false;
}
}
function sql_rowseek($rownum, $query_id = 0){
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$result = @mysql_data_seek($query_id, $rownum);
return $result;
}
else
{
return false;
}
}
function sql_nextid(){
if($this->db_connect_id)
{
$result = @mysql_insert_id($this->db_connect_id);
return $result;
}
else
{
return false;
}
}
function sql_freeresult($query_id = 0){
if(!$query_id)
{
$query_id = $this->query_result;
}
if ( $query_id )
{
unset($this->row[$query_id]);
unset($this->rowset[$query_id]);
@mysql_free_result($query_id);
return true;
}
else
{
return false;
}
}
function sql_error($query_id = 0)
{
$result["message"] = @mysql_error($this->db_connect_id);
$result["code"] = @mysql_errno($this->db_connect_id);
return $result;
}
} // class sql_db
} // if ... define
?>
?>

340
phpBB/db/mysql4.php Normal file
View File

@@ -0,0 +1,340 @@
<?php
/***************************************************************************
* mysql4.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : supportphpbb.com
*
* $Id$
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if(!defined("SQL_LAYER"))
{
define("SQL_LAYER","mysql4");
class sql_db
{
var $db_connect_id;
var $query_result;
var $row = array();
var $rowset = array();
var $num_queries = 0;
var $in_transaction = 0;
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
$this->persistency = $persistency;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->server = $sqlserver;
$this->dbname = $database;
$this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password);
if( $this->db_connect_id )
{
if( $database != "" )
{
$this->dbname = $database;
$dbselect = mysql_select_db($this->dbname);
if( !$dbselect )
{
mysql_close($this->db_connect_id);
$this->db_connect_id = $dbselect;
}
}
return $this->db_connect_id;
}
else
{
return false;
}
}
//
// Other base methods
//
function sql_close()
{
if( $this->db_connect_id )
{
//
// Commit any remaining transactions
//
if( $this->in_transaction )
{
mysql_query("COMMIT", $this->db_connect_id);
}
return mysql_close($this->db_connect_id);
}
else
{
return false;
}
}
//
// Base query method
//
function sql_query($query = "", $transaction = FALSE)
{
//
// Remove any pre-existing queries
//
unset($this->query_result);
if( $query != "" )
{
$this->num_queries++;
if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction )
{
$result = mysql_query("BEGIN", $this->db_connect_id);
if(!$result)
{
return false;
}
$this->in_transaction = TRUE;
}
$this->query_result = mysql_query($query, $this->db_connect_id);
}
else
{
if( $transaction == END_TRANSACTION && $this->in_transaction )
{
$result = mysql_query("COMMIT", $this->db_connect_id);
}
}
if( $this->query_result )
{
unset($this->row[$this->query_result]);
unset($this->rowset[$this->query_result]);
if( $transaction == END_TRANSACTION && $this->in_transaction )
{
$this->in_transaction = FALSE;
if ( !mysql_query("COMMIT", $this->db_connect_id) )
{
mysql_query("ROLLBACK", $this->db_connect_id);
return false;
}
}
return $this->query_result;
}
else
{
if( $this->in_transaction )
{
mysql_query("ROLLBACK", $this->db_connect_id);
$this->in_transaction = FALSE;
}
return false;
}
}
//
// Other query methods
//
function sql_numrows($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
return ( $query_id ) ? mysql_num_rows($query_id) : false;
}
function sql_affectedrows()
{
return ( $this->db_connect_id ) ? mysql_affected_rows($this->db_connect_id) : false;
}
function sql_numfields($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
return ( $query_id ) ? mysql_num_fields($query_id) : false;
}
function sql_fieldname($offset, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
return ( $query_id ) ? mysql_field_name($query_id, $offset) : false;
}
function sql_fieldtype($offset, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
return ( $query_id ) ? mysql_field_type($query_id, $offset) : false;
}
function sql_fetchrow($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
if( $query_id )
{
$this->row[$query_id] = mysql_fetch_array($query_id, MYSQL_ASSOC);
return $this->row[$query_id];
}
else
{
return false;
}
}
function sql_fetchrowset($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
if( $query_id )
{
unset($this->rowset[$query_id]);
unset($this->row[$query_id]);
while($this->rowset[$query_id] = mysql_fetch_array($query_id, MYSQL_ASSOC))
{
$result[] = $this->rowset[$query_id];
}
return $result;
}
else
{
return false;
}
}
function sql_fetchfield($field, $rownum = -1, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
if( $query_id )
{
if( $rownum > -1 )
{
$result = mysql_result($query_id, $rownum, $field);
}
else
{
if( empty($this->row[$query_id]) && empty($this->rowset[$query_id]) )
{
if( $this->sql_fetchrow() )
{
$result = $this->row[$query_id][$field];
}
}
else
{
if( $this->rowset[$query_id] )
{
$result = $this->rowset[$query_id][$field];
}
else if( $this->row[$query_id] )
{
$result = $this->row[$query_id][$field];
}
}
}
return $result;
}
else
{
return false;
}
}
function sql_rowseek($rownum, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
return ( $query_id ) ? mysql_data_seek($query_id, $rownum) : false;
}
function sql_nextid()
{
return ( $this->db_connect_id ) ? mysql_insert_id($this->db_connect_id) : false;
}
function sql_freeresult($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
if ( $query_id )
{
unset($this->row[$query_id]);
unset($this->rowset[$query_id]);
mysql_free_result($query_id);
return true;
}
else
{
return false;
}
}
function sql_error()
{
$result['message'] = mysql_error($this->db_connect_id);
$result['code'] = mysql_errno($this->db_connect_id);
return $result;
}
} // class sql_db
} // if ... define
?>

View File

@@ -1,278 +1,397 @@
<?php
/***************************************************************************
* postgres7.php
* postgres7.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
* email : supportphpbb.com
*
* $Id$
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if(!defined("SQL_LAYER")){
if(!defined("SQL_LAYER"))
{
define("SQL_LAYER","postgresql");
class sql_db {
class sql_db
{
var $db_connect_id;
var $query_result;
var $row;
var $rownum = array();
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency=true){
var $db_connect_id;
var $query_result;
var $in_transaction = 0;
var $row = array();
var $rowset = array();
var $rownum = array();
var $num_queries = 0;
$this->connect_string = "";
if($sqluser){
$this->connect_string .= "user=$sqluser ";
}
if($sqlpassword){
$this->connect_string .= "password=$sqlpassword ";
}
if($sqlserver){
if(ereg(":",$sqlserver)){
list($sqlserver,$sqlport) = split(":",$sqlserver);
$this->connect_string .= "host=$sqlserver port=$sqlport ";
} else {
$this->connect_string .= "host=$sqlserver ";
}
}
if($database){
$this->dbname = $database;
$make_connect = $this->connect_string . "dbname=$database";
} else {
$make_connect = $this->connect_string;
}
$this->persistency = $persistency;
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
$this->connect_string = "";
if($this->persistency){
$this->db_connect_id = @pg_pconnect($make_connect);
} else {
$this->db_connect_id = @pg_connect($make_connect);
}
return $this->db_connect_id;
}
//
// Other base methods
//
function sql_setdb($database){
if($this->db_connect_id){
if($this->query_result){
@pg_freeresult($this->query_result);
unset($this->query_result);
unset($this->row);
}
$result = @pg_close($this->db_connect_id);
if($result){
$this->dbname = $database;
$make_connect = $this->connect_string . "dbname=$database";
if($this->persistency){
$this->db_connect_id = @pg_pconnect($make_connect);
} else {
$this->db_connect_id = @pg_connect($make_connect);
}
}
}
return $this->db_connect_id;
}
function sql_close(){
if($this->db_connect_id){
if($this->query_result){
@pg_freeresult($this->query_result);
}
$result = @pg_close($this->db_connect_id);
return $result;
} else {
return false;
}
}
if( $sqluser )
{
$this->connect_string .= "user=$sqluser ";
}
if( $sqlpassword )
{
$this->connect_string .= "password=$sqlpassword ";
}
//
// Query method
//
function sql_query($query=""){
// Remove any pre-existing queries
unset($this->query_result);
if($query != ""){
$this->query_result = @pg_exec($this->db_connect_id, $query);
if($this->query_result){
if( $sqlserver )
{
if( ereg(":", $sqlserver) )
{
list($sqlserver, $sqlport) = split(":", $sqlserver);
$this->connect_string .= "host=$sqlserver port=$sqlport ";
}
else
{
if( $sqlserver != "localhost" )
{
$this->connect_string .= "host=$sqlserver ";
}
}
}
$this->last_query_text[$this->query_result] = $query;
$this->rownum[$this->query_result] = 0;
unset($this->row[$this->query_result]);
unset($this->rowset[$this->query_result]);
if( $database )
{
$this->dbname = $database;
$this->connect_string .= "dbname=$database";
}
return $this->query_result;
} else {
return false;
}
} else {
return 0;
}
}
//
// Other query methods
//
function sql_numrows($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$result = @pg_numrows($query_id);
return $result;
} else {
return false;
}
}
function sql_numfields($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$result = @pg_numfields($query_id);
return $result;
} else {
return false;
}
}
function sql_fieldname($offset, $query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$result = @pg_fieldname($query_id, $offset);
return $result;
} else {
return false;
}
}
function sql_fieldtype($offset, $query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$result = @pg_fieldtype($query_id, $offset);
return $result;
} else {
return false;
}
}
function sql_fetchrow($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$this->row = @pg_fetch_array($query_id, $this->rownum[$query_id]);
if($this->row)
$this->rownum[$query_id]++;
return $this->row;
} else {
return false;
}
}
function sql_fetchrowset($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
unset($this->rowset[$query_id]);
unset($this->row[$query_id]);
$this->rownum[$query_id] = 0;
while($this->rowset = @pg_fetch_array($query_id, $this->rownum[$query_id])){
$result[] = $this->rowset;
$this->rownum[$query_id]++;
}
return $result;
} else {
return false;
}
}
function sql_fetchfield($field, $row_offset=-1, $query_id = 0) {
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
if($row_offset != -1){
$this->row = @pg_fetch_array($query_id, $row_offset);
} else {
if($this->rownum[$query_id]){
$this->row = @pg_fetch_array($query_id, $this->rownum[$query_id]-1);
} else {
$this->row = @pg_fetch_array($query_id, $this->rownum[$query_id]);
if($this->row)
$this->rownum[$query_id]++;
}
}
$result = $this->row[$field];
return $result;
} else {
return false;
}
}
function sql_rowseek($offset, $query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
if($offset>-1){
$this->rownum[$query_id] = $offset;
return true;
} else {
return false;
}
} else {
return false;
}
}
function sql_nextid($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id && $this->last_query_text[$query_id] != ""){
if(eregi("^(INSERT{1}|^INSERT INTO{1})[[:space:]][\"]?([[:alnum:]]+)[\"]?", $this->last_query_text[$query_id], $tablename);
$query = "SELECT last_value FROM ".$tablename[2]."_id_seq";
$temp_q_id = @pg_exec($this->db_connect_id, $query);
if($query_id){
$temp_result = @pg_fetch_array($temp_q_id, 0);
if($temp_result){
return $temp_result["last_value"]+1;
} else {
return false;
}
} else {
return false;
}
} else {
return false;
}
} else {
return false;
}
}
function sql_freeresult($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
if($query_id){
$result = @pg_freeresult($query_id);
return $result;
} else {
return false;
}
}
function sql_error($query_id = 0){
if(!$query_id)
$query_id = $this->query_result;
$result[message] = @pg_errormessage($query_id);
$result[code] = -1;
return $result;
}
$this->persistency = $persistency;
$this->db_connect_id = ( $this->persistency ) ? pg_pconnect($this->connect_string) : pg_connect($this->connect_string);
return ( $this->db_connect_id ) ? $this->db_connect_id : false;
}
//
// Other base methods
//
function sql_close()
{
if( $this->db_connect_id )
{
//
// Commit any remaining transactions
//
if( $this->in_transaction )
{
@pg_exec($this->db_connect_id, "COMMIT");
}
if( $this->query_result )
{
@pg_freeresult($this->query_result);
}
return @pg_close($this->db_connect_id);
}
else
{
return false;
}
}
//
// Query method
//
function sql_query($query = "", $transaction = false)
{
//
// Remove any pre-existing queries
//
unset($this->query_result);
if( $query != "" )
{
$this->num_queries++;
$query = preg_replace("/LIMIT ([0-9]+),([ 0-9]+)/", "LIMIT \\2 OFFSET \\1", $query);
if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction )
{
$this->in_transaction = TRUE;
if( !@pg_exec($this->db_connect_id, "BEGIN") )
{
return false;
}
}
$this->query_result = @pg_exec($this->db_connect_id, $query);
if( $this->query_result )
{
if( $transaction == END_TRANSACTION )
{
$this->in_transaction = FALSE;
if( !@pg_exec($this->db_connect_id, "COMMIT") )
{
@pg_exec($this->db_connect_id, "ROLLBACK");
return false;
}
}
$this->last_query_text[$this->query_result] = $query;
$this->rownum[$this->query_result] = 0;
unset($this->row[$this->query_result]);
unset($this->rowset[$this->query_result]);
return $this->query_result;
}
else
{
if( $this->in_transaction )
{
@pg_exec($this->db_connect_id, "ROLLBACK");
}
$this->in_transaction = FALSE;
return false;
}
}
else
{
if( $transaction == END_TRANSACTION && $this->in_transaction )
{
$this->in_transaction = FALSE;
if( !@pg_exec($this->db_connect_id, "COMMIT") )
{
@pg_exec($this->db_connect_id, "ROLLBACK");
return false;
}
}
return true;
}
}
//
// Other query methods
//
function sql_numrows($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
return ( $query_id ) ? @pg_numrows($query_id) : false;
}
function sql_numfields($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
return ( $query_id ) ? @pg_numfields($query_id) : false;
}
function sql_fieldname($offset, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
return ( $query_id ) ? @pg_fieldname($query_id, $offset) : false;
}
function sql_fieldtype($offset, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
return ( $query_id ) ? @pg_fieldtype($query_id, $offset) : false;
}
function sql_fetchrow($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
if($query_id)
{
$this->row = @pg_fetch_array($query_id, $this->rownum[$query_id]);
if( $this->row )
{
$this->rownum[$query_id]++;
return $this->row;
}
}
return false;
}
function sql_fetchrowset($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
if( $query_id )
{
unset($this->rowset[$query_id]);
unset($this->row[$query_id]);
$this->rownum[$query_id] = 0;
while( $this->rowset = @pg_fetch_array($query_id, $this->rownum[$query_id], PGSQL_ASSOC) )
{
$result[] = $this->rowset;
$this->rownum[$query_id]++;
}
return $result;
}
return false;
}
function sql_fetchfield($field, $row_offset=-1, $query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
if( $query_id )
{
if( $row_offset != -1 )
{
$this->row = @pg_fetch_array($query_id, $row_offset, PGSQL_ASSOC);
}
else
{
if( $this->rownum[$query_id] )
{
$this->row = @pg_fetch_array($query_id, $this->rownum[$query_id]-1, PGSQL_ASSOC);
}
else
{
$this->row = @pg_fetch_array($query_id, $this->rownum[$query_id], PGSQL_ASSOC);
if( $this->row )
{
$this->rownum[$query_id]++;
}
}
}
return $this->row[$field];
}
return false;
}
function sql_rowseek($offset, $query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if( $query_id )
{
if( $offset > -1 )
{
$this->rownum[$query_id] = $offset;
return true;
}
else
{
return false;
}
}
return false;
}
function sql_nextid()
{
$query_id = $this->query_result;
if($query_id && $this->last_query_text[$query_id] != "")
{
if( preg_match("/^INSERT[\t\n ]+INTO[\t\n ]+([a-z0-9\_\-]+)/is", $this->last_query_text[$query_id], $tablename) )
{
$query = "SELECT currval('" . $tablename[1] . "_id_seq') AS last_value";
$temp_q_id = @pg_exec($this->db_connect_id, $query);
if( !$temp_q_id )
{
return false;
}
$temp_result = @pg_fetch_array($temp_q_id, 0, PGSQL_ASSOC);
return ( $temp_result ) ? $temp_result['last_value'] : false;
}
}
return false;
}
function sql_affectedrows($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
return ( $query_id ) ? @pg_cmdtuples($query_id) : false;
}
function sql_freeresult($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
return ( $query_id ) ? @pg_freeresult($query_id) : false;
}
function sql_error($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
$result['message'] = @pg_errormessage($this->db_connect_id);
$result['code'] = -1;
return $result;
}
} // class ... db_sql
} // if ... defined
?>
?>

View File

@@ -0,0 +1,218 @@
<?php
/***************************************************************************
* bbcode_conversion.php
* -------------------
* begin : Tuesday, March 20, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id:
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
include('../extension.inc');
include('../config.'.$phpEx);
include('../includes/constants.'.$phpEx);
include('../functions/functions.'.$phpEx);
include('../includes/db.'.$phpEx);
include('../functions/bbcode.'.$phpEx);
set_time_limit(60*60); // Increase maximum execution time to 60 minutes.
$backup_name = "backup_post_text";
$table_name = POSTS_TEXT_TABLE;
$sql = "CREATE TABLE $backup_name (
post_id int(10) DEFAULT '0' NOT NULL,
post_text text,
PRIMARY KEY (post_id)
);";
echo "<p>Creating backup table.. </p>\n";
flush();
$result = $db->sql_query($sql);
if (!$result)
{
$db_error = $db->sql_error();
die("Error doing DB backup table creation. Reason: " . $db_error["message"]);
}
$sql = "insert into $backup_name select * from $table_name";
echo "<p>Populating backup table.. </p>\n";
flush();
$result = $db->sql_query($sql);
if (!$result)
{
$db_error = $db->sql_error();
die("Error doing DB backup table data moving. Reason: " . $db_error["message"]);
}
$sql = "SELECT p.post_id, t.post_text FROM " . POSTS_TABLE . " p, " . POSTS_TEXT_TABLE . " t WHERE (p.post_id = t.post_id)";
if(!$result = $db->sql_query($sql))
{
die("error getting posts to work on");
}
if(!$total_rows = $db->sql_numrows($result))
{
die("error getting rowcount");
}
echo "<p><b>Found $total_rows total rows to work on. </b></p>\n";
flush();
$row = $db->sql_fetchrowset($result);
for($i = 0; $i < $total_rows; $i++)
{
$post_id = $row[$i]['post_id'];
$text = $row[$i]['post_text'];
// undo 1.2.x encoding..
$text = bbdecode($text);
$text = undo_make_clickable($text);
$text = str_replace("<BR>", "\n", $text);
// make a uid
$uid = make_bbcode_uid();
// do 2.x first-pass encoding..
$text = bbencode_first_pass($text, $uid);
$text = addslashes($text);
// put the uid in the database.
$sql = "UPDATE " . POSTS_TABLE . " SET bbcode_uid='" . $uid . "' WHERE (post_id = $post_id)";
$result = $db->sql_query($sql);
if (!$result)
{
$db_error = $db->sql_error();
die("Error doing DB update in posts table. Reason: " . $db_error["message"] . " sql: $sql");
}
// Put the post text back in the database.
$sql = "UPDATE " . POSTS_TEXT_TABLE . " SET post_text='" . $text . "' WHERE (post_id = $post_id)";
$result = $db->sql_query($sql);
if (!$result)
{
$db_error = $db->sql_error();
die("Error doing DB update in post text table. Reason: " . $db_error["message"] . " sql: $sql");
}
if (($i % 100) == 0)
{
echo "Done post: <b> $i </b><br>\n";
flush();
}
}
echo "<p><b>Done.</b></p>\n";
// -------------------------------------------------------------------------------
// Everything below here is 1.x BBCode functions.
// -------------------------------------------------------------------------------
function bbdecode($message) {
// Undo [code]
$code_start_html = "<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Code:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><PRE>";
$code_end_html = "</PRE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode End -->";
$message = str_replace($code_start_html, "[code]", $message);
$message = str_replace($code_end_html, "[/code]", $message);
// Undo [quote]
$quote_start_html = "<!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE>";
$quote_end_html = "</BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End -->";
$message = str_replace($quote_start_html, "[quote]", $message);
$message = str_replace($quote_end_html, "[/quote]", $message);
// Undo [b] and [i]
$message = preg_replace("#<!-- BBCode Start --><B>(.*?)</B><!-- BBCode End -->#s", "[b]\\1[/b]", $message);
$message = preg_replace("#<!-- BBCode Start --><I>(.*?)</I><!-- BBCode End -->#s", "[i]\\1[/i]", $message);
// Undo [url] (long form)
$message = preg_replace("#<!-- BBCode u2 Start --><A HREF=\"([a-z]+?://)(.*?)\" TARGET=\"_blank\">(.*?)</A><!-- BBCode u2 End -->#s", "[url=\\1\\2]\\3[/url]", $message);
// Undo [url] (short form)
$message = preg_replace("#<!-- BBCode u1 Start --><A HREF=\"([a-z]+?://)(.*?)\" TARGET=\"_blank\">(.*?)</A><!-- BBCode u1 End -->#s", "[url]\\3[/url]", $message);
// Undo [email]
$message = preg_replace("#<!-- BBCode Start --><A HREF=\"mailto:(.*?)\">(.*?)</A><!-- BBCode End -->#s", "[email]\\1[/email]", $message);
// Undo [img]
$message = preg_replace("#<!-- BBCode Start --><IMG SRC=\"(.*?)\" BORDER=\"0\"><!-- BBCode End -->#s", "[img]\\1[/img]", $message);
// Undo lists (unordered/ordered)
// <li> tags:
$message = str_replace("<!-- BBCode --><LI>", "[*]", $message);
// [list] tags:
$message = str_replace("<!-- BBCode ulist Start --><UL>", "[list]", $message);
// [list=x] tags:
$message = preg_replace("#<!-- BBCode olist Start --><OL TYPE=([A1])>#si", "[list=\\1]", $message);
// [/list] tags:
$message = str_replace("</UL><!-- BBCode ulist End -->", "[/list]", $message);
$message = str_replace("</OL><!-- BBCode olist End -->", "[/list]", $message);
return($message);
}
/**
* Nathan Codding - Feb 6, 2001
* Reverses the effects of make_clickable(), for use in editpost.
* - Does not distinguish between "www.xxxx.yyyy" and "http://aaaa.bbbb" type URLs.
*
*/
function undo_make_clickable($text) {
$text = preg_replace("#<!-- BBCode auto-link start --><a href=\"(.*?)\" target=\"_blank\">.*?</a><!-- BBCode auto-link end -->#i", "\\1", $text);
$text = preg_replace("#<!-- BBcode auto-mailto start --><a href=\"mailto:(.*?)\">.*?</a><!-- BBCode auto-mailto end -->#i", "\\1", $text);
return $text;
}
?>

443
phpBB/develop/benchmark.php Normal file
View File

@@ -0,0 +1,443 @@
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
define('IN_PHPBB', true);
$phpbb_root_path = "../";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
srand ((double) microtime() * 1000000);
set_time_limit(240*60);
// Here's the text we stick in posts..
$bigass_text = '
phpBB BBCode test suite v0.0.2
auto-linkification:
http://something.com
www.something.com
nate@phpbb.com
http://something.com/foo.php?this=that&theother=some%20encoded%20string is a link.
[code]
Simple code block with some <html> <tags>.
[/code]
[b]bolded[/b], [i]italic[/i]
[email]james@totalgeek.org[/email]
[url=http://www.totalgeek.org]totalgeek.org[/url]
[url]www.totalgeek.org[/url]
[list]
[*] This is the first bulleted item.
[*] This is the second bulleted item.
[/list]
[list=A]
[*] This is the first bulleted item.
[*] This is the second bulleted item.
[/list]
[quote]
And a quote!
[/quote]
';
$users = intval($HTTP_GET_VARS['users']);
$posts = intval($HTTP_GET_VARS['posts']);
$size = intval($HTTP_GET_VARS['size']);
// The script expects the ID's in the tables to sequential (1,2,3,4,5),
// so no holes please (1,4,5,8)...
$nr_of_users = nrof(USERS_TABLE);
$nr_of_cats = nrof(CATEGORIES_TABLE);
$nr_of_forums = nrof(FORUMS_TABLE);
$nr_of_posts = nrof(POSTS_TABLE);
$u = $users;
$starttime = microtime();
$usercreationcount = 0;
while($users > 0)
{
$name = "testuser_" . substr(md5(uniqid(rand())), 0, 10);
if (make_user($name))
{
$usercreationcount++;
$users--;
}
if (($usercreationcount % 500) == 0)
{
echo "status: $usercreationcount <br>\n";
flush();
}
}
if ($posts > 0)
{
filldb($posts);
}
$endtime = microtime();
$submit = (isset($HTTP_GET_VARS['submit'])) ? true : false;
if (!$submit)
{
?>
Hello, welcome to this little phpBB Benchmarking script :)<p>
At the moment there are:<br>
<table>
<tr><td align="right"><?php echo $nr_of_users?></td><td>Users</td></tr>
<tr><td align="right"><?php echo $nr_of_forums?></td><td>Forums</td></tr>
<tr><td align="right"><?php echo $nr_of_posts?></td><td>Posts</td></tr>
</table>
<p>
What do you want to create?<p>
<form method="get" action="<?php echo $PHP_SELF?>">
<input type="text" name="users" size="3"> Users<br>
<input type="text" name="posts" size="3"> Posts/topics (optional: post size in <input type="text" name="size" size="3"> bytes)<br>
<input type="submit" name="submit">
</form>
<?php
}
else
{
list ($starttime_msec,$starttime_sec) = explode(" ",$starttime);
list ($endtime_msec,$endtime_sec) = explode(" ",$endtime);
$timetaken_sec = ($endtime_sec+$endtime_msec) - ($starttime_sec+$starttime_msec);
print "<B>TIME TAKEN : ".$timetaken_sec."s</B><BR>\n";
print "<p>\n<a href=\"$PHP_SELF\">Back to the overview page</a>\n";
}
function filldb($newposts)
{
global $nr_of_forums;
global $nr_of_users;
$forum_topic_counts = array();
for ($i = 1; $i <= $nr_of_forums; $i++)
{
$forum_topic_counts[$i] = get_topic_count($i);
}
for($i = 0; $i < $newposts; $i++)
{
$userid = rand(2, $nr_of_users - 1);
$forum = rand(1,$nr_of_forums);
if ((rand(0,30) < 1) || ($forum_topic_count[$forum] == 0))
{
// create a new topic 1 in 30 times (or when there are none);
$topic = make_topic($userid, "Testing topic $i", $forum);
$forum_topic_count[$forum]++;
}
else
{
// Otherwise create a reply(posting) somewhere.
$topic = get_smallest_topic($forum);
create_posting($userid, $topic, $forum, "reply");
}
if (($i % 1000) == 0)
{
echo "status: $i <br>";
flush();
}
}
}
function get_smallest_topic($forum_id)
{
global $db;
$sql = "SELECT topic_id
FROM " . TOPICS_TABLE . "
WHERE (forum_id = $forum_id)
ORDER BY topic_replies ASC LIMIT 1";
if($result = $db->sql_query($sql))
{
$row = $db->sql_fetchrow($result);
$topic_id = $row['topic_id'];
unset($result);
unset($row);
return $topic_id;
}
else
{
message_die(GENERAL_ERROR, "Couldn't get smallest topic.", "", __LINE__, __FILE__, $sql);
}
}
function get_topic_count($forum_id)
{
global $db;
$sql = "SELECT forum_topics
FROM " . FORUMS_TABLE . "
WHERE (forum_id = $forum_id)";
if($result = $db->sql_query($sql))
{
$row = $db->sql_fetchrow($result);
$topic_count = $row['forum_topics'];
unset($result);
unset($row);
return $topic_count;
}
else
{
message_die(GENERAL_ERROR, "Couldn't get topic count.", "", __LINE__, __FILE__, $sql);
}
}
function make_topic($user_id, $subject, $forum_id)
{
global $db;
$topic_type = POST_NORMAL;
$topic_vote = 0;
$current_time = time();
$sql = "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote)
VALUES ('$subject', $user_id, $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)";
if( $result = $db->sql_query($sql) )
{
$new_topic_id = $db->sql_nextid();
}
else
{
message_die(GENERAL_ERROR, "Error inserting data into topics table", "", __LINE__, __FILE__, $sql);
}
create_posting($user_id, $new_topic_id, $forum_id);
return $new_topic_id;
}
function create_posting($userid, $topic_id, $forum, $mode = 'newtopic')
{
$message = generatepost();
return make_post($topic_id, $forum, $userid, "", $message, $mode);
}
function make_post($new_topic_id, $forum_id, $user_id, $post_username, $text, $mode = 'newtopic')
{
global $db;
$current_time = time();
$user_ip = "ac100202";
$bbcode_on = 1;
$html_on = 1;
$smilies_on = 1;
$attach_sig = 1;
$bbcode_uid = make_bbcode_uid();
$post_subject = 'random subject';
$post_message = prepare_message($text, $html_on, $bbcode_on, $smilies_on, $bbcode_uid);
$sql = "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig)
VALUES ($new_topic_id, $forum_id, $user_id, '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig)";
$result = $db->sql_query($sql);
if($result)
{
$new_post_id = $db->sql_nextid();
$sql = "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text)
VALUES ($new_post_id, '$post_subject', '$bbcode_uid', '$post_message')";
if($db->sql_query($sql))
{
$post_data = array();
$post_data['first_post'] = false;
$post_data['last_post'] = true;
$sql = "SELECT SUM(post_id) as total FROM " . POSTS_TABLE . " WHERE topic_id = " . $new_topic_id;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$total = intval($row['total']);
if ($total == 1)
{
$post_data['first_post'] = true;
}
$sql = "SELECT forum_last_post_id
FROM " . FORUMS_TABLE . "
WHERE forum_id = $forum_id";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$post_data['last_topic'] = ( $row['forum_last_post_id'] == $new_post_id ) ? true : false;
update_post_stats($mode, $post_data, $forum_id, $new_topic_id, $new_post_id, $user_id);
}
else
{
// Rollback
if(SQL_LAYER == "mysql")
{
$sql = "DELETE FROM " . POSTS_TABLE . "
WHERE post_id = $new_post_id";
$db->sql_query($sql);
}
message_die(GENERAL_ERROR, "Error inserting data into posts text table", "", __LINE__, __FILE__, $sql);
}
}
else
{
message_die(GENERAL_ERROR, "Error inserting data into posts table", "", __LINE__, __FILE__, $sql);
}
}
function generatepost($size = 850)
{
global $bigass_text;
// Returns a string with a length between $size and $size*0.2
$size = rand(0.2*$size, $size);
$textsize = strlen($bigass_text);
$currentsize = 0;
// Add whole $text multiple times
while($currentsize < $size && $size-$currentsize <= $textsize)
{
$message .= $bigass_text;
$currentsize += $textsize;
}
// Add the remainder number of chars and return it.
$message .= substr($bigass_text, 0, $size-$currentsize);
return (addslashes($message));
}
function nrof($table)
{
global $db;
$sql = "SELECT count(*) AS counted FROM $table";
$result = $db->sql_query($sql);
$topics = $db->sql_fetchrow($result);
return $topics[counted];
}
function make_user($username)
{
global $db, $board_config;
$password = md5("benchpass");
$email = "nobody@localhost";
$icq = "12345678";
$website = "http://www.phpbb.com";
$occupation = "phpBB tester";
$location = "phpBB world hq";
$interests = "Eating, sleeping, living, and breathing phpBB";
$signature = "$username: phpBB tester.";
$signature_bbcode_uid = "";
$avatar_filename = "";
$viewemail = 0;
$aim = 0;
$yim = 0;
$msn = 0;
$attachsig = 1;
$allowsmilies = 1;
$allowhtml = 1;
$allowbbcode = 1;
$allowviewonline = 1;
$notifyreply = 0;
$notifypm = 0;
$user_timezone = $board_config['board_timezone'];
$user_dateformat = $board_config['default_dateformat'];
$user_lang = $board_config['default_lang'];
$user_style = $board_config['default_style'];
$sql = "SELECT MAX(user_id) AS total
FROM " . USERS_TABLE;
if($result = $db->sql_query($sql))
{
$row = $db->sql_fetchrow($result);
$new_user_id = $row['total'] + 1;
unset($result);
unset($row);
}
else
{
message_die(GENERAL_ERROR, "Couldn't obtained next user_id information.", "", __LINE__, __FILE__, $sql);
}
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
VALUES ($new_user_id, '$username', " . time() . ", '$password', '$email', '$icq', '$website', '$occupation', '$location', '$interests', '$signature', '$signature_bbcode_uid', '$avatar_filename', $viewemail, '$aim', '$yim', '$msn', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $user_timezone, '$user_dateformat', '$user_lang', $user_style, 0, 1, ";
$sql .= "1, '')";
if($result = $db->sql_query($sql, BEGIN_TRANSACTION))
{
$sql = "INSERT INTO " . GROUPS_TABLE . " (group_name, group_description, group_single_user, group_moderator)
VALUES ('', 'Personal User', 1, 0)";
if($result = $db->sql_query($sql))
{
$group_id = $db->sql_nextid();
$sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending)
VALUES ($new_user_id, $group_id, 0)";
if($result = $db->sql_query($sql, END_TRANSACTION))
{
// SUCCESS.
return true;
}
else
{
message_die(GENERAL_ERROR, "Couldn't insert data into user_group table", "", __LINE__, __FILE__, $sql);
}
}
else
{
message_die(GENERAL_ERROR, "Couldn't insert data into groups table", "", __LINE__, __FILE__, $sql);
}
}
else
{
message_die(GENERAL_ERROR, "Couldn't insert data into users table", "", __LINE__, __FILE__, $sql);
}
}
?>

View File

@@ -0,0 +1,65 @@
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
$phpbb_root_path = "../";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
$sql = "ALTER TABLE " . USERS_TABLE . "
ADD user_avatar_type TINYINT(4) DEFAULT '0' NOT NULL";
if( !$result = $db->sql_query($sql) )
{
die("Couldn't alter users table");
}
$sql = "SELECT user_id, user_avatar
FROM " . USERS_TABLE;
if( $result = $db->sql_query($sql) )
{
$rowset = $db->sql_fetchrowset($result);
for($i = 0; $i < count($rowset); $i++)
{
if( ereg("^http", $rowset[$i]['user_avatar']))
{
$sql_type = USER_AVATAR_REMOTE;
}
else if( $rowset[$i]['user_avatar'] != "" )
{
$sql_type = USER_AVATAR_UPLOAD;
}
else
{
$sql_type = USER_AVATAR_NONE;
}
$sql = "UPDATE " . USERS_TABLE . "
SET user_avatar_type = $sql_type
WHERE user_id = " . $rowset[$i]['user_id'];
if( !$result = $db->sql_query($sql) )
{
die("Couldn't update users table- " . $i);
}
}
}
echo "<BR><BR>COMPLETE<BR>";
?>

View File

@@ -0,0 +1,96 @@
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
$phpbb_root_path = "../";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
function query($sql, $errormsg)
{
global $db;
if(!$result = $db->sql_query($sql))
{
print "<br><font color=\"red\">\n";
print "$errormsg<br>";
$sql_error = $db->sql_error();
print $sql_error['code'] .": ". $sql_error['message']. "<br>\n";
print "<pre>$sql</pre>";
print "</font>\n";
return FALSE;
}
else
{
return $result;
}
}
if($HTTP_GET_VARS['delete'] == 'true')
{
$sql = "ALTER TABLE ".POSTS_TABLE."
DROP bbcode_uid";
query($sql, "Didn't manage to drop the bbcode_uid table in ".POSTS_TABLE);
print "All done now. Deleted the bbcode_uid column from the posts table.<p>";
exit;
}
$sql = "ALTER TABLE ".POSTS_TEXT_TABLE."
ADD bbcode_uid char(10) NOT NULL";
print "Adding bbcode_uid field to ".POSTS_TEXT_TABLE.".<br>\n";
$result = query($sql, "Couldn't get add bbcode_uid field to ".POSTS_TEXT_TABLE.".");
$sql = "
SELECT
count(*) as total,
max(post_id) as maxid
FROM ". POSTS_TABLE;
$result = query($sql, "Couldn't get max post_id.");
$maxid = $db->sql_fetchrow($result);
$totalposts = $maxid['total'];
$maxid = $maxid['maxid'];
$batchsize = 200;
print "Going to convert BBcode in posts with $batchsize messages at a time and $totalposts in total.<br>\n";
for($i = 0; $i <= $maxid; $i += $batchsize)
{
$batchstart = $i + 1;
$batchend = $i + $batchsize;
print "Moving BBcode UID in post number $batchstart to $batchend<br>\n";
flush();
$sql = "
SELECT
post_id,
bbcode_uid
FROM "
.POSTS_TABLE."
WHERE
post_id BETWEEN $batchstart AND $batchend";
$result = query($sql, "Couldn't get ". POSTS_TABLE .".post_id $batchstart to $batchend");
while($row = mysql_fetch_array($result))
{
query("UPDATE ".POSTS_TEXT_TABLE." set bbcode_uid = '". $row['bbcode_uid']. "' WHERE post_id = ".$row['post_id'], "Was unable to update the posts text table with the BBcode_uid");
}
}
echo "Click <a href=\"$PHP_SELF?delete=true\">HERE</a> to remove the bbcode_uid table from the POSTS table (if you didn't get any serious error messages).<p>";
$db->sql_close();
?>

View File

@@ -0,0 +1,110 @@
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
$phpbb_root_path = "../";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
$sql = "SELECT *
FROM " . CONFIG_TABLE;
if(!$result = $db->sql_query($sql))
{
message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}
else
{
$board_config = $db->sql_fetchrow($result);
}
$newconfigtable = $table_prefix . "newconfig";
$sql = "SELECT config_name, config_value FROM ". CONFIG_TABLE;
if( $result = $db->sql_query($sql) )
{
die("Don't run this script twice!<br>\n");
}
$sql = " CREATE TABLE $newconfigtable (
config_name varchar(255) NOT NULL,
config_value varchar(255) NOT NULL,
PRIMARY KEY (config_name)
)";
print "Creating temporary table: $newconfigtable<p>\n";
if( !$result = $db->sql_query($sql) )
{
print("Couldn't create new config table<br>\n");
}
$error = 0;
while (list($name, $value) = each($board_config))
{
if(is_int($name))
{
// Skip numeric array elements (we only want the associative array)
continue;
}
// Rename sys_template
if ($name == 'sys_template')
{
$name = 'board_template';
}
// Rename system_timezone
if ($name == 'system_timezone')
{
$name = 'board_timezone';
}
print "$name = $value<br>\n";
$value = addslashes($value);
$sql = "INSERT INTO $newconfigtable (config_name, config_value) VALUES ('$name', '$value')";
if( !$result = $db->sql_query($sql) )
{
print("Couldn't insert '$name' into new config table");
$error = 1;
}
}
if ($error != 1)
{
print "Dropping old table<p>\n";
$sql = "DROP TABLE ". CONFIG_TABLE;
if( !$result = $db->sql_query($sql) )
{
die("Couldn't drop old table");
}
print "Renaming $newconfigtable to ".CONFIG_TABLE."<p>\n";
$sql = "ALTER TABLE $newconfigtable RENAME ".CONFIG_TABLE;
if( !$result = $db->sql_query($sql) )
{
die("Couldn't rename new config table");
}
print "Renaming ".SESSIONS_TABLE." to ".$table_prefix."sessions<br>\n";
$sql = "ALTER TABLE ".SESSIONS_TABLE." RENAME ".$table_prefix."sessions";
if( !$result = $db->sql_query($sql) )
{
die("Couldn't rename session table");
}
}
$db->sql_close();
echo "<BR><BR>COMPLETE<BR>";
?>

View File

@@ -0,0 +1,181 @@
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
$phpbb_root_path = "../";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
//
// Alter table ...
//
echo "Alter tables ... ";
echo $sql = "ALTER TABLE " . PRIVMSGS_TABLE . "
ADD privmsgs_enable_bbcode TINYINT(1) DEFAULT '1' NOT NULL,
ADD privmsgs_enable_html TINYINT(1) DEFAULT '0' NOT NULL,
ADD privmsgs_enable_smilies TINYINT(1) DEFAULT '1' NOT NULL,
ADD privmsgs_attach_sig TINYINT(1) DEFAULT '1' NOT NULL";
if( !$result = $db->sql_query($sql) )
{
die("Couldn't alter privmsgs table");
}
echo $sql = "ALTER TABLE " . PRIVMSGS_TEXT_TABLE . "
ADD privmsgs_bbcode_uid CHAR(10) AFTER privmsgs_text_id";
if( !$result = $db->sql_query($sql) )
{
die("Couldn't alter privmsgs text table");
}
echo "COMPLETE<BR>";
//
// Move bbcode ...
//
echo "Move bbcode uid's ... ";
$sql = "SELECT privmsgs_id, privmsgs_bbcode_uid
FROM " . PRIVMSGS_TABLE;
if( $result = $db->sql_query($sql) )
{
$rowset = $db->sql_fetchrowset($result);
for($i = 0; $i < count($rowset); $i++)
{
$sql = "UPDATE " . PRIVMSGS_TEXT_TABLE . "
SET privmsgs_bbcode_uid = '" . $rowset[$i]['privmsgs_bbcode_uid'] . "'
WHERE privmsgs_text_id = " . $rowset[$i]['privmsgs_id'];
if( !$result = $db->sql_query($sql) )
{
die("Couldn't update privmsgs text bbcode - " . $i);
}
}
$sql = "ALTER TABLE " . PRIVMSGS_TABLE . "
DROP privmsgs_bbcode_uid";
if( !$result = $db->sql_query($sql) )
{
die("Couldn't alter privmsgs table - drop privmsgs_bbcode_uid");
}
}
echo "COMPLETE<BR>";
//
// Stripslashes from titles
//
echo "Strip subject slashes ... ";
$sql = "SELECT privmsgs_subject , privmsgs_id, privmsgs_to_userid, privmsgs_from_userid
FROM " . PRIVMSGS_TABLE;
if( $result = $db->sql_query($sql) )
{
$rowset = $db->sql_fetchrowset($result);
for($i = 0; $i < count($rowset); $i++)
{
$sql = "UPDATE " . PRIVMSGS_TABLE . "
SET privmsgs_subject = '" . addslashes(stripslashes($rowset[$i]['privmsgs_subject'])) . "'
WHERE privmsgs_id = " . $rowset[$i]['privmsgs_id'];
if( !$result = $db->sql_query($sql) )
{
die("Couldn't update subjects - $i");
}
}
}
echo "COMPLETE<BR>";
//
// Update sigs
//
echo "Remove [addsig], stripslashes and update privmsgs table sig enable ...";
$sql = "SELECT privmsgs_text_id , privmsgs_text
FROM " . PRIVMSGS_TEXT_TABLE;
if( $result = $db->sql_query($sql) )
{
$rowset = $db->sql_fetchrowset($result);
$attach_sql = "";
$non_attach_sql = "";
for($i = 0; $i < count($rowset); $i++)
{
if( ereg("\[addsig]$", $rowset[$i]['privmsgs_text']))
{
if( $attach_sql != "" )
{
$attach_sql .= ", ";
}
$attach_sql .= $rowset[$i]['privmsgs_text_id'];
$sql = "UPDATE " . PRIVMSGS_TEXT_TABLE . "
SET privmsgs_text = '" . addslashes(preg_replace("/\[addsig\]/is", "", stripslashes($rowset[$i]['privmsgs_text']))) . "'
WHERE privmsgs_text_id = " . $rowset[$i]['privmsgs_text_id'];
if( !$result = $db->sql_query($sql) )
{
die("Couldn't update privmsgs text - " . $i);
}
}
else
{
$sql = "UPDATE " . PRIVMSGS_TEXT_TABLE . "
SET privmsgs_text = '" . addslashes(stripslashes($rowset[$i]['privmsgs_text'])) . "'
WHERE privmsgs_text_id = " . $rowset[$i]['privmsgs_text_id'];
if( !$result = $db->sql_query($sql) )
{
die("Couldn't update privmsgs text - " . $i);
}
if( $non_attach_sql != "" )
{
$non_attach_sql .= ", ";
}
$non_attach_sql .= $rowset[$i]['privmsgs_text_id'];
}
}
if( $attach_sql != "" )
{
$sql = "UPDATE " . PRIVMSGS_TABLE . "
SET privmsgs_attach_sig = 1
WHERE privmsgs_id IN ($attach_sql)";
if( !$result = $db->sql_query($sql) )
{
die("Couldn't update privmsgs table attach_sig - ");
}
}
if( $non_attach_sql != "" )
{
$sql = "UPDATE " . PRIVMSGS_TABLE . "
SET privmsgs_attach_sig = 0
WHERE privmsgs_id IN ($non_attach_sql)";
if( !$result = $db->sql_query($sql) )
{
die("Couldn't update privmsgs table non_attach_sig - ");
}
}
}
echo "COMPLETE<BR>";
$db->sql_close();
?>

View File

@@ -0,0 +1,93 @@
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
$phpbb_root_path = "../";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
$sql = "SELECT post_id, post_text
FROM " . POSTS_TEXT_TABLE;
if( $result = $db->sql_query($sql) )
{
$rowset = $db->sql_fetchrowset($result);
$attach_sql = "";
$non_attach_sql = "";
for($i = 0; $i < count($rowset); $i++)
{
if( ereg("\[addsig]$", $rowset[$i]['post_text']))
{
if( $attach_sql != "" )
{
$attach_sql .= ", ";
}
$attach_sql .= $rowset[$i]['post_id'];
$sql = "UPDATE " . POSTS_TEXT_TABLE . "
SET post_text = '" . addslashes(preg_replace("/\[addsig\]/is", "", $rowset[$i]['post_text'])) . "'
WHERE post_id = " . $rowset[$i]['post_id'];
if( !$result = $db->sql_query($sql) )
{
die("Couldn't update post_text - " . $i);
}
}
else
{
if( $non_attach_sql != "" )
{
$non_attach_sql .= ", ";
}
$non_attach_sql .= $rowset[$i]['post_id'];
}
}
echo "<BR>";
if( $attach_sql != "" )
{
echo $sql = "UPDATE " . POSTS_TABLE . "
SET enable_sig = 1
WHERE post_id IN ($attach_sql)";
if( !$result = $db->sql_query($sql) )
{
die("Couldn't update post table attach_sig - ");
}
}
echo "<BR>";
if( $non_attach_sql != "" )
{
echo $sql = "UPDATE " . POSTS_TABLE . "
SET enable_sig = 0
WHERE post_id IN ($non_attach_sql)";
if( !$result = $db->sql_query($sql) )
{
die("Couldn't update post table non_attach_sig - ");
}
}
}
$db->sql_close();
echo "<BR><BR>COMPLETE<BR>";
?>

View File

@@ -0,0 +1,84 @@
<html>
<body>
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
chdir("../");
include('extension.inc');
include('config.'.$phpEx);
include('includes/constants.'.$phpEx);
include('includes/db.'.$phpEx);
$months = array(
"Jan" => 1,
"Feb" => 2,
"Mar" => 3,
"Apr" => 4,
"May" => 5,
"Jun" => 6,
"Jul" => 7,
"Aug" => 8,
"Sep" => 9,
"Oct" => 10,
"Nov" => 11,
"Dec" => 12
);
$sql = "SELECT user_id, user_regdate FROM ".USERS_TABLE;
$result = $db->sql_query($sql);
if(!$result)
{
die("OOpppps, that didn't work!");
}
$all_old_dates = $db->sql_fetchrowset($result);
$sql = "ALTER TABLE ".USERS_TABLE."
CHANGE user_regdate user_regdate INT (11) NOT NULL";
$result = $db->sql_query($sql);
if(!$result)
{
die("Opps, that didn't work either ... oh damn!");
}
for($i = 0; $i < count($all_old_dates); $i++)
{
if(is_string($all_old_dates[$i]['user_regdate']))
{
if(eregi("^([a-zA-Z]{3}) ([0-9]+), ([0-9]{4})", $all_old_dates[$i]['user_regdate'], $result))
{
echo $all_old_dates[$i]['user_regdate']." : ";
echo $new_time = gmmktime(0, 1, 0, $months[$result[1]], $result[2], $result[3]);
echo " : ".gmdate("M d, Y", $new_time)."<br>";
$sql = "UPDATE phpbb_users
SET user_regdate = '$new_time'
WHERE user_id = '".$all_old_dates[$i]['user_id']."'";
$result = $db->sql_query($sql);
if(!$result)
{
die("Oh damn it, now that's really broken it!");
}
}
}
}
echo "<br>That's All Folks!";
?>
</body>
</html>

View File

@@ -0,0 +1,67 @@
<html>
<body>
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
//
// Convert 2.0.x Usernames to the new 2.0.5 Username format.
//
chdir("../");
define('IN_PHPBB', true);
include('extension.inc');
include('config.'.$phpEx);
include('includes/constants.'.$phpEx);
include('includes/db.'.$phpEx);
$sql = "SELECT user_id, username
FROM " . USERS_TABLE;
$result = $db->sql_query($sql);
if(!$result)
{
die("Unable to get users");
}
while ($row = $db->sql_fetchrow($result))
{
if (!preg_match('#(&gt;)|(&lt;)|(&quot)|(&amp;)#', $row['username']))
{
if ($row['username'] != htmlspecialchars($row['username']))
{
flush();
$sql = "UPDATE " . USERS_TABLE . "
SET username = '" . str_replace("'", "''", htmlspecialchars($row['username'])) . "'
WHERE user_id = " . $row['user_id'];
if (!$db->sql_query($sql))
{
echo "ERROR: Unable to rename user " . htmlspecialchars($row['username']) . " with ID " . $row['user_id'] . "<br>";
echo "<pre>" . print_r($db->sql_error()) . "</pre><br />$sql";
}
else
{
echo "Renamed User " . htmlspecialchars($row['username']) . " with ID " . $row['user_id'] . "<br>";
}
}
}
}
echo "<br>That's All Folks!";
?>
</body>
</html>

View File

@@ -0,0 +1,73 @@
<?php
/***************************************************************************
* revar_lang_files.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
//die("Please read the first lines of this script for instructions on how to enable it");
$dirname = "./../language";
$dir = opendir($dirname);
while ( $file = readdir($dir) )
{
if ( ereg('^lang_', $file) && !is_file(phpbb_realpath($dirname . '/' . $file)) && !is_link(phpbb_realpath($dirname . '/' . $file)) )
{
include($dirname . '/' . $file . '/lang_main.php');
$lang_dir = opendir($dirname . '/' . $file . '/email');
while ( $email = readdir($lang_dir) )
{
if ( ereg('\.tpl$', $email) && is_file(phpbb_realpath($dirname . '/' . $file . '/email/' . $email)) )
{
$fp = fopen($dirname . '/' . $file . '/email/' . $email, 'r+');
$email_file = "";
while ( $line = fread($fp, 100000) )
{
$email_file .= $line;
}
if ( !preg_match('/^Charset: .*?$/m', $email_file) )
{
$email_file = preg_replace('/^((Subject: .*?\n)(\n))?/i', "\\2Charset: " . $lang['ENCODING'] . "\n\n", $email_file);
}
echo '<b>' . $dirname . '/' . $file . '/email/' . $email . "</b><br />\n";
echo nl2br($email_file);
echo "\n\n<br /><br />\n\n";
fseek($fp, 0);
fwrite($fp, $email_file);
fclose($fp);
}
}
echo "\n\n<hr />\n\n";
}
}
?>

26
phpBB/develop/fix_files.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
#
# Remove all those annoying ^M characters that Winblows editor's like to add
# from all files in the current directory and all subdirectories.
#
# Written by: Jonathan Haase.
#
# UPDATE: 7/31/2001: fix so that it doesn't touch things in the images directory
#
find . > FILELIST.$$
grep -sv FILELIST FILELIST.$$ > FILELIST2.$$
grep -sv $(basename $0) FILELIST2.$$ > FILELIST.$$
grep -sv "^\.$" FILELIST.$$ > FILELIST2.$$
grep -sv "images" FILELIST2.$$ > FILELIST
rm FILELIST2.$$
rm FILELIST.$$
for i in $(cat FILELIST); do
if [ -f $i ]; then
sed -e s/
//g $i > $i.tmp
mv $i.tmp $i
fi
done
rm FILELIST

View File

@@ -0,0 +1,64 @@
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
$phpbb_root_path = "../";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
echo "Inserting new config vars<br /><br />\n";
echo "server_name :: ";
flush();
$sql = "INSERT INTO " . CONFIG_TABLE . "
(config_name, config_value) VALUES ('server_name', 'www.myserver.tld')";
if( !$db->sql_query($sql) )
{
print "Failed inserting server_name config ... probably exists already<br />\n";
}
else
{
echo "DONE<br />\n";
}
echo "script_path :: ";
flush();
$sql = "INSERT INTO " . CONFIG_TABLE . "
(config_name, config_value) VALUES ('script_path', '/phpBB2/')";
if( !$db->sql_query($sql) )
{
print "Failed inserting script_path config ... probably exists already<br />\n";
}
else
{
echo "DONE<br />\n";
}
echo "server_port :: ";
flush();
$sql = "INSERT INTO " . CONFIG_TABLE . "
(config_name, config_value) VALUES ('server_port', '80')";
if( !$db->sql_query($sql) )
{
print "Failed inserting server_port config ... probably exists already<br />\n";
}
else
{
echo "DONE<br />\n";
}
$db->sql_close();
echo "<br />COMPLETE<br />\n";
?>

View File

@@ -0,0 +1,42 @@
<html>
<body>
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
$phpbb_root_path = "../";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
echo "\n<br >\n" . $sql = "INSERT INTO " . CONFIG_TABLE . "
(config_name, config_value) VALUES ('record_online_users', '1')";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't insert config key 'record_online_users'", "", __LINE__, __FILE__, $sql);
}
echo "\n<br >\n" . $sql = "INSERT INTO " . CONFIG_TABLE . "
(config_name, config_value) VALUES ('record_online_date', '".time()."')";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't insert config key 'record_online_date'", "", __LINE__, __FILE__, $sql);
}
echo "\n<br />\nCOMPLETE";
?>
</body>
</html>

58
phpBB/develop/nuke-db.php Normal file
View File

@@ -0,0 +1,58 @@
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
//
// Do not change anything below this line.
//
// Just a handy script to completely wipe out the contents of a
// database.. Use with caution :)
if(!isset($submit))
{
?>
<FORM ACTION="<?php echo $PHP_SELF?>" METHOD="post" >
<table>
<tr>
<td>DB host:</td>
<td><INPUT TYPE="text" name="dbhost" value="localhost"></td>
</tr><tr>
<td>DB name:</td>
<td><INPUT TYPE="text" name="dbname" value="phpBB"></td>
</tr><tr>
<td>DB username:</td>
<td><INPUT TYPE="text" name="dbuser" value="root"></td>
</tr><tr>
<td>DB password:</td>
<td><INPUT TYPE="password" name="dbpass"></td>
</tr></table>
<INPUT TYPE="submit" name="submit" value="Submit">
</FORM>
<?php
}
else
{
mysql_connect($dbhost, $dbuser, $dbpass) || die(mysql_error());
mysql_select_db($dbname);
$result = mysql_query("SHOW TABLES");
while($row = mysql_fetch_row($result)){
$table = $row[0];
print "Going to drop $table...";
mysql_query("DROP TABLE $table") || die();
print "Done.<br>\n";
flush();
}
}
?>

View File

@@ -0,0 +1,82 @@
<?php
/***************************************************************************
* revar_lang_files.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
$vars = array('lang_main' => 'lang', 'lang_admin' => 'lang', 'lang_faq' => 'faq', 'lang_bbcode' => 'faq');
$dirname = "./../language";
$dir = opendir($dirname);
while ( $file = readdir($dir) )
{
if ( ereg("^lang_", $file) && !is_file(realpath($dirname . "/" . $file)) && !is_link(realpath($dirname . "/" . $file)) )
{
foreach($vars as $lang_file => $lang_var)
{
$$lang_var = array();
include($dirname . "/" . $file . "/" . $lang_file . '.php');
$store = "";
while( list($key, $value) = each($$lang_var) )
{
if ( !is_array($value) )
{
$key = ( is_string($key) ) ? "'$key'" : $key;
$store .= ( ( $store != "" ) ? ", \n\t" : "" ) . "$key => '" . addslashes($value) . "'";
}
else
{
$key = ( is_string($key) ) ? "'$key'" : $key;
$store .= ( ( $store != "" ) ? ", \n\t" : "" ) . "$key => array(\n\t\t";
$store2 = "";
while( list($key2, $value2) = each($value) )
{
$key2 = ( is_string($key) ) ? "'$key2'" : $key2;
$store2 .= ( ( $store2 != "" ) ? ", \n\t\t" : "" ) . "$key2 => '" . addslashes($value2) . "'";
}
$store .= $store2 . "\n\t)";
}
}
$store = "<?php\n\$$lang_var = array(\n\t$store\n);\n?".">";
$fp = fopen($dirname . "/" . $file . "/" . $lang_file . '.php', 'w');
fwrite($fp, $store);
fclose($fp);
}
}
}
?>

View File

@@ -0,0 +1,193 @@
<?php
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
//
// Do not change anything below this line.
//
set_time_limit(0);
$phpbb_root_path = "../";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/search.'.$phpEx);
$common_percent = 0.4; // Percentage of posts in which a word has to appear to be marked as common
print "<html>\n<body>\n";
//
// Try and load stopword and synonym files
//
// This needs fixing! Shouldn't be hardcoded to English files!
$stopword_array = file($phpbb_root_path . "language/lang_english/search_stopwords.txt");
$synonym_array = file($phpbb_root_path . "language/lang_english/search_synonyms.txt");
//
// Fetch a batch of posts_text entries
//
$sql = "SELECT COUNT(*) as total, MAX(post_id) as max_post_id
FROM ". POSTS_TEXT_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
$error = $db->sql_error();
die("Couldn't get maximum post ID :: " . $sql . " :: " . $error['message']);
}
$max_post_id = $db->sql_fetchrow($result);
$totalposts = $max_post_id['total'];
$max_post_id = $max_post_id['max_post_id'];
$postcounter = (!isset($HTTP_GET_VARS['batchstart'])) ? 0 : $HTTP_GET_VARS['batchstart'];
$batchsize = 200; // Process this many posts per loop
$batchcount = 0;
for(;$postcounter <= $max_post_id; $postcounter += $batchsize)
{
$batchstart = $postcounter + 1;
$batchend = $postcounter + $batchsize;
$batchcount++;
$sql = "SELECT *
FROM " . POSTS_TEXT_TABLE . "
WHERE post_id
BETWEEN $batchstart
AND $batchend";
if( !($result = $db->sql_query($sql)) )
{
$error = $db->sql_error();
die("Couldn't get post_text :: " . $sql . " :: " . $error['message']);
}
$rowset = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
$post_rows = count($rowset);
if( $post_rows )
{
// $sql = "LOCK TABLES ".POST_TEXT_TABLE." WRITE";
// $result = $db->sql_query($sql);
print "\n<p>\n<a href='$PHP_SELF?batchstart=$batchstart'>Restart from posting $batchstart</a><br>\n";
// For every post in the batch:
for($post_nr = 0; $post_nr < $post_rows; $post_nr++ )
{
print ".";
flush();
$post_id = $rowset[$post_nr]['post_id'];
$matches = array();
$matches['text'] = split_words(clean_words("post", $rowset[$post_nr]['post_text'], $stopword_array, $synonym_array));
$matches['title'] = split_words(clean_words("post", $rowset[$post_nr]['post_subject'], $stopword_array, $synonym_array));
while( list($match_type, $match_ary) = @each($matches) )
{
$title_match = ( $match_type == 'title' ) ? 1 : 0;
$num_matches = count($match_ary);
if ( $num_matches < 1 )
{
// Skip this post if no words where found
continue;
}
// For all words in the posting
$sql_in = "";
$sql_insert = '';
$sql_select = '';
$word = array();
$word_count = array();
for($j = 0; $j < $num_matches; $j++)
{
$this_word = strtolower(trim($match_ary[$j]));
if ( $this_word != '' )
{
$word_count[$this_word] = ( isset($word_count[$this_word]) ) ? $word_count[$this_word] + 1 : 0;
$comma = ($sql_insert != '')? ', ': '';
$sql_insert .= "$comma('" . $this_word . "')";
$sql_select .= "$comma'" . $this_word . "'";
}
}
if ( $sql_insert == '' )
{
die("no words found");
}
$sql = 'INSERT IGNORE INTO ' . SEARCH_WORD_TABLE . "
(word_text)
VALUES $sql_insert";
if ( !$result = $db->sql_query($sql) )
{
$error = $db->sql_error();
die("Couldn't INSERT words :: " . $sql . " :: " . $error['message']);
}
// Get the word_id's out of the DB (to see if they are already there)
$sql = "SELECT word_id, word_text
FROM " . SEARCH_WORD_TABLE . "
WHERE word_text IN ($sql_select)
GROUP BY word_text";
$result = $db->sql_query($sql);
if ( !$result )
{
$error = $db->sql_error();
die("Couldn't select words :: " . $sql . " :: " . $error['message']);
}
$sql_insert = array();
while( $row = $db->sql_fetchrow($result) )
{
$sql_insert[] = "($post_id, " . $row['word_id'] . ", $title_match)";
}
$db->sql_freeresult($result);
$sql = "INSERT INTO " . SEARCH_MATCH_TABLE . "
(post_id, word_id, title_match)
VALUES " . implode(", ", $sql_insert);
$result = $db->sql_query($sql);
if ( !$result )
{
$error = $db->sql_error();
die("Couldn't insert new word match :: " . $sql . " :: " . $error['message']);
}
} // All posts
}
// $sql = "UNLOCK TABLES";
// $result = $db->sql_query($sql);
}
// Remove common words after the first 2 batches and after every 4th batch after that.
if( $batchcount % 4 == 3 )
{
print "<br>Removing common words (words that appear in more than $common_percent of the posts)<br>\n";
flush();
print "Removed ". remove_common("global", $common_percent) ." words that where too common.<br>";
}
}
echo "<br>Done";
?>
</body>
</html>

1
phpBB/docs/AUTHORS Normal file
View File

@@ -0,0 +1 @@
Please see: http://www.phpbb.com/about.php for a list of all the people involved in phpBB.

668
phpBB/docs/CHANGELOG.html Normal file
View File

@@ -0,0 +1,668 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>phpBB 2.0.15 :: Changelog</title>
<link rel="stylesheet" href="../templates/subSilver/subSilver.css" type="text/css" />
<style type="text/css">
<!--
p,ul,td {font-size:10pt;}
.h2 {font-size:15pt;font-weight:bold;color:red}
.h3 {font-size:12pt;color:blue}
//-->
</style>
</head>
<body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#006699">
<table width="100%" border="0" cellspacing="0" cellpadding="10" align="center">
<tr>
<td class="bodyline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../templates/subSilver/images/logo_phpBB.gif" border="0" alt="phpBB 2 : Creating Communities" vspace="1" /></a></td>
<td align="center" width="100%" valign="middle"><span class="maintitle">phpBB 2.0.15 CHANGELOG</span></td>
</tr>
</table>
<!-- BEGIN DOCUMENT -->
<ol>
<li><a href="#changelog">Changelog</a></li>
<ol type="i">
<li><a href="#2014">Changes since 2.0.14</a></li>
<li><a href="#2013">Changes since 2.0.13</a></li>
<li><a href="#2012">Changes since 2.0.12</a></li>
<li><a href="#2011">Changes since 2.0.11</a></li>
<li><a href="#2010">Changes since 2.0.10</a></li>
<li><a href="#209">Changes since 2.0.9</a></li>
<li><a href="#208">Changes since 2.0.8</a></li>
<li><a href="#207">Changes since 2.0.7</a></li>
<li><a href="#206">Changes since 2.0.6</a></li>
<li><a href="#205">Changes since 2.0.5</a></li>
<li><a href="#204">Changes since 2.0.4</a></li>
<li><a href="#203">Changes since 2.0.3</a></li>
<li><a href="#202">Changes since 2.0.2</a></li>
<li><a href="#201">Changes since 2.0.1</a></li>
<li><a href="#200">Changes since 2.0.0</a></li>
<li><a href="#final">Changes since RC-4</a></li>
<li><a href="#rc4">Changes since RC-3</a></li>
<li><a href="#rc3">Changes since RC-2</a></li>
<li><a href="#rc2">Changes since RC-1</a></li>
<li><a href="#rc1">Changes since RC-1 (pre)</a></li>
</ol>
<li><a href="#disclaimer">Disclaimer</a></li>
</ol>
<a name="changelog"></a><h2 class="h2"><u>1. Changelog</u></h2>
<p>This is a non-exhaustive (but still near complete) changelog for phpBB 2.0.x including beta and release candidate versions. Our thanks to all those people who've contributed bug reports and code fixes.</p>
<a name="2014"></a><h3 class="h3">l.i. Changes since 2.0.14</h3>
<ul>
<li>Fixed moderator status removal in groupcp.php</li>
<li>Removed newlines after ?&gt; on some files - <b>Thoul</b></li>
<li>Added admin re-authentication (admin needs to login seperatly to access the ACP) - backported from Olympus</li>
<li>Fixed vulnerability in url/bbcode handling functions - <b>PapaDos and Paul/Zhen-Xjell from CastleCops</b></li>
<li>Fixed issue in admin/admin_forums.php</li>
<li>Suppressed warning message for fsockopen in /includes/smtp.php - <b>Thoul</b></li>
<li>Fixed bug in admin/admin_smilies.php (admin is able to add empty smilies) - <b>Exy</b></li>
<li>Adjusted documents to reflect the urgent need to update the files too (not only running the database update script)</li>
<li>Updated the readme file</li>
<li>Added one new language variable</li>
<li>Added general error if accessing profile for a non-existent user</li>
<li>Changed session id generation to be more unique - <b>Henno Joosep</b></li>
<li>Fixed bug in highlight code to escape characters correctly</li>
<li>Reversed the 2.0.14 fix for postgresql because it produced more problems than it solves.</li>
<li>Added reference to article written by R45 about case-sensitivity in postgreSQL to the readme file</li>
<li>Fixed bypassing of validate_username on registration - Yen</li>
<li>Empty url/img bbcodes no longer get parsed</li>
</ul>
<a name="2013"></a><h3 class="h3">l.ii. Changes since 2.0.13</h3>
<ul>
<li>Hardened author and keyword search a bit to not allow very server intensive searches</li>
<li>Fixed full path disclosure in bad word parsing</li>
<li>Resetting complete userdata array in session code if authentication fails</li>
<li>Fixed bug in moderator control panel where certain parameters could lead to an "error creating new session" sql error</li>
<li>Fixed bug in session code where empty page ids could lead to an "error creating new session" sql error</li>
<li>Fixed html handling in signatures if html is turned off globally</li>
<li>Fixed install.php problem with PHP5 register_long_arrays option turned off</li>
<li>Fixed potential issues with styling system</li>
<li>Added correct class to login_body template file</li>
<li>Removed file db/oracle.php from package</li>
<li>Removed version number from message body page in /admin (if user is not an admin) - <b>mikelbeck</b></li>
<li>Fixed case-sensitivity issues in postgres7.php - <b>R45</b></li>
</ul>
<a name="2012"></a><h3 class="h3">l.iii. Changes since 2.0.12</h3>
<ul>
<li>Ommitted preg_replace warning in viewtopic due to improper working of preg_quote in PHP - originally reported by matrix_killer, fix submitted by another party</li>
<li>Fixed high severity issue in session handling allowing everyone gaining administrator rights. Please update as soon as possible.</li>
<li>Minimum requirements raised to PHP 4.0.3 or above due to fixing vulnerability issues breaking PHP3 compatibility.</li>
</ul>
<a name="2011"></a><h3 class="h3">l.iv. Changes since 2.0.11</h3>
<ul>
<li>Added confirm table to admin_db_utilities.php</li>
<li>Prevented full path display on critical messages</li>
<li>Fixed full path disclosure in username handling caused by a PHP 4.3.10 bug - <b>AnthraX101</b></li>
<li>Added exclude list to unsetting globals (if register_globals is on) - <b>SpoofedExistence</b></li>
<li>Fixed arbitrary file disclosure vulnerability in avatar handling functions - <b>AnthraX101</b></li>
<li>Fixed arbitrary file unlink vulnerability in avatar handling functions - <b>AnthraX101</b></li>
<li>Removed version number from powered by line</li>
<li>Merged database update files to update_to_latest.php file</li>
<li>Fixed path disclosure bug in search.php caused by a PHP 4.3.10 bug (related to AnthraX101's discovery)</li>
<li>Fixed path disclosure bug in viewtopic.php caused by a PHP 4.3.10 bug - <b>matrix_killer</b></li>
</ul>
<a name="2010"></a><h3 class="h3">l.v. Changes since 2.0.10</h3>
<ul>
<li>Fixed vulnerability in highlighting code (<b>very high severity, please update your installation as soon as possible</b>)</li>
<li>Fixed unsetting global vars - <b>Matt Kavanagh</b></li>
<li>Fixed XSS vulnerability in username handling - <b>AnthraX101</b></li>
<li>Fixed not confirmed sql injection in username handling - <b>warmth</b></li>
<li>Added check for empty topic id in topic_review function</li>
<li>Added visual confirmation mod to code base</li>
</ul>
<a name="209"></a><h3 class="h3">l.vi. Changes since 2.0.9</h3>
<ul>
<li>Fixed deleting of styles in admin_styles.php</li>
<li>Fixed wrong unsetting of variables introduced in phpBB 2.0.9, making the board non-functional for users with specific php.ini settings</li>
<li>Added code to let phpBB work with PHP5 for those having register_long_arrays set to off (default settings) - running phpBB 2.0.x with PHP5 is not supported at http://www.phpbb.com.</li>
<li>Fixed bug in admin_board.php for board settings having single quotes in it</li>
<li>Fixed "search by author" in search.php. Now it is possible to search for users with special chars in their name too</li>
<li>Fixed forum jumpbox propagating session id in moderator control pages</li>
<li>Added check for newlines at redirecting pages, to prevent http response splitting attacks - <b>Ory Segal and Amit Klein</b></li>
<li>Fixed visual confirmation code. The image was not created due to a wrong regular expression.</li>
</ul>
<a name="208"></a><h3 class="h3">l.vii. Changes since 2.0.8</h3>
<ul>
<li>Fixed one vulnerability in admin_board.php - <b>Xore</b></li>
<li>Added checking for proper session id characters to sessions and viewtopic to prevent injections - <b>Bartlomiej Korupczynski</b></li>
<li>Fixed injection vulnerabilities possible with linked avatars</li>
<li>Implemented unsetting globalised variables</li>
<li>Limited confirm switch to POST variable in posting</li>
<li>Changed IP code in common.php to prevent IP spoofing, which might introduce some problems with private IP Ranges showing up. - <b>Wang Products</b></li>
<li>Updated visual confirmation mod [pre-edited files]</li>
<li>Moved obtaining word censors in modcp out of topic generation loop [increased performance/lower query count] - spotted by <b>R45</b></li>
<li>Added the ability to link to https/ftps sites using the img bbcode tag</li>
<li>Fixed user online information in admin/index.php</li>
<li>Fixed getting group moderator in groupcp.php if running oracle backend - spotted by <b>pakman</b></li>
<li>Fixed use of non-existing result variable in modcp (poster_id instead of user_id)</li>
<li>Fixed several vulnerabilities (XSS, SQL Injection and path disclosure) only possible with register_globals enabled - <b>Matthew C. Kavanagh, Janek Vind</b></li>
<li>Fixed problem with SID not delivered to next page in groupcp.php</li>
</ul>
<a name="207"></a><h3 class="h3">l.viii. Changes since 2.0.7</h3>
<ul>
<li>Fixed several vulnerabilities in admin pages</li>
<li>Fixed sid checking code in admin/pagestart.php</li>
<li>Fixed injection vulnerabilities possible with the img bbcode tag</li>
<li>Limited allowed images in img bbcode tag to jpg, jpeg, gif and png</li>
<li>Fixed redirect problems - 2.0.7a</li>
<li>Fixed sql injection vulnerability in search - 2.0.7a</li>
<li>Fixed sql injection vulnerability in privmsg - 2.0.8a</li>
</ul>
<a name="206"></a><h3 class="h3">1.ix. Changes since 2.0.6</h3>
<ul>
<li>Fixed several vulnerabilities in modcp - <b>Robert Lavierck</b></li>
<li>Changed whois lookup address within admin index</li>
<li>Fixed potential vulnerability in viewtopic postorder - 2.0.6d</li>
<li>Updates to cope with Zend Optimizer 2.5 problems - 2.0.6d - <b>jetset</b></li>
<li>Force specialcharing of redirect variable in login - <b>Pit</b></li>
<li>Fixed potential vulnerability in viewtopic postdays - <b>GulfTech Security Research</b></li>
<li>Fixed potential vulnerability in viewforum topicdays - <b>GulfTech Security Research</b></li>
<li>Fixed potential vulnerability in modcp</li>
<li>Fixed potential vulnerability in avatar gallery</li>
</ul>
<a name="205"></a><h3 class="h3">1.x. Changes since 2.0.5</h3>
<ul>
<li>Fixed various email issues</li>
<li>Fixed registration email bug with Administrator Confirmation used</li>
<li>Fixed mass emailer</li>
<li>Fixed long post time issue</li>
<li>Fixed bug with usernames containing single quotes</li>
<li>Fixed word list bug - Word boundaries were not considered</li>
<li>Fixed vulnerability in style admin</li>
<li>Fixed sql injection vulnerability in viewtopic</li>
<li>Fixed vulnerability allowing server side variable access in search - <b>tendor</b></li>
<li>Fixed potential vulnerability in 2.0.5 login username entry - <b>throw away/eomer</b></li>
<li>Fixed sql injection with reset date format field in profile - <b>tendor</b></li>
</ul>
<a name="204"></a><h3 class="h3">1.xi. Changes since 2.0.4</h3>
<ul>
<li>Removed user facing session_id checks</li>
<li>Fixed user self-activation after deactivation</li>
<li>Fixed incorrect functioning of phpbb_realpath</li>
<li>Fixed wrong path to database schema files within the upgrade script</li>
<li>Fixed double quote problem with username validation</li>
<li>Allow & within email addresses</li>
<li>Fixed email validation for banned email addresses</li>
<li>Removed underline from email domain validation</li>
<li>Fixed redirection for sentbox folder, installation and email</li>
<li>Fixed poll deletion</li>
<li>Fixed Mozilla navigation bar</li>
<li>Fixed URL bbcode parsing</li>
<li>Fixed database timeouts while searching the forums</li>
<li>Fixed wrong email return path in admin mass mailing - <b>netclectic</b></li>
<li>Fixed MS-SQL failures within the update script</li>
<li>Fixed memberlist sort order</li>
<li>Fixed not showing leading spaces within Code BBCode</li>
<li>Fixed problem with adding double quotes to subject titles</li>
<li>Remove username input field from profile when user cannot change name</li>
<li>Fixed pagination error with highlighting</li>
<li>Fixed errors if no smilies are installed</li>
<li>Fixed CSS issues with IE 5.2 on MacOS X</li>
<li>Fixed missing sid propagation problem within the Moderator Control Panel</li>
<li>Fixed language variables within Authentication error output</li>
<li>Removed doubled CSS class definitions within input fields</li>
<li>Fixed username change within the Administration Panel</li>
<li>Added missing &lt;tr&gt; tags to index_body.tpl</li>
<li>Added missing username language variable to admin index page</li>
<li>Fixed moderator status update if a usergroup got deleted</li>
<li>Fixed poll handling upon post edit</li>
<li>Fixed remove common words from search table if post get pruned - <b>Nuttzy99</b></li>
<li>Fixed behaviour on splitting topics if no checkbox is selected</li>
<li>Anonymous is no longer displayed within Username dropdown boxes</li>
<li>Fixed viewprofile redirection if an invalid mode was specified</li>
<li>Fixed fraction settings within determining common words - <b>Novan</b></li>
<li>Prevent admin change usernames to his own within the ACP</li>
<li>Activation email is sent to all admins</li>
<li>Fixed conversion of &amp; to &amp;amp; in appropriate cases</li>
<li>Fixed display of "greater than topics per page" announcements preventing display of normal posts</li>
<li>Added variable checks to database backup and restore screen</li>
<li>Prevented pm popup window from resetting after visiting avatar gallery</li>
<li>Fixed special character handling with word censor</li>
<li>Added SID to jumpbox</li>
<li>Fixed problems with usernames using html special chars</li>
<li>Added GMT + 13 to English lang_main, all translators are encouraged to do likewise</li>
<li>Deleted doubled 'U_MEMBERLIST' assignment from page_header.php</li>
<li>Fixed wrong display of Signature Checkbox while editing Private Message</li>
<li>Fixed disappearing post text if emoticon was inserted directly after pressing a BBCode button</li>
<li>Display correct alt-tag for smilies within postings</li>
<li>Prevented the ability to apply BBCode to website contents</li>
<li>Fixed maxlength issue with password field in login_body.tpl</li>
<li>Fixed possible username duplication issue with validation and username length</li>
<li>Fixed split words function to handle additional foreign characters</li>
<li>Changed empty email To Field to use a non-disclosure delimiter</li>
<li>Fixed wrong language var in install.php - FTP Config screen</li>
<li>Fixed alt tag for locked topic images in viewforum_body.tpl</li>
<li>Fixed typo in groupcp.php - $lang['Unsub_success'] instead of $lang['Usub_success']</li>
<li>Fixed timezone display</li>
<li>Fixed wrong display of author quote tag within profile - <b>Cl1mh4224rd</b></li>
<li>Added deletion of sessions of users whose account is deactivated</li>
<li>Added mail header X-MimeOLE to the emailer class</li>
<li>Prevent registration if user is logged in or user trying to register again</li>
<li>Prevent usage of char(255) in usernames</li>
<li>Added check for additional FORWARDED_FOR IP's - <b>cosmos</b></li>
<li>Fixed handling of non-selection of option when voting</li>
<li>Fixed potential xss issue with memberslist mode</li>
<li>Default English support for visual confirmation - translators are encouraged to support this</li>
</ul>
<a name="203"></a><h3 class="h3">1.xii. Changes since 2.0.3</h3>
<ul>
<li>Fixed cross-browser scripting issue with highlight param</li>
<li>Back-ported highlighting code from phpBB 2.2</li>
<li>Add session id validation to posting, profile, email, voting - <b>Edwin van Vliet</b></li>
<li>Added {S_HIDDEN_FIELDS} template var to profile_send_email.tpl</li>
<li>Added "intval" fix for flood check, may resolve some issues</li>
<li>Added missing index to post_id for search_wordmatch</li>
<li>Fixed spelling error in search add words preventing use of stopword list</li>
<li>Fixed issue with search common words not being run</li>
<li>Introduce viewtopic resync patch by Ashe</li>
<li>Replace a for n in templating code</li>
<li>Fixed ordering in memberslist</li>
<li>Fixed group_id sequence issues with pgsql and msaccess</li>
<li>Fixed assumption of word censors in user notification</li>
<li>Fixed incorrect display of quotes in user management fields</li>
<li>Fixed entry of special chars in all profile fields - note this may cause temporary issues</li>
<li>Fixed incorrect display of quotes when using avatar gallery</li>
<li>Fixed missing username in email sent to users when admin activated</li>
<li>Added check for non-empty smiley code and url in smiley admin</li>
<li>Prevent display of -- sig seperator in emails when no board sig exists</li>
<li>Fixed URL propagated sid issues with jumpbox</li>
<li>Fixed wrong mode name check (polldelete) in functions_post</li>
<li>Added missing root path to l10n image path check</li>
<li>Remove validation of fields when deleting a user</li>
<li>Fixed sort mode select box in memberslist to default to current mode</li>
<li>Deny inline topic review listing to users without auth_read permissions</li>
<li>Prevent display of topic notification checkbox if user cannot read forum</li>
<li>Remove incorrect pre-pending of IP to uploaded avatars</li>
<li>Fixed deletion of uploaded avatars when changing to remote/gallery</li>
<li>Added check for non-blank line during install schema/basic sql ops</li>
<li>Added sort ordering to Top Ten poster listing by request</li>
<li>Fixed incorrect error report when altering case of username</li>
<li>Added jumpbox output to modcp {JUMPBOX} will now work</li>
<li>Fixed non-updating of users with MOD levels when deleting a forum</li>
<li>Remove email to group moderator when approving new members</li>
<li>Fixed non-handling of HTML in poll options</li>
<li>Fixed non-deletion of polls when deleting forum and its posts</li>
<li>Fixed moved shadow topic from being bumped upon reply</li>
<li>Changed field size of timezone to decimal(5,2) where applicable</li>
<li>Fixed missing sid append to URL when redirecting to newest reply</li>
<li>Fixed missing slashes in private IP preg check</li>
<li>Fixed session not setting userdata['user_id'] to ANON as appropriate</li>
<li>Added check for non-empty name in disallow admin</li>
<li>Fixed validation of SSL website addresses in profile</li>
<li>Fixed inability of admins to upload avatars via user admin panel</li>
<li>Fixed non-deletion of private message text upon full box overwrite</li>
<li>Fixed incorrect error message in smiley admin</li>
<li>Fixed incorrect alt-text for "Stop Watching Topic" image</li>
<li>Temporary fix for missing lang strings in forum admin - translators should update their packages if not done already</li>
<li>Use selected localisation during later stages of installation</li>
<li>Fixed non-check of permissions when deleting a topic via Moderator Control Panel</li>
<li>Fixed non-update of banlist upon user deletion</li>
<li>Check approved users boxes by default in usergroup approve form</li>
<li>Fixed non-appending of sid to backup meta refresh</li>
<li>Fixed non-notification of no support for certain databases in backup/restore</li>
<li>Added $images var to message die global declaration</li>
<li>Fixed wrong string, Private_message in Private Messaging</li>
<li>Add mail send result to error output</li>
<li>Fixed non-appending of sid to Mozilla nav bar menu items</li>
<li>Fixed incorrect profile linking from MSNM url in private messaging</li>
<li>Grammatical errors in English lang_main fixed - <b>Cluster</b></li>
<li>Allow deletion of avatar and simultaneous upload/linking/gallery selection</li>
<li>Fixed non-updating of user rank when changing from special to normal rank in rank admin</li>
<li>Changed user topic notification default in schemas to 0 (off)</li>
<li>Fixed non-XHTML compliant img tags in privmsg.php</li>
<li>Fixed non-deletion of announcements and polls when removing forum contents in forum admin</li>
<li>Fixed non-pruning of watched topics table when pruning related topics</li>
<li>Enable GET redirect on logout</li>
<li>Added check for IE6.x to viewtopic ICQ indicator javascript</li>
<li>Fixed empty username quoting with MS-SQL</li>
<li>Fixed BBCode url, magic url and img tags to allow most chars beyond domain names</li>
<li>Prevent parsing of -ve size values in BBCode size tag</li>
<li>Back ported HTML handler from 2.2, this may impact some boards which allow complex HTML - existing parser remains but commented out</li>
<li>Fixed parsing of word censors to not censor words within &lt; and &gt; tag delimiters</li>
<li>Fixed database utilities failing to backup data with MySQL</li>
<li>Fixed signature parsing in User Admin</li>
<li>Fixed missing class="post" tags in subSilver Admin templates</li>
<li>Fixes for paths under Apache2</li>
<li>Added wrap text with tag support for posting in Mozilla 1.1+</li>
<li>Fixed use of missing CSS classes in modcp_split, group_info_body, error_body and agreement</li>
<li>Fixed ability of users to edit polls even after they have received votes</li>
<li>Fixed header Location to be absolute URL as per HTTP 1.1 spec - noted by <b>PhilippK</b></li>
<li>Added additional session_id checks to MCP, topic subscription, PM and similar items</li>
<li>Fixed colour select box in posting_body to reset to Default colour after selection</li>
<li>Altered PM icon to show new image until messages have been read</li>
<li>Fixed incomplete deletion of PMs when removing the associated user</li>
<li>Fixed unread and new PM user counters to decrement appropriately in all situations</li>
<li>Fixed possible cross-site scripting issue with username search</li>
<li>Fixed some problems with gzip in combination with newer PHP versions and Mozilla</li>
<li>Fixed wrong maxlength in modcp_split.tpl subject field</li>
<li>Fixed inability to edit username of guest poster - <b>vHiker</b></li>
<li>Fixed ability for guests to post with certain registered usernames</li>
<li>Fixed various HTML issues to improve XHTML compliance - <b>Daz</b></li>
<li>Fixed missing template var {L_PM} for memberslist - <b>Daz</b></li>
<li>Fixed wrong key name for $images['Topic_un_watch'] - <b>Daz</b></li>
<li>Fixed missing template var {S_WATCH_TOPIC_IMG} for viewtopic - <b>Daz</b></li>
<li>Fixed missing default constraints for post table under MSSQL</li>
<li>Fixed incorrect field size for forum pruning - preventing days > 256</li>
<li>Fixed continuing redirect issues for broken web servers, e.g. IIS+CGI PHP</li>
<li>Fixed inability to use ftp as a protocol for the [img] tag</li>
<li>Fixed incorrect handling of [img] tags containing %20 encoded spaces</li>
<li>Added check for . within cookie_name, change to _ if present</li>
<li>Added SHOW_ONLINE constant to limit "users online" code operation to index and viewforum</li>
<li>Added "temporary" workaround for Apache2 + PHP module ignoring "private" cache header</li>
<li>Added workaround for modcp IP lookup and links to Anonymous user profile</li>
<li>Fixed broken bbcode parsing of quotes containing bbcode in the "username"</li>
<li>Fixed excess slashes in [quote=""] first pass encoding</li>
<li>Fixed rendering issue with quote button under Mozilla - <b>Daz</b></li>
<li>Grammatical errors in remaining core lang files fixed - <b>Cluster</b></li>
<li>Fixed bbcode quote breaking when username contained ] before [</li>
<li>Fixed duplicate group_id error during upgrade of users from phpBB 1.x</li>
<li>Fixed stripslashes() problem with the conversion of the config table from phpBB 1.x</li>
<li>Rejiggled validation code, may eliminate "Username disallowed" issues</li>
<li>Fixed differing initial "public" setting of forum permissions between different files</li>
<li>Added check for invalid (non-compliant) email addresses to upgrade script</li>
<li>Further redirect workarounds for broken servers, please direct further issues to the vendors</li>
<li>Added GMT + 13 to English lang_main, all translators are encouraged to do likewise</li>
<li>Added switch to default_lang email template if user lang template no longer exists</li>
<li>Fixed javascript error when selecting smiley containing a single quote</li>
<li>Update users watched topic if a post they made is split into a new topic</li>
<li>Fixed situations where email templates contain incorrect or missing subject lines</li>
<li>Fixed error when searching for posts and no forums exist</li>
<li>Fixed potential SQL vulnerability with marking of private messages - <b>Ulf Harnhammar</b></li>
</ul>
<a name="202"></a><h3 class="h3">1.xiii. Changes since 2.0.2</h3>
<ul>
<li>Fixed potential cross-site scripting vulnerability with avatars - <b>Showscout</b></li>
<li>Fixed potential SQL rewrite issue in page header - <b>missing contrib</b></li>
<li>Fixed potential CSS/HTML rewrite on viewing in login - <b>Marc Rees</b></li>
<li>Fixed (hopefully) issue with MS Access and multiple pages</li>
</ul>
<a name="201"></a><h3 class="h3">1.xiv. Changes since 2.0.1</h3>
<ul>
<li>Fixed missing "username" lang variable in user admin template</li>
<li>Session work around for users behind rotating IPs - <b>vHiker</b></li>
<li>Fixed potential session user_id re-write - <b>Ashe</b></li>
<li>Fixed potential cross-browser scripting issue with BBCode URLs</li>
<li>Fixed potential gallery avatar exploit - <b>Ashe</b></li>
<li>Fix sorting of smileys on each function call - <b>Ashe/psoTFX</b></li>
<li>Clear topic_mod text output in viewtopic - <b>Lars</b></li>
<li>Fix regex for avatar remote urls</li>
<li>Fix non-updating of user post counts when deleting whole topics</li>
<li>Increase time limit when sending topic reply notifications</li>
<li>Set default forum when splitting topics</li>
<li>Fix non-deletion of uploaded avatars when switching to gallery</li>
<li>Removed various closing newlines from included files</li>
<li>Add MAX_ROWS to HEAP table alter in install/upgrade - <b>Ashe</b></li>
<li>Update username maxlength for subSilver templates</li>
<li>Allow <b>(</b> and <b>)</b> in BBCode [url] tags</li>
<li>Fix non-quoting of <b>#</b> in username validation regexs</li>
<li>Fix overlooked global var in private messaging</li>
<li>Possible fix for \r\n email templates issues</li>
<li>Fix missing str_replace for category title forum admin SQL</li>
<li>Fix trailing <b>,</b> when sending emails via smtp</li>
<li>Fix avatar issues in user admin</li>
<li>Fix improper checking of email address ban in sessions</li>
<li>Fix use of hard coded language strings in forum admin</li>
<li>Fix missing closing <b>)</b> in smilies admin</li>
<li>Fix missing Username label in user admin</li>
<li>Fix upgrade.php bug where conversion would not complete (and updated other scripts to match the changes)</li>
<li>Fix problem with redirect and login.php</li>
<li>Fix typo that could cause problems with sorting in the memberlist</li>
<li>Fix emailer to allow sending emails with language-specific character sets</li>
</ul>
<a name="200"></a><h3 class="h3">1.xv. Changes since 2.0.0</h3>
<ul>
<li>Fixed delete image bug for normal users</li>
<li>Fixed group control panel image links</li>
<li>Fixed missing L_POST variable in group control panel</li>
<li>Fixed missing user id when redirecting to email form after login</li>
<li>Fixed (a)ppend_sid function name error in group control panel</li>
<li>Fixed reset of post type when previewing a post</li>
<li>Fixed mass emailer include path error</li>
<li>Fixed potential SQL exploit</li>
<li>Fixed several minor subSilver issues</li>
<li>Fixed [quote] breaking HTML problem</li>
<li>Fixed problem with unclosed nested quotes</li>
<li>Fixed bad handling of automagic links at end of quotes</li>
<li>Fixed potential BBCode and avatar remote exploit</li>
<li>Altered email validation check to allow + in username as per RFC</li>
<li>Fixed incorrect behaviour with wildcards in disallowed usernames</li>
<li>Added missing append_sid for search view results as posts</li>
<li>Fixed incorrect clearing of current sessions for logged in users</li>
<li>Fixed user_timezone (cannot update user profile) problem</li>
<li>Added correct setting of moderator status for users during upgrade</li>
<li>Fixed handling of uploaded avatars if gallery avatar currently used</li>
<li>Fixed use of existing username for uploaded avatars</li>
<li>Fixed updating of topic reply stats when post is deleted</li>
<li>Fixed irrelevant error message when activating already active account</li>
<li>Fixed gzip compression problems with Netscape and some PHP versions</li>
<li>Fixed MS Access layer errors when using latest PHP versions</li>
<li>Fixed styles admin editing problems with MSSQL Server</li>
<li>Fixed logout issue when cancelling certain actions</li>
<li>Fixed missing text in certain admin links</li>
<li>Fixed opening of frame within frame when logging into admin</li>
<li>Fixed incorrect ordering of search results by time</li>
<li>Fixed fulltext searching failure with MS Access</li>
<li>Hopefully fixed fulltext search with non-latin single byte charsets</li>
<li>Enabled work-around support for some multi-byte charsets - <b>OOHOO</b></li>
<li>Re-enabled search indexing of all-numeric character sequences</li>
<li>Updated email banning to properly implement wildcards</li>
<li>Fixed missing extension in links from groupcp</li>
<li>Fixed lack of re-validation when changing email address</li>
<li>Added additional IP check when using HTTP_X_FORWARDED_FOR</li>
<li>Fixed non-display of delete icon when on second or greater topic page</li>
<li>Fixed problems with users/groups assigned multiple permissions</li>
<li>Fixed problem with - and + in search words - <b>Matthijs</b></li>
<li>Fixed improper handling for deletion of words from search table</li>
<li>Fixed support for <b>,</b> in automagic URLs as per RFC</li>
<li>Fixed circular reference SQL errors when deleting posts under MS Access</li>
<li>Fixed nested [code] problems</li>
<li>Added charset encoding headers for emails - <b>romutis</b></li>
<li>Fixed "Copy to self" emails to use correct language</li>
<li>Fixed pagination error when limiting previous days for viewforum</li>
<li>Decreased minimum search word size to 3 chars</li>
<li>Fixed deletion of one or more options from all polls when editing just one</li>
<li>Fixed checking of group memberships when promoting/demoting group moderators</li>
<li>Added database closure to admin frameset page</li>
</ul>
<a name="final"></a><h3 class="h3">1.xvi. Changes since RC-4</h3>
<ul>
<li>Fixed improper report of general error when posting messages containing errors</li>
<li>Fixed post text being doubled up if it contained one or more &lt; without closing &gt;</li>
<li>Fixed pruning errors due to search function name change</li>
<li>Hopefully fixed various issues which led to incorrect reply and excess page counts</li>
<li>Fixed groupcp not displaying all email buttons to group moderator or admin</li>
<li>Fixed failure to display error notice when uploading oversized avatars</li>
<li>Hopefully corrected problem with viewonline displaying too few/many users online</li>
<li>Partially addressed issue with activation URLs >76 chars</li>
<li>Fixed additional search facilities failing to work or working incorrectly</li>
<li>Fixed search syntax highlighting</li>
<li>Addressed various webservers handling of page redirects</li>
<li>Fixed word censor not replacing first or last words</li>
<li>Fixed avatar height and width check for locally uploaded images</li>
<li>Hopefully fixed cache control header</li>
<li>Added check for PM box size limit of 0 to prevent div0 error</li>
<li>Fixed failure to fully delete PMs in outbox</li>
<li>Fixed display problem with polls</li>
<li>Fixed problem with guest username not being displayed for topic results in search</li>
<li>Fixed problem with quotes in various profile fields</li>
<li>Fixed schema problem with user_timezone</li>
<li>Fixed page display issue with MS Access</li>
<li>Fixed user level issue when altering user from user to admin and vice versa</li>
<li>Fixed incorrect parseing of some email templates</li>
<li>Reduced size of MS Access primer</li>
<li>Fixed various remaining usergroup display issues</li>
</ul>
<a name="rc4"></a><h3 class="h3">1.xvii. Changes since RC-3</h3>
<ul>
<li>Addressed serious security issue with included files</li>
<li>Fixed non-use of database table prefix name during upgrade</li>
<li>Split functions and profile into separate modules</li>
<li>Fixed (hopefully) remaining issues with colourisation of moderator usernames</li>
<li>Updated install to include entry of additional, required, information</li>
<li>Fixed (hopefully) AOL incompatibilities</li>
<li>Fixed non-display of moderators in index/viewforum</li>
<li>Fixed group control panel 'no groups exist' problems</li>
<li>Fix HTTP_X_FORWARDED_FOR spoofing possibility</li>
<li>Fix ignoring of private range IP's in HTTP_X_FORWARDED_FOR</li>
<li>Enable multiple wildcard email banning, eg. *name*@somewhere.tld</li>
<li>Fix problems with posts being truncated if containing &lt; and &gt; characters</li>
<li>Prevent URL, BBCode and most smiley parseing in [code][/code]</li>
<li>Fix problems with use of certain reserved chars in word censor list</li>
<li>Fix default search useage to be as described (was doing AND by default)</li>
<li>Fix various avatar issues with profile, gallery and viewtopic</li>
<li>Enable safe mode support for uploading avatars</li>
<li>Fix broken modcp IP view issue</li>
<li>Fix potential session_id re-write vulnerability</li>
<li>Finish localisation of days and months (AM/PM are not and will not be localised in 2.0)</li>
<li>Remove link to external subSilver stylesheet from default subSilver templates</li>
<li>Handle TRANSACTIONS correctly in MySQL 3.x (by returning correct responses)</li>
<li>Fix checkbox resetting problem while previewing posts</li>
<li>Fix a login redirect issue</li>
<li>Remove some additional unused fields during upgrade</li>
<li>Fix (hopefully) remaining ICQ overlay issue with view profile in subSilver</li>
</ul>
<a name="rc3"></a><h3 class="h3">1.xviii. Changes since RC-2</h3>
<ul>
<li>Fixed infamous install parse error</li>
<li>Major update of posting and related search functions (fixing various issues and increasing speed)</li>
<li>Fixed display of author and last poster names when both are different guest users</li>
<li>Fixed upgrade stall issues (hopefully!) and improved output</li>
<li>Fixed highlighting code for viewtopic and search</li>
<li>Reduced size of several files and functions</li>
<li>Moved localised images to sub-directories</li>
<li>Improved user feedback of disallowed usernames</li>
<li>Fixed various MSSQL bugs</li>
<li>Fixed installation of MSSQL/MSSQL-ODBC</li>
<li>Fixed security issue with upgrade.php</li>
<li>Finished implemention of various additional features</li>
<li>Fixed various user, group and forum permissions problems</li>
<li>Fixed issues with BBCode [ and ] (hopefully!)</li>
<li>Fixed autologin problems with MS IIS</li>
<li>Hopefully fixed problems with URIs in emails on some server configs</li>
<li>Fixed 'blank' profile and DB utilities problems on submit</li>
<li>Fixed incorrect language being used in email subjects</li>
<li>Fixed issues with incorrect private message new/unread counts</li>
<li>Fixed various PostgreSQL related errors</li>
<li>Automatically forward users to login screen in more situations</li>
<li>AEnabled (coloured) online indication of moderators and admins</li>
<li>Enabled maximum online user count</li>
<li>Altered online user count to ignore duplicate IPs (will now underestimate rather than overestimate)</li>
<li>Enabled viewing of users browsing each forum</li>
<li>Fixed (hopefully) display of overlayed ICQ icon in Netscape using subSilver</li>
<li>Fixed display of guest usernames for last post and author</li>
<li>Hidden usergroups are now completely hidden from view</li>
</ul>
<a name="rc2"></a><h3 class="h3">1.xix. Changes since RC-1</h3>
<ul>
<li>Fixed numerous PostgreSQL related issues</li>
<li>Significant updates and additions to the upgrade script</li>
<li>Various (missed) hard coded language strings fixed</li>
<li>Fixed viewforum error when no forum id specified</li>
<li>Fixed old constant name useage in search system</li>
<li>Fixed display of moved posts when viewing unanswered posts</li>
<li>Fixed failure of search for user and keyword when displaying as posts</li>
<li>Fixed PM popup notification</li>
<li>Fixed view more emoticon session page problem</li>
<li>Fixed view profile email links</li>
<li>Fixed display of websites in profile</li>
<li>Fixed backup database failure</li>
<li>Fixed MS Access schema error when posting topics</li>
<li>Fixed problem with hypenated/dotted DB names in MySQL 3.23.6+</li>
<li>Various other fixes and updates</li>
</ul>
<a name="rc1"></a><h3 class="h3">1.xx. Changes since RC-1 (pre)</h3>
<ul>
<li>Upgrade script completed for initial fully functional release</li>
<li>Sessions code updated</li>
<li>Mark read code updated and hopefully fixed</li>
<li>Significant changes to properly deal with \' for non-MySQL boards</li>
<li>mssql, msaccess and mssql-odbc DB classes re-written</li>
<li>Avatar issues addressed and fixed</li>
<li>Search (INSERT) bug using MySQL fixed</li>
<li>Search highlighting issues addressed</li>
<li>Search own/other users posts fixed</li>
<li>BBCode fixes for magic URIs and other issues</li>
<li>Template updates for subSilver</li>
<li>User and group permissions problems fixed</li>
<li>Forum management problems (deletion of forum causing category not to display) fixed</li>
<li>Pagination problem with groupcp fixed</li>
<li>Backslash issues with posting and profile fixed</li>
<li>Backslash issues with emails fixed</li>
<li>preg_quote problems fixed</li>
<li>User management updated with full avatar control and missing fields</li>
<li>Private messaging box limits fixed</li>
<li>Private messaging ?folder= strangeness fixed</li>
<li>Forum pruning code updated to cope with search system</li>
<li>Emoticon system in posting updated</li>
<li>BBCode FAQ link added to posting form</li>
<li>Language file updates to address concerns of translators</li>
<li>Various other bug fixes and updates</li>
</ul>
<p>Note that a full list of fixed bugs can be found at the bug tracker (see section on bug reporting <a href="README.html#bugs">here</a>)</p>
<a name="disclaimer"></a><h2 class="h2"><u>2. Copyright and disclaimer</u></h2>
<p>This application is opensource software released under the <a href="http://www.gnu.org/licenses/gpl.html" target="_new">GPL</a>. Please see source code and the Docs directory for more details. This package and its contents are Copyright <20> 2002 <a href="http://www.phpbb.com/" target="_new">phpBB Group</a>, All Rights Reserved.</p>
<!-- END DOCUMENT -->
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

281
phpBB/docs/COPYING Normal file
View File

@@ -0,0 +1,281 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS

206
phpBB/docs/FAQ.html Normal file
View File

@@ -0,0 +1,206 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>phpBB 2.0.x :: FAQ</title>
<link rel="stylesheet" href="../templates/subSilver/subSilver.css" type="text/css" />
<style type="text/css">
<!--
p,ul,td {font-size:10pt;}
h2 {font-size:15pt;font-weight:bold;}
h3 {font-size:12pt;}
//-->
</style>
</head>
<body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#006699">
<table width="100%" border="0" cellspacing="0" cellpadding="10" align="center">
<tr>
<td class="bodyline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../templates/subSilver/images/logo_phpBB.gif" border="0" alt="phpBB 2 : Creating Communities" vspace="1" /></a></td>
<td align="center" width="100%" valign="middle"><span class="maintitle">phpBB 2.0.x FAQ</span></td>
</tr>
</table>
<!-- BEGIN DOCUMENT -->
<p>This is a very basic Frequently Asked Questions (FAQ) page which attempts to answer some of the more commonly asked questions. It is by no means exhaustive and should be used in combination with the 'built-in' User FAQ within phpBB2, the community forums (particularly the Tutorials forum) and our IRC channel (see <a href="README.html">README</a> for details).</p>
<ol>
<li><b>I cannot install this it is too difficult! Will you do it?</b></li>
<p>Simple answer, no we will not. We are not being difficult when we say this we are actually trying to help you. phpBB has a reputation for being easy to install, that reputation is we believe well deserved. It is a simple process of unarchiving a single file, uploading the resulting directory/files to their intended location and entering some data in a web based form. The sequence of events, what to type where, etc. is covered in detail in the accompanying <a href="INSTALL.html">INSTALL.html</a> documentation. If you cannot install phpBB 2.0.x the chances are you will be unable to administer or update it.</p>
<p>There are people, companies (unrelated to your hosting provider), etc. that will install your forum, either for free or for a payment. We do not recommend you make use of these offers. Unless the service is provided by your hosting company you will have to divulge passwords and other sensitive details. If you did not know how to use an ATM would you give a passer-by your bank card and PIN and ask them to show you what to do? No, probably not! The same applies to your hosting account details!</p>
<p>We think a better solution is for you to carefully read the enclosed documentation, read our tutorials forum at www.phpbb.com and if necessary ask for help on any thing you get stuck on. However, the decision is yours but please note we may not offer support if we believe you have had the board installed by a third party. In such cases you should direct your questions to that company or person/s.</p>
<li><b>How do I install this board on Lycos/coolfreepages/other free host?</b></li>
<p>The old addage "You get what you pay for" is particularly true for hosting services! However if you must use a free service (and recognise its limitations) you will find details on common pitfalls in our tutorials forum at <a href="http://www.phpbb.com/phpBB/">http://www.phpbb.com/phpBB/</a>.</p>
<li><b>I am having problems with the admin at a certain board, help!</b></li>
<li><b>A board has ripped off my graphics/software/etc., stop them!</b></li>
<li><b>A board is dealing in warez/porn/etc., you need to prevent them doing this!</b></li>
<p>We provide the software, we have absolutely nothing to do with any board that runs it (beyond phpbb.com of course!). The GPL grants the user an unlimited right of use subject to their adherence of that licence. Therefore we cannot prevent, dictate, control or otherwise limit the use of phpBB 2 software. So please do not contact us for such matters.</p>
<p>If you have a problem with a given board please take it up with them, not us. We are not and cannot be held legally responsible for any third party use of this software (much like Microsoft et al cannot be held responsible for the use of Windows in illegal activities, etc.). Additionally we do <b>not</b> track the use of phpBB software in any way. So please do not ask us for details on a "given" board we will not be able to help you. If any law firms or lawyers out there send us writs, Cease and Desist orders, etc. for third party website use of this software we reserve the right to charge for time wasted dealing with such issues ...</p>
<li><b>According to viewonline a user is doing/reading something they should not be able to!</b></li>
<p>No, they probably are not. phpBB uses sessions to keep track of users as they move between pages. The session information tells us who this user is. Therefore in order to determine what a user can do on a page we first need the session details. Once this data is available we can check whether the user is permitted to do whatever it is they are trying to do. This can result in it appearing as if a user is reading a topic in a forum they should not be able to access. Or perhaps viewing private messages when they are only guests, etc. In practice the user is not doing these things, they are viewing a "You are not permitted to do this" type message. The session data has simply been updated before we were able to determine what the user could or could not do.</p>
<p>Of course this only applies where permissions have been set correctly!</p>
<li><b>I keep getting Mail sending errors when I (or my users) post/send PM's/etc.!</b></li>
<p>This error will occur if phpBB cannot send mail. phpBB can send email two ways; using the PHP mail() function or directly via SMTP. Some hosting providers limit the mail() function to prevent its use in spamming, others may rename it or limit its functionality. In either case you may need to make use of SMTP. This requires that you have access to such a facility, e.g. your hosting provider may provide one (perhaps requiring specific written authorisation), etc. Note that if your provider requires authorisation we only support the simple AUTH method using plaintext username/password. We do not support secure sockets layer (SSL), POP3 send or any other method. Please see <a href="http://www.phpbb.com/phpBB/" target="_blank">http://www.phpbb.com/phpBB/</a> for additional help on this matter.</p>
<p>If you do require SMTP services please do not ask (on our forums or elsewhere) for someone to provide you with one. Open relays are now things of the past thanks to the unthinking spammers out there. Therefore you are unlikely to find someone willing to offer you (free) services.</p>
<li><b>My users are complaining that emails are not in their selected language!</b></li>
<p>You must have deleted a language pack or the language pack is incomplete. phpBB will try to send emails in the users selected language. If it cannot find a suitable email template it will switch to the boards default language.</p>
<li><b>The first four letters of my text disappeared when I hit submit!</b></li>
<p>Some forms in phpBB make use of arrays to "post" or submit data, e.g. polls, forum management, etc. A bug exists in PHP 4.2.3 (and perhaps older versions) which can cause such data to lose the first four characters of text. This bug is related to the presence of the mbstring module and certain compile time parameters (the problem exists for both compiled in and modular version of mbstring). Please see: <a href="http://bugs.php.net/bug.php?id=19460" target="_blank">http://bugs.php.net/bug.php?id=19460</a> for more details. Note the bug is fixed in PHP CVS and thus future versions should be immune. Remember, this is <b>not</b> a bug in phpBB 2.</p>
<li><b>My AOL based users keep getting logged out!</b></li>
<p>phpBB2 uses sessions to keep track of users as they browse the board. These sessions use a combination of a unique session id and the users IP to identify each user. We make use of the IP as an extra safe-guard to help prevent sessions being hijacked (by discovering the unique session id).</p>
<p>Unfortunately this only works when the users IP is constant as they browse the board. For most users this will be the case. However certain providers route their users via a cluster of proxys. In some cases, particularly AOL this results in different IPs being forwarded as the user moves between pages. We take account of this by not checking the entire IP but only the first "three quads". Again in most cases this will be fine. However again AOL uses IPs which can vary so much that checking only the first two quads results in a fairly static IP being available for session validation.</p>
<p>If you are experiencing problems related to this you can make a small change to the code. Please note that reducing the IP validation length does potentially increase the risk of sessions being hijacked (this is something for you to consider, phpBB Group takes no responsibility should anything happen!). The change requires you to open the file sessions.php in the includes/ directory of the distribution. Find line 250, it contains the following <pre>$ip_check_s = substr($userdata['session_ip'], 0, 6);</pre>change this to: <pre>$ip_check_s = substr($userdata['session_ip'], 0, <b>4</b>);</pre>You need to make exactly the same change to the number 6 in the next line. Save the file (and upload it if required). This should reduce or eliminate the problem noted.</p></li>
<li><b>I selected X for my timezone but the time is not correct!</b></li>
<p>I suspect the time is correct but that you may have switched (locally) to daylight savings time. At present we do not support daylight savings only standard local times. Therefore during summer months (depending on whether your nation/state switches to daylight savings) the board times may appear to be <b>one hour</b> behind the <i>real</i> local time. The solution is to either put up with it (just let your users know) or to move the timezone of everyone who is affected (remember that not all your users may be from nations who have switched to daylight savings) on one hour, eg. GMT becomes GMT+1. This requires running some SQL and you should search our forums for information.</p>
<p>If this is not the case then I suspect your servers time is at fault. phpBB 2 stores all times in the form of a unix timestamp. This is a 32bit integer value containing the number of seconds since the unix epoch event, 1st January 1970 00:00:00 GMT. This value is global in nature and will be the same wherever you are in the world. So, if your time is incorrect and you have selected the appropriate timezone chances are your server time is off.</p></li>
<li><b>I am seeing &amp;#nnnn; sequences output instead of what I typed!</b></li>
<p>To enable compliance with HTML and XHTML specifications as well as enabling browsers to automatically support a users selected language we enable a <i>charset</i> tag to be output to the browser. This identifies the primary character set the user has selected, eg. iso-8859-1 for Western European languages (English, German, French, etc.), windows-1251 for Cyrillic alphabets (Russian, Bulgarian, etc.) and so on. The downside to doing this is that most modern browsers (such as Internet Explorer) convert any character not present in that character set into what are termed <i>Numerical Character References</i> or NCR's. These take the form of &amp;#nnnn; where nnnn is the hexadecimal number of that characters UNICODE reference.</p>
<p>Unfortunately PHP (which effectively supports only iso-8859-1 at this time) does not appear to attempt to process this data back into normal characters. Therefore phpBB treats them as text the user has entered and wishes to <i>see</i>. phpBB enables this by turning the &amp; into &amp;amp;. This results in the characters appearing as they do. Although we could ignore &amp;#nnnn; (there are pro's and of course con's to doing so) at present we don't.</p>
<p>If you are finding this to be problem the solution is to remove the <pre>charset={S_CONTENT_ENCODING}</pre> text from <b>all</b> the _header.tpl template files in all templates. The downside to this is a users browser will not automatically switch its charset to that selected by the user (however this is unlikely to be a big problem since users typically run their browser by default in the language they wish to use). Alternatively you can modify the $lang['ENCODING'] entry in the appropriate language file. Until PHP (and all browsers!) trully support UNICODE these problems will persist across all boards.</p></li>
<li><b>I cannot search for certain words!</b>
<p>phpBB 2 uses a Fulltext search system, this has both advantages and disadvantages. The advantage is that on large or busy forums it has far less impact on server load than <i>standard</i> search methods as used by many alternative forums (including phpBB 1.x). The disadvantage is that to reduce the size of the database (every post is examined and unique words stored in a table) we have to limit the size and type of words we store. By default words must contain at least three characters but no more than 25, they must be either alpha or combinations of alpha and numerals (numbers alone are not stored). In addition all non-alphanumeric characters are removed, eg. _, +, -, etc. This is standard practice for fulltext search solutions.</p>
<p>A further downside is that non-latin alphabets, eg. Cyrillic, Greek, etc. require proper locale support to be compiled in and available on the server your board is running on. If this is not the case it is quite likely that words will not be properly indexed for storage. In many cases this can be recified by altering the setlocale(LC_ALL, '[LOCALE_HERE]'); statement in the appropriate language file. If you are experiencing problems you should change whatever is currently in place of [LOCALE_HERE] with the locale as available on your server. If you do not know this please ask your hosting provider. Some examples may be ru_RU.WIN_CP_1251 for the codepage used for the Russian translation, ko.KOI8 for Korean, etc.</p>
<p>Please note that support for multibyte character sets remains very limited in PHP4 and therefore Japanese, Chinese, etc. may have difficulty getting the fulltext search working correctly at all.</p>
<li><b>My screen is filled with errors when I try to view the forum!</b>
<p>Are they errors? Are you sure they are not warnings? They probably are ... What you're seeing is PHP warn you about unset variables. Great care has been taken with phpBB 2.0 to ensure it is secure. Unset variables while being a potential security risk really shouldn't be in 2.0. Unfortunately some hosting providers have decided that any unset variables equal security problems and force PHP to output these warnings even though phpBB 2.0 is set to ignore them.</p>
<p>We have worked some way toward checking and/or setting all variables before use but this will take time to complete (if it can be). Therefore I am afraid for the time being you will have to manually modify the code or ask your hosting provider to be more realistic with their setup.</p></li>
<li><b>How do I use the avatar settings?</b>
<p>There are three types of avatar; upload, remote and local.</p>
<p><ul>
<li>Upload types require you to create a directory (the default is images/avatars) and to set this to public read/write (ie. chmod a+rw), users can then upload avatars (subject to width, height and size limits definable by you).</li>
<li>Remote avatars allow the user to supply a URI pointing to an image available on the internet, <b>PLEASE NOTE</b> that size limits do not apply to remote avatars!</li>
<li>Local avatars allow you to upload your own avatars to a set directory, users can then pick from this avatar gallery. The default location for this is images/avatars/gallery. PLEASE NOTE that avatars are categorised according to sub-folders in this location! ie. you <b>MUST</b> place your avatars in subdirectories, eg. images/avatars/gallery/cartoons, images/avatars/gallery/real-life, etc.</li>
</ul></p></li>
<li><b>No matter what I set the uploadable avatars to I cannot upload one from my computer!</b>
<p>There are two possibilities here, the first is you have not created the directory you specified as the storage location for avatars, ie. as specified in the Admin->General Configuration->Avatars section. If the directory does not exist uploadeable avatars are automatically disabled. You should create the required directory (ensuring it has global write access or other appropriate permissions to allow the webserver to write files to it).</p>
<p>The second possibility is that your provider has disabled file_upload support, possibly because of a recently found serious security issue with PHP before version 4.1.2. You should contact your provider and ask them if this is the case. It may be unrelated to the security issue and your provider has simply decided to disable such things in general. In either case I'm afraid there is not a lot you can do, there are still three other avatar settings left to choose from including uploading via a URL which will work fine</p></li>
<li><b>I just cannot get gallery avatars to appear!</b>
<p>Chances are you have not followed our instructions above. phpBB 2 categorises gallery avatars and it does this by reading through folders contained in the location you specified as being the gallery path. For example, if you set the gallery path to "images/avatars/gallery" phpBB 2 will expect to find a series of folders within that path, eg. "images/avatars/gallery/moviestars", "images/avatars/gallery/cartoons", "images/avatars/gallery/misc", etc. Placing images directly in "images/avatars/gallery/" will result in nothing being listed in your gallery.</p></li>
<li><b>How do I set forum permissions?</b>
<p>You set forum permissions from the administration control panel -> Forums -> Permissions. This system has two modes of operation; Simple and Advanced. Simple uses a set of pre-defined authorisation levels, these set each type of authorisation setting to a specific level. Advanced settings allow you to specify individual levels for each operation in each forum. Experiment!</p></li>
<li><b>How do I set user and group permissions?</b>
<p>These are set from Admin -> Users (Groups) -> Permissions. The system may appear strange but it's very powerful. When you look up a user or group it will give you basic information (at the top of the page) followed by the available forum listing and current settings for this user. You can assign moderator status to users and groups and if you have PRIVATE forums (or forums with any of their individual operations set to PRIVATE) you can also assign access.</p></li>
<li><b>How do I set a user (group) as moderator?</b>
<p>See above</p></li>
<li><b>Why are there no entries in the user (group) permission "Allow Access" column?</b>
<p>You can only allow (or deny) users access to PRIVATE forums, or forums which have one or more operations set to PRIVATE</p></li>
<li><b>How come I cannot set "Vote" to ALL?</b></li>
<p>phpBB does not by default allow guest voting. This was done to prevent guest users (who cannot be reliably tracked) from voting time and time again in the same poll. There is a Mod available if you really need this feature, please see our Mod forums at <a href="http://www.phpbb.com/phpBB/">http://www.phpbb.com/phpBB/</a>.</p>
<li><b>I (or my users) cannot stay logged in to the forum!</b>
<p>If you (or your users) are, after attempting a login, being returned to the index (or other page) without appearing to be logged in the most likely problem is incorrect cookie settings. phpBB 2 uses cookies to store a session id and a small amount of user data. For this data to be stored correctly the cookie domain, path and secure settings must be correct. You can check this in Admin->General Configuration->Cookie settings. Typically the cookie domain can be left blank and the cookie path set to / (a single forward slash). Do <b>not</b> set the cookie as being secure unless your board is running over a secure sockets layer connection, ie. https://</p>
<p>If you still have problems try setting the cookie domain to your full domain name, eg. www.mysystem.tld, www.something.mydomain.tld. You <b>must</b> ensure the domain name contains at least two dots or browsers will be unlikely to recognise the cookie, eg. .mydomain.com, mydomain.com. Do <b>not</b> add http:// or anything else to the domain name!</p></li>
<li><b>My users are complaining about being logged out too quickly!</b>
<p>You can increase the default length of sessions (ie. how long before a users session is considered 'dead') in Admin->General->Configuration->Cookie Settings->Session Length. Set it to whatever value your users feel comfortable with, remember that security issues may affect your decision (ie. having too long a session may allow non-users to abuse your board should a user forget to logout or otherwise leave a current session on a public workstation).</p></li>
<li><b>I am having problems with HTML!</b>
<p>If you want to allow your users to make use of HTML in posts you need to do two things. Firstly enable HTML in Admin -> General -> Configuration. Secondly to need to make sure that the tags your users will post are in the Allowed HTML Tags field (again Admin -> General -> Configuration). If users post using tags not on this list they won't be displayed as HTML! eg. to enable someone to post Flash you could add the embed tag to this field. Be careful which tags you allow, it is very easy to break the boards own output if the wrong tags are used in posts. </p></p></li>
<li><b>Can I suggest a feature for phpBB 2.2?</b>
<p>Yes you most certainly can, phpBB 2.0.0 is now feature frozen and only bug fix releases will be made from this line. However, work has already started on the next release of phpBB, phpBB 2.2. We already have a number of features in mind and these are listed on our task manager:</p>
<p><a href="http://sourceforge.net/pm/task.php?group_project_id=13524&group_id=7885&func=browse" target="_tasks">http://sourceforge.net/pm/task.php?group_project_id=13524&group_id=7885&func=browse</a>.</p>
<p>Some of these features will also be discussed on forums at <a href="http://www.phpbb.com/phpBB/">http://www.phpbb.com/phpBB/</a>.</p>
<p>To suggest a feature first consult the task list mentioned above, if your idea is already listed then the chances are good that it will appear in 2.2. If your suggestion is not listed please submit it to our feature request tracker:</p>
<p><a href="http://sourceforge.net/tracker/index.php?group_id=7885&atid=357885" target="_features">http://sourceforge.net/tracker/index.php?group_id=7885&atid=357885</a>.</p>
<p>Before submitting please read through the already present suggestions, if one matches or is similar to yours please add to it rather than creating a new entry.</p>
<p>We make no promises to the inclusion of features but we will endeavour to introduce the most requested or most interesting ones.</p></li>
<li><b>Why is phpBB 1.x faster than phpBB 2.0?</b>
<p>The original phpBB 1.0 saw a very large decrease in page generation times from version 1.0/1.2 to 1.4. This was achieved by rewriting many of the SQL queries and splitting the database. These changes came about from work on phpBB 2.0. With phpBB 2.0 we have introduced numerous additional functions and features, not least of which is full templating (the separation of page design from code). This results in a slowdown from phpBB 1.4, we suspect though that the new features will outweigh the small difference in page generation times.</p></p></li>
<li><b>My question isn't answered here!</b>
Feel free to search our community forum for the information you require. <b>PLEASE DO NOT</b> post your question without having first used search, chances are someone has already asked and answered your question. You can find our board here:</p>
<p><a href="http://www.phpbb.com/phpBB/" target="_new">http://www.phpbb.com/phpBB/</a></p></li>
</ol>
<h2><u>Copyright and disclaimer</u></h2>
<p>This application is opensource software released under the <a href="http://www.gnu.org/licenses/gpl.html" target="_new">GPL</a>. Please see source code and the Docs directory for more details. This package and its contents are Copyright <20> 2002 <a href="http://www.phpbb.com/" target="_new">phpBB Group</a>, All Rights Reserved.</p>
<!-- END DOCUMENT -->
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

259
phpBB/docs/INSTALL.html Normal file
View File

@@ -0,0 +1,259 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>phpBB 2.0.15 :: Install</title>
<link rel="stylesheet" href="../templates/subSilver/subSilver.css" type="text/css">
<style type="text/css">
<!--
p,ul,td {font-size:10pt;}
.h2 {font-size:15pt;font-weight:bold;color:red}
.h3 {font-size:12pt;color:blue}
//-->
</style>
</head>
<body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#006699">
<table width="100%" border="0" cellspacing="0" cellpadding="10" align="center">
<tr>
<td class="bodyline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../templates/subSilver/images/logo_phpBB.gif" border="0" alt="phpBB 2 : Creating Communities" vspace="1" /></a></td>
<td align="center" width="100%" valign="middle"><span class="maintitle">phpBB 2.0.15 INSTALL</span></td>
</tr>
</table>
<!-- BEGIN DOCUMENT -->
<p align="center"><b>Please read this document completely before proceeding with installation.</b></p>
<p>Please note these instructions are not fully comprehensive, a more thorough userguide will be available on the phpBB website in the near future. However, this document will walk you through the basics on installing the forum software.</p>
<p>A basic overview of running phpBB 2.0.15 can be found in the accompanying <a href="README.html">README</a> documentation. Please ensure you read that document in addition to this! For more detailed information on using phpBB 2 you should read <a href="http://www.phpbb.com/support/guide/" target="_new">Userguide</a> now available online.</p>
<ol>
<li><a href="#quickinstall">Quick Install</a></li>
<li><a href="#require">Requirements</a></li>
<li><a href="#install">New Installations</a></li>
<ol type="i">
<li><a href="#fileext">Changing the file extension</a></li>
<li><a href="#phpBB1x">Replacing an old phpBB 1.x install</a></li>
<li><a href="#nonaccess">Installing on MySQL 3 and 4, PostgreSQL 7.x, MS SQL 7/2000 (inc. via ODBC)</a></li>
<li><a href="#access">Installing on MS Access 2000/XP</a></li>
<li><a href="#requireddata">Entering required data</a></li>
<li><a href="#completeinstall">Completing installation</a></li>
</ol>
<li><a href="#upgrade1.x">Upgrade from phpBB 1.4.x</a></li>
<li><a href="#upgradeb1">Upgrade from phpBB 2.0 beta-1</a></li>
<li><a href="#upgradeRC">Upgrade from previous Release Candidate versions of phpBB 2</a></li>
<ol type="i">
<li><a href="#langtempchanges">Changes in language pack format and templates</a></li>
</ol>
<li><a href="#upgradeSTABLE">Upgrade from stable releases of phpBB 2.0.x</a></li>
<ol>
<li><a href="#upgradeSTABLE_full">Full package</a></li>
<li><a href="#upgradeSTABLE_files">Changed files only</a></li>
<li><a href="#upgradeSTABLE_patch">Patch file</a></li>
<li><a href="#upgradeSTABLE_all">All package types</a></li>
</ol>
<li><a href="#postinstall">Important (security related) post-Install tasks for all installation methods</a></li>
<ol type="i">
<li><a href="#avatars">Uploadable avatars</a></li>
<li><a href="#safemode">Safe Mode</a></li>
<li><a href="#extras">Optional extras</a></li>
</ol>
<li><a href="#disclaimer">Disclaimer</a></li>
</ol>
<a name="quickinstall"></a><h2 class="h2"><u>1. Quick Install</u></h2>
<p>If you have basic knowledge of using FTP and are sure your hosting service or server will run phpBB 2 you can use these steps to quickly get started. For a more detailed explanation you should skip this and go to <a href="#require">section 2</a> below.</p>
<ol>
<li>Decompress the phpBB 2 archive to a local directory on your system.</li>
<li>Upload all the files contained in this archive (retaining the directory structure) to a web accessible directory on your server or hosting account.
<li>Change the permissions on config.php to be writeable by all (666 or -rw-rw-rw- within your FTP Client)</li>
<li>Using your web browser visit the location you placed phpBB 2 with the addition of install/install.php, e.g. http://www.mydomain.com/phpBB2/install/install.php, http://www.mydomain.com/forum/install/install.php etc.
<li>Fill out all the requested information and hit <i>Submit</i></li>
<li>Change the permissions on config.php to be writeable only by yourself (644 or -rw-r--r-- within your FTP Client)</li>
<li>Click the <i>Complete Installation</i> button or revisit the location you entered above.</li>
<li>phpBB 2 should now be available, please <b>MAKE SURE</b> you read at least <a href="#postinstall">Section 8</a> below for important, security related post-installation instructions.</li>
</ol>
<p>If you experienced problems or do not know how to proceed with any of the steps above please read the rest of this document.</p>
<a name="require"></a><h2 class="h2"><u>2. Requirements</u></h2>
<p>Installation of phpBB2 requires the following:</p>
<ul>
<li>A webserver or web hosting account running on any major Operating System</li>
<li>A SQL database system, <b>one of</b>:
<ul>
<li>MySQL (3.22 or higher)</li>
<li>PostgreSQL 7.0.3 or higher (preferably 7.1.x or 7.2.x)</li>
<li>MS SQL Server (7 or 2000) directly or via ODBC</li>
<li>MS Access (2000 or XP) via ODBC</li>
</ul>
</li>
<li>PHP (4.0.3 and above) with support for the database you intend to use above</li>
</ul>
<p>If your server or hosting account does not meet the requirements above I am afraid phpBB 2.0 is not for you.</p>
<a name="install"></a><h2 class="h2"><u>3. New Installations</u></h2>
<p>Installation of phpBB 2 will vary according to your server and database. If you have <i>shell access</i> to your account (via telnet or ssh for example) you may want to upload the entire phpBB 2 archive (in binary mode!) to a directory on your host and unarchive it there.</p>
<p>If you do not have shell access or do not wish to use it you will need to decompress the phpBB 2 archive to a local directory on your system using your favourite compression program, e.g. winzip, rar, zip, etc. From there you must FTP <b>ALL</b> the files it contains (being sure to retain the directory structure and filenames) to your host. Please ensure that the cases of filenames are retained, do <b>NOT</b> force filenames to all lower or upper case doing so will cause errors later.</p>
<p>All .php, .inc, .sql, .cfg and .htm files should be uploaded in <b>ASCII</b> mode, while all graphics should be uploaded in <b>BINARY</b> mode. If you are unfamiliar with what this means please refer to your FTP client documentation. In most cases this is all handled transparantly by your ftp client but if you encounter problems later you should be sure the files where uploaded correctly as described here.</p>
<p>phpBB2 comes supplied with English as its standard language. However a number of seperate packs for different languages are available. If you are not a native English speaker you may wish to install one or more of these packages before continuing. The installation process below will allow you to select a default language from those available (you can of course change this default at a later stage). For more details of language packs, where to obtain them and how to install them please see the <a href="README.html#i18n">README</a>.</p>
<p>Once all the files have been uploaded to your site you should point your browser at this location with the addition of install/install.php (please note that if you changed the extension from php, see <a href="#fileext">Section 3.i</a> below, you should alter install.php appropriately). For example if your domain name is <i>www.mydomain.tld</i> and you placed phpBB 2 in a directory /phpBB2 off your web root you would enter <i>http://www.mydomain.tld/phpBB2/install/install.php</i> into your browser. When you have done this you should see the phpBB 2 Installation screen appear.</p>
<a name="fileext"></a><h3 class="h3">3.i. Changing the file extension</h3>
<p>If the file extension used to execute PHP scripts on your server is <b>NOT</b> .php but for example .php3 or .phtml you should first rename <b>ALL</b> files ending in .php and change the value of $phpEx in <u>extension.inc</u>. In the vast majority of cases this step will be unncessary.</p>
<a name="phpBB1x"></a><h3 class="h3">3.ii. Replacing an old phpBB 1.x install</h3>
<p><b>NOTE</b>, you should <b>NOT</b> place phpBB 2 files into the same directory as any previous installation of phpBB 1.x! Create a new directory (or move your old phpBB 1.x out of the way), failure to do this will result in runtime errors.</p>
<a name="nonaccess"></a><h3 class="h3">3.iii. Installing on MySQL 3 and 4, PostgreSQL 7.x, MS SQL 7/2000 (inc. via ODBC)</h3>
<p><b>Before proceeding</b> with installation you should ensure you have a database available. Most good hosting accounts now come with at least one database as part of the basic package although it may need to be setup before first use. Ask your provider for details if you are unsure whether you do or not. If you are running your own server and are unsure how to create a database you should refer to your SQL servers documentation or website, e.g. <a href="http://www.mysql.com/doc/" target="_new">http://www.mysql.com/doc/</a>, <a href="http://www.postgresql.org/users-lounge/" target="_new">http://www.postgresql.org/users-lounge/</a>, etc.</p>
<p>If your database server is MySQL <b>PLEASE</b> ensure you select the appropriate version from the dropdown box. Do <b>NOT</b> select MySQL 4.x if you have MySQL 3.x (the most common type) installed, if in doubt select MySQL 3.x.</p>
<a name="access"></a><h3 class="h3">3.iv. Installing on MS Access 2000/XP</h3>
<p>Before you install phpBB 2 you need to create a <b>Data Source Name</b> or <b>DSN</b>. The exact way to do this will depend on your hosting provider, if you are unsure you should check with them before proceeding. In general though you should create a System DSN which points to the location where you have stored an unarchived copy of the ms_access_primer.mdb file (this is contained in the ms_access_primer.zip which can be found in <u>install/schemas/</u>). The name you give this DSN will be used during installation. Do not proceed until this step is complete!</p>
<p>Please note that MS Access support is not designed for busy boards. If you anticipate more than one or two users being online at any given time you should upgrade to a more robust server solution.</p>
<a name="requireddata"></a><h3 class="h3">3.v. Entering required data</h3>
<p>Once you have reached the installation page you need to fill out several fields. Be sure to select the right <u>database type</u>! If you do not have or do not know the <u>database name</u>, <u>database server</u>, etc. please check with your hosting provider. For <b>non-ODBC</b> databases the database server is typically localhost but this is <b>NOT</b> universal! If you are using an ODBC based database (such as MS Access or MSSQL via ODBC) you should enter the DSN here (see 2.iv.).</p>
<p>The <u>database prefix</u> allows you to enter a few characters, short name, etc. which all tables used by this installation will be prefixed with. The default (phpbb_) will usually be fine. However if you have more than one copy of phpBB 2 using the same database be sure to alter it or you will receive errors during installation.</p>
<p>The remaining information is personal to you and your site. You will need to enter a <u>username</u> and <u>password</u> for the initial administration account (more administrators can be created later). The <u>server name</u>, <u>server port</u> and <u>script path</u> are essential because all emails containing URLs will use these values. The installer will guess initial values, however they may not be correct so be sure to check them!</p>
<p>Remember that a domain (or server) name does <b>NOT</b> include http://! Enter just the domain name, eg. <i>www.mydomain.tld</i> and <b>NOT</b> <i>http://www.mydomain.tld/</i>. The server port can, in the great majority of cases be left as 80, this is the standard http port. However if your web server listens to a different port because for example port 80 is blocked then alter this appropriately. The script path is the relative path from your webroot where phpBB 2 is installed, e.g. if you install phpBB 2 into phpBB 2/ in your webroot then enter phpBB 2 (or /phpBB 2/) as the script path.</p>
<a name="completeinstall"></a><h3 class="h3">3.vi. Completing installation</h3>
<p>Once you have checked all the data press submit. The installation script will create and populate all the necessary tables. It will then attempt to write to the <u>config.php</u> file which will contain the basic configuration data used to run phpBB 2. If the installer cannot write <u>config.php</u> directly you will be given the option of either downloading the file or even FTPing it to the correct location. If you choose to download you should then re-upload the file to your server, overwriting the existing <u>config.php</u> in the process. If you attempt to FTP via the install script you should supply the requested information. Should FTP fail you will be able to download the file and then re-upload as described earlier.</p>
<p>During the installation procedure phpBB 2 will check to ensure the relevant PHP database module is available and will not proceed if it cannot be found. Should this happen be sure to check you have selected the correct database and/or ask your hosting provider for advice.</p>
<p><b>Do not</b> proceed untill the installation is completed and (if necessary) you have uploaded the <u>config.php</u> file.</p>
<a name="upgrade1.x"></a><h2 class="h2"><u>4. Upgrade from phpBB 1.4.x</u></h2>
<p>Before upgrading we heavily recommend you do a <u>full backup of your database</u>! If you are unsure how to achieve this please ask your hosting provider for advice. One you have backed up your database you should follow the basic instructions given for <a href="#install">New Installations</a> above. <b>However</b> instead of selecting <u>Install</u> as the <i>Installation Method</i> you should select <u>Upgrade</u>.</p>
<p>As with install the upgrade is automated. The config.php will be written automatically (if possible, else you will be able to download a copy as with New Installation above). Once the config.php is in place everything should proceed without error. Please note that this upgrading process may take quite some time and depending on your hosting provider this may result in it failing (due to web server or other timeout issues). If this is the case you should ask your provider if they are willing to allow the upgrade script to temporarily exceed their limits (be nice and they will probably be quite helpful).</p>
<p>Once completed your board should be immediately available. If you encountered errors you should restore your original database and report the problems to our bug tracker or seek help via our forums (see <a href="README.html">README</a> for details).</p>
<a name="upgradeb1"></a><h2 class="h2"><u>5. Upgrade from phpBB 2.0 beta-1</u></h2>
<p>Sorry but no direct upgrade is available from beta-1 (we did warn you!). If you are reasonably confident with the use of SQL, etc. you may be able to make the required changes to the database manually. You will need to examine the CVS check-ins to determine what needs changing where.</p>
<a name="upgradeRC"></a><h2 class="h2"><u>6. Upgrade from previous Release Candidate versions of phpBB 2</u></h2>
<p>Upgrading from these versions is generally quite easy. First you should make a copy of your existing <u>config.php</u>, keep it in a safe place! Next delete all the existing phpBB 2 files, do not leave any in place otherwise you may encounter errors later. You can leave alternative templates in-place but you should note they may not function correctly with the final release. It is therefore recommended you switch back to subSilver if you are currently using a different style. With this complete you can upload the new phpBB 2.0.0 files (see <a href="#install">New Installations</a> for details if necessary). Once complete copy back your saved <u>config.php</u>, replacing the new one.</p>
<p>You should now run <b>install/update_to_latest.php</b> which, depending on your previous version, will make a number of database changes. You may receive <u>FAILURES</u> during this procedure, they should not be a cause for concern unless you see an actual <u>ERROR</u>, in which case the script will stop (in this case you should seek help via our forums or bug tracker).</p>
<p><b>RC-2 and below MSSQL users</b>, please note that during the update procedure your existing forums table will be dropped and re-created. All data in standard fields will be retained. However if you have modified the forums table and added additional fields or altered existing ones these changes <b>WILL</b> be lost. If this is a significant issue for you we advise you comment out the "DROP FORUM TABLE" section in update_to_latest.php and instead, manually alter the forum_id column to remove the IDENTITY setting (if it exists).</p>
<p>Once the update_to_latest.php has completed you <b>MUST</b> proceed to the Administration General Configuration panel and check all the values in General Configuration. This is essential if you were running any version before RC-3 since extra information needs to be entered to enable correct URLs to be output in emails.</p>
<a name="langtempchanges"></a><h3 class="h3">6.i. Changes in language pack format and templates</h3>
<p>Please note that changes have been made to the format of language, image localisations and templates from previous RC's to FINAL. If you were running a release candidate prior to RC-3 you will <b>need</b> to download new language and image localisation packs. You can safely delete any existing <u>*_lang.gif</u> files in the subSilver/images directory since these are no longer utilised. If you are using or have installed any 3rd party template set you must either remove it or update it. Changes have been made to a number of template variables which will result in these not working unless they have been updated to meet phpBB 2.0.x standards.</p>
<a name="upgradeSTABLE"></a><h2 class="h2"><u>7. Upgrade from previous stable (released) versions of phpBB 2</u></h2>
<p>If you are currently using a stable release of phpBB 2 updating to this version is straightforward. You would have downloaded one of three packages and your choice determines what you need to do. <b>Please Note</b>: That before upgrading we heavily recommend you do a <u>full backup of your database and existing phpBB2 source files</u>! If you are unsure how to achieve this please ask your hosting provider for advice.</p>
<p><b>MySQL Users Please Note</b>: Changes introduced in 2.0.4 may increase the size of your database, more specifically the search_wordmatch table. There are other changes in that release which are designed to reduce the database size. However these additional changes may not apply to all types of forum (particularly non-English boards). While any increases will be relatively small compared to the overall database size it may be an issue for some users. In particular users on hosting plans which limit database size and where the database is near that limit.</p>
<p><b>Please make sure you update your phpBB2 source files too, even if you run the update_to_latest.php file.</b></p>
<a name="#upgradeSTABLE_full"></a><h3 class="h3">7.i. Full package</h3>
<p>If you have downloaded the full package you should follow the same general upgrade path as for "<a href="#upgradeRC">Upgrade from previous Release Candidate versions of phpBB 2</a>". The exception to this being the need to switch or update styles. In addition there is generally little need to visit the admin panel (though it is adviseable).</p>
<a name="#upgradeSTABLE_files"></a><h3 class="h3">7.ii. Changed files only</h3>
<p>This package contains a number of archives, each contains the files changed from a given release to the latest version. You should select the appropriate archive for your current version, e.g. if you currently have 2.0.14 you should select the phpBB-2.0.14_to_2.0.15.zip/tar.gz file.</p>
<p>The directory structure has been preserved enabling you (if you wish) to simply upload the contents of the archive to the appropriate location on your server, i.e. simply overwrite the existing files with the new versions. Do not forget that if you have installed any Mods these files will overwrite the originals possibly destroying them in the process. You will need to re-add Mods to any affected file before uploading.</p>
<p>As for the other upgrade procedures you should run <b>install/update_to_latest.php</b> after you have finished updating the files. This will update your database schema and increment the version number.</p>
<a name="#upgradeSTABLE_patch"></a><h3 class="h3">7.iii. Patch file</h3>
<p>The patch file is probably the best solution for those with many Mods or other changes who do not want to re-add them back to all the changed files. To use this you will need command line access to a standard UNIX type <b>patch</b> application.</p>
<p>A number of patch files are provided to allow you to upgrade from previous stable releases. Select the correct patch, e.g. if your current version is 2.0.14 you need the phpBB-2.0.14_to_2.0.15.patch. Place the correct patch in the parent directory containing the phpBB 2 core files (i.e. index.php, viewforum.php, etc.). With this done you should run the following command: <b>patch -cl -d [PHPBB DIRECTORY] -p1 &lt; [PATCH NAME]</b> (where PHPBB DIRECTORY is the directory name your phpBB Installation resides in, for example phpBB2, and where PATCH NAME is the relevant filename of the selected patch file). This should complete quickly, hopefully without any HUNK FAILED comments.</p>
<p>If you do get failures you should look at using the <a href="#upgradeSTABLE_files">Changed files only</a> package to replace the files which failed to patch, please note that you will need to manually re-add any Mods to these particular files. Alternatively if you know how you can examine the .rej files to determine what failed where and make manual adjustments to the relevant source.</p>
<p>You should of course delete the patch file (or files) after use. As for the other upgrade procedures you should run <b>install/update_to_latest.php</b> after you have finished updating the files. This will update your database schema and data (if appropriate) and increment the version number.</p>
<a name="#upgradeSTABLE_all"></a><h3 class="h3">7.iv. All package types</h3>
<p>If you have non-English language packs installed you may want to see if a new version has been made available. A number of missing strings have been added which, though not essential, may be beneficial to users. Please note that at this time not all language packs have been updated so you should be prepared to periodically check for updates.</p>
<a name="postinstall"></a><h2 class="h2"><u>8. Important (security related) post-Install tasks for all installation methods</u></h2>
<p>Once you have succssfully installed phpBB 2.0.x you <b>MUST</b> ensure you remove the entire install/ and contrib/ directories. Leaving these in place is a <u>very serious potential security issue</u> which may lead to deletion or alteration of files, etc. Please note that until these directories are remove phpBB2 will not operate and a warning message will be displayed. Beyond these <b>essential</b> deletions you may also wish to delete the docs/ directories if you wish.</p>
<p>With these directories deleted you should proceed to the administration panel. Depending on how the installation completed you may have been directed there automatically. If not, login as the administrator you specified during install/upgrade and click the "<b>Administration Panel</b>" link at the bottom of any page. Ensure that details specified in General -> Configuration are correct!</p>
<a name="avatars"></a><h3 class="h3">8.i. Uploadable avatars</h3>
<p>phpBB 2 supports several methods for allowing users to select their own <i>avatar</i> (an avatar is a small image generally unique to a user and displayed just below their username in posts).</p>
<p>Two of these options allow users to upload an avatar from their machine or a remote location (via a URL). If you wish to enable this function you should first ensure the correct paths for uploadeable avatars is set in Admin -> General -> Configuration -> Avatars. By default this is <u>images/avatars</u> but you can set it to whatever you like, just ensure the configuration setting is updated. You must also ensure this directory can be written to by the webserver. Usually this means you have to alter its permissions to allow anyone to read and write to. Exactly how you should do this depends on your ftp client or server operating system.</p>
<p>On UNIX systems for example you set the directory to a+rwx (or ugo+rwx or even 777). This can be done from a command line on your server using chmod or via your FTP client (using the Change Permissions, chmod or other Permissions dialoge box, see your FTP clients documentation for help). Most FTP clients list permissions in the form of User (Read, Write, Execute), Group (Read, Write, Execute) and Other (Read, Write, Execute). You need to tick all of these boxes to set correct permissions.</p>
<p>On Windows system you need to ensure the directory is not write-protected and that it has global write permissions (see your servers documentation or contact your hosting provider if you are unsure on how to achieve this).</p>
<p>Please be aware that setting a directories permissions to global write access is a potential security issue. While it is unlikely that anything nasty will occur (such as all the avatars being deleted) there are always people out there out to cause trouble. Therefore you should monitor this directory and if possible make regular backups.</p>
<a name="safemode"></a><h3 class="h3">8.ii. Safe Mode</h3>
<p>phpBB 2.0.x includes support for using uploadable avatars on systems running PHP in safe mode. If this applies to your hosting service you will need to create a sub-directory called <u>tmp</u> in the directory you specified for storage of uploaded avatars (by default this is images/avatars as explained above). Give it the same access rights as for uploadable avatars above.</p>
<p>This safe mode support includes compatibility with various directory restrictions your host may impose (assuming they are not too restrictive and that the PHP installed is version 4.0.3 or later). There is generally no need for any manual setup for safe mode support it is typically handled transparantly.</p>
<a name="extras"></a><h3 class="h3">8.iii. Optional extras</h3>
<p>Included with this package are two extra (optional) files, you will find them in the <u>contrib/</u> directory. These extras, <i>template_file_cache.php</i> and <i>template_db_cache.php</i> address concerns over server load and page generation times on slower or heavily loaded systems. These updated template modules compile each template and uses this rather than compiling each file everytime it is viewed. Tests seem to indicate a noticeable decrease in page generation times and more importantly a significant decrease in overall server load in virtual hosting environments.</p>
<p>You should see the <a href="../contrib/README.html">README</a> contained within the contrib directory for more details.</p>
<a name="disclaimer"></a><h2 class="h2"><u>9. Copyright and disclaimer</u></h2>
<p>This application is opensource software released under the <a href="http://www.gnu.org/licenses/gpl.html" target="_new">GPL</a>. Please see source code and the Docs directory for more details. This package and its contents are Copyright <20> 2002 <a href="http://www.phpbb.com/" target="_new">phpBB Group</a>, All Rights Reserved.</p>
<!-- END DOCUMENT -->
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

224
phpBB/docs/README.html Normal file
View File

@@ -0,0 +1,224 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>phpBB 2.0.15 :: Readme</title>
<link rel="stylesheet" href="../templates/subSilver/subSilver.css" type="text/css" />
<style type="text/css">
<!--
p,ul,td {font-size:10pt;}
.h2 {font-size:15pt;font-weight:bold;color:red}
.h3 {font-size:12pt;color:blue}
//-->
</style>
</head>
<body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#006699">
<table width="100%" border="0" cellspacing="0" cellpadding="10" align="center">
<tr>
<td class="bodyline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../templates/subSilver/images/logo_phpBB.gif" border="0" alt="phpBB 2 : Creating Communities" vspace="1" /></a></td>
<td align="center" width="100%" valign="middle"><span class="maintitle">phpBB 2.0.15 README</span></td>
</tr>
</table>
<!-- BEGIN DOCUMENT -->
<p>Thank you for downloading phpBB 2, the long awaited re-write of the popular phpBB 1.x online community forum. This README will guide through the basics of installation and operation of phpBB 2. Please ensure you read this and the accompanying documentation fully <b>before</b> proceeding with the installation.</p>
<ol>
<li><a href="#install">Installing phpBB 2</a></li>
<li><a href="#run">Running phpBB 2</a></li>
<ol type="i">
<li><a href="#i18n">Internationalisation (i18n)</a></li>
<li><a href="#styles">Styles</a></li>
<li><a href="#mods">Mods</a></li>
</ol>
<li><a href="#help">Getting help with phpBB 2</a></li>
<ol type="i">
<li><a href="#userguide">Userguide</a></li>
<li><a href="#website">Community Forums</a></li>
<li><a href="#irc">Internet Relay Chat</a></li>
</ol>
<li><a href="#status">Status of this version</a></li>
<li><a href="#bugs">Reporting Bugs</a></li>
<ol>
<li><a href="#securitybugs">Security related bugs</a></li>
</ol>
<li><a href="#curbugs">Overview of current bug list</a></li>
<li><a href="#php">PHP compatibility issues</a></li>
<ol type="i">
<li><a href="#phpsec">Notice on PHP security issues</a></li>
</ol>
<li><a href="#disclaimer">Disclaimer</a></li>
</ol>
<a name="install"></a><h2 class="h2"><u>1. Installing phpBB 2</u></h2>
<p>Installation and upgrade instructions can be found in the <a href="INSTALL.html">INSTALL</a> document contained in this distribution. If you are intending to upgrade from a previous phpBB 1.4.x installation we highly recommend you backup any existing data before proceeding!</p>
<p><b>Please note</b> that users of Release Candidate (RC) versions of phpBB 2 should run the update_to_latest.php script <b>BEFORE</b> attempting to access your board. Failing to do so may result in errors and unexpected behaviour! While these won't do any damage they will prevent you using your board.</p>
<p>If you are using RC-1 (pre) you may find some other DB changes have occured and should examine the schemas to see if your installation requires any modifications (note that most of these have already been discussed on the phpBB 2 forums and are handled by the update script). If you are uncomfortable doing any of this we recommend you re-install (you may backup your existing data if you wish, re-install phpBB 2 and then insert your backup).</p>
<p>Users of phpBB 2.0 Beta-1 cannot directly upgrade to phpBB 2.0 RC-2, 3 or 4, sorry.</p>
<a name="run"></a><h2 class="h2"><u>2. Running phpBB 2</u></h2>
<p>Once installed phpBB 2.0 is easily managed by both admin and moderator control panels. If you need help or advice with phpBB 2 please see <a href="#help">Section 3</a> below.</p>
<a name="i18n"></a><h3 class="h3">2.i. Internationalisation, i18n</h3>
<p>A number of language packs and subSilver localisations are now available. You can find them on our official download page:</p>
<p><a href="http://www.phpbb.com/downloads.php#lang" target="_new">http://www.phpbb.com/downloads.php</a></p>
<p>This is the <i>Official</i> location for all support language sets. If you download a package from a 3rd party site you do so with the understanding that we cannot offer support. So please, do not ask for help in these cases!</p>
<p>Installation of these packages is straightforward, simply download the required language pack and unarchive it into the languages/ folder. Please ensure you retain the directory structure when doing this! To install the subSilver image packs you should unarchive the file/s into the templates/subSilver/images directory, again you must retain the directory structure. Once installed the languages will become immediately available.</p>
<p>If your language is not available please visit our forums where you will find a topic listing translations currently available or in preparation. This topic also gives you information should you wish to volunteer to translate a language not currently listed</p>
<p><b>Please note</b> that users who have upgraded to the latest version from versions prior to RC-3 should will <b>need</b> to download new versions of the language/subSilver image packs. Any package downloaded prior to the availability of RC-3 will <b>not</b> function correctly with this version of phpBB 2.</p>
<p>If you have upgraded from 2.0.0 and make use of non-English language packs you will benefit from downloading updated versions which will become available shortly. These introduce a number of strings which went missing from the first version plus a few updates and additions.</p>
<a name="styles"></a><h3 class="h3">2.ii. Styles</h3>
<p>Although phpBB Group are rather proud of the subSilver style (which has influenced many of our competitors boards <i>updated</i> designs!) we realise that it may not be to everyones tastes. Therefore phpBB 2 allows styles to be switched with relative ease. Firstly you need to locate and download a style you like. We maintain such a site at</p>
<p><a href="http://www.phpbb.com/styles/" target="_new">http://www.phpbb.com/styles/</a></p>
<p><b>Please note</b> that 3rd party styles downloaded for versions of phpBB 2 prior to its final (2.0.x) release will <b>not</b> function correctly. You should either remove these styles or (if available) update them to meet changes in 2.0.x.</p>
<p>Once you have downloaded a style the usual next step is to unarchive (or upload the unarchived contents of) the package into your templates/ directory. You then need to visit Administration -> Styles -> Add, you should see the new style available, click add and it will become available for all your users.</p>
<a name="mods"></a><h3 class="h3">2.iii. Mods</h3>
<p>Although not officially supported by phpBB Group, phpBB 2 has a thriving mod (formerly known as <i>hacks</i>) scene. These third party modifications to the standard phpBB 2 extend its capabilities still further and can be found at:</p>
<p><a href="http://www.phpbb.com/mods" target="_new">http://www.phpbb.com/mods</a></p>
<p><b>Please remember</b> that any bugs or other issues that occur after you have added any modification should <b>NOT</b> be reported to the bug tracker (see below). First remove the modification and see if the problem is resolved.</p>
<p>Also remember that any modifications which modify the database in any way may render upgrading your forum to future versions more difficult unless we state otherwise. With all this said many users have and continue to utilise many of the mods already available with great success</p>
<a name="help"></a><h2 class="h2"><u>3. Getting help with phpBB 2</u></h2>
<p>phpBB 2 can seem a little daunting to new users in places, particularly with regard the permission system. The first thing you should do is check the <a href="FAQ.html">FAQ</a> which covers a few basic getting started questions. If you need additional help there are several places you should look.</p>
<a name="userguide"></a><h3 class="h3">3.i. phpBB 2 Userguide</h3>
<p>A comprehensive userguide is now available online and can be accessed from the following location:</p>
<p><a href="http://www.phpbb.com/support/guide/" target="_new">http://www.phpbb.com/support/guide/</a></p>
<p>This covers everything from installation through setting permissions and managing users.</p>
<a name="website"></a><h3 class="h3">3.ii. Community Forums</h3>
<p>phpBB Group maintains a thriving community where a number of people have generously decided to donate their time to help support users. This site can be found at:</p>
<p><a href="http://www.phpbb.com/" target="_new">http://www.phpbb.com/</a></p>
<p>If you do seek help via our forums please be sure to do a Search before posting. This may well save both you and us time and allow the developer, moderator and support groups to spend more time responding to people with unknown issues and problems. Please also remember that phpBB is an entirely volunteer effort, no one receives any compensation for the time they give, this includes moderators as well as developers. So please be respectful and mindful when awaiting responses.</p>
<a name="irc"></a><h3 class="h3">3.iii Internet Relay Chat</h3>
<p>Another place you may find help is our IRC channel. This operates on the Freenode IRC network, <b>irc.freenode.net</b> and the channel is <b>#phpbb</b> and can be accessed by any good IRC client such as mIRC, XChat, etc. Again, please do not abuse this service and be respectful of other users.</p>
<a name="status"></a><h2 class="h2"><u>4. Status of this version</u></h2>
<p>This is the second stable release of phpBB 2. The 2.0.x line is essentially feature frozen, point releases will see only bugs and such like fixed. Our next major release will be phpBB 3.0 and work is progressing on this (the unstable development version is 2.1). Please do not post questions asking when 3.0 will be available, no release date has been set. phpBB 3.0 is now feature frozen, please feel free to suggest new features for phpBB 3.2 using our feature request tracker. We do not guarantee that all these will appear in 3.2 but we will do our best!:</p>
<p><a href="http://sourceforge.net/tracker/?atid=580201&group_id=7885&func=browse" target="_new">http://sourceforge.net/tracker/?atid=580201&group_id=7885&func=browse</a></p>
<p>Before submitting your idea please <b>ensure</b> you have read through the entries in that list. If your idea is similar to an existing one please feel free to add a comment to it. Please <b>do not</b> submit duplicate suggestions!</p>
<p>For some suggestions we may ask for your feedback via our forums. For those interested in the development of phpBB 3.0 you should keep an eye on the community forums (particularly the Feature Discussion forum) where you may be able to influence the direction we take with certain new features. Finally you may like to visit our development forum to see how things are progressing:</p>
<p><a href="http://area51.phpbb.com/phpBB/" target="_new">http://area51.phpbb.com/phpBB/</a></p>
<p>Please note that this forum should <b>NOT</b> be used to obtain support for or ask questions about phpBB 2.0.x, the main community forums are the place for this. Any such posts will be locked and go unanswered.</p>
<a name="bugs"></a><h2 class="h2"><u>5. Reporting Bugs</u></h2>
<p>The phpBB Group uses a bug tracking system to store, list and manage all reported bugs, it can be found at the location listed below. Please <b>DO NOT</b> post bug reports to our forums, they will be locked. In addition please <b>DO NOT</b> use the bug tracker for support requests. Posting such a request will only see you directed to the support forums (while taking time away from working on real bugs).</p>
<p><a href="http://www.phpbb.com/bugs/" target="_new">http://www.phpbb.com/bugs/</a></p>
<p>While we very much appreciate receiving bug reports (the more reports the more stable phpBB 2 will be) we ask you carry out a few steps before adding new entries:</p>
<ul>
<li>Firstly determine if your bug is reproduceable, how to determine this depends on the bug in question. Only if the bug is reproduceable is it likely to be a problem with phpBB 2.0 (or in some way connected). If something cannot be reproduced it may turn out to have been your hosting provider working on something, a user doing something silly, etc. Bug reports for non-reproduceable events can slow down our attempts to fix real, reproduceable issues<br /><br /></li>
<li>Next please read or search through the existing bug reports (remember to check open <b>AND</b> closed reports!) to see if <i>your</i> bug (or one very similar to it) is already listed. If it is please add to that existing bug rather than creating a new duplicate entry (all this does is slow us down).<br /><br /></li>
<li>Check the forums (use search!) to see if people have discussed anything that sounds similar to what you are seeing. However, as noted above please <b>DO NOT</b> post your particular bug to the forum unless it's non-reproduceable or you are sure it's related to something you have done rather phpBB 2.0<br /><br /></li>
<li>If no existing bug exists then please feel free to add it</li>
</ul>
<p>If you do post a new bug (i.e. one that isn't already listed in the bug tracker) firstly make sure you have logged in (your username and password are the same as for the community forums) then please include the following details:</p>
<ul>
<li>Your server type/version, eg. Apache 1.2.22, IIS 4, Sambar, etc.</li>
<li>PHP version and mode of operation, eg. PHP 4.1.1 as a module, PHP 4.0.1 running as CGI, etc.</li>
<li>DB type/version, eg. MySQL 3.23.32, PostgreSQL 7.1.2, MSSQL Server 2000 SP1, etc.</li>
</ul>
<p>Please also be as detailed as you can in your report, if possible list the steps required to duplicate the problem. If you have a fix which you are <b>VERY SURE</b> works (and is consistent with our coding guidelines) and does not introduce further problems or incompatibilities please let us know. However only include it in the bug report if you really must, if we need it we'll ask you for it.</p>
<p>Once a bug has been submitted you will be emailed any follow up comments added to it. <b>Please</b> if you are requested to supply additional information, <b>do so</b>! It is <u>extremely frustrating</u> for us to receive bug reports, ask for additional information but get nothing. In these cases we have a policy of <u>closing the bug</u>, which may leave a very real problem in place. Obviously we would rather not have this situation arise.</p>
<a name="securitybugs"></a><h3 class="h3">5.i. Security related bugs</h3>
<p>If you find a potential security related vulnerability in phpBB 2 please <b>DO NOT</b> post it to the bug tracker, public forums, mailing lists, etc.! Doing so may allow unscrupulous users to take advantage of it before we have time to put a fix in place. All security related bugs should be sent to our security tracker:</p>
<p><a href="http://www.phpbb.com/security/" target="_new">http://www.phpbb.com/security/</a></p>
<a name="curbugs"></a><h2 class="h2"><u>6. Overview of current bug list</u></h2>
<p>This list is not complete (see above link for full list) but does represent those bugs which may effect users on a wider scale. Other bugs listed in the tracker have typically been shown to be limited to certain setups or methods of installation/upgrade.</p>
<ul>
<li>First four characters of some posted content disappears - this is an issue with PHP not phpBB</li>
<li>Cannot post very large messages when using PostgreSQL 7.0.x (limitation of Postgresql 7.0.x)</li>
<li>By default cannot post very large messages with MSSQL (this can be configured within MSSQL)</li>
<li>Use of non-latin charsets with MSSQL may result in post data being cropped unexpectedly</li>
<li>Upgrade may fail to complete on large boards under some hosts</li>
<li>Case-sensitivity on usernames and emails with PostgreSQL 7.x. A fix is provided by a user <a href="http://www.phpbb.com/kb/article.php?article_id=201" target="_new">within our knowledge base</a></li>
</ul>
<a name="php"></a><h2 class="h2"><u>7. PHP compatibility issues</u></h2>
<p>phpBB is no longer supported on PHP3 due to several compatibility issues and we recommend that you upgrade to the latest stable release of PHP4 to run phpBB.</p>
<p>Please remember that running any application on a developmental version of PHP can lead to strange/unexpected results which may appear to be bugs in the application (which may not be true). Therefore we recommend you upgrade to the newest stable version of PHP before running phpBB 2. If you are running a developmental version of PHP please check any bugs you find on a system running a stable release before submitting.</p>
<p>This board has been developed and tested under Linux and Windows (amongst others) running IIS and Apache using MySQL 3.23 and 4.0.0, MSSQL Server 2000, MS Access 2000 and XP and PostgreSQL 7.x. Versions of PHP used range from 4.0.6 to 4.3.8 without problem. There may be unconfirmed issues with PHP 4.0.1 including patch level releases. If you experience problems with phpBB and have this PHP version installed it is recommended you upgrade it before posting bug reports.</p>
<p>With the recent release of the official version of PHP 5, people and hosts may be switching to the latest PHP version. At this moment, the phpBB Team does not officially support running phpBB on PHP 5, as phpBB2.0.x was not written with PHP 5 in mind. However, many users have reported using it sucessfully on PHP 5 having made a configuration change in PHP to enable support for the deprecated HTTP_*_VARS arrays which is turned off by default in new PHP 5 installations. The relevant configuration option is register_long_arrays and it is decribed in the PHP Manual. phpBB 2.0.x makes use of these arrays in order to maintain backwards compatibility with early versions of PHP 4.x which is part of the original specification.<br />
For this reason we do not support PHP 5 as platform for phpBB. It has been reported working, so you can try it. It's a risk you will be taking though.</p>
<a name="phpsec"></a><h3 class="h3">7.i. Notice on PHP security issues</h3>
<p>At the end of February 2002 a <a href="http://security.e-matters.de/advisories/012002.html" target="_new">major security issue</a> was found with PHP 3 and 4 which has resulted in many hosting providers disabling file uploads (although patches fixing the security issues are available and new versions of PHP 4 have been released).</p>
<p>Because of this, and to cope with situations where hosts didn't allow such uploads anyway we have implemented various checks in phpBB 2. These checks prevent you from enabling or making use of functions which will not operate correctly on PHP as installed on your server. At this time this includes locally uploaded avatars and DB restore.</p>
<p>Third party mods may also be effected but these are outside our control, you should contact the mod writer for more information.</p>
<a name="disclaimer"></a><h2 class="h2"><u>8. Copyright and disclaimer</u></h2>
<p>This application is opensource software released under the <a href="http://www.gnu.org/licenses/gpl.html" target="_new">GPL</a>. Please see source code and the Docs directory for more details. This package and its contents are Copyright <20> 2002 <a href="http://www.phpbb.com/" target="_new">phpBB Group</a>, All Rights Reserved.</p>
<!-- END DOCUMENT -->
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,26 @@
CODING GUIDELINES : Initials by psoTFX (July 2001)
-----------------
* The coding style is defined in the codingstandards.html file, all attempts should be made to follow it as closely as possible
* All SQL should be cross-DB compatible, if DB specific SQL is used alternatives must be provided which work on all supported DB's (MySQL, MSSQL (7.0 and 2000), PostgreSQL (7.0+), Oracle8, ODBC (generalised if possible, otherwise MS Access, DB2))
* All SQL commands should utilise the DataBase Abstraction Layer (DBAL)
* All URL's (and form actions) _must_ be wrapped in append_sid, this ensures the session_id is propagated when cookies aren't available
* The minimum amount of data should be passed via GET or POST, checking should occur within individual scripts (to prevent spoofing of information)
* The auth function should be used for all authorisation checking
* Sessions should be initiated on each page, as near the top as possible using the session_pagestart function (userdata should be obtained by calling the init_userprefs immediately after session initialisation)
* Login checks should be forwarded to the login page (supplying a page to forward onto once check is complete if required)
* All template variables should be named appropriately (using underscores for spaces), language entries should be prefixed with L_, system data with S_, urls with U_, all other variables should be presented 'as is'.
* Functions used by more than page should be placed in functions.php, functions specific to one page should be placed on that page (at the top to maintain compatibility with PHP3) surrounded by comments indicating the start and end of the function block
* All messages/errors should be output by the message_die function using the appropriate message type (see function for details)
* No attempt should be made to remove any copyright information (either contained within the source or displayed interactively when the source is run/compiled), neither should the copyright information be altered in any way (it may be added to)

View File

@@ -0,0 +1,327 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0044) -->
<HTML><HEAD><TITLE>phpBB Coding Standard Guidelines</TITLE>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
<BODY aLink=#cccccc bgColor=#ffffff link=#0000ff text=#000000
vLink=#0000ff><FONT face=verdana,arial,tahoma size=-1><A name=top></A>
<H2>phpBB Coding Standard Guidelines</H2>Comments or suggestions? email <A
href="mailto:nate@phpbb.com">nate@phpbb.com</A><BR><BR><A
href="#editor">Editor
Settings</A><BR><A
href="#naming">Naming
Conventions</A><BR><A
href="#layout">Code Layout</A><BR><A
href="#general">General
Guidelines</A><BR><BR><BR><A name=editor></A><A
href="#top">top</A>
<H3>Editor Settings</H3>
<P><B>Tabs vs Spaces:</B> In order to make this as simple as possible, we will
be using tabs, not spaces. Feel free to set how many spaces your editor uses
when it <B>displays</B> tabs, but make sure that when you <B>save</B> the file,
it's saving tabs and not spaces. This way, we can each have the code be
displayed the way we like it, without breaking the layout of the actual files.
</P>
<P><B>Linefeeds:</B> Ensure that your editor is saving files in the UNIX format.
This means lines are terminated with a newline, not with a CR/LF combo as they
are on Win32, or whatever the Mac uses. Any decent Win32 editor should be able
to do this, but it might not always be the default. Know your editor. If you
want advice on Windows text editors, just ask one of the developers. Some of
them do their editing on Win32. </P><BR><BR><A name=naming></A><A
href="#top">top</A>
<H3>Naming Conventions</H3>
<P>We will not be using any form of hungarian notation in our naming
conventions. Many of us believe that hungarian naming is one of the primary code
obfuscation techniques currently in use. </P>
<P><B>Variable Names:</B> Variable names should be in all lowercase, with words
separated by an underscore. <BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;Example: <CODE><FONT
size=+1>$current_user</FONT></CODE> is right, but <CODE><FONT
size=+1>$currentuser</FONT></CODE> and <CODE><FONT
size=+1>$currentUser</FONT></CODE> are not. <BR><BR>Names should be descriptive,
but concise. We don't want huge sentences as our variable names, but typing an
extra couple of characters is always better than wondering what exactly a
certain variable is for. </P>
<P><B>Loop Indices:</B> The <I>only</I> situation where a one-character variable
name is allowed is when it's the index for some looping construct. In this case,
the index of the outer loop should always be $i. If there's a loop inside that
loop, its index should be $j, followed by $k, and so on. If the loop is being
indexed by some already-existing variable with a meaningful name, this guideline
does not apply. <BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;Example: <PRE><FONT size=+1>
for ($i = 0; $i &lt; $outer_size; $i++)
{
for ($j = 0; $j &lt; $inner_size; $j++)
{
foo($i, $j);
}
} </FONT></PRE>
<P></P>
<P><B>Function Names:</B> Functions should also be named descriptively. We're
not programming in C here, we don't want to write functions called things like
"stristr()". Again, all lower-case names with words separated by a single
underscore character. Function names should preferably have a verb in them
somewhere. Good function names are <CODE><FONT
size=+1>print_login_status()</FONT></CODE>, <CODE><FONT
size=+1>get_user_data()</FONT></CODE>, etc.. </P>
<P><B>Function Arguments:</B> Arguments are subject to the same guidelines as
variable names. We don't want a bunch of functions like: <CODE><FONT
size=+1>do_stuff($a, $b, $c)</FONT></CODE>. In most cases, we'd like to be able
to tell how to use a function by just looking at its declaration. </P>
<P><B>Summary:</B> The basic philosophy here is to not hurt code clarity for the
sake of laziness. This has to be balanced by a little bit of common sense,
though; <CODE><FONT size=+1>print_login_status_for_a_given_user()</FONT></CODE>
goes too far, for example -- that function would be better named <CODE><FONT
size=+1>print_user_login_status()</FONT></CODE> , or just <CODE><FONT
size=+1>print_login_status()</FONT></CODE>. </P><BR><BR><A name=layout></A><A
href="#top">top</A>
<H3>Code Layout</H3>
<P><B>Standard header for new files:</B> Here a template of the header that must
be included at the start of all phpBB files: <PRE><FONT size=+1>
/***************************************************************************
filename.php
-------------------
begin : Sat June 17 2000
copyright : (C) 2000 The phpBB Group
email : support@phpBB.com
$Id$
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
</FONT></PRE>
<P></P>
<P><B>Always include the braces:</B> This is another case of being too lazy to
type 2 extra characters causing problems with code clarity. Even if the body of
some construct is only one line long, do <I>not</I> drop the braces. Just don't.
<BR><BR>&nbsp;&nbsp;&nbsp;Examples:<PRE><FONT size=+1>
/* These are all wrong. */
if (condition) do_stuff();
if (condition)
do_stuff();
while (condition)
do_stuff();
for ($i = 0; $i &lt; size; $i++)
do_stuff($i);
/* These are right. */
if (condition)
{
do_stuff();
}
while (condition)
{
do_stuff();
}
for ($i = 0; $i &lt; size; $i++)
{
do_stuff();
}
</FONT></PRE>
<P></P>
<P><B>Where to put the braces:</B> This one is a bit of a holy war, but we're
going to use a style that can be summed up in one sentence: Braces always go on
their own line. The closing brace should also always be at the same column as
the corresponding opening brace. <BR><BR>&nbsp;&nbsp;&nbsp;Examples:<PRE><FONT size=+1>
if (condition)
{
while (condition2)
{
...
}
}
else
{
...
}
for ($i = 0; $i &lt; $size; $i++)
{
...
}
while (condition)
{
...
}
function do_stuff()
{
...
}
</FONT></PRE>
<P></P>
<P><B>Use spaces between tokens:</B> This is another simple, easy step that
helps keep code readable without much effort. Whenever you write an assignment,
expression, etc.. Always leave <I>one</I> space between the tokens. Basically,
write code as if it was English. Put spaces between variable names and
operators. Don't put spaces just after an opening bracket or before a closing
bracket. Don't put spaces just before a comma or a semicolon. This is best shown
with a few examples. <BR><BR>&nbsp;&nbsp;&nbsp;Examples:<PRE><FONT size=+1>
/* Each pair shows the wrong way followed by the right way. */
$i=0;
$i = 0;
if($i&lt;7) ...
if ($i &lt; 7) ...
if ( ($i &lt; 7)&amp;&amp;($j &gt; 8) ) ...
if (($i &lt; 7) &amp;&amp; ($j &gt; 8)) ...
do_stuff( $i, "foo", $b );
do_stuff($i, "foo", $b);
for($i=0; $i&lt;$size; $i++) ...
for($i = 0; $i &lt; $size; $i++) ...
$i=($j &lt; $size)?0:1;
$i = ($j &lt; $size) ? 0 : 1;
</FONT></PRE>
<P></P>
<P><B>Operator precedence:</B> Do you know the exact precedence of all the
operators in PHP? Neither do I. Don't guess. Always make it obvious by using
brackets to force the precedence of an equation so you know what it does.
<BR><BR>&nbsp;&nbsp;&nbsp;Examples:<PRE><FONT size=+1>
/* what's the result? who knows. */
$bool = ($i &lt; 7 &amp;&amp; $j &gt; 8 || $k == 4);
/* now you can be certain what I'm doing here. */
$bool = (($i &lt; 7) &amp;&amp; (($j &lt; 8) || ($k == 4)))
</FONT></PRE>
<P></P>
<P><B>SQL code layout:</B> Since we'll all be using different editor settings,
don't try to do anything complex like aligning columns in SQL code. Do, however,
break statements onto their own lines. Here's a sample of how SQL code should
look. Note where the lines break, the capitalization, and the use of brackets.
<BR><BR>&nbsp;&nbsp;&nbsp;Examples:<PRE><FONT size=+1>
SELECT field1 AS something, field2, field3
FROM table a, table b
WHERE (this = that) AND (this2 = that2)
</FONT></PRE>
<P></P>
<P><B>SQL insert statements:</B> SQL INSERT statements can be written in two
different ways. Either you specify explicitly the columns being inserted, or
you rely on knowing the order of the columns in the database and do not
specify them. We want to use the former approach, where it is explicitly
stated whcih columns are being inserted. This means our application-level code
will not depend on the order of the fields in the database, and will not be broken
if we add additional fields (unless they're specified as NOT NULL, of course).
<BR><BR>&nbsp;&nbsp;&nbsp;Examples:<PRE><FONT size=+1>
# This is not what we want.
INSERT INTO mytable
VALUES ('something', 1, 'else')
# This is correct.
INSERT INTO mytable (column1, column2, column3)
VALUES ('something', 1, 'else')
</FONT></PRE>
<P></P><BR><BR><A name=general></A><A
href="#top">top</A>
<H3>General Guidelines</H3>
<P><B>Quoting strings:</B> There are two different ways to quote strings in PHP
- either with single quotes or with double quotes. The main difference is that
the parser does variable interpolation in double-quoted strings, but not in
single quoted strings. Because of this, you should <I>always</I> use single
quotes <I>unless</I> you specifically need variable interpolation to be done on
that string. This way, we can save the parser the trouble of parsing a bunch of
strings where no interpolation needs to be done. Also, if you are using a string
variable as part of a function call, you do not need to enclose that variable in
quotes. Again, this will just make unnecessary work for the parser. Note,
however, that nearly all of the escape sequences that exist for double-quoted
strings will not work with single-quoted strings. Be careful, and feel free to
break this guideline if it's making your code harder to read.
<BR><BR>&nbsp;&nbsp;&nbsp;Examples:<PRE><FONT size=+1>
/* wrong */
$str = "This is a really long string with no variables for the parser to find.";
do_stuff("$str");
/* right */
$str = 'This is a really long string with no variables for the parser to find.';
do_stuff($str);
</FONT></PRE>
<P></P>
<P><B>Associative array keys:</B> In PHP, it's legal to use a literal string as
a key to an associative array without quoting that string. We don't want to do
this -- the string should always be quoted to avoid confusion. Note that this is
only when we're using a literal, not when we're using a variable.
<BR><BR>&nbsp;&nbsp;&nbsp;Examples:<PRE><FONT size=+1>
/* wrong */
$foo = $assoc_array[blah];
/* right */
$foo = $assoc_array['blah'];
</FONT></PRE>
<P></P>
<P><B>Comments:</B> Each function should be preceded by a comment that tells a
programmer everything they need to know to use that function. The meaning of
every parameter, the expected input, and the output are required as a minimal
comment. The function's behaviour in error conditions (and what those error
conditions are) should also be present. Nobody should have to look at the actual
source of a function in order to be able to call it with confidence in their own
code. <BR><BR>In addition, commenting any tricky, obscure, or otherwise
not-immediately-obvious code is clearly something we should be doing. Especially
important to document are any assumptions your code makes, or preconditions for
its proper operation. Any one of the developers should be able to look at any
part of the application and figure out what's going on in a reasonable amount of
time. </P>
<P><B>Magic numbers:</B> Don't use them. Use named constants for any literal
value other than obvious special cases. Basically, it's OK to check if an array
has 0 elements by using the literal 0. It's not OK to assign some special
meaning to a number and then use it everywhere as a literal. This hurts
readability AND maintainability. Included in this guideline is that we should be
using the constants TRUE and FALSE in place of the literals 1 and 0 -- even
though they have the same values, it's more obvious what the actual logic is
when you use the named constants. </P>
<P><B>Shortcut operators:</B> The only shortcut operators that cause readability
problems are the shortcut increment ($i++) and decrement ($j--) operators. These
operators should not be used as part of an expression. They can, however, be
used on their own line. Using them in expressions is just not worth the
headaches when debugging. <BR><BR>&nbsp;&nbsp;&nbsp;Examples:<PRE><FONT size=+1>
/* wrong */
$array[++$i] = $j;
$array[$i++] = $k;
/* right */
$i++;
$array[$i] = $j;
$array[$i] = $k;
$i++;
</FONT></PRE>
<P></P>
<P><B>Inline conditionals:</B> Inline conditionals should only be used to do
very simple things. Preferably, they will only be used to do assignments, and
not for function calls or anything complex at all. They can be harmful to
readability if used incorrectly, so don't fall in love with saving typing by
using them. <BR><BR>&nbsp;&nbsp;&nbsp;Examples:<PRE><FONT size=+1>
/* Bad place to use them */
(($i &lt; $size) &amp;&amp; ($j &gt; $size)) ? do_stuff($foo) : do_stuff($bar);
/* OK place to use them */
$min = ($i &lt; $j) ? $i : $j;
</FONT></PRE>
<P></P>
<P><B>Don't use uninitialized variables.</B> for phpBB 2, we intend to use a
higher level of run-time error reporting. This will mean that the use of an
uninitialized variable will be reported as an error. This will come up most
often when checking which HTML form variables were passed. These errors can be
avoided by using the built-in isset() function to check whether a variable has
been set. <BR><BR>&nbsp;&nbsp;&nbsp;Examples:<PRE><FONT size=+1>
/* Old way */
if ($forum) ...
/* New way */
if (isset($forum)) ...
</FONT></PRE>
<P></P><BR><BR><A href="#top">Return
to top</A> </FONT></BODY></HTML>

26
phpBB/extension.inc Normal file
View File

@@ -0,0 +1,26 @@
<?php
/***************************************************************************
* extension.inc
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
//
// Change this if your extension is not .php!
//
$phpEx = "php";
$starttime = 0;
?>

150
phpBB/faq.php Normal file
View File

@@ -0,0 +1,150 @@
<?php
/***************************************************************************
* faq.php
* -------------------
* begin : Sunday, Jul 8, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_FAQ);
init_userprefs($userdata);
//
// End session management
//
// Set vars to prevent naughtiness
$faq = array();
//
// Load the appropriate faq file
//
if( isset($HTTP_GET_VARS['mode']) )
{
switch( $HTTP_GET_VARS['mode'] )
{
case 'bbcode':
$lang_file = 'lang_bbcode';
$l_title = $lang['BBCode_guide'];
break;
default:
$lang_file = 'lang_faq';
$l_title = $lang['FAQ'];
break;
}
}
else
{
$lang_file = 'lang_faq';
$l_title = $lang['FAQ'];
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);
//
// Pull the array data from the lang pack
//
$j = 0;
$counter = 0;
$counter_2 = 0;
$faq_block = array();
$faq_block_titles = array();
for($i = 0; $i < count($faq); $i++)
{
if( $faq[$i][0] != '--' )
{
$faq_block[$j][$counter]['id'] = $counter_2;
$faq_block[$j][$counter]['question'] = $faq[$i][0];
$faq_block[$j][$counter]['answer'] = $faq[$i][1];
$counter++;
$counter_2++;
}
else
{
$j = ( $counter != 0 ) ? $j + 1 : 0;
$faq_block_titles[$j] = $faq[$i][1];
$counter = 0;
}
}
//
// Lets build a page ...
//
$page_title = $l_title;
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'faq_body.tpl')
);
make_jumpbox('viewforum.'.$phpEx);
$template->assign_vars(array(
'L_FAQ_TITLE' => $l_title,
'L_BACK_TO_TOP' => $lang['Back_to_top'])
);
for($i = 0; $i < count($faq_block); $i++)
{
if( count($faq_block[$i]) )
{
$template->assign_block_vars('faq_block', array(
'BLOCK_TITLE' => $faq_block_titles[$i])
);
$template->assign_block_vars('faq_block_link', array(
'BLOCK_TITLE' => $faq_block_titles[$i])
);
for($j = 0; $j < count($faq_block[$i]); $j++)
{
$row_color = ( !($j % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($j % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars('faq_block.faq_row', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FAQ_QUESTION' => $faq_block[$i][$j]['question'],
'FAQ_ANSWER' => $faq_block[$i][$j]['answer'],
'U_FAQ_ID' => $faq_block[$i][$j]['id'])
);
$template->assign_block_vars('faq_block_link.faq_row_link', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FAQ_LINK' => $faq_block[$i][$j]['question'],
'U_FAQ_LINK' => '#' . $faq_block[$i][$j]['id'])
);
}
}
}
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>

View File

@@ -1,27 +0,0 @@
<?php
/***************************************************************************
*
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
?>

File diff suppressed because it is too large Load Diff

View File

@@ -1,27 +0,0 @@
<?php
/***************************************************************************
*
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
?>

View File

@@ -1,27 +0,0 @@
<?php
/***************************************************************************
*
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
?>

1279
phpBB/groupcp.php Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>

View File

@@ -0,0 +1,10 @@
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>

10
phpBB/images/index.htm Normal file
View File

@@ -0,0 +1,10 @@
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 485 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

BIN
phpBB/images/spacer.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

326
phpBB/includes/auth.php Normal file
View File

@@ -0,0 +1,326 @@
<?php
/***************************************************************************
* auth.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
/*
$type's accepted (pre-pend with AUTH_):
VIEW, READ, POST, REPLY, EDIT, DELETE, STICKY, ANNOUNCE, VOTE, POLLCREATE
Possible options ($type/forum_id combinations):
* If you include a type and forum_id then a specific lookup will be done and
the single result returned
* If you set type to AUTH_ALL and specify a forum_id an array of all auth types
will be returned
* If you provide a forum_id a specific lookup on that forum will be done
* If you set forum_id to AUTH_LIST_ALL and specify a type an array listing the
results for all forums will be returned
* If you set forum_id to AUTH_LIST_ALL and type to AUTH_ALL a multidimensional
array containing the auth permissions for all types and all forums for that
user is returned
All results are returned as associative arrays, even when a single auth type is
specified.
If available you can send an array (either one or two dimensional) containing the
forum auth levels, this will prevent the auth function having to do its own
lookup
*/
function auth($type, $forum_id, $userdata, $f_access = '')
{
global $db, $lang;
switch( $type )
{
case AUTH_ALL:
$a_sql = 'a.auth_view, a.auth_read, a.auth_post, a.auth_reply, a.auth_edit, a.auth_delete, a.auth_sticky, a.auth_announce, a.auth_vote, a.auth_pollcreate';
$auth_fields = array('auth_view', 'auth_read', 'auth_post', 'auth_reply', 'auth_edit', 'auth_delete', 'auth_sticky', 'auth_announce', 'auth_vote', 'auth_pollcreate');
break;
case AUTH_VIEW:
$a_sql = 'a.auth_view';
$auth_fields = array('auth_view');
break;
case AUTH_READ:
$a_sql = 'a.auth_read';
$auth_fields = array('auth_read');
break;
case AUTH_POST:
$a_sql = 'a.auth_post';
$auth_fields = array('auth_post');
break;
case AUTH_REPLY:
$a_sql = 'a.auth_reply';
$auth_fields = array('auth_reply');
break;
case AUTH_EDIT:
$a_sql = 'a.auth_edit';
$auth_fields = array('auth_edit');
break;
case AUTH_DELETE:
$a_sql = 'a.auth_delete';
$auth_fields = array('auth_delete');
break;
case AUTH_ANNOUNCE:
$a_sql = 'a.auth_announce';
$auth_fields = array('auth_announce');
break;
case AUTH_STICKY:
$a_sql = 'a.auth_sticky';
$auth_fields = array('auth_sticky');
break;
case AUTH_POLLCREATE:
$a_sql = 'a.auth_pollcreate';
$auth_fields = array('auth_pollcreate');
break;
case AUTH_VOTE:
$a_sql = 'a.auth_vote';
$auth_fields = array('auth_vote');
break;
case AUTH_ATTACH:
break;
default:
break;
}
//
// If f_access has been passed, or auth is needed to return an array of forums
// then we need to pull the auth information on the given forum (or all forums)
//
if ( empty($f_access) )
{
$forum_match_sql = ( $forum_id != AUTH_LIST_ALL ) ? "WHERE a.forum_id = $forum_id" : '';
$sql = "SELECT a.forum_id, $a_sql
FROM " . FORUMS_TABLE . " a
$forum_match_sql";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql);
}
$sql_fetchrow = ( $forum_id != AUTH_LIST_ALL ) ? 'sql_fetchrow' : 'sql_fetchrowset';
if ( !($f_access = $db->$sql_fetchrow($result)) )
{
$db->sql_freeresult($result);
return array();
}
$db->sql_freeresult($result);
}
//
// If the user isn't logged on then all we need do is check if the forum
// has the type set to ALL, if yes they are good to go, if not then they
// are denied access
//
$u_access = array();
if ( $userdata['session_logged_in'] )
{
$forum_match_sql = ( $forum_id != AUTH_LIST_ALL ) ? "AND a.forum_id = $forum_id" : '';
$sql = "SELECT a.forum_id, $a_sql, a.auth_mod
FROM " . AUTH_ACCESS_TABLE . " a, " . USER_GROUP_TABLE . " ug
WHERE ug.user_id = ".$userdata['user_id']. "
AND ug.user_pending = 0
AND a.group_id = ug.group_id
$forum_match_sql";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
do
{
if ( $forum_id != AUTH_LIST_ALL)
{
$u_access[] = $row;
}
else
{
$u_access[$row['forum_id']][] = $row;
}
}
while( $row = $db->sql_fetchrow($result) );
}
$db->sql_freeresult($result);
}
$is_admin = ( $userdata['user_level'] == ADMIN && $userdata['session_logged_in'] ) ? TRUE : 0;
$auth_user = array();
for($i = 0; $i < count($auth_fields); $i++)
{
$key = $auth_fields[$i];
//
// If the user is logged on and the forum type is either ALL or REG then the user has access
//
// If the type if ACL, MOD or ADMIN then we need to see if the user has specific permissions
// to do whatever it is they want to do ... to do this we pull relevant information for the
// user (and any groups they belong to)
//
// Now we compare the users access level against the forums. We assume here that a moderator
// and admin automatically have access to an ACL forum, similarly we assume admins meet an
// auth requirement of MOD
//
if ( $forum_id != AUTH_LIST_ALL )
{
$value = $f_access[$key];
switch( $value )
{
case AUTH_ALL:
$auth_user[$key] = TRUE;
$auth_user[$key . '_type'] = $lang['Auth_Anonymous_Users'];
break;
case AUTH_REG:
$auth_user[$key] = ( $userdata['session_logged_in'] ) ? TRUE : 0;
$auth_user[$key . '_type'] = $lang['Auth_Registered_Users'];
break;
case AUTH_ACL:
$auth_user[$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_ACL, $key, $u_access, $is_admin) : 0;
$auth_user[$key . '_type'] = $lang['Auth_Users_granted_access'];
break;
case AUTH_MOD:
$auth_user[$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access, $is_admin) : 0;
$auth_user[$key . '_type'] = $lang['Auth_Moderators'];
break;
case AUTH_ADMIN:
$auth_user[$key] = $is_admin;
$auth_user[$key . '_type'] = $lang['Auth_Administrators'];
break;
default:
$auth_user[$key] = 0;
break;
}
}
else
{
for($k = 0; $k < count($f_access); $k++)
{
$value = $f_access[$k][$key];
$f_forum_id = $f_access[$k]['forum_id'];
switch( $value )
{
case AUTH_ALL:
$auth_user[$f_forum_id][$key] = TRUE;
$auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Anonymous_Users'];
break;
case AUTH_REG:
$auth_user[$f_forum_id][$key] = ( $userdata['session_logged_in'] ) ? TRUE : 0;
$auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Registered_Users'];
break;
case AUTH_ACL:
$auth_user[$f_forum_id][$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_ACL, $key, $u_access[$f_forum_id], $is_admin) : 0;
$auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Users_granted_access'];
break;
case AUTH_MOD:
$auth_user[$f_forum_id][$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access[$f_forum_id], $is_admin) : 0;
$auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Moderators'];
break;
case AUTH_ADMIN:
$auth_user[$f_forum_id][$key] = $is_admin;
$auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Administrators'];
break;
default:
$auth_user[$f_forum_id][$key] = 0;
break;
}
}
}
}
//
// Is user a moderator?
//
if ( $forum_id != AUTH_LIST_ALL )
{
$auth_user['auth_mod'] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access, $is_admin) : 0;
}
else
{
for($k = 0; $k < count($f_access); $k++)
{
$f_forum_id = $f_access[$k]['forum_id'];
$auth_user[$f_forum_id]['auth_mod'] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access[$f_forum_id], $is_admin) : 0;
}
}
return $auth_user;
}
function auth_check_user($type, $key, $u_access, $is_admin)
{
$auth_user = 0;
if ( count($u_access) )
{
for($j = 0; $j < count($u_access); $j++)
{
$result = 0;
switch($type)
{
case AUTH_ACL:
$result = $u_access[$j][$key];
case AUTH_MOD:
$result = $result || $u_access[$j]['auth_mod'];
case AUTH_ADMIN:
$result = $result || $is_admin;
break;
}
$auth_user = $auth_user || $result;
}
}
else
{
$auth_user = $is_admin;
}
return $auth_user;
}
?>

788
phpBB/includes/bbcode.php Normal file
View File

@@ -0,0 +1,788 @@
<?php
/***************************************************************************
* bbcode.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
define("BBCODE_UID_LEN", 10);
// global that holds loaded-and-prepared bbcode templates, so we only have to do
// that stuff once.
$bbcode_tpl = null;
/**
* Loads bbcode templates from the bbcode.tpl file of the current template set.
* Creates an array, keys are bbcode names like "b_open" or "url", values
* are the associated template.
* Probably pukes all over the place if there's something really screwed
* with the bbcode.tpl file.
*
* Nathan Codding, Sept 26 2001.
*/
function load_bbcode_template()
{
global $template;
$tpl_filename = $template->make_filename('bbcode.tpl');
$tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename));
// replace \ with \\ and then ' with \'.
$tpl = str_replace('\\', '\\\\', $tpl);
$tpl = str_replace('\'', '\\\'', $tpl);
// strip newlines.
$tpl = str_replace("\n", '', $tpl);
// Turn template blocks into PHP assignment statements for the values of $bbcode_tpls..
$tpl = preg_replace('#<!-- BEGIN (.*?) -->(.*?)<!-- END (.*?) -->#', "\n" . '$bbcode_tpls[\'\\1\'] = \'\\2\';', $tpl);
$bbcode_tpls = array();
eval($tpl);
return $bbcode_tpls;
}
/**
* Prepares the loaded bbcode templates for insertion into preg_replace()
* or str_replace() calls in the bbencode_second_pass functions. This
* means replacing template placeholders with the appropriate preg backrefs
* or with language vars. NOTE: If you change how the regexps work in
* bbencode_second_pass(), you MUST change this function.
*
* Nathan Codding, Sept 26 2001
*
*/
function prepare_bbcode_template($bbcode_tpl)
{
global $lang;
$bbcode_tpl['olist_open'] = str_replace('{LIST_TYPE}', '\\1', $bbcode_tpl['olist_open']);
$bbcode_tpl['color_open'] = str_replace('{COLOR}', '\\1', $bbcode_tpl['color_open']);
$bbcode_tpl['size_open'] = str_replace('{SIZE}', '\\1', $bbcode_tpl['size_open']);
$bbcode_tpl['quote_open'] = str_replace('{L_QUOTE}', $lang['Quote'], $bbcode_tpl['quote_open']);
$bbcode_tpl['quote_username_open'] = str_replace('{L_QUOTE}', $lang['Quote'], $bbcode_tpl['quote_username_open']);
$bbcode_tpl['quote_username_open'] = str_replace('{L_WROTE}', $lang['wrote'], $bbcode_tpl['quote_username_open']);
$bbcode_tpl['quote_username_open'] = str_replace('{USERNAME}', '\\1', $bbcode_tpl['quote_username_open']);
$bbcode_tpl['code_open'] = str_replace('{L_CODE}', $lang['Code'], $bbcode_tpl['code_open']);
$bbcode_tpl['img'] = str_replace('{URL}', '\\1', $bbcode_tpl['img']);
// We do URLs in several different ways..
$bbcode_tpl['url1'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']);
$bbcode_tpl['url1'] = str_replace('{DESCRIPTION}', '\\1', $bbcode_tpl['url1']);
$bbcode_tpl['url2'] = str_replace('{URL}', 'http://\\1', $bbcode_tpl['url']);
$bbcode_tpl['url2'] = str_replace('{DESCRIPTION}', '\\1', $bbcode_tpl['url2']);
$bbcode_tpl['url3'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']);
$bbcode_tpl['url3'] = str_replace('{DESCRIPTION}', '\\2', $bbcode_tpl['url3']);
$bbcode_tpl['url4'] = str_replace('{URL}', 'http://\\1', $bbcode_tpl['url']);
$bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\\3', $bbcode_tpl['url4']);
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
define("BBCODE_TPL_READY", true);
return $bbcode_tpl;
}
/**
* Does second-pass bbencoding. This should be used before displaying the message in
* a thread. Assumes the message is already first-pass encoded, and we are given the
* correct UID as used in first-pass encoding.
*/
function bbencode_second_pass($text, $uid)
{
global $lang, $bbcode_tpl;
$text = preg_replace('#(script|about|applet|activex|chrome):#is', "\\1&#058;", $text);
// pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0).
// This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it.
$text = " " . $text;
// First: If there isn't a "[" and a "]" in the message, don't bother.
if (! (strpos($text, "[") && strpos($text, "]")) )
{
// Remove padding, return.
$text = substr($text, 1);
return $text;
}
// Only load the templates ONCE..
if (!defined("BBCODE_TPL_READY"))
{
// load templates from file into array.
$bbcode_tpl = load_bbcode_template();
// prepare array for use in regexps.
$bbcode_tpl = prepare_bbcode_template($bbcode_tpl);
}
// [CODE] and [/CODE] for posting code (HTML, PHP, C etc etc) in your posts.
$text = bbencode_second_pass_code($text, $uid, $bbcode_tpl);
// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
$text = str_replace("[quote:$uid]", $bbcode_tpl['quote_open'], $text);
$text = str_replace("[/quote:$uid]", $bbcode_tpl['quote_close'], $text);
// New one liner to deal with opening quotes with usernames...
// replaces the two line version that I had here before..
$text = preg_replace("/\[quote:$uid=\"(.*?)\"\]/si", $bbcode_tpl['quote_username_open'], $text);
// [list] and [list=x] for (un)ordered lists.
// unordered lists
$text = str_replace("[list:$uid]", $bbcode_tpl['ulist_open'], $text);
// li tags
$text = str_replace("[*:$uid]", $bbcode_tpl['listitem'], $text);
// ending tags
$text = str_replace("[/list:u:$uid]", $bbcode_tpl['ulist_close'], $text);
$text = str_replace("[/list:o:$uid]", $bbcode_tpl['olist_close'], $text);
// Ordered lists
$text = preg_replace("/\[list=([a1]):$uid\]/si", $bbcode_tpl['olist_open'], $text);
// colours
$text = preg_replace("/\[color=(\#[0-9A-F]{6}|[a-z]+):$uid\]/si", $bbcode_tpl['color_open'], $text);
$text = str_replace("[/color:$uid]", $bbcode_tpl['color_close'], $text);
// size
$text = preg_replace("/\[size=([1-2]?[0-9]):$uid\]/si", $bbcode_tpl['size_open'], $text);
$text = str_replace("[/size:$uid]", $bbcode_tpl['size_close'], $text);
// [b] and [/b] for bolding text.
$text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text);
$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);
// [u] and [/u] for underlining text.
$text = str_replace("[u:$uid]", $bbcode_tpl['u_open'], $text);
$text = str_replace("[/u:$uid]", $bbcode_tpl['u_close'], $text);
// [i] and [/i] for italicizing text.
$text = str_replace("[i:$uid]", $bbcode_tpl['i_open'], $text);
$text = str_replace("[/i:$uid]", $bbcode_tpl['i_close'], $text);
// Patterns and replacements for URL and email tags..
$patterns = array();
$replacements = array();
// [img]image_url_here[/img] code..
// This one gets first-passed..
$patterns[] = "#\[img:$uid\]([^?].*?)\[/img:$uid\]#i";
$replacements[] = $bbcode_tpl['img'];
// matches a [url]xxxx://www.phpbb.com[/url] code..
$patterns[] = "#\[url\]([\w]+?://[^ \"\n\r\t<]*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url1'];
// [url]www.phpbb.com[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url\]((www|ftp)\.[^ \"\n\r\t<]*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url2'];
// [url=xxxx://www.phpbb.com]phpBB[/url] code..
$patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";
$replacements[] = $bbcode_tpl['url3'];
// [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";
$replacements[] = $bbcode_tpl['url4'];
// [email]user@domain.tld[/email] code..
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
$replacements[] = $bbcode_tpl['email'];
$text = preg_replace($patterns, $replacements, $text);
// Remove our padding from the string..
$text = substr($text, 1);
return $text;
} // bbencode_second_pass()
// Need to initialize the random numbers only ONCE
mt_srand( (double) microtime() * 1000000);
function make_bbcode_uid()
{
// Unique ID for this message..
$uid = md5(mt_rand());
$uid = substr($uid, 0, BBCODE_UID_LEN);
return $uid;
}
function bbencode_first_pass($text, $uid)
{
// pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0).
// This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it.
$text = " " . $text;
// [CODE] and [/CODE] for posting code (HTML, PHP, C etc etc) in your posts.
$text = bbencode_first_pass_pda($text, $uid, '[code]', '[/code]', '', true, '');
// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
$text = bbencode_first_pass_pda($text, $uid, '[quote]', '[/quote]', '', false, '');
$text = bbencode_first_pass_pda($text, $uid, '/\[quote=(\\\".*?\\\")\]/is', '[/quote]', '', false, '', "[quote:$uid=\\1]");
// [list] and [list=x] for (un)ordered lists.
$open_tag = array();
$open_tag[0] = "[list]";
// unordered..
$text = bbencode_first_pass_pda($text, $uid, $open_tag, "[/list]", "[/list:u]", false, 'replace_listitems');
$open_tag[0] = "[list=1]";
$open_tag[1] = "[list=a]";
// ordered.
$text = bbencode_first_pass_pda($text, $uid, $open_tag, "[/list]", "[/list:o]", false, 'replace_listitems');
// [color] and [/color] for setting text color
$text = preg_replace("#\[color=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/color\]#si", "[color=\\1:$uid]\\2[/color:$uid]", $text);
// [size] and [/size] for setting text size
$text = preg_replace("#\[size=([1-2]?[0-9])\](.*?)\[/size\]#si", "[size=\\1:$uid]\\2[/size:$uid]", $text);
// [b] and [/b] for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
// [u] and [/u] for underlining text.
$text = preg_replace("#\[u\](.*?)\[/u\]#si", "[u:$uid]\\1[/u:$uid]", $text);
// [i] and [/i] for italicizing text.
$text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text);
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
// Remove our padding from the string..
return substr($text, 1);;
} // bbencode_first_pass()
/**
* $text - The text to operate on.
* $uid - The UID to add to matching tags.
* $open_tag - The opening tag to match. Can be an array of opening tags.
* $close_tag - The closing tag to match.
* $close_tag_new - The closing tag to replace with.
* $mark_lowest_level - boolean - should we specially mark the tags that occur
* at the lowest level of nesting? (useful for [code], because
* we need to match these tags first and transform HTML tags
* in their contents..
* $func - This variable should contain a string that is the name of a function.
* That function will be called when a match is found, and passed 2
* parameters: ($text, $uid). The function should return a string.
* This is used when some transformation needs to be applied to the
* text INSIDE a pair of matching tags. If this variable is FALSE or the
* empty string, it will not be executed.
* If open_tag is an array, then the pda will try to match pairs consisting of
* any element of open_tag followed by close_tag. This allows us to match things
* like [list=A]...[/list] and [list=1]...[/list] in one pass of the PDA.
*
* NOTES: - this function assumes the first character of $text is a space.
* - every opening tag and closing tag must be of the [...] format.
*/
function bbencode_first_pass_pda($text, $uid, $open_tag, $close_tag, $close_tag_new, $mark_lowest_level, $func, $open_regexp_replace = false)
{
$open_tag_count = 0;
if (!$close_tag_new || ($close_tag_new == ''))
{
$close_tag_new = $close_tag;
}
$close_tag_length = strlen($close_tag);
$close_tag_new_length = strlen($close_tag_new);
$uid_length = strlen($uid);
$use_function_pointer = ($func && ($func != ''));
$stack = array();
if (is_array($open_tag))
{
if (0 == count($open_tag))
{
// No opening tags to match, so return.
return $text;
}
$open_tag_count = count($open_tag);
}
else
{
// only one opening tag. make it into a 1-element array.
$open_tag_temp = $open_tag;
$open_tag = array();
$open_tag[0] = $open_tag_temp;
$open_tag_count = 1;
}
$open_is_regexp = false;
if ($open_regexp_replace)
{
$open_is_regexp = true;
if (!is_array($open_regexp_replace))
{
$open_regexp_temp = $open_regexp_replace;
$open_regexp_replace = array();
$open_regexp_replace[0] = $open_regexp_temp;
}
}
if ($mark_lowest_level && $open_is_regexp)
{
message_die(GENERAL_ERROR, "Unsupported operation for bbcode_first_pass_pda().");
}
// Start at the 2nd char of the string, looking for opening tags.
$curr_pos = 1;
while ($curr_pos && ($curr_pos < strlen($text)))
{
$curr_pos = strpos($text, "[", $curr_pos);
// If not found, $curr_pos will be 0, and the loop will end.
if ($curr_pos)
{
// We found a [. It starts at $curr_pos.
// check if it's a starting or ending tag.
$found_start = false;
$which_start_tag = "";
$start_tag_index = -1;
for ($i = 0; $i < $open_tag_count; $i++)
{
// Grab everything until the first "]"...
$possible_start = substr($text, $curr_pos, strpos($text, ']', $curr_pos + 1) - $curr_pos + 1);
//
// We're going to try and catch usernames with "[' characters.
//
if( preg_match('#\[quote=\\\"#si', $possible_start, $match) && !preg_match('#\[quote=\\\"(.*?)\\\"\]#si', $possible_start) )
{
// OK we are in a quote tag that probably contains a ] bracket.
// Grab a bit more of the string to hopefully get all of it..
if ($close_pos = strpos($text, '"]', $curr_pos + 9))
{
if (strpos(substr($text, $curr_pos + 9, $close_pos - ($curr_pos + 9)), '[quote') === false)
{
$possible_start = substr($text, $curr_pos, $close_pos - $curr_pos + 2);
}
}
}
// Now compare, either using regexp or not.
if ($open_is_regexp)
{
$match_result = array();
if (preg_match($open_tag[$i], $possible_start, $match_result))
{
$found_start = true;
$which_start_tag = $match_result[0];
$start_tag_index = $i;
break;
}
}
else
{
// straightforward string comparison.
if (0 == strcasecmp($open_tag[$i], $possible_start))
{
$found_start = true;
$which_start_tag = $open_tag[$i];
$start_tag_index = $i;
break;
}
}
}
if ($found_start)
{
// We have an opening tag.
// Push its position, the text we matched, and its index in the open_tag array on to the stack, and then keep going to the right.
$match = array("pos" => $curr_pos, "tag" => $which_start_tag, "index" => $start_tag_index);
bbcode_array_push($stack, $match);
//
// Rather than just increment $curr_pos
// Set it to the ending of the tag we just found
// Keeps error in nested tag from breaking out
// of table structure..
//
$curr_pos += strlen($possible_start);
}
else
{
// check for a closing tag..
$possible_end = substr($text, $curr_pos, $close_tag_length);
if (0 == strcasecmp($close_tag, $possible_end))
{
// We have an ending tag.
// Check if we've already found a matching starting tag.
if (sizeof($stack) > 0)
{
// There exists a starting tag.
$curr_nesting_depth = sizeof($stack);
// We need to do 2 replacements now.
$match = bbcode_array_pop($stack);
$start_index = $match['pos'];
$start_tag = $match['tag'];
$start_length = strlen($start_tag);
$start_tag_index = $match['index'];
if ($open_is_regexp)
{
$start_tag = preg_replace($open_tag[$start_tag_index], $open_regexp_replace[$start_tag_index], $start_tag);
}
// everything before the opening tag.
$before_start_tag = substr($text, 0, $start_index);
// everything after the opening tag, but before the closing tag.
$between_tags = substr($text, $start_index + $start_length, $curr_pos - $start_index - $start_length);
// Run the given function on the text between the tags..
if ($use_function_pointer)
{
$between_tags = $func($between_tags, $uid);
}
// everything after the closing tag.
$after_end_tag = substr($text, $curr_pos + $close_tag_length);
// Mark the lowest nesting level if needed.
if ($mark_lowest_level && ($curr_nesting_depth == 1))
{
if ($open_tag[0] == '[code]')
{
$code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\[#', '#\]#', '#\(#', '#\)#', '#\{#', '#\}#');
$code_entities_replace = array('&lt;', '&gt;', '&quot;', '&#58;', '&#91;', '&#93;', '&#40;', '&#41;', '&#123;', '&#125;');
$between_tags = preg_replace($code_entities_match, $code_entities_replace, $between_tags);
}
$text = $before_start_tag . substr($start_tag, 0, $start_length - 1) . ":$curr_nesting_depth:$uid]";
$text .= $between_tags . substr($close_tag_new, 0, $close_tag_new_length - 1) . ":$curr_nesting_depth:$uid]";
}
else
{
if ($open_tag[0] == '[code]')
{
$text = $before_start_tag . '&#91;code&#93;';
$text .= $between_tags . '&#91;/code&#93;';
}
else
{
if ($open_is_regexp)
{
$text = $before_start_tag . $start_tag;
}
else
{
$text = $before_start_tag . substr($start_tag, 0, $start_length - 1) . ":$uid]";
}
$text .= $between_tags . substr($close_tag_new, 0, $close_tag_new_length - 1) . ":$uid]";
}
}
$text .= $after_end_tag;
// Now.. we've screwed up the indices by changing the length of the string.
// So, if there's anything in the stack, we want to resume searching just after it.
// otherwise, we go back to the start.
if (sizeof($stack) > 0)
{
$match = bbcode_array_pop($stack);
$curr_pos = $match['pos'];
// bbcode_array_push($stack, $match);
// ++$curr_pos;
}
else
{
$curr_pos = 1;
}
}
else
{
// No matching start tag found. Increment pos, keep going.
++$curr_pos;
}
}
else
{
// No starting tag or ending tag.. Increment pos, keep looping.,
++$curr_pos;
}
}
}
} // while
return $text;
} // bbencode_first_pass_pda()
/**
* Does second-pass bbencoding of the [code] tags. This includes
* running htmlspecialchars() over the text contained between
* any pair of [code] tags that are at the first level of
* nesting. Tags at the first level of nesting are indicated
* by this format: [code:1:$uid] ... [/code:1:$uid]
* Other tags are in this format: [code:$uid] ... [/code:$uid]
*/
function bbencode_second_pass_code($text, $uid, $bbcode_tpl)
{
global $lang;
$code_start_html = $bbcode_tpl['code_open'];
$code_end_html = $bbcode_tpl['code_close'];
// First, do all the 1st-level matches. These need an htmlspecialchars() run,
// so they have to be handled differently.
$match_count = preg_match_all("#\[code:1:$uid\](.*?)\[/code:1:$uid\]#si", $text, $matches);
for ($i = 0; $i < $match_count; $i++)
{
$before_replace = $matches[1][$i];
$after_replace = $matches[1][$i];
// Replace 2 spaces with "&nbsp; " so non-tabbed code indents without making huge long lines.
$after_replace = str_replace(" ", "&nbsp; ", $after_replace);
// now Replace 2 spaces with " &nbsp;" to catch odd #s of spaces.
$after_replace = str_replace(" ", " &nbsp;", $after_replace);
// Replace tabs with "&nbsp; &nbsp;" so tabbed code indents sorta right without making huge long lines.
$after_replace = str_replace("\t", "&nbsp; &nbsp;", $after_replace);
// now Replace space occurring at the beginning of a line
$after_replace = preg_replace("/^ {1}/m", '&nbsp;', $after_replace);
$str_to_match = "[code:1:$uid]" . $before_replace . "[/code:1:$uid]";
$replacement = $code_start_html;
$replacement .= $after_replace;
$replacement .= $code_end_html;
$text = str_replace($str_to_match, $replacement, $text);
}
// Now, do all the non-first-level matches. These are simple.
$text = str_replace("[code:$uid]", $code_start_html, $text);
$text = str_replace("[/code:$uid]", $code_end_html, $text);
return $text;
} // bbencode_second_pass_code()
/**
* Rewritten by Nathan Codding - Feb 6, 2001.
* - Goes through the given string, and replaces xxxx://yyyy with an HTML <a> tag linking
* to that URL
* - Goes through the given string, and replaces www.xxxx.yyyy[zzzz] with an HTML <a> tag linking
* to http://www.xxxx.yyyy[/zzzz]
* - Goes through the given string, and replaces xxxx@yyyy with an HTML mailto: tag linking
* to that email address
* - Only matches these 2 patterns either after a space, or at the beginning of a line
*
* Notes: the email one might get annoying - it's easy to make it more restrictive, though.. maybe
* have it require something like xxxx@yyyy.zzzz or such. We'll see.
*/
function make_clickable($text)
{
$text = preg_replace('#(script|about|applet|activex|chrome):#is', "\\1&#058;", $text);
// pad it with a space so we can match things at the start of the 1st line.
$ret = ' ' . $text;
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);
// Remove our padding..
$ret = substr($ret, 1);
return($ret);
}
/**
* Nathan Codding - Feb 6, 2001
* Reverses the effects of make_clickable(), for use in editpost.
* - Does not distinguish between "www.xxxx.yyyy" and "http://aaaa.bbbb" type URLs.
*
*/
function undo_make_clickable($text)
{
$text = preg_replace("#<!-- BBCode auto-link start --><a href=\"(.*?)\" target=\"_blank\">.*?</a><!-- BBCode auto-link end -->#i", "\\1", $text);
$text = preg_replace("#<!-- BBcode auto-mailto start --><a href=\"mailto:(.*?)\">.*?</a><!-- BBCode auto-mailto end -->#i", "\\1", $text);
return $text;
}
/**
* Nathan Codding - August 24, 2000.
* Takes a string, and does the reverse of the PHP standard function
* htmlspecialchars().
*/
function undo_htmlspecialchars($input)
{
$input = preg_replace("/&gt;/i", ">", $input);
$input = preg_replace("/&lt;/i", "<", $input);
$input = preg_replace("/&quot;/i", "\"", $input);
$input = preg_replace("/&amp;/i", "&", $input);
return $input;
}
/**
* This is used to change a [*] tag into a [*:$uid] tag as part
* of the first-pass bbencoding of [list] tags. It fits the
* standard required in order to be passed as a variable
* function into bbencode_first_pass_pda().
*/
function replace_listitems($text, $uid)
{
$text = str_replace("[*]", "[*:$uid]", $text);
return $text;
}
/**
* Escapes the "/" character with "\/". This is useful when you need
* to stick a runtime string into a PREG regexp that is being delimited
* with slashes.
*/
function escape_slashes($input)
{
$output = str_replace('/', '\/', $input);
return $output;
}
/**
* This function does exactly what the PHP4 function array_push() does
* however, to keep phpBB compatable with PHP 3 we had to come up with our own
* method of doing it.
*/
function bbcode_array_push(&$stack, $value)
{
$stack[] = $value;
return(sizeof($stack));
}
/**
* This function does exactly what the PHP4 function array_pop() does
* however, to keep phpBB compatable with PHP 3 we had to come up with our own
* method of doing it.
*/
function bbcode_array_pop(&$stack)
{
$arrSize = count($stack);
$x = 1;
while(list($key, $val) = each($stack))
{
if($x < count($stack))
{
$tmpArr[] = $val;
}
else
{
$return_val = $val;
}
$x++;
}
$stack = $tmpArr;
return($return_val);
}
//
// Smilies code ... would this be better tagged on to the end of bbcode.php?
// Probably so and I'll move it before B2
//
function smilies_pass($message)
{
static $orig, $repl;
if (!isset($orig))
{
global $db, $board_config;
$orig = $repl = array();
$sql = 'SELECT * FROM ' . SMILIES_TABLE;
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't obtain smilies data", "", __LINE__, __FILE__, $sql);
}
$smilies = $db->sql_fetchrowset($result);
if (count($smilies))
{
usort($smilies, 'smiley_sort');
}
for ($i = 0; $i < count($smilies); $i++)
{
$orig[] = "/(?<=.\W|\W.|^\W)" . phpbb_preg_quote($smilies[$i]['code'], "/") . "(?=.\W|\W.|\W$)/";
$repl[] = '<img src="'. $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['emoticon'] . '" border="0" />';
}
}
if (count($orig))
{
$message = preg_replace($orig, $repl, ' ' . $message . ' ');
$message = substr($message, 1, -1);
}
return $message;
}
function smiley_sort($a, $b)
{
if ( strlen($a['code']) == strlen($b['code']) )
{
return 0;
}
return ( strlen($a['code']) > strlen($b['code']) ) ? -1 : 1;
}
?>

View File

@@ -0,0 +1,182 @@
<?php
/***************************************************************************
* constants.php
* -------------------
* begin : Saturday', Feb 13', 2001
* copyright : ('C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License', or
* ('at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
// Debug Level
//define('DEBUG', 1); // Debugging on
define('DEBUG', 1); // Debugging off
// User Levels <- Do not change the values of USER or ADMIN
define('DELETED', -1);
define('ANONYMOUS', -1);
define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);
// User related
define('USER_ACTIVATION_NONE', 0);
define('USER_ACTIVATION_SELF', 1);
define('USER_ACTIVATION_ADMIN', 2);
define('USER_AVATAR_NONE', 0);
define('USER_AVATAR_UPLOAD', 1);
define('USER_AVATAR_REMOTE', 2);
define('USER_AVATAR_GALLERY', 3);
// Group settings
define('GROUP_OPEN', 0);
define('GROUP_CLOSED', 1);
define('GROUP_HIDDEN', 2);
// Forum state
define('FORUM_UNLOCKED', 0);
define('FORUM_LOCKED', 1);
// Topic status
define('TOPIC_UNLOCKED', 0);
define('TOPIC_LOCKED', 1);
define('TOPIC_MOVED', 2);
define('TOPIC_WATCH_NOTIFIED', 1);
define('TOPIC_WATCH_UN_NOTIFIED', 0);
// Topic types
define('POST_NORMAL', 0);
define('POST_STICKY', 1);
define('POST_ANNOUNCE', 2);
define('POST_GLOBAL_ANNOUNCE', 3);
// SQL codes
define('BEGIN_TRANSACTION', 1);
define('END_TRANSACTION', 2);
// Error codes
define('GENERAL_MESSAGE', 200);
define('GENERAL_ERROR', 202);
define('CRITICAL_MESSAGE', 203);
define('CRITICAL_ERROR', 204);
// Private messaging
define('PRIVMSGS_READ_MAIL', 0);
define('PRIVMSGS_NEW_MAIL', 1);
define('PRIVMSGS_SENT_MAIL', 2);
define('PRIVMSGS_SAVED_IN_MAIL', 3);
define('PRIVMSGS_SAVED_OUT_MAIL', 4);
define('PRIVMSGS_UNREAD_MAIL', 5);
// URL PARAMETERS
define('POST_TOPIC_URL', 't');
define('POST_CAT_URL', 'c');
define('POST_FORUM_URL', 'f');
define('POST_USERS_URL', 'u');
define('POST_POST_URL', 'p');
define('POST_GROUPS_URL', 'g');
// Session parameters
define('SESSION_METHOD_COOKIE', 100);
define('SESSION_METHOD_GET', 101);
// Page numbers for session handling
define('PAGE_INDEX', 0);
define('PAGE_LOGIN', -1);
define('PAGE_SEARCH', -2);
define('PAGE_REGISTER', -3);
define('PAGE_PROFILE', -4);
define('PAGE_VIEWONLINE', -6);
define('PAGE_VIEWMEMBERS', -7);
define('PAGE_FAQ', -8);
define('PAGE_POSTING', -9);
define('PAGE_PRIVMSGS', -10);
define('PAGE_GROUPCP', -11);
define('PAGE_TOPIC_OFFSET', 5000);
// Auth settings
define('AUTH_LIST_ALL', 0);
define('AUTH_ALL', 0);
define('AUTH_REG', 1);
define('AUTH_ACL', 2);
define('AUTH_MOD', 3);
define('AUTH_ADMIN', 5);
define('AUTH_VIEW', 1);
define('AUTH_READ', 2);
define('AUTH_POST', 3);
define('AUTH_REPLY', 4);
define('AUTH_EDIT', 5);
define('AUTH_DELETE', 6);
define('AUTH_ANNOUNCE', 7);
define('AUTH_STICKY', 8);
define('AUTH_POLLCREATE', 9);
define('AUTH_VOTE', 10);
define('AUTH_ATTACH', 11);
// Table names
define('CONFIRM_TABLE', $table_prefix.'confirm');
define('AUTH_ACCESS_TABLE', $table_prefix.'auth_access');
define('BANLIST_TABLE', $table_prefix.'banlist');
define('CATEGORIES_TABLE', $table_prefix.'categories');
define('CONFIG_TABLE', $table_prefix.'config');
define('DISALLOW_TABLE', $table_prefix.'disallow');
define('FORUMS_TABLE', $table_prefix.'forums');
define('GROUPS_TABLE', $table_prefix.'groups');
define('POSTS_TABLE', $table_prefix.'posts');
define('POSTS_TEXT_TABLE', $table_prefix.'posts_text');
define('PRIVMSGS_TABLE', $table_prefix.'privmsgs');
define('PRIVMSGS_TEXT_TABLE', $table_prefix.'privmsgs_text');
define('PRIVMSGS_IGNORE_TABLE', $table_prefix.'privmsgs_ignore');
define('PRUNE_TABLE', $table_prefix.'forum_prune');
define('RANKS_TABLE', $table_prefix.'ranks');
define('SEARCH_TABLE', $table_prefix.'search_results');
define('SEARCH_WORD_TABLE', $table_prefix.'search_wordlist');
define('SEARCH_MATCH_TABLE', $table_prefix.'search_wordmatch');
define('SESSIONS_TABLE', $table_prefix.'sessions');
define('SMILIES_TABLE', $table_prefix.'smilies');
define('THEMES_TABLE', $table_prefix.'themes');
define('THEMES_NAME_TABLE', $table_prefix.'themes_name');
define('TOPICS_TABLE', $table_prefix.'topics');
define('TOPICS_WATCH_TABLE', $table_prefix.'topics_watch');
define('USER_GROUP_TABLE', $table_prefix.'user_group');
define('USERS_TABLE', $table_prefix.'users');
define('WORDS_TABLE', $table_prefix.'words');
define('VOTE_DESC_TABLE', $table_prefix.'vote_desc');
define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
?>

66
phpBB/includes/db.php Normal file
View File

@@ -0,0 +1,66 @@
<?php
/***************************************************************************
* db.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
switch($dbms)
{
case 'mysql':
include($phpbb_root_path . 'db/mysql.'.$phpEx);
break;
case 'mysql4':
include($phpbb_root_path . 'db/mysql4.'.$phpEx);
break;
case 'postgres':
include($phpbb_root_path . 'db/postgres7.'.$phpEx);
break;
case 'mssql':
include($phpbb_root_path . 'db/mssql.'.$phpEx);
break;
case 'oracle':
include($phpbb_root_path . 'db/oracle.'.$phpEx);
break;
case 'msaccess':
include($phpbb_root_path . 'db/msaccess.'.$phpEx);
break;
case 'mssql-odbc':
include($phpbb_root_path . 'db/mssql-odbc.'.$phpEx);
break;
}
// Make the database connection.
$db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false);
if(!$db->db_connect_id)
{
message_die(CRITICAL_ERROR, "Could not connect to the database");
}
?>

373
phpBB/includes/emailer.php Executable file
View File

@@ -0,0 +1,373 @@
<?php
/***************************************************************************
emailer.php
-------------------
begin : Sunday Aug. 12, 2001
copyright : (C) 2001 The phpBB Group
email : support@phpbb.com
$Id$
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
//
// The emailer class has support for attaching files, that isn't implemented
// in the 2.0 release but we can probable find some way of using it in a future
// release
//
class emailer
{
var $msg, $subject, $extra_headers;
var $addresses, $reply_to, $from;
var $use_smtp;
var $tpl_msg = array();
function emailer($use_smtp)
{
$this->reset();
$this->use_smtp = $use_smtp;
$this->reply_to = $this->from = '';
}
// Resets all the data (address, template file, etc etc to default
function reset()
{
$this->addresses = array();
$this->vars = $this->msg = $this->extra_headers = '';
}
// Sets an email address to send to
function email_address($address)
{
$this->addresses['to'] = trim($address);
}
function cc($address)
{
$this->addresses['cc'][] = trim($address);
}
function bcc($address)
{
$this->addresses['bcc'][] = trim($address);
}
function replyto($address)
{
$this->reply_to = trim($address);
}
function from($address)
{
$this->from = trim($address);
}
// set up subject for mail
function set_subject($subject = '')
{
$this->subject = trim(preg_replace('#[\n\r]+#s', '', $subject));
}
// set up extra mail headers
function extra_headers($headers)
{
$this->extra_headers .= trim($headers) . "\n";
}
function use_template($template_file, $template_lang = '')
{
global $board_config, $phpbb_root_path;
if (trim($template_file) == '')
{
message_die(GENERAL_ERROR, 'No template file set', '', __LINE__, __FILE__);
}
if (trim($template_lang) == '')
{
$template_lang = $board_config['default_lang'];
}
if (empty($this->tpl_msg[$template_lang . $template_file]))
{
$tpl_file = $phpbb_root_path . 'language/lang_' . $template_lang . '/email/' . $template_file . '.tpl';
if (!@file_exists(@phpbb_realpath($tpl_file)))
{
$tpl_file = $phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/email/' . $template_file . '.tpl';
if (!@file_exists(@phpbb_realpath($tpl_file)))
{
message_die(GENERAL_ERROR, 'Could not find email template file :: ' . $template_file, '', __LINE__, __FILE__);
}
}
if (!($fd = @fopen($tpl_file, 'r')))
{
message_die(GENERAL_ERROR, 'Failed opening template file :: ' . $tpl_file, '', __LINE__, __FILE__);
}
$this->tpl_msg[$template_lang . $template_file] = fread($fd, filesize($tpl_file));
fclose($fd);
}
$this->msg = $this->tpl_msg[$template_lang . $template_file];
return true;
}
// assign variables
function assign_vars($vars)
{
$this->vars = (empty($this->vars)) ? $vars : $this->vars . $vars;
}
// Send the mail out to the recipients set previously in var $this->address
function send()
{
global $board_config, $lang, $phpEx, $phpbb_root_path, $db;
// Escape all quotes, else the eval will fail.
$this->msg = str_replace ("'", "\'", $this->msg);
$this->msg = preg_replace('#\{([a-z0-9\-_]*?)\}#is', "' . $\\1 . '", $this->msg);
// Set vars
reset ($this->vars);
while (list($key, $val) = each($this->vars))
{
$$key = $val;
}
eval("\$this->msg = '$this->msg';");
// Clear vars
reset ($this->vars);
while (list($key, $val) = each($this->vars))
{
unset($$key);
}
// We now try and pull a subject from the email body ... if it exists,
// do this here because the subject may contain a variable
$drop_header = '';
$match = array();
if (preg_match('#^(Subject:(.*?))$#m', $this->msg, $match))
{
$this->subject = (trim($match[2]) != '') ? trim($match[2]) : (($this->subject != '') ? $this->subject : 'No Subject');
$drop_header .= '[\r\n]*?' . phpbb_preg_quote($match[1], '#');
}
else
{
$this->subject = (($this->subject != '') ? $this->subject : 'No Subject');
}
if (preg_match('#^(Charset:(.*?))$#m', $this->msg, $match))
{
$this->encoding = (trim($match[2]) != '') ? trim($match[2]) : trim($lang['ENCODING']);
$drop_header .= '[\r\n]*?' . phpbb_preg_quote($match[1], '#');
}
else
{
$this->encoding = trim($lang['ENCODING']);
}
if ($drop_header != '')
{
$this->msg = trim(preg_replace('#' . $drop_header . '#s', '', $this->msg));
}
$to = $this->addresses['to'];
$cc = (count($this->addresses['cc'])) ? implode(', ', $this->addresses['cc']) : '';
$bcc = (count($this->addresses['bcc'])) ? implode(', ', $this->addresses['bcc']) : '';
// Build header
$this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '') . (($bcc != '') ? "Bcc: $bcc\n" : '');
// Send message ... removed $this->encode() from subject for time being
if ( $this->use_smtp )
{
if ( !defined('SMTP_INCLUDED') )
{
include($phpbb_root_path . 'includes/smtp.' . $phpEx);
}
$result = smtpmail($to, $this->subject, $this->msg, $this->extra_headers);
}
else
{
$empty_to_header = ($to == '') ? TRUE : FALSE;
$to = ($to == '') ? (($board_config['sendmail_fix']) ? ' ' : 'Undisclosed-recipients:;') : $to;
$result = @mail($to, $this->subject, preg_replace("#(?<!\r)\n#s", "\n", $this->msg), $this->extra_headers);
if (!$result && !$board_config['sendmail_fix'] && $empty_to_header)
{
$to = ' ';
$sql = "UPDATE " . CONFIG_TABLE . "
SET config_value = '1'
WHERE config_name = 'sendmail_fix'";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Unable to update config table', '', __LINE__, __FILE__, $sql);
}
$board_config['sendmail_fix'] = 1;
$result = @mail($to, $this->subject, preg_replace("#(?<!\r)\n#s", "\n", $this->msg), $this->extra_headers);
}
}
// Did it work?
if (!$result)
{
message_die(GENERAL_ERROR, 'Failed sending email :: ' . (($this->use_smtp) ? 'SMTP' : 'PHP') . ' :: ' . $result, '', __LINE__, __FILE__);
}
return true;
}
// Encodes the given string for proper display for this encoding ... nabbed
// from php.net and modified. There is an alternative encoding method which
// may produce lesd output but it's questionable as to its worth in this
// scenario IMO
function encode($str)
{
if ($this->encoding == '')
{
return $str;
}
// define start delimimter, end delimiter and spacer
$end = "?=";
$start = "=?$this->encoding?B?";
$spacer = "$end\r\n $start";
// determine length of encoded text within chunks and ensure length is even
$length = 75 - strlen($start) - strlen($end);
$length = floor($length / 2) * 2;
// encode the string and split it into chunks with spacers after each chunk
$str = chunk_split(base64_encode($str), $length, $spacer);
// remove trailing spacer and add start and end delimiters
$str = preg_replace('#' . phpbb_preg_quote($spacer, '#') . '$#', '', $str);
return $start . $str . $end;
}
//
// Attach files via MIME.
//
function attachFile($filename, $mimetype = "application/octet-stream", $szFromAddress, $szFilenameToDisplay)
{
global $lang;
$mime_boundary = "--==================_846811060==_";
$this->msg = '--' . $mime_boundary . "\nContent-Type: text/plain;\n\tcharset=\"" . $lang['ENCODING'] . "\"\n\n" . $this->msg;
if ($mime_filename)
{
$filename = $mime_filename;
$encoded = $this->encode_file($filename);
}
$fd = fopen($filename, "r");
$contents = fread($fd, filesize($filename));
$this->mimeOut = "--" . $mime_boundary . "\n";
$this->mimeOut .= "Content-Type: " . $mimetype . ";\n\tname=\"$szFilenameToDisplay\"\n";
$this->mimeOut .= "Content-Transfer-Encoding: quoted-printable\n";
$this->mimeOut .= "Content-Disposition: attachment;\n\tfilename=\"$szFilenameToDisplay\"\n\n";
if ( $mimetype == "message/rfc822" )
{
$this->mimeOut .= "From: ".$szFromAddress."\n";
$this->mimeOut .= "To: ".$this->emailAddress."\n";
$this->mimeOut .= "Date: ".date("D, d M Y H:i:s") . " UT\n";
$this->mimeOut .= "Reply-To:".$szFromAddress."\n";
$this->mimeOut .= "Subject: ".$this->mailSubject."\n";
$this->mimeOut .= "X-Mailer: PHP/".phpversion()."\n";
$this->mimeOut .= "MIME-Version: 1.0\n";
}
$this->mimeOut .= $contents."\n";
$this->mimeOut .= "--" . $mime_boundary . "--" . "\n";
return $out;
// added -- to notify email client attachment is done
}
function getMimeHeaders($filename, $mime_filename="")
{
$mime_boundary = "--==================_846811060==_";
if ($mime_filename)
{
$filename = $mime_filename;
}
$out = "MIME-Version: 1.0\n";
$out .= "Content-Type: multipart/mixed;\n\tboundary=\"$mime_boundary\"\n\n";
$out .= "This message is in MIME format. Since your mail reader does not understand\n";
$out .= "this format, some or all of this message may not be legible.";
return $out;
}
//
// Split string by RFC 2045 semantics (76 chars per line, end with \r\n).
//
function myChunkSplit($str)
{
$stmp = $str;
$len = strlen($stmp);
$out = "";
while ($len > 0)
{
if ($len >= 76)
{
$out .= substr($stmp, 0, 76) . "\r\n";
$stmp = substr($stmp, 76);
$len = $len - 76;
}
else
{
$out .= $stmp . "\r\n";
$stmp = "";
$len = 0;
}
}
return $out;
}
//
// Split the specified file up into a string and return it
//
function encode_file($sourcefile)
{
if (is_readable(phpbb_realpath($sourcefile)))
{
$fd = fopen($sourcefile, "r");
$contents = fread($fd, filesize($sourcefile));
$encoded = $this->myChunkSplit(base64_encode($contents));
fclose($fd);
}
return $encoded;
}
} // class emailer
?>

View File

@@ -0,0 +1,807 @@
<?php
/***************************************************************************
* functions.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
function get_db_stat($mode)
{
global $db;
switch( $mode )
{
case 'usercount':
$sql = "SELECT COUNT(user_id) AS total
FROM " . USERS_TABLE . "
WHERE user_id <> " . ANONYMOUS;
break;
case 'newestuser':
$sql = "SELECT user_id, username
FROM " . USERS_TABLE . "
WHERE user_id <> " . ANONYMOUS . "
ORDER BY user_id DESC
LIMIT 1";
break;
case 'postcount':
case 'topiccount':
$sql = "SELECT SUM(forum_topics) AS topic_total, SUM(forum_posts) AS post_total
FROM " . FORUMS_TABLE;
break;
}
if ( !($result = $db->sql_query($sql)) )
{
return false;
}
$row = $db->sql_fetchrow($result);
switch ( $mode )
{
case 'usercount':
return $row['total'];
break;
case 'newestuser':
return $row;
break;
case 'postcount':
return $row['post_total'];
break;
case 'topiccount':
return $row['topic_total'];
break;
}
return false;
}
// added at phpBB 2.0.11 to properly format the username
function phpbb_clean_username($username)
{
$username = substr(htmlspecialchars(str_replace("\'", "'", trim($username))), 0, 25);
$username = phpbb_rtrim($username, "\\");
$username = str_replace("'", "\'", $username);
return $username;
}
// added at phpBB 2.0.12 to fix a bug in PHP 4.3.10 (only supporting charlist in php >= 4.1.0)
function phpbb_rtrim($str, $charlist = false)
{
if ($charlist === false)
{
return rtrim($str);
}
$php_version = explode('.', PHP_VERSION);
// php version < 4.1.0
if ((int) $php_version[0] < 4 || ((int) $php_version[0] == 4 && (int) $php_version[1] < 1))
{
while ($str{strlen($str)-1} == $charlist)
{
$str = substr($str, 0, strlen($str)-1);
}
}
else
{
$str = rtrim($str, $charlist);
}
return $str;
}
//
// Get Userdata, $user can be username or user_id. If force_str is true, the username will be forced.
//
function get_userdata($user, $force_str = false)
{
global $db;
if (intval($user) == 0 || $force_str)
{
$user = phpbb_clean_username($user);
}
else
{
$user = intval($user);
}
$sql = "SELECT *
FROM " . USERS_TABLE . "
WHERE ";
$sql .= ( ( is_integer($user) ) ? "user_id = $user" : "username = '" . $user . "'" ) . " AND user_id <> " . ANONYMOUS;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Tried obtaining data for a non-existent user', '', __LINE__, __FILE__, $sql);
}
return ( $row = $db->sql_fetchrow($result) ) ? $row : false;
}
function make_jumpbox($action, $match_forum_id = 0)
{
global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID;
// $is_auth = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata);
$sql = "SELECT c.cat_id, c.cat_title, c.cat_order
FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f
WHERE f.cat_id = c.cat_id
GROUP BY c.cat_id, c.cat_title, c.cat_order
ORDER BY c.cat_order";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain category list.", "", __LINE__, __FILE__, $sql);
}
$category_rows = array();
while ( $row = $db->sql_fetchrow($result) )
{
$category_rows[] = $row;
}
if ( $total_categories = count($category_rows) )
{
$sql = "SELECT *
FROM " . FORUMS_TABLE . "
ORDER BY cat_id, forum_order";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql);
}
$boxstring = '<select name="' . POST_FORUM_URL . '" onchange="if(this.options[this.selectedIndex].value != -1){ forms[\'jumpbox\'].submit() }"><option value="-1">' . $lang['Select_forum'] . '</option>';
$forum_rows = array();
while ( $row = $db->sql_fetchrow($result) )
{
$forum_rows[] = $row;
}
if ( $total_forums = count($forum_rows) )
{
for($i = 0; $i < $total_categories; $i++)
{
$boxstring_forums = '';
for($j = 0; $j < $total_forums; $j++)
{
if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $forum_rows[$j]['auth_view'] <= AUTH_REG )
{
// if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $is_auth[$forum_rows[$j]['forum_id']]['auth_view'] )
// {
$selected = ( $forum_rows[$j]['forum_id'] == $match_forum_id ) ? 'selected="selected"' : '';
$boxstring_forums .= '<option value="' . $forum_rows[$j]['forum_id'] . '"' . $selected . '>' . $forum_rows[$j]['forum_name'] . '</option>';
//
// Add an array to $nav_links for the Mozilla navigation bar.
// 'chapter' and 'forum' can create multiple items, therefore we are using a nested array.
//
$nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
'title' => $forum_rows[$j]['forum_name']
);
}
}
if ( $boxstring_forums != '' )
{
$boxstring .= '<option value="-1">&nbsp;</option>';
$boxstring .= '<option value="-1">' . $category_rows[$i]['cat_title'] . '</option>';
$boxstring .= '<option value="-1">----------------</option>';
$boxstring .= $boxstring_forums;
}
}
}
$boxstring .= '</select>';
}
else
{
$boxstring .= '<select name="' . POST_FORUM_URL . '" onchange="if(this.options[this.selectedIndex].value != -1){ forms[\'jumpbox\'].submit() }"></select>';
}
// Let the jumpbox work again in sites having additional session id checks.
// if ( !empty($SID) )
// {
$boxstring .= '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />';
// }
$template->set_filenames(array(
'jumpbox' => 'jumpbox.tpl')
);
$template->assign_vars(array(
'L_GO' => $lang['Go'],
'L_JUMP_TO' => $lang['Jump_to'],
'L_SELECT_FORUM' => $lang['Select_forum'],
'S_JUMPBOX_SELECT' => $boxstring,
'S_JUMPBOX_ACTION' => append_sid($action))
);
$template->assign_var_from_handle('JUMPBOX', 'jumpbox');
return;
}
//
// Initialise user settings on page load
function init_userprefs($userdata)
{
global $board_config, $theme, $images;
global $template, $lang, $phpEx, $phpbb_root_path;
global $nav_links;
if ( $userdata['user_id'] != ANONYMOUS )
{
if ( !empty($userdata['user_lang']))
{
$board_config['default_lang'] = $userdata['user_lang'];
}
if ( !empty($userdata['user_dateformat']) )
{
$board_config['default_dateformat'] = $userdata['user_dateformat'];
}
if ( isset($userdata['user_timezone']) )
{
$board_config['board_timezone'] = $userdata['user_timezone'];
}
}
if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx)) )
{
$board_config['default_lang'] = 'english';
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx);
if ( defined('IN_ADMIN') )
{
if( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx)) )
{
$board_config['default_lang'] = 'english';
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx);
}
//
// Set up style
//
if ( !$board_config['override_user_style'] )
{
if ( $userdata['user_id'] != ANONYMOUS && $userdata['user_style'] > 0 )
{
if ( $theme = setup_style($userdata['user_style']) )
{
return;
}
}
}
$theme = setup_style($board_config['default_style']);
//
// Mozilla navigation bar
// Default items that should be valid on all pages.
// Defined here to correctly assign the Language Variables
// and be able to change the variables within code.
//
$nav_links['top'] = array (
'url' => append_sid($phpbb_root_path . 'index.' . $phpEx),
'title' => sprintf($lang['Forum_Index'], $board_config['sitename'])
);
$nav_links['search'] = array (
'url' => append_sid($phpbb_root_path . 'search.' . $phpEx),
'title' => $lang['Search']
);
$nav_links['help'] = array (
'url' => append_sid($phpbb_root_path . 'faq.' . $phpEx),
'title' => $lang['FAQ']
);
$nav_links['author'] = array (
'url' => append_sid($phpbb_root_path . 'memberlist.' . $phpEx),
'title' => $lang['Memberlist']
);
return;
}
function setup_style($style)
{
global $db, $board_config, $template, $images, $phpbb_root_path;
$sql = "SELECT *
FROM " . THEMES_TABLE . "
WHERE themes_id = $style";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not query database for theme info');
}
if ( !($row = $db->sql_fetchrow($result)) )
{
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
}
$template_path = 'templates/' ;
$template_name = $row['template_name'] ;
$template = new Template($phpbb_root_path . $template_path . $template_name);
if ( $template )
{
$current_template_path = $template_path . $template_name;
@include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg');
if ( !defined('TEMPLATE_CONFIG') )
{
message_die(CRITICAL_ERROR, "Could not open $template_name template config file", '', __LINE__, __FILE__);
}
$img_lang = ( file_exists(@phpbb_realpath($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang'])) ) ? $board_config['default_lang'] : 'english';
while( list($key, $value) = @each($images) )
{
if ( !is_array($value) )
{
$images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value);
}
}
}
return $row;
}
function encode_ip($dotquad_ip)
{
$ip_sep = explode('.', $dotquad_ip);
return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]);
}
function decode_ip($int_ip)
{
$hexipbang = explode('.', chunk_split($int_ip, 2, '.'));
return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]);
}
//
// Create date/time from format and timezone
//
function create_date($format, $gmepoch, $tz)
{
global $board_config, $lang;
static $translate;
if ( empty($translate) && $board_config['default_lang'] != 'english' )
{
@reset($lang['datetime']);
while ( list($match, $replace) = @each($lang['datetime']) )
{
$translate[$match] = $replace;
}
}
return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz));
}
//
// Pagination routine, generates
// page number sequence
//
function generate_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = TRUE)
{
global $lang;
$total_pages = ceil($num_items/$per_page);
if ( $total_pages == 1 )
{
return '';
}
$on_page = floor($start_item / $per_page) + 1;
$page_string = '';
if ( $total_pages > 10 )
{
$init_page_max = ( $total_pages > 3 ) ? 3 : $total_pages;
for($i = 1; $i < $init_page_max + 1; $i++)
{
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&amp;start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
if ( $i < $init_page_max )
{
$page_string .= ", ";
}
}
if ( $total_pages > 3 )
{
if ( $on_page > 1 && $on_page < $total_pages )
{
$page_string .= ( $on_page > 5 ) ? ' ... ' : ', ';
$init_page_min = ( $on_page > 4 ) ? $on_page : 5;
$init_page_max = ( $on_page < $total_pages - 4 ) ? $on_page : $total_pages - 4;
for($i = $init_page_min - 1; $i < $init_page_max + 2; $i++)
{
$page_string .= ($i == $on_page) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&amp;start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
if ( $i < $init_page_max + 1 )
{
$page_string .= ', ';
}
}
$page_string .= ( $on_page < $total_pages - 4 ) ? ' ... ' : ', ';
}
else
{
$page_string .= ' ... ';
}
for($i = $total_pages - 2; $i < $total_pages + 1; $i++)
{
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&amp;start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
if( $i < $total_pages )
{
$page_string .= ", ";
}
}
}
}
else
{
for($i = 1; $i < $total_pages + 1; $i++)
{
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&amp;start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
if ( $i < $total_pages )
{
$page_string .= ', ';
}
}
}
if ( $add_prevnext_text )
{
if ( $on_page > 1 )
{
$page_string = ' <a href="' . append_sid($base_url . "&amp;start=" . ( ( $on_page - 2 ) * $per_page ) ) . '">' . $lang['Previous'] . '</a>&nbsp;&nbsp;' . $page_string;
}
if ( $on_page < $total_pages )
{
$page_string .= '&nbsp;&nbsp;<a href="' . append_sid($base_url . "&amp;start=" . ( $on_page * $per_page ) ) . '">' . $lang['Next'] . '</a>';
}
}
$page_string = $lang['Goto_page'] . ' ' . $page_string;
return $page_string;
}
//
// This does exactly what preg_quote() does in PHP 4-ish
// If you just need the 1-parameter preg_quote call, then don't bother using this.
//
function phpbb_preg_quote($str, $delimiter)
{
$text = preg_quote($str);
$text = str_replace($delimiter, '\\' . $delimiter, $text);
return $text;
}
//
// Obtain list of naughty words and build preg style replacement arrays for use by the
// calling script, note that the vars are passed as references this just makes it easier
// to return both sets of arrays
//
function obtain_word_list(&$orig_word, &$replacement_word)
{
global $db;
//
// Define censored word matches
//
$sql = "SELECT word, replacement
FROM " . WORDS_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get censored words from database', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
do
{
$orig_word[] = '#\b(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')\b#i';
$replacement_word[] = $row['replacement'];
}
while ( $row = $db->sql_fetchrow($result) );
}
return true;
}
//
// This is general replacement for die(), allows templated
// output in users (or default) language, etc.
//
// $msg_code can be one of these constants:
//
// GENERAL_MESSAGE : Use for any simple text message, eg. results
// of an operation, authorisation failures, etc.
//
// GENERAL ERROR : Use for any error which occurs _AFTER_ the
// common.php include and session code, ie. most errors in
// pages/functions
//
// CRITICAL_MESSAGE : Used when basic config data is available but
// a session may not exist, eg. banned users
//
// CRITICAL_ERROR : Used when config data cannot be obtained, eg
// no database connection. Should _not_ be used in 99.5% of cases
//
function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '')
{
global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header, $images;
global $userdata, $user_ip, $session_length;
global $starttime;
if(defined('HAS_DIED'))
{
die("message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?");
}
define(HAS_DIED, 1);
$sql_store = $sql;
//
// Get SQL error if we are debugging. Do this as soon as possible to prevent
// subsequent queries from overwriting the status of sql_error()
//
if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
{
$sql_error = $db->sql_error();
$debug_text = '';
if ( $sql_error['message'] != '' )
{
$debug_text .= '<br /><br />SQL Error : ' . $sql_error['code'] . ' ' . $sql_error['message'];
}
if ( $sql_store != '' )
{
$debug_text .= "<br /><br />$sql_store";
}
if ( $err_line != '' && $err_file != '' )
{
$debug_text .= '</br /><br />Line : ' . $err_line . '<br />File : ' . basename($err_file);
}
}
if( empty($userdata) && ( $msg_code == GENERAL_MESSAGE || $msg_code == GENERAL_ERROR ) )
{
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
}
//
// If the header hasn't been output then do it
//
if ( !defined('HEADER_INC') && $msg_code != CRITICAL_ERROR )
{
if ( empty($lang) )
{
if ( !empty($board_config['default_lang']) )
{
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx);
}
else
{
include($phpbb_root_path . 'language/lang_english/lang_main.'.$phpEx);
}
}
if ( empty($template) )
{
$template = new Template($phpbb_root_path . 'templates/' . $board_config['board_template']);
}
if ( empty($theme) )
{
$theme = setup_style($board_config['default_style']);
}
//
// Load the Page Header
//
if ( !defined('IN_ADMIN') )
{
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
}
else
{
include($phpbb_root_path . 'admin/page_header_admin.'.$phpEx);
}
}
switch($msg_code)
{
case GENERAL_MESSAGE:
if ( $msg_title == '' )
{
$msg_title = $lang['Information'];
}
break;
case CRITICAL_MESSAGE:
if ( $msg_title == '' )
{
$msg_title = $lang['Critical_Information'];
}
break;
case GENERAL_ERROR:
if ( $msg_text == '' )
{
$msg_text = $lang['An_error_occured'];
}
if ( $msg_title == '' )
{
$msg_title = $lang['General_Error'];
}
break;
case CRITICAL_ERROR:
//
// Critical errors mean we cannot rely on _ANY_ DB information being
// available so we're going to dump out a simple echo'd statement
//
include($phpbb_root_path . 'language/lang_english/lang_main.'.$phpEx);
if ( $msg_text == '' )
{
$msg_text = $lang['A_critical_error'];
}
if ( $msg_title == '' )
{
$msg_title = 'phpBB : <b>' . $lang['Critical_Error'] . '</b>';
}
break;
}
//
// Add on DEBUG info if we've enabled debug mode and this is an error. This
// prevents debug info being output for general messages should DEBUG be
// set TRUE by accident (preventing confusion for the end user!)
//
if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
{
if ( $debug_text != '' )
{
$msg_text = $msg_text . '<br /><br /><b><u>DEBUG MODE</u></b>' . $debug_text;
}
}
if ( $msg_code != CRITICAL_ERROR )
{
if ( !empty($lang[$msg_text]) )
{
$msg_text = $lang[$msg_text];
}
if ( !defined('IN_ADMIN') )
{
$template->set_filenames(array(
'message_body' => 'message_body.tpl')
);
}
else
{
$template->set_filenames(array(
'message_body' => 'admin/admin_message_body.tpl')
);
}
$template->assign_vars(array(
'MESSAGE_TITLE' => $msg_title,
'MESSAGE_TEXT' => $msg_text)
);
$template->pparse('message_body');
if ( !defined('IN_ADMIN') )
{
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
else
{
include($phpbb_root_path . 'admin/page_footer_admin.'.$phpEx);
}
}
else
{
echo "<html>\n<body>\n" . $msg_title . "\n<br /><br />\n" . $msg_text . "</body>\n</html>";
}
exit;
}
//
// This function is for compatibility with PHP 4.x's realpath()
// function. In later versions of PHP, it needs to be called
// to do checks with some functions. Older versions of PHP don't
// seem to need this, so we'll just return the original value.
// dougk_ff7 <October 5, 2002>
function phpbb_realpath($path)
{
global $phpbb_root_path, $phpEx;
return (!@function_exists('realpath') || !@realpath($phpbb_root_path . 'includes/functions.'.$phpEx)) ? $path : @realpath($path);
}
function redirect($url)
{
global $db, $board_config;
if (!empty($db))
{
$db->sql_close();
}
if (strstr(urldecode($url), "\n") || strstr(urldecode($url), "\r"))
{
message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');
}
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));
// Redirect via an HTML form for PITA webservers
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>';
exit;
}
// Behave as per HTTP/1.1 spec for others
header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url);
exit;
}
?>

View File

@@ -0,0 +1,155 @@
<?php
/***************************************************************************
* functions_admin.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
//
// Simple version of jumpbox, just lists authed forums
//
function make_forum_select($box_name, $ignore_forum = false, $select_forum = '')
{
global $db, $userdata;
$is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata);
$sql = "SELECT forum_id, forum_name
FROM " . FORUMS_TABLE . "
ORDER BY cat_id, forum_order";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Couldn not obtain forums information', '', __LINE__, __FILE__, $sql);
}
$forum_list = '';
while( $row = $db->sql_fetchrow($result) )
{
if ( $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] )
{
$selected = ( $select_forum == $row['forum_id'] ) ? ' selected="selected"' : '';
$forum_list .= '<option value="' . $row['forum_id'] . '"' . $selected .'>' . $row['forum_name'] . '</option>';
}
}
$forum_list = ( $forum_list == '' ) ? '<option value="-1">-- ! No Forums ! --</option>' : '<select name="' . $box_name . '">' . $forum_list . '</select>';
return $forum_list;
}
//
// Synchronise functions for forums/topics
//
function sync($type, $id = false)
{
global $db;
switch($type)
{
case 'all forums':
$sql = "SELECT forum_id
FROM " . FORUMS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get forum IDs', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
sync('forum', $row['forum_id']);
}
break;
case 'all topics':
$sql = "SELECT topic_id
FROM " . TOPICS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get topic ID', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
sync('topic', $row['topic_id']);
}
break;
case 'forum':
$sql = "SELECT MAX(post_id) AS last_post, COUNT(post_id) AS total
FROM " . POSTS_TABLE . "
WHERE forum_id = $id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get post ID', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
$last_post = ( $row['last_post'] ) ? $row['last_post'] : 0;
$total_posts = ($row['total']) ? $row['total'] : 0;
}
else
{
$last_post = 0;
$total_posts = 0;
}
$sql = "SELECT COUNT(topic_id) AS total
FROM " . TOPICS_TABLE . "
WHERE forum_id = $id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get topic count', '', __LINE__, __FILE__, $sql);
}
$total_topics = ( $row = $db->sql_fetchrow($result) ) ? ( ( $row['total'] ) ? $row['total'] : 0 ) : 0;
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_last_post_id = $last_post, forum_posts = $total_posts, forum_topics = $total_topics
WHERE forum_id = $id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update forum', '', __LINE__, __FILE__, $sql);
}
break;
case 'topic':
$sql = "SELECT MAX(post_id) AS last_post, MIN(post_id) AS first_post, COUNT(post_id) AS total_posts
FROM " . POSTS_TABLE . "
WHERE topic_id = $id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get post ID', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
$sql = ( $row['total_posts'] ) ? "UPDATE " . TOPICS_TABLE . " SET topic_replies = " . ( $row['total_posts'] - 1 ) . ", topic_first_post_id = " . $row['first_post'] . ", topic_last_post_id = " . $row['last_post'] . " WHERE topic_id = $id" : "DELETE FROM " . TOPICS_TABLE . " WHERE topic_id = $id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update topic', '', __LINE__, __FILE__, $sql);
}
}
break;
}
return true;
}
?>

View File

@@ -0,0 +1,862 @@
<?php
/***************************************************************************
* functions_post.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if (!defined('IN_PHPBB'))
{
die('Hacking attempt');
}
$html_entities_match = array('#&(?!(\#[0-9]+;))#', '#<#', '#>#');
$html_entities_replace = array('&amp;', '&lt;', '&gt;');
$unhtml_specialchars_match = array('#&gt;#', '#&lt;#', '#&quot;#', '#&amp;#');
$unhtml_specialchars_replace = array('>', '<', '"', '&');
//
// This function will prepare a posted message for
// entry into the database.
//
function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid = 0)
{
global $board_config, $html_entities_match, $html_entities_replace;
//
// Clean up the message
//
$message = trim($message);
if ($html_on)
{
$allowed_html_tags = split(',', $board_config['allow_html_tags']);
$end_html = 0;
$start_html = 1;
$tmp_message = '';
$message = ' ' . $message . ' ';
while ($start_html = strpos($message, '<', $start_html))
{
$tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($message, $end_html + 1, ($start_html - $end_html - 1)));
if ($end_html = strpos($message, '>', $start_html))
{
$length = $end_html - $start_html + 1;
$hold_string = substr($message, $start_html, $length);
if (($unclosed_open = strrpos(' ' . $hold_string, '<')) != 1)
{
$tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($hold_string, 0, $unclosed_open - 1));
$hold_string = substr($hold_string, $unclosed_open - 1);
}
$tagallowed = false;
for ($i = 0; $i < sizeof($allowed_html_tags); $i++)
{
$match_tag = trim($allowed_html_tags[$i]);
if (preg_match('#^<\/?' . $match_tag . '[> ]#i', $hold_string))
{
$tagallowed = (preg_match('#^<\/?' . $match_tag . ' .*?(style[\t ]*?=|on[\w]+[\t ]*?=)#i', $hold_string)) ? false : true;
}
}
$tmp_message .= ($length && !$tagallowed) ? preg_replace($html_entities_match, $html_entities_replace, $hold_string) : $hold_string;
$start_html += $length;
}
else
{
$tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($message, $start_html, strlen($message)));
$start_html = strlen($message);
$end_html = $start_html;
}
}
if (!$end_html || ($end_html != strlen($message) && $tmp_message != ''))
{
$tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($message, $end_html + 1));
}
$message = ($tmp_message != '') ? trim($tmp_message) : trim($message);
}
else
{
$message = preg_replace($html_entities_match, $html_entities_replace, $message);
}
if($bbcode_on && $bbcode_uid != '')
{
$message = bbencode_first_pass($message, $bbcode_uid);
}
return $message;
}
function unprepare_message($message)
{
global $unhtml_specialchars_match, $unhtml_specialchars_replace;
return preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, $message);
}
//
// Prepare a message for posting
//
function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$poll_title, &$poll_options, &$poll_length)
{
global $board_config, $userdata, $lang, $phpEx, $phpbb_root_path;
// Check username
if (!empty($username))
{
$username = phpbb_clean_username($username);
if (!$userdata['session_logged_in'] || ($userdata['session_logged_in'] && $username != $userdata['username']))
{
include($phpbb_root_path . 'includes/functions_validate.'.$phpEx);
$result = validate_username($username);
if ($result['error'])
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $result['error_msg'] : $result['error_msg'];
}
}
else
{
$username = '';
}
}
// Check subject
if (!empty($subject))
{
$subject = htmlspecialchars(trim($subject));
}
else if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Empty_subject'] : $lang['Empty_subject'];
}
// Check message
if (!empty($message))
{
$bbcode_uid = ($bbcode_on) ? make_bbcode_uid() : '';
$message = prepare_message(trim($message), $html_on, $bbcode_on, $smilies_on, $bbcode_uid);
}
else if ($mode != 'delete' && $mode != 'poll_delete')
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Empty_message'] : $lang['Empty_message'];
}
//
// Handle poll stuff
//
if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
$poll_length = (isset($poll_length)) ? max(0, intval($poll_length)) : 0;
if (!empty($poll_title))
{
$poll_title = htmlspecialchars(trim($poll_title));
}
if(!empty($poll_options))
{
$temp_option_text = array();
while(list($option_id, $option_text) = @each($poll_options))
{
$option_text = trim($option_text);
if (!empty($option_text))
{
$temp_option_text[$option_id] = htmlspecialchars($option_text);
}
}
$option_text = $temp_option_text;
if (count($poll_options) < 2)
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['To_few_poll_options'] : $lang['To_few_poll_options'];
}
else if (count($poll_options) > $board_config['max_poll_options'])
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['To_many_poll_options'] : $lang['To_many_poll_options'];
}
else if ($poll_title == '')
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Empty_poll_title'] : $lang['Empty_poll_title'];
}
}
}
return;
}
//
// Post a new topic/reply/poll or edit existing post/poll
//
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length)
{
global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
global $userdata, $user_ip;
include($phpbb_root_path . 'includes/functions_search.'.$phpEx);
$current_time = time();
if ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost')
{
//
// Flood control
//
$where_sql = ($userdata['user_id'] == ANONYMOUS) ? "poster_ip = '$user_ip'" : 'poster_id = ' . $userdata['user_id'];
$sql = "SELECT MAX(post_time) AS last_post_time
FROM " . POSTS_TABLE . "
WHERE $where_sql";
if ($result = $db->sql_query($sql))
{
if ($row = $db->sql_fetchrow($result))
{
if (intval($row['last_post_time']) > 0 && ($current_time - intval($row['last_post_time'])) < intval($board_config['flood_interval']))
{
message_die(GENERAL_MESSAGE, $lang['Flood_Error']);
}
}
}
}
if ($mode == 'editpost')
{
remove_search_post($post_id);
}
if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
$topic_vote = (!empty($poll_title) && count($poll_options) >= 2) ? 1 : 0;
$sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
if ($mode == 'newtopic')
{
$topic_id = $db->sql_nextid();
}
}
$edited_sql = ($mode == 'editpost' && !$post_data['last_post'] && $post_data['poster_post']) ? ", post_edit_time = $current_time, post_edit_count = post_edit_count + 1 " : "";
$sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig)" : "UPDATE " . POSTS_TABLE . " SET post_username = '$post_username', enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig" . $edited_sql . " WHERE post_id = $post_id";
if (!$db->sql_query($sql, BEGIN_TRANSACTION))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
if ($mode != 'editpost')
{
$post_id = $db->sql_nextid();
}
$sql = ($mode != 'editpost') ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message', bbcode_uid = '$bbcode_uid', post_subject = '$post_subject' WHERE post_id = $post_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
add_search_words('single', $post_id, stripslashes($post_message), stripslashes($post_subject));
//
// Add poll
//
if (($mode == 'newtopic' || ($mode == 'editpost' && $post_data['edit_poll'])) && !empty($poll_title) && count($poll_options) >= 2)
{
$sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . ")" : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . " WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
$delete_option_sql = '';
$old_poll_result = array();
if ($mode == 'editpost' && $post_data['has_poll'])
{
$sql = "SELECT vote_option_id, vote_result
FROM " . VOTE_RESULTS_TABLE . "
WHERE vote_id = $poll_id
ORDER BY vote_option_id ASC";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not obtain vote data results for this topic', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result))
{
$old_poll_result[$row['vote_option_id']] = $row['vote_result'];
if (!isset($poll_options[$row['vote_option_id']]))
{
$delete_option_sql .= ($delete_option_sql != '') ? ', ' . $row['vote_option_id'] : $row['vote_option_id'];
}
}
}
else
{
$poll_id = $db->sql_nextid();
}
@reset($poll_options);
$poll_option_id = 1;
while (list($option_id, $option_text) = each($poll_options))
{
if (!empty($option_text))
{
$option_text = str_replace("\'", "''", htmlspecialchars($option_text));
$poll_result = ($mode == "editpost" && isset($old_poll_result[$option_id])) ? $old_poll_result[$option_id] : 0;
$sql = ($mode != "editpost" || !isset($old_poll_result[$option_id])) ? "INSERT INTO " . VOTE_RESULTS_TABLE . " (vote_id, vote_option_id, vote_option_text, vote_result) VALUES ($poll_id, $poll_option_id, '$option_text', $poll_result)" : "UPDATE " . VOTE_RESULTS_TABLE . " SET vote_option_text = '$option_text', vote_result = $poll_result WHERE vote_option_id = $option_id AND vote_id = $poll_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
$poll_option_id++;
}
}
if ($delete_option_sql != '')
{
$sql = "DELETE FROM " . VOTE_RESULTS_TABLE . "
WHERE vote_option_id IN ($delete_option_sql)
AND vote_id = $poll_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error deleting pruned poll options', '', __LINE__, __FILE__, $sql);
}
}
}
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';
$message = $lang['Stored'] . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');
return false;
}
//
// Update post stats and details
//
function update_post_stats(&$mode, &$post_data, &$forum_id, &$topic_id, &$post_id, &$user_id)
{
global $db;
$sign = ($mode == 'delete') ? '- 1' : '+ 1';
$forum_update_sql = "forum_posts = forum_posts $sign";
$topic_update_sql = '';
if ($mode == 'delete')
{
if ($post_data['last_post'])
{
if ($post_data['first_post'])
{
$forum_update_sql .= ', forum_topics = forum_topics - 1';
}
else
{
$topic_update_sql .= 'topic_replies = topic_replies - 1';
$sql = "SELECT MAX(post_id) AS last_post_id
FROM " . POSTS_TABLE . "
WHERE topic_id = $topic_id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
$topic_update_sql .= ', topic_last_post_id = ' . $row['last_post_id'];
}
}
if ($post_data['last_topic'])
{
$sql = "SELECT MAX(post_id) AS last_post_id
FROM " . POSTS_TABLE . "
WHERE forum_id = $forum_id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
$forum_update_sql .= ($row['last_post_id']) ? ', forum_last_post_id = ' . $row['last_post_id'] : ', forum_last_post_id = 0';
}
}
}
else if ($post_data['first_post'])
{
$sql = "SELECT MIN(post_id) AS first_post_id
FROM " . POSTS_TABLE . "
WHERE topic_id = $topic_id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
$topic_update_sql .= 'topic_replies = topic_replies - 1, topic_first_post_id = ' . $row['first_post_id'];
}
}
else
{
$topic_update_sql .= 'topic_replies = topic_replies - 1';
}
}
else if ($mode != 'poll_delete')
{
$forum_update_sql .= ", forum_last_post_id = $post_id" . (($mode == 'newtopic') ? ", forum_topics = forum_topics $sign" : "");
$topic_update_sql = "topic_last_post_id = $post_id" . (($mode == 'reply') ? ", topic_replies = topic_replies $sign" : ", topic_first_post_id = $post_id");
}
else
{
$topic_update_sql .= 'topic_vote = 0';
}
$sql = "UPDATE " . FORUMS_TABLE . " SET
$forum_update_sql
WHERE forum_id = $forum_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
if ($topic_update_sql != '')
{
$sql = "UPDATE " . TOPICS_TABLE . " SET
$topic_update_sql
WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
}
if ($mode != 'poll_delete')
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_posts = user_posts $sign
WHERE user_id = $user_id";
if (!$db->sql_query($sql, END_TRANSACTION))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
}
return;
}
//
// Delete a post/poll
//
function delete_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id)
{
global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
global $userdata, $user_ip;
if ($mode != 'poll_delete')
{
include($phpbb_root_path . 'includes/functions_search.'.$phpEx);
$sql = "DELETE FROM " . POSTS_TABLE . "
WHERE post_id = $post_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . POSTS_TEXT_TABLE . "
WHERE post_id = $post_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
}
if ($post_data['last_post'])
{
if ($post_data['first_post'])
{
$forum_update_sql .= ', forum_topics = forum_topics - 1';
$sql = "DELETE FROM " . TOPICS_TABLE . "
WHERE topic_id = $topic_id
OR topic_moved_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . TOPICS_WATCH_TABLE . "
WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
}
}
}
remove_search_post($post_id);
}
if ($mode == 'poll_delete' || ($mode == 'delete' && $post_data['first_post'] && $post_data['last_post']) && $post_data['has_poll'] && $post_data['edit_poll'])
{
$sql = "DELETE FROM " . VOTE_DESC_TABLE . "
WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . VOTE_RESULTS_TABLE . "
WHERE vote_id = $poll_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . VOTE_USERS_TABLE . "
WHERE vote_id = $poll_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql);
}
}
if ($mode == 'delete' && $post_data['first_post'] && $post_data['last_post'])
{
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $forum_id) . '">';
$message = $lang['Deleted'];
}
else
{
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $topic_id) . '">';
$message = (($mode == 'poll_delete') ? $lang['Poll_delete'] : $lang['Deleted']) . '<br /><br />' . sprintf($lang['Click_return_topic'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">', '</a>');
}
$message .= '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');
return;
}
//
// Handle user notification on new post
//
function user_notification($mode, &$post_data, &$topic_title, &$forum_id, &$topic_id, &$post_id, &$notify_user)
{
global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
global $userdata, $user_ip;
$current_time = time();
if ($mode == 'delete')
{
$delete_sql = (!$post_data['first_post'] && !$post_data['last_post']) ? " AND user_id = " . $userdata['user_id'] : '';
$sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " WHERE topic_id = $topic_id" . $delete_sql;
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not change topic notify data', '', __LINE__, __FILE__, $sql);
}
}
else
{
if ($mode == 'reply')
{
$sql = "SELECT ban_userid
FROM " . BANLIST_TABLE;
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not obtain banlist', '', __LINE__, __FILE__, $sql);
}
$user_id_sql = '';
while ($row = $db->sql_fetchrow($result))
{
if (isset($row['ban_userid']) && !empty($row['ban_userid']))
{
$user_id_sql .= ', ' . $row['ban_userid'];
}
}
$sql = "SELECT u.user_id, u.user_email, u.user_lang
FROM " . TOPICS_WATCH_TABLE . " tw, " . USERS_TABLE . " u
WHERE tw.topic_id = $topic_id
AND tw.user_id NOT IN (" . $userdata['user_id'] . ", " . ANONYMOUS . $user_id_sql . ")
AND tw.notify_status = " . TOPIC_WATCH_UN_NOTIFIED . "
AND u.user_id = tw.user_id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not obtain list of topic watchers', '', __LINE__, __FILE__, $sql);
}
$update_watched_sql = '';
$bcc_list_ary = array();
if ($row = $db->sql_fetchrow($result))
{
// Sixty second limit
@set_time_limit(60);
do
{
if ($row['user_email'] != '')
{
$bcc_list_ary[$row['user_lang']][] = $row['user_email'];
}
$update_watched_sql .= ($update_watched_sql != '') ? ', ' . $row['user_id'] : $row['user_id'];
}
while ($row = $db->sql_fetchrow($result));
//
// Let's do some checking to make sure that mass mail functions
// are working in win32 versions of php.
//
if (preg_match('/[c-z]:\\\.*/i', getenv('PATH')) && !$board_config['smtp_delivery'])
{
$ini_val = (@phpversion() >= '4.0.0') ? 'ini_get' : 'get_cfg_var';
// We are running on windows, force delivery to use our smtp functions
// since php's are broken by default
$board_config['smtp_delivery'] = 1;
$board_config['smtp_host'] = @$ini_val('SMTP');
}
if (sizeof($bcc_list_ary))
{
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$emailer = new emailer($board_config['smtp_delivery']);
$script_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path']));
$script_name = ($script_name != '') ? $script_name . '/viewtopic.'.$phpEx : 'viewtopic.'.$phpEx;
$server_name = trim($board_config['server_name']);
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) . '/' : '/';
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
$emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
$topic_title = (count($orig_word)) ? preg_replace($orig_word, $replacement_word, unprepare_message($topic_title)) : unprepare_message($topic_title);
@reset($bcc_list_ary);
while (list($user_lang, $bcc_list) = each($bcc_list_ary))
{
$emailer->use_template('topic_notify', $user_lang);
for ($i = 0; $i < count($bcc_list); $i++)
{
$emailer->bcc($bcc_list[$i]);
}
// The Topic_reply_notification lang string below will be used
// if for some reason the mail template subject cannot be read
// ... note it will not necessarily be in the posters own language!
$emailer->set_subject($lang['Topic_reply_notification']);
// This is a nasty kludge to remove the username var ... till (if?)
// translators update their templates
$emailer->msg = preg_replace('#[ ]?{USERNAME}#', '', $emailer->msg);
$emailer->assign_vars(array(
'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
'SITENAME' => $board_config['sitename'],
'TOPIC_TITLE' => $topic_title,
'U_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '?' . POST_POST_URL . "=$post_id#$post_id",
'U_STOP_WATCHING_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '?' . POST_TOPIC_URL . "=$topic_id&unwatch=topic")
);
$emailer->send();
$emailer->reset();
}
}
}
$db->sql_freeresult($result);
if ($update_watched_sql != '')
{
$sql = "UPDATE " . TOPICS_WATCH_TABLE . "
SET notify_status = " . TOPIC_WATCH_NOTIFIED . "
WHERE topic_id = $topic_id
AND user_id IN ($update_watched_sql)";
$db->sql_query($sql);
}
}
$sql = "SELECT topic_id
FROM " . TOPICS_WATCH_TABLE . "
WHERE topic_id = $topic_id
AND user_id = " . $userdata['user_id'];
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not obtain topic watch information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if (!$notify_user && !empty($row['topic_id']))
{
$sql = "DELETE FROM " . TOPICS_WATCH_TABLE . "
WHERE topic_id = $topic_id
AND user_id = " . $userdata['user_id'];
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not delete topic watch information', '', __LINE__, __FILE__, $sql);
}
}
else if ($notify_user && empty($row['topic_id']))
{
$sql = "INSERT INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status)
VALUES (" . $userdata['user_id'] . ", $topic_id, 0)";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not insert topic watch information', '', __LINE__, __FILE__, $sql);
}
}
}
}
//
// Fill smiley templates (or just the variables) with smileys
// Either in a window or inline
//
function generate_smilies($mode, $page_id)
{
global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path;
global $user_ip, $session_length, $starttime;
global $userdata;
$inline_columns = 4;
$inline_rows = 5;
$window_columns = 8;
if ($mode == 'window')
{
$userdata = session_pagestart($user_ip, $page_id);
init_userprefs($userdata);
$gen_simple_header = TRUE;
$page_title = $lang['Emoticons'] . " - $topic_title";
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'smiliesbody' => 'posting_smilies.tpl')
);
}
$sql = "SELECT emoticon, code, smile_url
FROM " . SMILIES_TABLE . "
ORDER BY smilies_id";
if ($result = $db->sql_query($sql))
{
$num_smilies = 0;
$rowset = array();
while ($row = $db->sql_fetchrow($result))
{
if (empty($rowset[$row['smile_url']]))
{
$rowset[$row['smile_url']]['code'] = str_replace("'", "\\'", str_replace('\\', '\\\\', $row['code']));
$rowset[$row['smile_url']]['emoticon'] = $row['emoticon'];
$num_smilies++;
}
}
if ($num_smilies)
{
$smilies_count = ($mode == 'inline') ? min(19, $num_smilies) : $num_smilies;
$smilies_split_row = ($mode == 'inline') ? $inline_columns - 1 : $window_columns - 1;
$s_colspan = 0;
$row = 0;
$col = 0;
while (list($smile_url, $data) = @each($rowset))
{
if (!$col)
{
$template->assign_block_vars('smilies_row', array());
}
$template->assign_block_vars('smilies_row.smilies_col', array(
'SMILEY_CODE' => $data['code'],
'SMILEY_IMG' => $board_config['smilies_path'] . '/' . $smile_url,
'SMILEY_DESC' => $data['emoticon'])
);
$s_colspan = max($s_colspan, $col + 1);
if ($col == $smilies_split_row)
{
if ($mode == 'inline' && $row == $inline_rows - 1)
{
break;
}
$col = 0;
$row++;
}
else
{
$col++;
}
}
if ($mode == 'inline' && $num_smilies > $inline_rows * $inline_columns)
{
$template->assign_block_vars('switch_smilies_extra', array());
$template->assign_vars(array(
'L_MORE_SMILIES' => $lang['More_emoticons'],
'U_MORE_SMILIES' => append_sid("posting.$phpEx?mode=smilies"))
);
}
$template->assign_vars(array(
'L_EMOTICONS' => $lang['Emoticons'],
'L_CLOSE_WINDOW' => $lang['Close_window'],
'S_SMILIES_COLSPAN' => $s_colspan)
);
}
}
if ($mode == 'window')
{
$template->pparse('smiliesbody');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
}
?>

View File

@@ -0,0 +1,498 @@
<?php
/***************************************************************************
* functions_search.php
* -------------------
* begin : Wed Sep 05 2001
* copyright : (C) 2002 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
****************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
function clean_words($mode, &$entry, &$stopword_list, &$synonym_list)
{
static $drop_char_match = array('^', '$', '&', '(', ')', '<', '>', '`', '\'', '"', '|', ',', '@', '_', '?', '%', '-', '~', '+', '.', '[', ']', '{', '}', ':', '\\', '/', '=', '#', '\'', ';', '!');
static $drop_char_replace = array(' ', ' ', ' ', ' ', ' ', ' ', ' ', '', '', ' ', ' ', ' ', ' ', '', ' ', ' ', '', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' , ' ', ' ', ' ', ' ', ' ', ' ');
$entry = ' ' . strip_tags(strtolower($entry)) . ' ';
if ( $mode == 'post' )
{
// Replace line endings by a space
$entry = preg_replace('/[\n\r]/is', ' ', $entry);
// HTML entities like &nbsp;
$entry = preg_replace('/\b&[a-z]+;\b/', ' ', $entry);
// Remove URL's
$entry = preg_replace('/\b[a-z0-9]+:\/\/[a-z0-9\.\-]+(\/[a-z0-9\?\.%_\-\+=&\/]+)?/', ' ', $entry);
// Quickly remove BBcode.
$entry = preg_replace('/\[img:[a-z0-9]{10,}\].*?\[\/img:[a-z0-9]{10,}\]/', ' ', $entry);
$entry = preg_replace('/\[\/?url(=.*?)?\]/', ' ', $entry);
$entry = preg_replace('/\[\/?[a-z\*=\+\-]+(\:?[0-9a-z]+)?:[a-z0-9]{10,}(\:[a-z0-9]+)?=?.*?\]/', ' ', $entry);
}
else if ( $mode == 'search' )
{
$entry = str_replace(' +', ' and ', $entry);
$entry = str_replace(' -', ' not ', $entry);
}
//
// Filter out strange characters like ^, $, &, change "it's" to "its"
//
for($i = 0; $i < count($drop_char_match); $i++)
{
$entry = str_replace($drop_char_match[$i], $drop_char_replace[$i], $entry);
}
if ( $mode == 'post' )
{
$entry = str_replace('*', ' ', $entry);
// 'words' that consist of <3 or >20 characters are removed.
$entry = preg_replace('/[ ]([\S]{1,2}|[\S]{21,})[ ]/',' ', $entry);
}
if ( !empty($stopword_list) )
{
for ($j = 0; $j < count($stopword_list); $j++)
{
$stopword = trim($stopword_list[$j]);
if ( $mode == 'post' || ( $stopword != 'not' && $stopword != 'and' && $stopword != 'or' ) )
{
$entry = str_replace(' ' . trim($stopword) . ' ', ' ', $entry);
}
}
}
if ( !empty($synonym_list) )
{
for ($j = 0; $j < count($synonym_list); $j++)
{
list($replace_synonym, $match_synonym) = split(' ', trim(strtolower($synonym_list[$j])));
if ( $mode == 'post' || ( $match_synonym != 'not' && $match_synonym != 'and' && $match_synonym != 'or' ) )
{
$entry = str_replace(' ' . trim($match_synonym) . ' ', ' ' . trim($replace_synonym) . ' ', $entry);
}
}
}
return $entry;
}
function split_words(&$entry, $mode = 'post')
{
// If you experience problems with the new method, uncomment this block.
/*
$rex = ( $mode == 'post' ) ? "/\b([\w<><77>-<2D>][\w<><77>-<2D>']*[\w<><77>-<2D>]+|[\w<><77>-<2D>]+?)\b/" : '/(\*?[a-z0-9<><39>-<2D>]+\*?)|\b([a-z0-9<><39>-<2D>]+)\b/';
preg_match_all($rex, $entry, $split_entries);
return $split_entries[1];
*/
// Trim 1+ spaces to one space and split this trimmed string into words.
return explode(' ', trim(preg_replace('#\s+#', ' ', $entry)));
}
function add_search_words($mode, $post_id, $post_text, $post_title = '')
{
global $db, $phpbb_root_path, $board_config, $lang;
$stopword_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . "/search_stopwords.txt");
$synonym_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . "/search_synonyms.txt");
$search_raw_words = array();
$search_raw_words['text'] = split_words(clean_words('post', $post_text, $stopword_array, $synonym_array));
$search_raw_words['title'] = split_words(clean_words('post', $post_title, $stopword_array, $synonym_array));
@set_time_limit(0);
$word = array();
$word_insert_sql = array();
while ( list($word_in, $search_matches) = @each($search_raw_words) )
{
$word_insert_sql[$word_in] = '';
if ( !empty($search_matches) )
{
for ($i = 0; $i < count($search_matches); $i++)
{
$search_matches[$i] = trim($search_matches[$i]);
if( $search_matches[$i] != '' )
{
$word[] = $search_matches[$i];
if ( !strstr($word_insert_sql[$word_in], "'" . $search_matches[$i] . "'") )
{
$word_insert_sql[$word_in] .= ( $word_insert_sql[$word_in] != "" ) ? ", '" . $search_matches[$i] . "'" : "'" . $search_matches[$i] . "'";
}
}
}
}
}
if ( count($word) )
{
sort($word);
$prev_word = '';
$word_text_sql = '';
$temp_word = array();
for($i = 0; $i < count($word); $i++)
{
if ( $word[$i] != $prev_word )
{
$temp_word[] = $word[$i];
$word_text_sql .= ( ( $word_text_sql != '' ) ? ', ' : '' ) . "'" . $word[$i] . "'";
}
$prev_word = $word[$i];
}
$word = $temp_word;
$check_words = array();
switch( SQL_LAYER )
{
case 'postgresql':
case 'msaccess':
case 'mssql-odbc':
case 'oracle':
case 'db2':
$sql = "SELECT word_id, word_text
FROM " . SEARCH_WORD_TABLE . "
WHERE word_text IN ($word_text_sql)";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select words', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$check_words[$row['word_text']] = $row['word_id'];
}
break;
}
$value_sql = '';
$match_word = array();
for ($i = 0; $i < count($word); $i++)
{
$new_match = true;
if ( isset($check_words[$word[$i]]) )
{
$new_match = false;
}
if ( $new_match )
{
switch( SQL_LAYER )
{
case 'mysql':
case 'mysql4':
$value_sql .= ( ( $value_sql != '' ) ? ', ' : '' ) . '(\'' . $word[$i] . '\', 0)';
break;
case 'mssql':
case 'mssql-odbc':
$value_sql .= ( ( $value_sql != '' ) ? ' UNION ALL ' : '' ) . "SELECT '" . $word[$i] . "', 0";
break;
default:
$sql = "INSERT INTO " . SEARCH_WORD_TABLE . " (word_text, word_common)
VALUES ('" . $word[$i] . "', 0)";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert new word', '', __LINE__, __FILE__, $sql);
}
break;
}
}
}
if ( $value_sql != '' )
{
switch ( SQL_LAYER )
{
case 'mysql':
case 'mysql4':
$sql = "INSERT IGNORE INTO " . SEARCH_WORD_TABLE . " (word_text, word_common)
VALUES $value_sql";
break;
case 'mssql':
case 'mssql-odbc':
$sql = "INSERT INTO " . SEARCH_WORD_TABLE . " (word_text, word_common)
$value_sql";
break;
}
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert new word', '', __LINE__, __FILE__, $sql);
}
}
}
while( list($word_in, $match_sql) = @each($word_insert_sql) )
{
$title_match = ( $word_in == 'title' ) ? 1 : 0;
if ( $match_sql != '' )
{
$sql = "INSERT INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match)
SELECT $post_id, word_id, $title_match
FROM " . SEARCH_WORD_TABLE . "
WHERE word_text IN ($match_sql)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert new word matches', '', __LINE__, __FILE__, $sql);
}
}
}
if ($mode == 'single')
{
remove_common('single', 4/10, $word);
}
return;
}
//
// Check if specified words are too common now
//
function remove_common($mode, $fraction, $word_id_list = array())
{
global $db;
$sql = "SELECT COUNT(post_id) AS total_posts
FROM " . POSTS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain post count', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if ( $row['total_posts'] >= 100 )
{
$common_threshold = floor($row['total_posts'] * $fraction);
if ( $mode == 'single' && count($word_id_list) )
{
$word_id_sql = '';
for($i = 0; $i < count($word_id_list); $i++)
{
$word_id_sql .= ( ( $word_id_sql != '' ) ? ', ' : '' ) . "'" . $word_id_list[$i] . "'";
}
$sql = "SELECT m.word_id
FROM " . SEARCH_MATCH_TABLE . " m, " . SEARCH_WORD_TABLE . " w
WHERE w.word_text IN ($word_id_sql)
AND m.word_id = w.word_id
GROUP BY m.word_id
HAVING COUNT(m.word_id) > $common_threshold";
}
else
{
$sql = "SELECT word_id
FROM " . SEARCH_MATCH_TABLE . "
GROUP BY word_id
HAVING COUNT(word_id) > $common_threshold";
}
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain common word list', '', __LINE__, __FILE__, $sql);
}
$common_word_id = '';
while ( $row = $db->sql_fetchrow($result) )
{
$common_word_id .= ( ( $common_word_id != '' ) ? ', ' : '' ) . $row['word_id'];
}
$db->sql_freeresult($result);
if ( $common_word_id != '' )
{
$sql = "UPDATE " . SEARCH_WORD_TABLE . "
SET word_common = " . TRUE . "
WHERE word_id IN ($common_word_id)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete word list entry', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . SEARCH_MATCH_TABLE . "
WHERE word_id IN ($common_word_id)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete word match entry', '', __LINE__, __FILE__, $sql);
}
}
}
return;
}
function remove_search_post($post_id_sql)
{
global $db;
$words_removed = false;
switch ( SQL_LAYER )
{
case 'mysql':
case 'mysql4':
$sql = "SELECT word_id
FROM " . SEARCH_MATCH_TABLE . "
WHERE post_id IN ($post_id_sql)
GROUP BY word_id";
if ( $result = $db->sql_query($sql) )
{
$word_id_sql = '';
while ( $row = $db->sql_fetchrow($result) )
{
$word_id_sql .= ( $word_id_sql != '' ) ? ', ' . $row['word_id'] : $row['word_id'];
}
$sql = "SELECT word_id
FROM " . SEARCH_MATCH_TABLE . "
WHERE word_id IN ($word_id_sql)
GROUP BY word_id
HAVING COUNT(word_id) = 1";
if ( $result = $db->sql_query($sql) )
{
$word_id_sql = '';
while ( $row = $db->sql_fetchrow($result) )
{
$word_id_sql .= ( $word_id_sql != '' ) ? ', ' . $row['word_id'] : $row['word_id'];
}
if ( $word_id_sql != '' )
{
$sql = "DELETE FROM " . SEARCH_WORD_TABLE . "
WHERE word_id IN ($word_id_sql)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete word list entry', '', __LINE__, __FILE__, $sql);
}
$words_removed = $db->sql_affectedrows();
}
}
}
break;
default:
$sql = "DELETE FROM " . SEARCH_WORD_TABLE . "
WHERE word_id IN (
SELECT word_id
FROM " . SEARCH_MATCH_TABLE . "
WHERE word_id IN (
SELECT word_id
FROM " . SEARCH_MATCH_TABLE . "
WHERE post_id IN ($post_id_sql)
GROUP BY word_id
)
GROUP BY word_id
HAVING COUNT(word_id) = 1
)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete old words from word table', '', __LINE__, __FILE__, $sql);
}
$words_removed = $db->sql_affectedrows();
break;
}
$sql = "DELETE FROM " . SEARCH_MATCH_TABLE . "
WHERE post_id IN ($post_id_sql)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
}
return $words_removed;
}
//
// Username search
//
function username_search($search_match)
{
global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path;
global $starttime, $gen_simple_header;
$gen_simple_header = TRUE;
$username_list = '';
if ( !empty($search_match) )
{
$username_search = preg_replace('/\*/', '%', phpbb_clean_username($search_match));
$sql = "SELECT username
FROM " . USERS_TABLE . "
WHERE username LIKE '" . str_replace("\'", "''", $username_search) . "' AND user_id <> " . ANONYMOUS . "
ORDER BY username";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
do
{
$username_list .= '<option value="' . $row['username'] . '">' . $row['username'] . '</option>';
}
while ( $row = $db->sql_fetchrow($result) );
}
else
{
$username_list .= '<option>' . $lang['No_match']. '</option>';
}
$db->sql_freeresult($result);
}
$page_title = $lang['Search'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'search_user_body' => 'search_username.tpl')
);
$template->assign_vars(array(
'USERNAME' => (!empty($search_match)) ? phpbb_clean_username($search_match) : '',
'L_CLOSE_WINDOW' => $lang['Close_window'],
'L_SEARCH_USERNAME' => $lang['Find_username'],
'L_UPDATE_USERNAME' => $lang['Select_username'],
'L_SELECT' => $lang['Select'],
'L_SEARCH' => $lang['Search'],
'L_SEARCH_EXPLAIN' => $lang['Search_author_explain'],
'L_CLOSE_WINDOW' => $lang['Close_window'],
'S_USERNAME_OPTIONS' => $username_list,
'S_SEARCH_ACTION' => append_sid("search.$phpEx?mode=searchuser"))
);
if ( $username_list != '' )
{
$template->assign_block_vars('switch_select_name', array());
}
$template->pparse('search_user_body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
return;
}
?>

View File

@@ -0,0 +1,111 @@
<?php
/***************************************************************************
* function_selects.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
//
// Pick a language, any language ...
//
function language_select($default, $select_name = "language", $dirname="language")
{
global $phpEx, $phpbb_root_path;
$dir = opendir($phpbb_root_path . $dirname);
$lang = array();
while ( $file = readdir($dir) )
{
if (preg_match('#^lang_#i', $file) && !is_file(@phpbb_realpath($phpbb_root_path . $dirname . '/' . $file)) && !is_link(@phpbb_realpath($phpbb_root_path . $dirname . '/' . $file)))
{
$filename = trim(str_replace("lang_", "", $file));
$displayname = preg_replace("/^(.*?)_(.*)$/", "\\1 [ \\2 ]", $filename);
$displayname = preg_replace("/\[(.*?)_(.*)\]/", "[ \\1 - \\2 ]", $displayname);
$lang[$displayname] = $filename;
}
}
closedir($dir);
@asort($lang);
@reset($lang);
$lang_select = '<select name="' . $select_name . '">';
while ( list($displayname, $filename) = @each($lang) )
{
$selected = ( strtolower($default) == strtolower($filename) ) ? ' selected="selected"' : '';
$lang_select .= '<option value="' . $filename . '"' . $selected . '>' . ucwords($displayname) . '</option>';
}
$lang_select .= '</select>';
return $lang_select;
}
//
// Pick a template/theme combo,
//
function style_select($default_style, $select_name = "style", $dirname = "templates")
{
global $db;
$sql = "SELECT themes_id, style_name
FROM " . THEMES_TABLE . "
ORDER BY template_name, themes_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql);
}
$style_select = '<select name="' . $select_name . '">';
while ( $row = $db->sql_fetchrow($result) )
{
$selected = ( $row['themes_id'] == $default_style ) ? ' selected="selected"' : '';
$style_select .= '<option value="' . $row['themes_id'] . '"' . $selected . '>' . $row['style_name'] . '</option>';
}
$style_select .= "</select>";
return $style_select;
}
//
// Pick a timezone
//
function tz_select($default, $select_name = 'timezone')
{
global $sys_timezone, $lang;
if ( !isset($default) )
{
$default == $sys_timezone;
}
$tz_select = '<select name="' . $select_name . '">';
while( list($offset, $zone) = @each($lang['tz']) )
{
$selected = ( $offset == $default ) ? ' selected="selected"' : '';
$tz_select .= '<option value="' . $offset . '"' . $selected . '>' . $zone . '</option>';
}
$tz_select .= '</select>';
return $tz_select;
}
?>

View File

@@ -0,0 +1,207 @@
<?php
/***************************************************************************
* functions_validate.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
//
// Check to see if the username has been taken, or if it is disallowed.
// Also checks if it includes the " character, which we don't allow in usernames.
// Used for registering, changing names, and posting anonymously with a username
//
function validate_username($username)
{
global $db, $lang, $userdata;
// Remove doubled up spaces
$username = preg_replace('#\s+#', ' ', $username);
// Limit username length
$username = substr(str_replace("\'", "'", $username), 0, 25);
$username = str_replace("'", "''", $username);
$sql = "SELECT username
FROM " . USERS_TABLE . "
WHERE LOWER(username) = '" . strtolower($username) . "'";
if ($result = $db->sql_query($sql))
{
if ($row = $db->sql_fetchrow($result))
{
if (($userdata['session_logged_in'] && $row['username'] != $userdata['username']) || !$userdata['session_logged_in'])
{
$db->sql_freeresult($result);
return array('error' => true, 'error_msg' => $lang['Username_taken']);
}
}
}
$db->sql_freeresult($result);
$sql = "SELECT group_name
FROM " . GROUPS_TABLE . "
WHERE LOWER(group_name) = '" . strtolower($username) . "'";
if ($result = $db->sql_query($sql))
{
if ($row = $db->sql_fetchrow($result))
{
$db->sql_freeresult($result);
return array('error' => true, 'error_msg' => $lang['Username_taken']);
}
}
$db->sql_freeresult($result);
$sql = "SELECT disallow_username
FROM " . DISALLOW_TABLE;
if ($result = $db->sql_query($sql))
{
if ($row = $db->sql_fetchrow($result))
{
do
{
if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['disallow_username'], '#')) . ")\b#i", $username))
{
$db->sql_freeresult($result);
return array('error' => true, 'error_msg' => $lang['Username_disallowed']);
}
}
while($row = $db->sql_fetchrow($result));
}
}
$db->sql_freeresult($result);
$sql = "SELECT word
FROM " . WORDS_TABLE;
if ($result = $db->sql_query($sql))
{
if ($row = $db->sql_fetchrow($result))
{
do
{
if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['word'], '#')) . ")\b#i", $username))
{
$db->sql_freeresult($result);
return array('error' => true, 'error_msg' => $lang['Username_disallowed']);
}
}
while ($row = $db->sql_fetchrow($result));
}
}
$db->sql_freeresult($result);
// Don't allow " and ALT-255 in username.
if (strstr($username, '"') || strstr($username, '&quot;') || strstr($username, chr(160)))
{
return array('error' => true, 'error_msg' => $lang['Username_invalid']);
}
return array('error' => false, 'error_msg' => '');
}
//
// Check to see if email address is banned
// or already present in the DB
//
function validate_email($email)
{
global $db, $lang;
if ($email != '')
{
if (preg_match('/^[a-z0-9&\'\.\-_\+]+@[a-z0-9\-]+\.([a-z0-9\-]+\.)*?[a-z]+$/is', $email))
{
$sql = "SELECT ban_email
FROM " . BANLIST_TABLE;
if ($result = $db->sql_query($sql))
{
if ($row = $db->sql_fetchrow($result))
{
do
{
$match_email = str_replace('*', '.*?', $row['ban_email']);
if (preg_match('/^' . $match_email . '$/is', $email))
{
$db->sql_freeresult($result);
return array('error' => true, 'error_msg' => $lang['Email_banned']);
}
}
while($row = $db->sql_fetchrow($result));
}
}
$db->sql_freeresult($result);
$sql = "SELECT user_email
FROM " . USERS_TABLE . "
WHERE user_email = '" . str_replace("\'", "''", $email) . "'";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, "Couldn't obtain user email information.", "", __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
return array('error' => true, 'error_msg' => $lang['Email_taken']);
}
$db->sql_freeresult($result);
return array('error' => false, 'error_msg' => '');
}
}
return array('error' => true, 'error_msg' => $lang['Email_invalid']);
}
//
// Does supplementary validation of optional profile fields. This expects common stuff like trim() and strip_tags()
// to have already been run. Params are passed by-ref, so we can set them to the empty string if they fail.
//
function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$location, &$occupation, &$interests, &$sig)
{
$check_var_length = array('aim', 'msnm', 'yim', 'location', 'occupation', 'interests', 'sig');
for($i = 0; $i < count($check_var_length); $i++)
{
if (strlen($$check_var_length[$i]) < 2)
{
$$check_var_length[$i] = '';
}
}
// ICQ number has to be only numbers.
if (!preg_match('/^[0-9]+$/', $icq))
{
$icq = '';
}
// website has to start with http://, followed by something with length at least 3 that
// contains at least one dot.
if ($website != "")
{
if (!preg_match('#^http[s]?:\/\/#i', $website))
{
$website = 'http://' . $website;
}
if (!preg_match('#^http[s]?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $website))
{
$website = '';
}
}
return;
}
?>

10
phpBB/includes/index.htm Normal file
View File

@@ -0,0 +1,10 @@
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More