1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-08 23:31:04 +02:00

Compare commits

..

511 Commits

Author SHA1 Message Date
(no author)
f102219c51 This commit was manufactured by cvs2svn to create tag
'release_2_0_5'.

git-svn-id: file:///svn/phpbb/tags/release_2_0_5@4135 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-15 17:40:55 +00:00
Meik Sievertsen
85adedd96d new patchfile format. the -l switch (-cl) is required, without this switch the patch will not work correctly.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4134 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-15 17:40:55 +00:00
Meik Sievertsen
bb908c9eae ok, last commit. Please, now everything should work as expected.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4133 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-15 12:08:20 +00:00
Meik Sievertsen
190eec0f57 "Go ahead, make my day."
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4123 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-13 21:35:22 +00:00
Meik Sievertsen
1c3ee5f2a4 fixed bug with smtp mailing and additional headers assigned.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4119 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-12 19:20:20 +00:00
Meik Sievertsen
0f411e1523 changed patch file section to reflect the patch file changes.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4117 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-12 16:25:58 +00:00
Paul S. Owen
803b3d89eb entity fix
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4116 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-12 12:49:01 +00:00
Paul S. Owen
666fd34a83 minor indent thing
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4114 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-11 10:05:15 +00:00
Meik Sievertsen
ae6b2b7e89 hrm, different storage of config value and user timezone value. ;)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4113 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-10 20:48:19 +00:00
Meik Sievertsen
11d8fdd299 hit me hard... hit me harder. did not see these two sections the first time.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4112 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-10 17:18:15 +00:00
Paul S. Owen
1634fbc1c6 Forgot enable_confirm
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4111 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-10 13:26:50 +00:00
Paul S. Owen
d2b59cf3e7 Removed confirm code time, updated ms access schema
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4110 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-10 12:43:16 +00:00
Paul S. Owen
846fa80df1 Remove additional Template parameters
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4109 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-10 01:38:08 +00:00
Paul S. Owen
b581770356 You've got three guesses ... no, you're completely wrong
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4108 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-10 01:36:57 +00:00
Paul S. Owen
bc4ff98369 Couple more header changes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4107 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-10 00:40:14 +00:00
Paul S. Owen
e8bb95427f Remove visual confirm stuff from default install
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4106 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-10 00:39:51 +00:00
Paul S. Owen
4683656ec9 Add confirmation stuff here ... save time elsehwere ... MSAccess note yet updated - up to template designers to decide whether to use this or not ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4105 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-10 00:33:09 +00:00
Paul S. Owen
ed318a39d6 Add confirmation stuff here ... save time elsehwere ... MSAccess note yet updated
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4104 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-10 00:32:03 +00:00
Paul S. Owen
6636b1817d some url match fiddling ... seems to be behaving ... but then just like the captain of the Hindenburg saying "Anyone smell burning?" these are famous last words ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4103 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-09 20:01:18 +00:00
Paul S. Owen
362830e86a Fixed & handling with HTML enabled and no tags
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4102 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-09 19:35:56 +00:00
Paul S. Owen
a2c007ca0a issue with _SERVERS
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4101 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-09 19:28:36 +00:00
Paul S. Owen
b800d5d714 minor error in email preg
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4100 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-09 19:13:05 +00:00
Paul S. Owen
1393e9fc6d Another attempt at handling & entities correctly
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4099 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-09 15:45:10 +00:00
Paul S. Owen
d4234285f6 balls balls balls balls balls
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4098 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-09 13:06:19 +00:00
Paul S. Owen
98e65ec40f Poss (minor) xss issue
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4097 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-09 13:01:47 +00:00
Meik Sievertsen
df041a6fc2 see changelog entry
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4096 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-07 17:52:31 +00:00
Meik Sievertsen
722529044d some small bugs fixed...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4092 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-06 18:02:15 +00:00
Meik Sievertsen
9b1f0ed388 Include 172.16/12 as private address space instead of 172.16/16.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4079 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-04 17:41:40 +00:00
Paul S. Owen
925a38d391 Not in 2.0.x ... already present in 2.2 where it can go through the normal beta process ... RFC's are great, but not everything or everyone abides by them ... and unless they are basic protocols we have to deal with the real world :)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4074 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-02 19:19:00 +00:00
Meik Sievertsen
c24b7f81b1 my attempt to break the source. :D
The Cache-Control change may stay or may not stay.
fixed: php3 compliance within the emailer. :)


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4073 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-06-02 18:02:46 +00:00
Meik Sievertsen
efe6ed8753 Some updates... username updates are now finished (no more changing here). Please review the changes to search.php (at the moment not active).
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4066 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-29 14:23:48 +00:00
Meik Sievertsen
1e8b8e1601 bugfixes...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4009 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-17 17:32:25 +00:00
Meik Sievertsen
2a2244932f two (more or less) important fixes.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4008 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-13 18:57:47 +00:00
Meik Sievertsen
c225a5b00c more little bugfixes...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3988 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-06 20:18:42 +00:00
Meik Sievertsen
ba013ea84c fixed admin redirection error (/phpBB2/phpBB2).
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3987 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-06 16:41:21 +00:00
Paul S. Owen
f0b11044b1 Updates, new files, renamed lang names
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3986 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-06 01:03:26 +00:00
Paul S. Owen
39c42cfed9 altered lang name
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3985 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-06 01:03:14 +00:00
Paul S. Owen
354f4e1595 Updates by bogdan, altered naming of langs
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3984 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-06 00:56:48 +00:00
Meik Sievertsen
ace1cf402a bugfixes to the commit i did yesterday.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3972 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-04 11:42:36 +00:00
Paul S. Owen
e9b13ea490 Target _top was introduced long ago to solve problems with admin logins ... it's "too bad" that it affects those who wish to embed phpBB within frames. They will just have to remove this themselves (as noted in the forums). I assume this was the reason for the change, if not, please let me know.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3968 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-03 23:50:22 +00:00
Meik Sievertsen
c0d96c080d changed email class to the approach paul did with the class in 2.2 (the delimiter used as a 'fix' has not really solved the initial problem). fixed timezone display.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3966 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-03 23:24:04 +00:00
Paul S. Owen
17a3c09d93 I'm going to swing for this file editor and tortoisecvs combo soon I really am.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3965 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-03 21:43:18 +00:00
Paul S. Owen
770426d76a Remove confirm stuff
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3964 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-03 21:32:59 +00:00
Paul S. Owen
5ec2dcd796 Search section corrected...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3963 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-03 21:31:54 +00:00
Paul S. Owen
1dca9e6e88 Fixed some errors in mail templates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3962 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-05-03 21:31:45 +00:00
Paul S. Owen
34e02cff58 Initial version by Boban Stojanov
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3917 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-22 10:40:44 +00:00
Paul S. Owen
3cd383023b Updated
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3916 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-22 10:30:31 +00:00
Paul S. Owen
6cc1395af4 Initial versions
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3912 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-21 21:32:50 +00:00
Paul S. Owen
24d8b2201f Updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3911 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-21 21:25:36 +00:00
Paul S. Owen
d0126d76f4 Updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3896 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-20 13:46:35 +00:00
Paul S. Owen
8272159927 Initial versions
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3895 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-20 13:40:26 +00:00
Paul S. Owen
23678005a9 Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3894 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-20 13:15:44 +00:00
Paul S. Owen
18778d24b7 Initial version by Mr.LonelyWinter
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3893 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-20 12:31:58 +00:00
Meik Sievertsen
babd5e67c5 guess what ? yes... fixed small glitches.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3822 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-13 11:05:46 +00:00
Paul S. Owen
6d81936276 Correction
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3821 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-12 21:39:32 +00:00
Paul S. Owen
e00b4d5efe Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3805 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-10 10:18:13 +00:00
Paul S. Owen
61f2e6fdef Initial version by psoTFX and Agit
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3801 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-09 22:21:52 +00:00
Paul S. Owen
7c5b66644a Initial version by psoTFX & Boban Stojanov
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3795 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-09 21:38:45 +00:00
Meik Sievertsen
77333e5167 set dbhost to localhost by default. this will prevent users forgetting to enter this setting and localhost is in 90% of the cases correct.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3791 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-06 12:46:49 +00:00
Meik Sievertsen
070f82e91e fixed two small flaws.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3790 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-04-05 12:04:34 +00:00
Meik Sievertsen
a4138b5454 fixed a bug i invented. changed username validation to catch multiple spaces. Changed get_userdata to not get confused with usernames beginning with numbers (more stable).
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3768 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-31 06:56:31 +00:00
Meik Sievertsen
3617af0360 more changes/fixes. New mail handling should be tested by those persons experienced problems with anti spam software and empty To Fields.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3758 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-30 17:48:37 +00:00
Meik Sievertsen
0c42dd05df more fixes. see the changelog for the major one.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3734 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-27 17:18:48 +00:00
Meik Sievertsen
adc030875e guess what ? yes, just fixed small glitches.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3705 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-24 01:23:01 +00:00
Meik Sievertsen
05ad53f5ab fixed two bugs... bye bye easter-egg (i think it is time to invent a new one. ;)).
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3696 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-20 23:41:07 +00:00
Meik Sievertsen
af2aa0caf2 fixed more bugs, obviously.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3678 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-19 13:57:40 +00:00
Meik Sievertsen
b1e648ea5e you have not seen this one. ;)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3675 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-18 23:27:04 +00:00
Meik Sievertsen
374560da38 fixed some small bugs... added the updater (this one needs some testing, i have moved some things around)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3674 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-18 23:24:02 +00:00
Paul S. Owen
42ec97aab7 Initial version by Natasa Holy/psoTFX
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3666 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-18 15:56:39 +00:00
Paul S. Owen
b79a7f035a Initial version ... seems I forgot to commit this
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3665 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-18 15:38:16 +00:00
Paul S. Owen
22fc4f62fc Initial version by Natasa Holy
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3664 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-18 15:37:17 +00:00
Paul S. Owen
bda78b1898 Files changed: lang_main, lang_admin
Minor corrections and a few missing strings added.


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3649 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-13 18:16:45 +00:00
Meik Sievertsen
46b24f9337 and again url bbcode changes... fixing one potential security issue.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3632 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-11 01:55:18 +00:00
Meik Sievertsen
72fc5decbe fixed problems with usernames using html special chars, added GMT + 13 to english lang_main (yes, again. ;)), paul will slap me again... i see the trout coming, but this var has to be added.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3616 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-09 02:03:15 +00:00
Meik Sievertsen
3bb8fffb70 revert newest post change.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3610 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-08 00:15:33 +00:00
Meik Sievertsen
34f1c6df98 fixed bugs #1487, #1385 and #1505, changed newest post code a little bit (now it should work as intended)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3609 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-07 19:32:46 +00:00
Meik Sievertsen
0c92a18e16 fixed problems with updating default values within mssql (update_to_xxx), fixed html-entities match (no longer needed since the html validation changed... -> Related to bug #1267), bug #1374, #1341 - scoot and #1430 fixed too. Some updates related to 2.0.5.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3597 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-04 21:02:48 +00:00
Meik Sievertsen
b76e7f7022 fixed bugs #1286, #1337 and #1153
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3587 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-03 20:53:43 +00:00
Meik Sievertsen
1f670aa48a fixed wrong return path in admin mass mailing - netclectic, fixed bug #1477
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3586 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-03 10:32:44 +00:00
Meik Sievertsen
d6bdd83306 - fixed bugs #1395, #1177, fixed floating point assignment bug within older php versions ($fraction), adjusted search a little bit by implementing a workaround for database timeouts (hopefully Paul will not slap me for this. :D) - should be tested within high-traffic boards or those affected by the database timeout.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3585 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-02 23:16:19 +00:00
Meik Sievertsen
0d75cfc914 fixed bug #1463, #1154 and #1465, moved mozilla navigation bar (see comment), changed url bbcode parsing (some backports from 2.2)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3583 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-03-02 15:51:07 +00:00
Meik Sievertsen
8fc6378764 fixed bug #1301 - Nuttzy99
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3581 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-28 17:04:09 +00:00
Meik Sievertsen
9c3d84f4e1 fixed bug #1370, #1447 (moderator status update, extensively tested, should work :D), #1309, poll delete checkbox
fixed (now it is only displayed if there is a poll to delete)


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3580 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-28 16:39:38 +00:00
Meik Sievertsen
4367a190c7 minor redirect fixes (please review)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3564 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-27 13:05:28 +00:00
Meik Sievertsen
e3138ed2c4 fixed bug #1446, #1418 and memberlist joined sort order
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3542 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-26 11:19:25 +00:00
Paul S. Owen
3cac26f65c Initial version by Dangerous piper
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3541 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-26 10:57:30 +00:00
Meik Sievertsen
c1df3ec688 fixed bug #1398, the last one for today. ;) promised.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3534 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-25 23:48:10 +00:00
Meik Sievertsen
81b3672c87 fixed get_userdata to be now really compatible with id and username (note: used intval check against 0 because of php3 compatibility)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3533 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-25 23:28:30 +00:00
Meik Sievertsen
eca9470cd4 prevent breaking of page if quote is missing. ;)
hopefully nothing is broken now. :D


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3529 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-25 18:19:01 +00:00
Meik Sievertsen
fa16e21fd4 fixed bug #1388, #1357, #1347, #1307, #1222 and #1249
changed email validation, special characters do not need to be escaped within character class (added ampersand to email validation too)


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3525 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-25 16:03:22 +00:00
Meik Sievertsen
06a38909e6 fixed bugs #1437, #686 (only changed old update scripts), #1426 and #1424
fixed username validation if username is already parsed through htmlspecialchars or user try to enforce invalid characters.


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3522 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-25 14:35:39 +00:00
Meik Sievertsen
b0322067b9 added missing variable to session_end, fixed schema directories within upgrade file.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3515 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-23 11:59:51 +00:00
Paul S. Owen
5c40eb6b78 fix issue with HTML parsing and nasty on/style tags + incorrect matching of allowed tags
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3513 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-23 00:54:46 +00:00
Meik Sievertsen
4b3714ee8f fix phpbb_realpath and added delimiter to phpbb_confirm table (what a single ; can do... :))
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3490 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-21 13:22:29 +00:00
Paul S. Owen
ea33ee4b11 Remove user facing session_id checks, they remain in admin and mod panels, fix bug which allows sending email via board even when disabled
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3481 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-21 11:16:44 +00:00
Paul S. Owen
e6e429b7f9 *updated to 2.0.4
*changed my contact e-mail to the one I read more often
*LOTS of grammar/punctuation/style fixes


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3465 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-09 20:39:29 +00:00
Paul S. Owen
50e5e18da6 Updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3464 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-09 20:39:18 +00:00
Paul S. Owen
58f84295fe fixed typos & corrected many messages
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3453 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-02-04 23:53:14 +00:00
Paul S. Owen
80f5ba6e90 Verso 1.0.0 - 29/01/03
- Compatvel com phpBB 2.0.4
- Adicionado:
* Ban_username_explain
* No_update_ranks

------------------------------------------

Maiores Informaes: http://suportephpbb.cjb.net/viewtopic.php?t=4


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3424 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-30 16:22:30 +00:00
(no author)
151bb90187 This commit was manufactured by cvs2svn to create branch 'phpBB-2_0_0'.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3421 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-30 15:32:30 +00:00
Ludovic Arnaud
0494a0a58c Dammit, now this should be the good one.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3411 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-30 02:08:15 +00:00
Ludovic Arnaud
ad78f21bc1 Corrected regular expression.
Reported by Bobe.


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3410 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-30 02:05:57 +00:00
Paul S. Owen
4cd22014e4 Updated to reflect v.2.0.4 (Text only)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3378 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-28 13:52:38 +00:00
Paul S. Owen
36eddf815a Files changed to fix in 2.0.4, some mistakes corrected, co-translator replaced
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3352 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-22 15:12:19 +00:00
Paul S. Owen
ed1bcbda89 Updated to 2.0.4
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3337 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-19 00:46:04 +00:00
Paul S. Owen
3284052fec Some grammar fixes.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3336 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-19 00:46:03 +00:00
Paul S. Owen
d2803db305 Updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3335 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-17 17:16:05 +00:00
Paul S. Owen
d0e1833ac5 Fixed email templates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3334 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-17 17:14:36 +00:00
Paul S. Owen
7fb83712f9 2.0.5
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3333 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-17 14:02:14 +00:00
Paul S. Owen
a4e96d7c61 Visual confirm switch
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3332 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-17 13:23:20 +00:00
Paul S. Owen
85b0675d3f Add confirm table
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3331 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-17 13:01:59 +00:00
Paul S. Owen
cf3ec1ec95 Added extra lines for visual confirmation ... translators please add these variables as soon as possible
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3330 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-17 12:59:45 +00:00
Paul S. Owen
931566eea4 Minor updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3329 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-17 12:51:23 +00:00
Paul S. Owen
629c707c60 Changes for visual confirmation message ... all template designers should prepare for this ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3328 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-17 01:15:51 +00:00
Paul S. Owen
22028c0b84 Updated for 2.0.4
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3327 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-16 19:00:31 +00:00
Paul S. Owen
31d2fc7d63 Forgot to default charset and subject when no match found - Matthijs
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3325 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-15 13:31:53 +00:00
Paul S. Owen
e4886c6d01 Wrong version number
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3324 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-15 12:48:47 +00:00
Paul S. Owen
2f087a707f One little addition
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3323 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-15 10:52:48 +00:00
Paul S. Owen
801d6acea0 Fix possible SQL issue - noted by Ulf Harnhammar
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3322 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-15 00:38:13 +00:00
Paul S. Owen
1246ed0b11 Code rejiggle to move highlight back after smilie parsing
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3321 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-14 13:39:49 +00:00
Paul S. Owen
eeb00fa1ec Change to prevent on handlers messed up handling of any link containing "on" :D Fixed, hopefully retaining control of on handlers in all cases
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3320 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-13 22:03:24 +00:00
Paul S. Owen
8115a40d0c Fix redirect extra slash when no script_path or / specified
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3319 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-13 18:54:16 +00:00
Paul S. Owen
c7a2433c3c Fixed incorrect naming of indexes on privmsg and session table ... SuGa noted this
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3318 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-13 16:35:57 +00:00
Paul S. Owen
74c5b16a3d pooh bum crap ... how did I miss these, they were even listed in the private forum ... doh ... all afternoon I spent correcting patch errors ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3308 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-10 21:28:10 +00:00
Paul S. Owen
44d3b549ea Minor remaining XHTML oversight for checked status
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3301 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-10 13:37:53 +00:00
Paul S. Owen
5c2eda3308 unclosed type fields and a couple of missing classes on textareas
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3300 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-10 13:36:19 +00:00
Paul S. Owen
88731651b0 Changes to add session_id to newest redirect were failing ... fixed
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3299 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-10 13:27:35 +00:00
Paul S. Owen
94856fcb83 And why in hell didn't these commit ... they were in the list "days" ago ... ggrrr
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3298 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-10 13:22:00 +00:00
Paul S. Owen
6b801753e1 Stupid, damn bbcode parser issues with < and > within [code] with HTML disabled fixed
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3297 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-10 13:21:24 +00:00
Paul S. Owen
b22e1663d1 ERROR => GENERAL_ERROR and set s_hidden_fields to nowt in search
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3289 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-09 00:17:23 +00:00
Bart van Bragt
99a8e49233 Prevent message_die() from being called recursively (by accident :D)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3288 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-08 22:53:39 +00:00
Paul S. Owen
e32168e851 Removed requirement for [url=www|ftp] for all urls
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3276 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-08 16:56:06 +00:00
Paul S. Owen
9d5ce51cfd This one may even work ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3275 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-08 11:26:52 +00:00
Paul S. Owen
9ff68ef0c2 Damn it I could've sworn this was committed last night ... guess I only corrected it in the bug report response ... maybe this is why phpbb.com is failing assuming James used CVS
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3274 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-08 11:12:28 +00:00
Paul S. Owen
e1f2ce6d91 Update the whois thingy ... 2.2 handles this much more nicely ... but then I would say that ..
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3273 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-07 20:51:34 +00:00
Paul S. Owen
a08284ef35 Quote removed header string
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3266 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-07 17:46:37 +00:00
Paul S. Owen
c684a0b193 Initial version by mrmot
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3261 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-06 17:35:58 +00:00
Bart van Bragt
42f0fc5b6c Fixed relative path problem for admin/
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3260 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-06 09:30:12 +00:00
Bart van Bragt
ac210d84cc Some minor issues for 2.0.4 release
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3259 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-06 09:18:35 +00:00
Paul S. Owen
13006a5e44 missing concat operator ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3258 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-05 02:36:00 +00:00
Paul S. Owen
51f8aa7d1a Missed session_id hidden field
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3257 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-05 02:23:30 +00:00
Paul S. Owen
78141e5fb3 Changed ERROR to GENERAL_ERROR
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3256 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-05 01:06:40 +00:00
Paul S. Owen
197e49b9e1 Initial version by Mrmot and psoTFX
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3255 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-04 17:06:51 +00:00
Paul S. Owen
1780a53806 Minor change to patch/files file naming
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3254 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-02 22:23:23 +00:00
Paul S. Owen
bab01a2082 Initial version by ProTON
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3253 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-02 20:45:32 +00:00
Paul S. Owen
947f86bda7 Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3252 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-02 20:38:14 +00:00
Paul S. Owen
a420ab52a1 regex for word splitting on search was failing to pick up on numerals
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3251 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-02 15:46:34 +00:00
Paul S. Owen
9889418592 Wrong constant for message_die
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3250 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-02 15:43:59 +00:00
Paul S. Owen
61ad7c9017 Minor error in redirect url creation
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3249 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-01-02 15:39:36 +00:00
Paul S. Owen
e5988e7f2a Minor change
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3248 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-31 21:26:14 +00:00
Paul S. Owen
623235bd76 Wrong variable name
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3247 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-31 13:49:17 +00:00
Paul S. Owen
f50e2d0df9 Server port in wrong place in URL
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3246 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-28 12:21:55 +00:00
Paul S. Owen
c7d15ef2fb Fix voting and splitting issues
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3245 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 23:49:56 +00:00
Paul S. Owen
e6bb539d92 Fixed failure on no forums
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3244 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 18:46:26 +00:00
Paul S. Owen
03253054fa More forum deletion fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3243 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 17:12:47 +00:00
Paul S. Owen
e5890dfe08 Note availability of language packs before continuing with install
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3242 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 17:03:36 +00:00
Paul S. Owen
28616070f9 Fix failure in SQL when deleting forums
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3241 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 16:39:41 +00:00
Paul S. Owen
3dcd73abaf Fix error with regexp character class ... hopefully
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3240 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 16:37:15 +00:00
Paul S. Owen
dabcb97b2c Updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3239 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 16:07:24 +00:00
Paul S. Owen
485f127717 Reintroduce setting of email subjects from source ... will only be used where an email template doesn't contain an appropriate subject line. Note this may lead to users having email subjects in a language other than that they selected.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3238 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 16:01:16 +00:00
Paul S. Owen
c9f34d9ba3 To translators ... please remember NOT to alter Charset: or Subject: these must remain in English and laid out in the specific way you find them. What comes after the : is what you can alter. Thanks.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3237 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 15:47:20 +00:00
Paul S. Owen
0b0d08598a Add that realpath thing to unlinking avatars
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3236 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 15:41:22 +00:00
Paul S. Owen
f3242fbc42 Fixed non-update of DB when deleting avatar
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3235 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 15:37:11 +00:00
Paul S. Owen
da84d54cfa Fix binary comparison instead of equivalence ... caused smilie_url to be set to '' when adding new smiley
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3234 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 15:34:01 +00:00
Paul S. Owen
d0022d47a0 Alter topic watch entries when splitting topic
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3233 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 15:30:01 +00:00
Paul S. Owen
0f08995ef9 Remove trim from $mail_to to allow bcc only sends.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3232 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 15:09:17 +00:00
Paul S. Owen
7d401823a1 Another minor issue
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3231 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 12:57:17 +00:00
Paul S. Owen
fae6edce22 Minor correction
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3230 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 12:45:53 +00:00
Paul S. Owen
3ef2edbd0b Couple of minor issues
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3229 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 12:44:25 +00:00
Paul S. Owen
520cade040 Remove extra list item tags
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3228 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 12:36:18 +00:00
Paul S. Owen
77f2112a98 Path updates for language file select list generation
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3227 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 12:20:35 +00:00
Paul S. Owen
de4800e9aa Missing variable names in language file select list generation ..
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3226 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 12:18:34 +00:00
Paul S. Owen
28aa87f232 a few more questions
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3225 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 02:11:03 +00:00
Paul S. Owen
b4db6b022d A little more up to date
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3224 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-22 01:29:03 +00:00
Paul S. Owen
11a9511c75 More fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3223 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-21 21:49:21 +00:00
Paul S. Owen
5d8b228bb0 "Fix" for realpath and Lycos?
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3222 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-21 19:09:57 +00:00
Paul S. Owen
6f9d59a4a6 Yep, more fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3221 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-21 18:31:54 +00:00
Paul S. Owen
3a07d77b03 missing ;
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3220 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-21 12:56:07 +00:00
Paul S. Owen
2924aa13b3 More fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3219 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-21 00:15:13 +00:00
Bart van Bragt
d7e4ddef5b Added fix for bug #120 to changelog
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3218 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-20 14:08:29 +00:00
Bart van Bragt
bfc7f0c2ce Fixed bug #120, stripslashes in config table from 1.x and fixed parse error
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3217 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-20 14:04:59 +00:00
Paul S. Owen
d98cd83286 More fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3216 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-20 13:47:58 +00:00
Paul S. Owen
2218ada18e Mostly bbcode issues with quoting ... should all now be fixed ... he says + remove align="right" from viewtopic post table so Mozilla doesn't mess up
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3215 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-20 01:24:10 +00:00
Paul S. Owen
c9e575c8eb Various fixes, see CHANGELOG
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3214 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-19 17:17:40 +00:00
Paul S. Owen
8ff23f5010 Windows format ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3213 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-19 14:49:14 +00:00
Paul S. Owen
f5e583cee9 bbcode img updates/fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3212 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 23:38:12 +00:00
Paul S. Owen
ef0141b050 more fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3211 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 23:09:01 +00:00
Paul S. Owen
16547d41d7 hello
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3210 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 15:58:34 +00:00
Paul S. Owen
40760ce391 Bye
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3209 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 15:57:46 +00:00
Paul S. Owen
78d9e80ec9 Various grammar fixes by Cluster
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3208 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 15:40:21 +00:00
Paul S. Owen
3b8e53ecf7 Mainly HTML fixes, change to try and prevent on* text within HTML tags (HTML parser seems to not be behaving with disallowed tags as it should), etc.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3207 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 14:14:11 +00:00
Paul S. Owen
fdc90ab03e Some initial changes related to altered locations of install files
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3206 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 01:26:00 +00:00
Paul S. Owen
4c29338700 HTML/img/css path changes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3205 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 01:10:45 +00:00
Paul S. Owen
2c472b1c2a redirect change
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3204 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 01:07:30 +00:00
Paul S. Owen
f78e9d03b7 Redirect and SID updates ... add SID by default to all new sessions as they are created
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3203 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 01:06:19 +00:00
Paul S. Owen
eda0907757 redirect upon completion
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3202 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 01:05:54 +00:00
Paul S. Owen
362eaddd97 Fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3201 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 00:29:43 +00:00
Paul S. Owen
650e7bc287 Tis a far, far better thing we do ... hold on, we're being deleted, how in hell can that be a far far better thing we do? ... arrrgghhhh, no, no, ....
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3200 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 00:01:26 +00:00
Paul S. Owen
f4472c5bbf Schema moves
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3199 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-18 00:01:06 +00:00
Paul S. Owen
c7a335db28 Introduce check for existence of install/ and contrib/
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3198 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-17 23:59:37 +00:00
Paul S. Owen
0fe8239f49 Centralise install ... as per 2.2 ... de-template install, moved schemas, introduce better language support in install ... add check for deletion of this and contrib/ in common.php
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3197 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-17 23:59:07 +00:00
(no author)
5c642ad782 This commit was manufactured by cvs2svn to create branch 'phpBB-2_0_0'.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3196 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-17 23:59:07 +00:00
Paul S. Owen
c1abb67433 2.2 style install directory
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3195 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-17 23:55:19 +00:00
Paul S. Owen
bfbcc87f90 Time for tubby, err, install bye bye
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3194 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-17 20:59:45 +00:00
Paul S. Owen
124ea7bd31 Wrong name ... I checked it twice too ... doh
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3193 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-15 16:11:44 +00:00
Paul S. Owen
932baa5805 Okay, lets try it again ... using the correct name this time ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3192 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-15 16:11:32 +00:00
Paul S. Owen
b63d771c05 Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3191 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-15 16:11:32 +00:00
Paul S. Owen
33da2184e9 Nearly there
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3190 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-14 13:07:55 +00:00
Paul S. Owen
38a044ceea Make compatible with document system
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3189 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-13 14:30:43 +00:00
Paul S. Owen
1e1b2150d1 oops, not needed
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3188 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-11 20:35:09 +00:00
Paul S. Owen
20d5fc0aa3 Change guest username validation in line with how registered usernames are checked
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3187 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-10 18:39:33 +00:00
Paul S. Owen
aab01d335a Fixed guest username editing issue
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3186 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-10 18:31:24 +00:00
Paul S. Owen
afe3c78113 Minor update to topic syncing section for updating from early revisions.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3185 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-10 18:26:30 +00:00
Paul S. Owen
1812ce9066 blah
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3184 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-10 18:20:36 +00:00
Paul S. Owen
ec32d88852 Fix maxlength
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3183 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-10 18:17:24 +00:00
Bart van Bragt
9d46d7b06c Fixed some problems with gzip in combination with newer PHP versions and Mozilla
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3182 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-10 11:13:58 +00:00
Bart van Bragt
d064cf79aa Changed to reflect changes to select functions
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3181 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-10 10:39:59 +00:00
Paul S. Owen
1a0c769d09 Update
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3180 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-06 14:37:55 +00:00
Paul S. Owen
3422dc8b8c Fix possible scipting issue with username search
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3179 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-06 14:35:36 +00:00
Paul S. Owen
0676814588 Reduce the PM counter update query count
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3178 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-05 19:13:46 +00:00
Paul S. Owen
4913598104 Make lots of changes, resync PM counters, clear out stopwords and common words, optimize/vacuum db where applicable ... functional on MySQL not checked on any other DB at present ... feel free to test and report back,
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3177 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-05 18:30:49 +00:00
James Atkinson
202380026e Inital import, thanks for Hrvoje Stankov from www.spirit.hR
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3176 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-04 16:21:52 +00:00
Paul S. Owen
865d4c9998 redirect on save
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3175 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-04 16:11:24 +00:00
Paul S. Owen
4035e1e404 *** empty log message ***
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3174 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-04 16:06:53 +00:00
Paul S. Owen
93dac10dbf More fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3173 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-03 20:55:37 +00:00
Paul S. Owen
32830195ee More updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3172 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-03 20:34:54 +00:00
Paul S. Owen
84696ccc75 oops, check on logout, not login
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3171 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-03 20:22:35 +00:00
Paul S. Owen
33e6a01b4e Missed closing " in type declarations
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3170 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-03 19:12:00 +00:00
Paul S. Owen
9f138d01f6 More sid checks ... perhaps a bit OTT but better "safe" than sorry
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3169 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-03 18:03:00 +00:00
Paul S. Owen
7e6340e34d Missed a couple
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3168 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-03 17:47:40 +00:00
Paul S. Owen
1bae35bb04 session_ids to forms and other items
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3167 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-03 17:44:02 +00:00
Paul S. Owen
48685db071 preg delimiter changed
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3164 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-03 00:37:23 +00:00
Paul S. Owen
f4960dca9e strip_tags from various profile fields; username, email, interests, etc. ... probably end up annoying people but hum ho
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3163 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-03 00:21:44 +00:00
Paul S. Owen
fcb6c75dbc Update version numbers
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3162 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-03 00:03:33 +00:00
Paul S. Owen
9379e355cd Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3160 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-02 21:32:08 +00:00
Paul S. Owen
89cf74c066 Couldn't edit first post to add poll even if allowed
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3159 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-02 19:00:18 +00:00
Paul S. Owen
b92fa02d50 Replace the old Redirect HTTP code when we detect CGI IIS/etc. ... to try and ensure cookie is delivered (I knew we changed this for a reason ...). Let's see if this works
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3158 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-02 17:01:50 +00:00
Bart van Bragt
c993b7baeb Some small typos in the dutch language files
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3157 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-02 11:12:08 +00:00
Bart van Bragt
653b3d2661 Fixed bug #1060, title for viewonline.php
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3156 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-02 10:53:42 +00:00
Paul S. Owen
12b2809cea Updates from Fredrik
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3155 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-12-01 17:47:25 +00:00
Paul S. Owen
4ef1441bea redirect header changes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3154 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-30 21:37:45 +00:00
Paul S. Owen
6de7055e80 subSilver missing class fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3153 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-30 17:17:28 +00:00
dougk_ff7
c27b7e010b Ok, these are just fixes for a few bugs I saw while digging around all
of the different pages.  Everything else looks fine.  I dunno if I
interrupted something, but admin_board's call to lang_select() and
style_select() is inconsistant.  lang_select() requires the directory be
passed *without* $phpbb_root_dir tacked on, it will add it later.
style_select(), however requires that the root directory be added before
calling the function.  Wierd...


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3152 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-29 06:58:37 +00:00
dougk_ff7
d37ab45ff3 This is what I needed to finish to make phpBB compatible with PHP
4.2.3/Apache2.  I dunno exactly why it won't work as-is, but this patch
should fix it.  I will do minor testing here.


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3151 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-29 05:46:17 +00:00
Bart van Bragt
2e7c2d987c Added $phpbb_root_path to language_select
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3150 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 21:33:13 +00:00
Paul S. Owen
e8f76a0091 Missing class="post" tags ... hopefully this doesn't break everything (I've not checked them individually ... just randomly), some user management things ... note the user admin is still not in sync with user profile ... one has to be altered.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3149 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 16:27:00 +00:00
Paul S. Owen
dffcc62a01 Fixed failure to output data in MySQL
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3148 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 16:04:27 +00:00
Paul S. Owen
1be87672a2 Prevent replacement of censored words within < and >
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3147 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 15:11:02 +00:00
Paul S. Owen
e2eceeb357 Re-add old html parsing setup for those that need/want it ... commented out by default
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3146 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 14:47:12 +00:00
Paul S. Owen
bea96c8cdf More fixes, bbcode size, html script issue
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3145 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 14:28:39 +00:00
Paul S. Owen
6824099d44 Updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3144 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 13:50:23 +00:00
Paul S. Owen
4b6ea4e208 Think this allows bbcode to handle strange chars beyond domain name but prevent breaking out the url, inserting script tags, javascript:xxxx etc.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3143 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 13:50:13 +00:00
Paul S. Owen
f0b0f73bf3 Add Priority fields to email headers ... apparently may help with some agressive anti-spam systems on hotmail et al
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3142 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 13:01:37 +00:00
Bart van Bragt
a624f789c6 I really should be doing something for my exam :\
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3141 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 08:48:17 +00:00
Bart van Bragt
01ef526ae1 Fixed bug #1049, Can't quote properly on MS-SQL
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3140 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 08:40:56 +00:00
Paul S. Owen
5776168e55 That's it for me tonight ... come back tomorrow for another thrilling installment in the "phpBB2 bug show"
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3139 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 02:47:08 +00:00
Paul S. Owen
84e3c54967 Add a few trims to remove any excess newlines ... hopefully this won't cause problems ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3138 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 02:36:37 +00:00
Paul S. Owen
c2ef430e67 Minor typo
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3137 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 02:28:44 +00:00
Paul S. Owen
e580cd8df5 echo
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3136 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 02:20:22 +00:00
Paul S. Owen
c513153d43 If you were guessing these were fixes then ... HAH! ... you were ... right.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3135 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 02:02:38 +00:00
Paul S. Owen
0ea2745777 The original functions_post notifications "fix" was absolute tosh ... this is my second attempt which remembers that emails may be in different languages ... also significant altered the email class subject/charset match ... hopefully fixes the various issues seen with this.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3134 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 01:46:43 +00:00
Paul S. Owen
d51c358ddb More fixes, prune everything option (for forum admin), minor change to avatar mime type preg ... see if that helps with certain "doesn't match image type" issues
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3133 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 01:00:32 +00:00
Paul S. Owen
ca6ad31ff8 *** empty log message ***
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3132 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 00:39:37 +00:00
Paul S. Owen
555b37d28f Change topic notification default to 0
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3131 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 00:16:03 +00:00
Paul S. Owen
f6f800a017 It's like a production line this ain't it ... any colour so long as it's subSilver ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3130 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-28 00:11:39 +00:00
Paul S. Owen
3a76df78a5 Had already added Bart's fixes as they entered CVS :)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3129 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 23:54:25 +00:00
Paul S. Owen
f601dada33 Grammatical errors 'fixed' - Cluster ... NOTE, these are not new strings and little has changed within them ... it is very unlikely that new translations are required so please do not be overly concerned with updating your packages.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3128 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 23:47:57 +00:00
Bart van Bragt
669ffaa6bc Added some more
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3127 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 23:46:04 +00:00
Paul S. Owen
a5eb46fc59 You guessed it ... minor change to emailer, db checks, sid updates for utils
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3126 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 23:37:14 +00:00
Bart van Bragt
64a8cb786a Fixed bug #697, MSNM URL in PMs
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3125 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 23:29:37 +00:00
Bart van Bragt
c53d9206f0 Fixed bug #925. append_sid() for Mozilla navbar
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3124 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 23:19:50 +00:00
Bart van Bragt
48f5c7155b Fixed bug #774, added as global var to message_die()
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3123 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 23:14:38 +00:00
Bart van Bragt
2c96fbf9a1 Fixed bug #664, Private_message instead of Private_Message
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3122 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 23:09:16 +00:00
Paul S. Owen
4668b1090c More fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3121 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 22:57:51 +00:00
Bart van Bragt
2bb3912a6c Fixed bug #753, group_signle_user, typo
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3120 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 22:45:43 +00:00
Bart van Bragt
627912d354 Check the approve checkbox by default
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3119 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 22:25:03 +00:00
Bart van Bragt
8aaad9dd8a Fixed bug #789, banlist not updated when user is deleted
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3118 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 22:23:33 +00:00
Bart van Bragt
3798f5fd85 Fixed bug #722, typo in error message
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3117 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 21:51:38 +00:00
Bart van Bragt
ac4904b770 Fixed bug #734, privmsgs_text wasn't being deleted when a box is full
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3116 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 21:25:08 +00:00
Bart van Bragt
33ec3a07cb Fixed bug #844, admin can't upload avatar for user
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3115 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 20:57:13 +00:00
Bart van Bragt
1a7b28a2f8 Fixed bug #809, user_allowsmiles instead of user_allowsmile
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3114 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 18:40:49 +00:00
Bart van Bragt
95e644339a Fixed bug #806, incorrect alt-text for stop watching topic
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3113 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 18:37:08 +00:00
Bart van Bragt
bbd4aa6e7d Fixed bug #728, privmsgs bar layout
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3112 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 18:26:47 +00:00
Bart van Bragt
b954735776 Fixed bug #694, forum status is missing from several language files
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3111 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 18:20:49 +00:00
Bart van Bragt
453d6146bb Fixed bug #666 :) Empty smiley code could be added
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3110 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 17:35:40 +00:00
Bart van Bragt
abe31cd088 Fixed charset issue in install (bug #647)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3109 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 17:26:08 +00:00
Paul S. Owen
f3530a69a8 More bug fixes ... but you guess that right? If anyone feels like testing these changes please try the topic notification feature since it's undergone a few updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3108 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-27 16:06:33 +00:00
Paul S. Owen
b21463b2ab More updates, append sid to admin browsing
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3101 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-26 11:42:12 +00:00
Bart van Bragt
d996f4e3f9 Fixed indentation/bracket problem
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3093 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-25 21:50:51 +00:00
Paul S. Owen
d866cedd1c More fixes and updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3091 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-25 18:04:51 +00:00
Paul S. Owen
f7b6abc407 What the heck this may as well be in CVS too
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3087 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-24 23:02:09 +00:00
Paul S. Owen
7941554f9d What the heck ... this may as well be in CVS too.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3086 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-24 23:00:48 +00:00
Paul S. Owen
b202750e4b More updates and fixes ... still not fixed error in admin_users
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3085 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-24 22:59:45 +00:00
Paul S. Owen
31b80c4278 Don't run this yet! Or you'll screw your chances of having various issues sorted in the future!
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3084 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-24 22:57:58 +00:00
Paul S. Owen
73650b59c7 Yet more fixes ... note there is a bug in user admin at present
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3083 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-24 16:22:52 +00:00
Paul S. Owen
95c6156b4a oops, those should've been in a update_to_204.php ... erm.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3082 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-23 23:01:24 +00:00
Paul S. Owen
dcceaa48ca A whole bunch of fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3081 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-23 22:56:41 +00:00
Paul S. Owen
795897d882 Damn it, another PHP3 oversight ... I could happily "damage" the person who noted this to the security lists ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3080 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-22 12:33:51 +00:00
Paul S. Owen
14fd9d195b Used foreach ... changed for for for PHP3 compatibility
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3079 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-22 12:31:33 +00:00
Paul S. Owen
e8a901c6e8 fixed another cross-browser scripting issue, thanks to cristiro for noting the problem
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3076 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-21 22:24:32 +00:00
James Atkinson
b288e4a352 Fixed missing ( causing a parse error.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3069 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-20 15:54:41 +00:00
Paul S. Owen
aafe30bd76 Various updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3051 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-14 23:31:32 +00:00
Paul S. Owen
5d9e2e330d Missing file, translation by xEik
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3050 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-14 23:24:57 +00:00
Paul S. Owen
8505ee9de4 Right name
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3049 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-14 15:41:39 +00:00
Paul S. Owen
c784304fcd Wrong name
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3048 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-14 15:41:21 +00:00
Paul S. Owen
6f4936debd Missing
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3047 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-14 14:32:56 +00:00
Paul S. Owen
397c544558 Missing
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3046 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-14 14:10:45 +00:00
Paul S. Owen
149128b1ec Changed bbcode img tag anchor to local phpbb logo
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3045 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-14 14:00:15 +00:00
Paul S. Owen
6695cd4505 For compatibility with russian tu language pack
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3044 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-14 00:23:09 +00:00
Paul S. Owen
8efa30e000 Updates to 2.0.3
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3043 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-14 00:19:14 +00:00
Paul S. Owen
5479eeae46 Initial versions
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3042 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-14 00:07:33 +00:00
Paul S. Owen
6ed9330f33 Requested updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3041 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-13 23:53:04 +00:00
Paul S. Owen
f97236042e Various updates to 2.0.3
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3040 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-13 23:38:58 +00:00
Paul S. Owen
7385ad161a Various updates to 2.0.3
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3039 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-13 23:28:53 +00:00
Paul S. Owen
4b5f77c18d Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3038 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-13 23:23:27 +00:00
Paul S. Owen
80f8ab686d Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3037 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-13 23:05:22 +00:00
Paul S. Owen
0bbd60b6d7 Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3036 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-13 22:51:59 +00:00
Paul S. Owen
2870f13eff Same as informal lang_german, required for formal localisation
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3035 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-13 22:50:24 +00:00
Paul S. Owen
94020d36d4 Initial versions
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3034 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-13 22:50:24 +00:00
Paul S. Owen
8b194f9a20 Updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3033 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-13 22:44:21 +00:00
Paul S. Owen
b88000a869 Initial versions
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3032 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-11-13 22:36:48 +00:00
Paul S. Owen
449e8a8c1e Initial versions
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2967 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-10-23 18:03:30 +00:00
Paul S. Owen
ba96a2b747 Recommit whole lot
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2966 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-10-23 17:40:16 +00:00
Paul S. Owen
3366d1ab75 stupid stupid stupid cvs
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2965 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-10-23 17:37:05 +00:00
Paul S. Owen
1aac177860 Save as UNIX format ... solve charset line appearance?
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2964 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-10-23 17:35:47 +00:00
Ludovic Arnaud
437c6e7d48 Should help reducing the number of SQL processes not dying.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2961 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-10-21 04:49:04 +00:00
Paul S. Owen
c28993a5cf Remove array indexes for easymod
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2940 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-10-07 22:42:43 +00:00
dougk_ff7
6913351af7 This is an attempt to remove problems with "file_exists()" calls in later
versions of PHP.  From what I can tell, PHP requires a full path to
file_exists() in newer versions, and realpath() will fix it.  I noticed that
file_exists() doesn't need to have a full path passed to it in older versions,
so I just made a fake function, realpath() that will only define itself
if realpath() isn't defined. It may or may not work, it seems to work here
on PHP 4.2.3, but if it breaks older versions, please *LET ME KNOW* or
change it. Because I changed this so quickly, I don't know if everything works
exactly. Really, PM or email me if it doesn't.  Cross your fingers! :D

Thanks!
dougk_ff7
dougk_ff7@phpbb.com


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2935 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-10-06 00:47:46 +00:00
Paul S. Owen
a3d3c7c74f Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2911 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-10-01 09:59:13 +00:00
Paul S. Owen
10e35deb72 Updates by Taek Lee
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2908 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-28 13:29:53 +00:00
Paul S. Owen
66653218be Change the version number for 2.0.2 ... doh!
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2907 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-28 12:52:23 +00:00
Paul S. Owen
d364392c45 Replace the outer row offset ... I'm sure I removed this for a reason but the problems it's caused seem widespread so .. hopefully this won't add new (or old) problems ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2906 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-28 12:50:59 +00:00
Paul S. Owen
097d77ee26 Version update
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2905 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-28 12:48:19 +00:00
Paul S. Owen
5f6ea66783 Renamed
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2904 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-27 13:34:39 +00:00
Paul S. Owen
a1cb88c0c2 Wrong name
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2903 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-27 13:34:34 +00:00
Paul S. Owen
68a0dc0a7c Initial versions ... third go lucky ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2902 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-27 13:28:32 +00:00
Paul S. Owen
f6365e0a91 Initial versions
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2901 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-27 13:28:31 +00:00
Paul S. Owen
114d2ea137 Initial version [ renamed ]
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2900 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-27 12:42:36 +00:00
Paul S. Owen
961e667ca1 Gone bye bye
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2899 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-27 12:38:38 +00:00
Paul S. Owen
54df210f78 Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2898 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-27 10:46:11 +00:00
Paul S. Owen
8cd9af046d Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2897 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-27 10:38:34 +00:00
Paul S. Owen
1bf50be9d5 Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2896 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-27 10:33:01 +00:00
Paul S. Owen
908068d066 Guess
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2895 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-20 11:50:18 +00:00
Paul S. Owen
04a005c00a Various fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2894 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-20 11:40:38 +00:00
Paul S. Owen
86a54358d0 Doing this stuff over VNC is a real pita ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2892 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-09-18 12:10:22 +00:00
Paul S. Owen
53fccac865 phpbb_groups needs IDENTITY ON/OFF with the re-addition of IDENTITY to the schema ....
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2887 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-08-24 00:51:33 +00:00
Paul S. Owen
8fcd2ca56e Replaced by lang_slovak
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2886 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-08-24 00:11:34 +00:00
Paul S. Owen
7f81f6e4dc Initial versions
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2885 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-08-24 00:10:58 +00:00
Paul S. Owen
790132bae4 Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2884 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-08-23 23:59:48 +00:00
Paul S. Owen
352d642192 Initial versions by Azu
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2883 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-08-23 19:21:57 +00:00
dougk_ff7
659c91e7d7 Updated version number
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2844 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-08-08 18:06:53 +00:00
dougk_ff7
8b0f0905ef Ok, this goes back to the way it was with one change to make everything work well... It may not be RFC-compliant, but it works...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2843 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-08-07 22:36:33 +00:00
dougk_ff7
b71f0c9400 Why did I have to do that???
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2842 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-08-07 17:21:09 +00:00
dougk_ff7
4b896717cc Oops, forgot to define $board_config as a global....
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2841 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-08-07 17:20:31 +00:00
dougk_ff7
86de719df5 Probably the last bug fix for a little, just a minor issue with the
italic HTML tags not being closed properly... Not necessarily a major
problem, but it was easy enough to fix...


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2818 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-08-04 17:21:22 +00:00
Paul S. Owen
3ea8262295 intval $user_id
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2815 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-08-03 22:24:13 +00:00
dougk_ff7
6a29bf5c26 Ok, stupid me... this one should work :|
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2797 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-31 19:14:46 +00:00
dougk_ff7
cf29f6bacc Ok, it's that time again! Well, in preparation for the release of 2.0.2, I
have created the update file.  The update has a schema change in the
phpbb_groups table; the group id is now auto-increment.  This should solve
a problem in upgrade.php, as well as make some scripts a little more
efficient.  The update script will take care of the required changes, as
none of the PHP files mentioned above will work without the group_id set
as auto_increment.

That's all for now!
dougk_ff7


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2796 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-31 18:50:25 +00:00
dougk_ff7
1a6592ff43 Oops...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2787 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-29 12:24:19 +00:00
dougk_ff7
cc6efeb5fd Ok, so many bug fixes, so little time... Fun... Well, the change to
mysql_schema was just changing the phpbb_groups group_id to auto
increment, should fix problems in upgrade.php.  Should.  I will probably
include any relevant schema changes with a nice update_to script in 2.0.2
;)


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2785 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-29 05:04:04 +00:00
Paul S. Owen
180dac9e87 Set default timezone entry for anon user
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2734 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-24 22:07:50 +00:00
Paul S. Owen
f6799a7f55 Bye bye
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2733 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-24 21:58:04 +00:00
Paul S. Owen
337dd98fd4 Fix missing group_id in upgrade, move fulltext search indexing to last operation ... it failing won't result in a half upgraded board
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2732 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-24 21:43:51 +00:00
Paul S. Owen
0bb1c8b13a Clear topic_mod ... Lars Janssen
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2731 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-22 13:12:23 +00:00
Paul S. Owen
572989afb7 Slight mod to avatar url rex, the rawurlencode seriously broke things so removed it ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2730 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 22:39:25 +00:00
Paul S. Owen
df848a295c Reduce user post count when deleting topics ... this could be troublesome on big topics with lots of posters ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2729 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 22:19:34 +00:00
Paul S. Owen
8054ef2b71 intval user_id as per Ashe's suggestion
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2728 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 22:19:08 +00:00
Paul S. Owen
b780732eba Attempt to increase timeout while sending notifications ... need a better solution, why can't PHP multitask ... !
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2727 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 22:18:55 +00:00
Paul S. Owen
0497391227 Default forum for make_forum_select
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2726 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 17:03:50 +00:00
Paul S. Owen
2594f7b0a6 Delete existing uploaded avatar when switching to a gallery image ... hopefully
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2725 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 16:36:50 +00:00
Paul S. Owen
9aa482c766 DO NOT leave \n at the end of included files please ... it can cause problems if extra headers are output by subsequent programs. Strip closing newlines before commiting, thanks
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2724 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 16:14:16 +00:00
Paul S. Owen
e94aaa3eeb Fixed HEAP MAX_ROWS
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2723 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 15:58:17 +00:00
Paul S. Owen
c7df88978b username maxlength was too long
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2722 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 15:45:15 +00:00
Paul S. Owen
edba80b97c Added ( and ) to URL [url] rex
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2721 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 15:28:49 +00:00
Paul S. Owen
a6de878b13 Quote # in rex for username validations
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2720 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 15:22:36 +00:00
Paul S. Owen
2f706c5bbf Missing var defn, relied on globals ... tut tut
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2719 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 15:19:31 +00:00
Paul S. Owen
ecdb504cc8 Missing word replacements ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2718 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 14:55:09 +00:00
Paul S. Owen
db45c0c0df apply patch for apparent issue with \r\n feedbacks on charset line in template
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2717 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 14:37:58 +00:00
Paul S. Owen
a001b7762a Bug fixes ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2716 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 14:10:07 +00:00
Paul S. Owen
0a5168ba6a Fix trailing , on email addresses
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2715 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-19 13:48:24 +00:00
Paul S. Owen
e79bed4383 Various updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2683 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-14 17:09:47 +00:00
Paul S. Owen
abab54665b Updates for 2.0.1
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2682 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-14 17:06:00 +00:00
Paul S. Owen
0c60e67075 Various updates ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2681 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-14 17:05:20 +00:00
Paul S. Owen
6d410527db 2.0.1 compatible I believe
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2680 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-14 17:02:34 +00:00
James Atkinson
0f712ff771 Added a fix for smillies_pass function by Ashe
See this topic for details:
http://www.phpbb.com/phpBB/viewtopic.php?p=166905
Yeilds a very large performance increase on long topics


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2660 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-11 18:33:29 +00:00
dougk_ff7
9d5befd6da One last security bug by Ludovic Arnaud has been fixed... Forgot about
it last night...
--Doug


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2659 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-08 15:22:24 +00:00
Paul S. Owen
555935d62e We don't run is_auth here because it adds another query ... as per several previous discussions ... please run any query adding changes through the development forum first, ta muchly.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2658 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-08 10:30:41 +00:00
dougk_ff7
560ff29921 Ok, not too much here... just a little enhancement to the Jumpbox, along
with some security problems fixed.  All of them were found by Ludovic
Arnaud, with the exception of one, which was also found by Paranti.
I guess I'll be doing some more tomorrow, if I can find anything, but
that's it for tonight. (I'm tired...)

--Doug


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2657 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-07-08 06:09:11 +00:00
dougk_ff7
81bb18f372 Ok, by this time, bugs 397, 427, 429, 450, and 472 should be fixed.
--Doug


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2649 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-27 22:54:10 +00:00
dougk_ff7
a144cb10a5 Ok, fixing a few bugs here.... I still have more to do, but this fixes a
funny bug in login.php where redirect won't allow more than the file and
mode... Now it should work with posting (or any other page).  Also fixes a
typo in admin_db_utilities.php.

P.S. James, don't commit config.php. ;) Fortunately, it didn't seem like
you lost a password.... :D


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2648 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-27 21:26:46 +00:00
James Atkinson
f37d9e964d Fixes for bugs: 387, 519, 522, and 456
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2647 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-27 20:06:44 +00:00
dougk_ff7
35e91d29d5 Ok, I've done so much here, I can hardly remember what I've done...
There are various security updates throughout the commit, along with a few
bug fixes; I'll try to name them here.
---
Bug #453: Fixed.
Bug #485: Duplicate of #453, but still fixed.
Bug #476: Ok, the typo is fixed.
---
That should be it, but I'll have more fixes tomorrow. (Finally, I have
figured out regular expressions!!!)

--Doug


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2645 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-23 02:47:56 +00:00
Paul S. Owen
1d2a359ea1 Bug fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2639 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-20 17:01:23 +00:00
Paul S. Owen
12077e1d32 More commits that I thought I'd made ... lang packs on SF are same as these
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2638 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-20 16:25:57 +00:00
the_systech
e4164d3c70 "Fix" for "security" problem in install.php
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2637 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-17 21:23:38 +00:00
Paul S. Owen
72322e2cd1 Rotating IP workaround suggested by vHiker (this is already in the new 2.2 session object)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2635 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-14 16:35:14 +00:00
dougk_ff7
fb14e12508 Fixing bug 444
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2634 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-12 16:06:17 +00:00
dougk_ff7
9a89c2dff9 Fixes bug #448....
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2633 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-12 15:54:39 +00:00
dougk_ff7
1d354ca387 Ok, several things accomplished here...
1) Improvements to deletion of users in admin_users.
This includes bug 166 and Sourceforge tracker task #49374.

2) Two security holes were patched, both pointed out by
Nick Cleaton <nick at cleaton dot net>.
Thanks for letting us know, Nick!

That's about it for now, and it took almost all day. :P
Bye for now!
-Doug


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2632 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-12 05:33:54 +00:00
Paul S. Owen
922da96334 Not auto_increment'ed as per other fixes/bugs ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2620 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-04 11:53:11 +00:00
dougk_ff7
decbf0f1ec Ok, several bug fixes here...
The numbers are, 328, 340, 341, 344, 347, 351, 397, and 405.

The rest (that I have seen) will be fixed later.
-Doug


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2619 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-06-04 04:14:17 +00:00
the_systech
2c3be2d0a1 Left out username language variable...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2618 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-28 18:30:45 +00:00
Paul S. Owen
8fdfd892ff Updated for 2.0.1
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2617 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-27 11:58:51 +00:00
Paul S. Owen
880521d1ad Updates to 2.0.1
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2616 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-24 13:40:47 +00:00
Paul S. Owen
519f5466d5 Updates for 2.0.1
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2615 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-24 13:39:12 +00:00
the_systech
aac1375ecb Oops how'd that little buglet slip through.. search_results was in the table list twice
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2614 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-21 18:35:26 +00:00
Paul S. Owen
e1a31f9ce3 Fix dopey dickheadish error ... will re-issue 2.0.1 to stop people having this problem shortly.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2613 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-21 16:52:08 +00:00
Paul S. Owen
071a6f4cdd Updates for 2.0.1
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2611 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-21 13:30:37 +00:00
Paul S. Owen
cb8c5fe06b doh!
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2609 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-20 13:52:12 +00:00
Paul S. Owen
cabbd3c449 Updates for 2.0.1
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2608 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-20 13:44:19 +00:00
Paul S. Owen
e661383a19 Various minor updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2607 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-20 12:24:29 +00:00
Paul S. Owen
b3af2bd161 Forgot a file ... just had to didn't I ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2606 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-20 00:52:18 +00:00
Paul S. Owen
a30a2969f2 Send only a newline for email headers ... breaks RFC but appears to work with mail() ... will undoubtedly lead to some problems for some users ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2605 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-20 00:21:38 +00:00
Paul S. Owen
f489b53ddb Updates to 2.0.1
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2604 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-19 18:39:24 +00:00
Paul S. Owen
687c4b7a50 Various updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2603 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-19 17:37:34 +00:00
Paul S. Owen
22072615c2 Updates for 2.0.1
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2602 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-19 17:32:52 +00:00
Paul S. Owen
f782c5abc2 Various updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2601 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-19 16:43:57 +00:00
Paul S. Owen
82b4ae200f More fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2600 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-19 15:11:17 +00:00
Paul S. Owen
ec4c683a2d Various updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2599 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-19 15:02:08 +00:00
Paul S. Owen
089339d365 Fix lack of existing user check when promoting/demoting users to/from group moderator
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2598 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-19 14:03:51 +00:00
Paul S. Owen
6d903a0c32 Minor changes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2597 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-19 13:20:17 +00:00
Paul S. Owen
171851f033 Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2596 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-18 23:05:00 +00:00
Paul S. Owen
f16caf4e7e oops, now that would've been a problematical oversight :D
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2595 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-18 14:48:17 +00:00
Paul S. Owen
f585bec511 Well, after accidently mass emailing members of my own board (at least twice :oops: ) I think this is behaving now ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2594 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-18 02:20:09 +00:00
Paul S. Owen
e4f6f2019c Close DB connection for frameset ... overlooked that ... has this been causing the MySQL open connection problems I wonder?
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2593 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-17 22:58:18 +00:00
Paul S. Owen
694471feca Fix and clean up a few things, add in error checking, fix header output (hopefully).
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2591 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-17 21:42:27 +00:00
the_systech
95197ab48b Fix (hopefully anyway :) for nested code tag issues with bbcode
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2590 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-17 18:22:36 +00:00
Paul S. Owen
5efffc9c3d Ooops, missed a couple of things
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2589 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-17 13:57:52 +00:00
Paul S. Owen
d26a983a66 Updates to 2.0.1
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2588 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-17 13:55:41 +00:00
Paul S. Owen
4b48ebcb4c More updates ... added Date and Content-type/encoding output for the emails, updated all email templates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2587 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-17 13:14:05 +00:00
Paul S. Owen
999480b9fd Adds relevant Charset: statement to email templates that need don't have it.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2586 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-17 13:01:03 +00:00
Paul S. Owen
74a1d5ed27 Remove auto_increment from user and group fields since we're not currently using this ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2585 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-16 12:33:06 +00:00
Paul S. Owen
914764366a Hopefully add a work-around for user_timezone datatype change ... needs testing really.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2584 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-16 12:32:00 +00:00
Paul S. Owen
4eb94f9297 Various updates to 2.0.1
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2583 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-16 11:02:19 +00:00
Paul S. Owen
65cf2b59b7 Various updates ... still missing PostgreSQL user_timezone change ... it's a slight nightmare.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2582 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-16 01:15:48 +00:00
Paul S. Owen
56ca0b0045 oops, need to re-sync forums just in case too
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2580 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-14 15:25:34 +00:00
Paul S. Owen
290a897da4 More fixes ... hopefully corrects for moved topic/pagination issues ... needs testing (run update_to_201.php ... if you are already running 2.0.1 you'll need to modify the case statements in update_to_201 or necessary checks won't complete)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2579 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-14 15:19:20 +00:00
Paul S. Owen
beb36a67f9 Updates to 2.0.1
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2578 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-14 00:06:17 +00:00
the_systech
17175b644d Fix for not downloading additional_tables
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2577 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-13 22:00:37 +00:00
Paul S. Owen
364720a93d Minor reduction in search indexing to three letters ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2576 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-13 13:27:12 +00:00
Paul S. Owen
20748ac9d5 Added exit's after those header location redirects without them
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2575 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-13 13:18:18 +00:00
Paul S. Owen
64ab0a5a0d Initial version
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2574 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-13 11:39:09 +00:00
Paul S. Owen
2496bf0dfb Various updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2573 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-13 11:36:47 +00:00
Paul S. Owen
9fe7c358a1 More fixes and updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2572 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-13 01:30:59 +00:00
Paul S. Owen
6ca24b8a9f More fixes, addresses double activation attempt
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2571 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-12 17:57:34 +00:00
Paul S. Owen
801891caea Yep, more updates and fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2570 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-12 15:57:47 +00:00
Paul S. Owen
a37f7ae66d A number of additional changes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2569 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-12 15:33:28 +00:00
Paul S. Owen
81cee70298 Fix logout when cancelling a confirmation with URL based sid.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2568 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-12 01:36:08 +00:00
Paul S. Owen
5e53c2aab0 Reset row and rowset arrays before returning them.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2567 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-12 01:27:26 +00:00
Paul S. Owen
be14f298a5 Signature issues
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2566 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-12 01:21:57 +00:00
Paul S. Owen
9ec0e09657 Cause reload on submit into _top frame - 4bidden suggestion to fix multiple frames when redirected from login in admin
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2565 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-12 01:14:55 +00:00
Paul S. Owen
0735fb32b9 Loads of bug fixes and updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2564 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-12 00:47:41 +00:00
James Atkinson
88214ed58d Fixed bug #154
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2563 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-09 18:54:49 +00:00
the_systech
3e85b696f2 Oops.. Bugfix for #236
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2556 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-06 13:46:32 +00:00
Paul S. Owen
4b64d5d80f Removed setlocale ... hopefully the search changes negates the need for it
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2555 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-05 12:20:36 +00:00
Paul S. Owen
1ec82a534e Various updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2554 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-05 12:17:05 +00:00
Paul S. Owen
8fad35aac6 Initial version by JuniorZ
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2553 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-05 12:16:43 +00:00
the_systech
1804a89f77 Ok this should fix at least one of the issue with forum's getting out of sync...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2552 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-03 19:46:34 +00:00
the_systech
faae9f0570 Ok maybe it's actually fixed this time? :)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2551 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-03 16:26:52 +00:00
the_systech
bae83abc75 Fix for bug # 226 in the tracker
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2550 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-05-03 15:58:35 +00:00
Paul S. Owen
4054761ae3 Noted 'fix' for non-multibyte charsets and searching - RomanZu
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2548 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-30 12:09:24 +00:00
the_systech
142f3bd9d1 Fix for non-deleting of avatars
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2547 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-29 18:02:06 +00:00
the_systech
07335ca2c8 Missing closing select tag bug # 174 in the tracker
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2546 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-29 17:55:17 +00:00
the_systech
fefdfcd263 Fix for possible security issues..
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2545 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-29 14:45:07 +00:00
the_systech
ae1c52199f Fix for "vulnerability emailed to dev team..."
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2543 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-24 14:42:15 +00:00
the_systech
eee349ac19 Added 2002 to the copyright message..
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2542 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-22 17:11:37 +00:00
the_systech
f854f755da Oops missed on place using phpEx :)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2541 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-22 13:34:32 +00:00
Paul S. Owen
99e28c47fd wrong name
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2530 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-19 22:39:07 +00:00
Paul S. Owen
1678ced436 Initial version by dolfin
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2529 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-19 22:39:06 +00:00
James Atkinson
42c89f4450 Fixed bug #19, simple header not showing in error messages that needed it
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2528 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-15 14:48:42 +00:00
James Atkinson
6315e028f8 Fixed bug #144, removed unneeded span tags from admin config template
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2527 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-15 14:39:57 +00:00
James Atkinson
7a560c428e Fixed bug #143, missing closing a tag.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2526 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-15 14:35:17 +00:00
the_systech
1b8b015b55 since user_timezone is now a decimal/floating point number we have to cast it's return value as an integer to make sure it drops the .0 before using it as an array index..
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2525 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-11 17:53:41 +00:00
Paul S. Owen
91a8a1a808 bye bye
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2524 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-10 12:23:27 +00:00
Paul S. Owen
14fe4ae931 2.0.1 updater
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2523 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-10 12:22:53 +00:00
Paul S. Owen
8f8483f70b Missing span tag
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2522 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-09 14:39:51 +00:00
the_systech
bdf93990d6 Ok I'm an idiot.. variables work better with "$"'s in front of them..
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2521 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 15:46:59 +00:00
the_systech
c5837dafef Ok one more try at this one...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2520 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 15:36:17 +00:00
the_systech
4db7332c9d A likely fix for the quote table breaking behavior
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2519 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 15:02:24 +00:00
Paul S. Owen
82857b8d27 Various updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2518 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 14:44:13 +00:00
Paul S. Owen
1b068b8f0b Various updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2517 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 14:38:51 +00:00
Paul S. Owen
f96c5e9525 Changes in sessions means a reduction in complexity for viewonline and page_header
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2516 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 14:37:17 +00:00
Paul S. Owen
63e07737e8 Minor change to tag
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2515 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 13:29:53 +00:00
Paul S. Owen
20c7830148 oops
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2514 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 13:11:58 +00:00
Paul S. Owen
ecac20e037 Fix forgotten update of users table session info
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2513 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 11:56:45 +00:00
Paul S. Owen
63d65c1cf8 COPPA appears to be broken ... this should fix it
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2512 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 01:47:10 +00:00
Paul S. Owen
e73661dc36 Fix user_timezone problem (in association with new schemas) + fix setting of user_level for moderators
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2511 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 01:11:06 +00:00
Paul S. Owen
42bb31733c Another minor change to avatar upload capability check
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2510 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 00:51:50 +00:00
Paul S. Owen
3fe5a8fbb7 Change user_timezone type to decimal
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2509 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-08 00:17:41 +00:00
Paul S. Owen
be790f4533 Fix incorrect behaviour of allow view online when returning from avatar gallery
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2508 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 19:26:07 +00:00
Paul S. Owen
3101e28241 Fix issue with URI sid and post subject links
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2507 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 19:18:04 +00:00
Paul S. Owen
76e7a50813 Fix missing $phpEx in search redirections
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2506 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 18:33:12 +00:00
Paul S. Owen
87375379e4 Fix email address validation compliance + username wildcard problem
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2505 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 15:37:02 +00:00
Paul S. Owen
a4fd9a998d Fix doubled nowrap
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2504 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 15:19:01 +00:00
Paul S. Owen
23e3c0a1a7 A few more missed intval's
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2503 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 14:59:33 +00:00
Paul S. Owen
e924dd61d2 intval a number of variables
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2502 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 13:33:51 +00:00
Paul S. Owen
6960d4fdf1 Add uploadeable avatar check for strtolower(@$ini_val('file_uploads') == 'off')
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2501 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 00:58:51 +00:00
Paul S. Owen
9cf52055a6 Fix path bug
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2500 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 00:52:41 +00:00
Paul S. Owen
427be2243a Minor changes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2499 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 00:51:47 +00:00
Paul S. Owen
0e21269487 Fix ordering problem for topics
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2498 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 00:41:55 +00:00
Paul S. Owen
152f0c89ad Fix broken link to email form (also allow admins to view email button)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2497 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 00:28:22 +00:00
Paul S. Owen
366c858d63 Fix 'forget' topic type when previewing.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2496 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-07 00:21:50 +00:00
Paul S. Owen
ed75043f43 mispelt append_sid ...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2495 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-06 02:28:54 +00:00
Paul S. Owen
f7440097af Wasn't decrementing topic reply counter when deleting anything other than first or last post in a topic
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2494 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-05 19:48:56 +00:00
Paul S. Owen
e2e34b7f14 Fix missing user_id on redirect from login
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2493 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-05 17:01:53 +00:00
Paul S. Owen
abef20d100 Fix missing L_POSTS assignment
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2492 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-05 17:01:38 +00:00
Paul S. Owen
39c363eaa4 Fix broken links for images/text
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2491 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-05 16:41:09 +00:00
Paul S. Owen
9171afda89 Fix delete post image being replaced by text for normal users
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2490 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-05 15:11:29 +00:00
Paul S. Owen
d7e8b63e95 Update version numbers ... almost there
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2485 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-04 15:00:54 +00:00
Paul S. Owen
8d0445e1f0 Minor version messup
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2484 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-04 14:47:18 +00:00
(no author)
ff1d8ca150 This commit was manufactured by cvs2svn to create branch 'phpBB-2_0_0'.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2483 89ea8834-ac86-4346-8a33-228a782c2dd0
2002-04-04 14:47:18 +00:00
4569 changed files with 155365 additions and 414311 deletions

View File

@@ -1,143 +0,0 @@
build: false
clone_folder: c:\projects\phpbb
version: '{build}'
services:
- iis
environment:
matrix:
- db: mssql
db_version: sql2012sp1
php: 7.0
- db: mssql
db_version: sql2014
php: 7.0
- db: mssql
db_version: sql2016
php: 7.1.12
# - db: mssql
# db_version: sql2017
# php: 7.1
# - db: mariadb
# php: 7.1
# - db: mysqli
# php: 7.1
# - db: sqlite
# php: 7.1
# - db: postgresql
# php: 7.1
hosts:
phpbb.test: 127.0.0.1
init:
- SET PATH=%systemroot%\system32\inetsrv\;C:\Program Files\OpenSSL;C:\tools\php;c:\php;%PATH%
- SET ANSICON=121x90 (121x90)
- REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f
before_test:
- ps: |
Set-Service wuauserv -StartupType Manual
cinst -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
Get-ChildItem -Path "c:\tools\php$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1$2')" -Recurse |
Move-Item -destination "c:\tools\php"
cd c:\tools\php
cat php.ini-development | %{$_ -replace "memory_limit = 128M","memory_limit = 1024M"} | Out-File -Encoding "Default" php.ini
Add-Content php.ini "`n date.timezone=UTC"
Add-Content php.ini "`n display_errors=On"
Add-Content php.ini "`n extension_dir=ext"
Add-Content php.ini "`n extension=php_openssl.dll"
Add-Content php.ini "`n extension=php_mbstring.dll"
Add-Content php.ini "`n extension=php_curl.dll"
Add-Content php.ini "`n extension=php_gd2.dll"
Add-Content php.ini "`n extension=php_tidy.dll"
Add-Content php.ini "`n extension=php_fileinfo.dll"
Add-Content php.ini "`n extension=php_pdo_sqlite.dll"
Add-Content php.ini "`n extension=php_sqlite3.dll"
Add-Content php.ini "`n extension=php_pdo_mysql.dll"
Add-Content php.ini "`n extension=php_mysqli.dll"
Add-Content php.ini "`n extension=php_pdo_pgsql.dll"
Add-Content php.ini "`n extension=php_pgsql.dll"
# Get MSSQL driver
if ($env:db -eq "mssql") {
cd c:\tools\php\ext
$DLLVersion = "4.1.6.1"
curl -o php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/sqlsrv/$($:DLLVersion)/php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip
7z x -y php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip > $null
curl -o php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/$($DLLVersion)/php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip
7z x -y php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip > $null
Remove-Item c:\tools\php\* -include .zip
cd c:\tools\php
Add-Content php.ini "`nextension=php_sqlsrv.dll"
Add-Content php.ini "`nextension=php_pdo_sqlsrv.dll"
Add-Content php.ini "`n"
$instanceName = $env:db_version.ToUpper()
Start-Service "MSSQL`$$instanceName"
Set-Variable -Name "sqlServerPath" -Value "(local)\$($env:db_version.ToUpper())"
# Create database write test config
sqlcmd -S $sqlServerPath -Q "Use [master]; CREATE DATABASE [phpbb_test] COLLATE Latin1_General_CI_AS"
$data = "<?php`n`n`$dbms = 'phpbb\\db\\driver\\mssqlnative';`n`$dbhost = '.\\$env:db_version';`n`$dbport = '';`n`$dbname = 'phpbb_test';`n`$dbuser = 'sa';`n`$dbpasswd = 'Password12!';`n`$phpbb_functional_url = 'http://phpbb.test/';"; $data | Out-File -Encoding "Default" "c:\\projects\\phpbb\\tests\\test_config.php"
}
elseif ($env:db -eq "mysqli") {
Start-Service MySQL57
$env:MYSQL_PWD="Password12!"
$cmd = '"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -e "create database phpbb_test;" --user=root'
iex "& $cmd"
$data = "<?php`n`n`$dbms = 'phpbb\\db\\driver\\mysqli';`n`$dbhost = 'localhost';`n`$dbport = '';`n`$dbname = 'phpbb_test';`n`$dbuser = 'root';`n`$dbpasswd = 'Password12!';`n`$phpbb_functional_url = 'http://phpbb.test/';"; $data | Out-File -Encoding "Default" "c:\\projects\\phpbb\\tests\\test_config.php"
}
elseif ($env:db -eq "postgresql") {
Start-Service postgresql-x64-9.5
$env:PGUSER="postgres"
$env:PGPASSWORD="Password12!"
$Env:Path="C:\Program Files\PostgreSQL\9.6\bin\;$($Env:Path)"
createdb phpbb_test
$data = "<?php`n`n`$dbms = 'phpbb\\db\\driver\\postgres';`n`$dbhost = 'localhost';`n`$dbport = '';`n`$dbname = 'phpbb_test';`n`$dbuser = 'postgres';`n`$dbpasswd = 'Password12!';`n`$phpbb_functional_url = 'http://phpbb.test/';"; $data | Out-File -Encoding "Default" "c:\\projects\\phpbb\\tests\\test_config.php"
}
elseif ($env:db -eq "mariadb") {
appveyor-retry cinst -y --force mariadb
$env:MYSQL_PWD=""
$cmd = '"C:\Program Files\MariaDB 10.2\bin\mysql" -e "create database phpbb_test;" --user=root'
iex "& $cmd"
$data = "<?php`n`n`$dbms = 'phpbb\\db\\driver\\mysqli';`n`$dbhost = 'localhost';`n`$dbport = '';`n`$dbname = 'phpbb_test';`n`$dbuser = 'root';`n`$dbpasswd = '';`n`$phpbb_functional_url = 'http://phpbb.test/';"; $data | Out-File -Encoding "Default" "c:\\projects\\phpbb\\tests\\test_config.php"
}
elseif ($env:db -eq "sqlite") {
# install sqlite
appveyor-retry cinst -y sqlite
sqlite3 c:\projects\test.db "create table aTable(field1 int); drop table aTable;"
$data = "<?php`n`n`$dbms = 'phpbb\\db\\driver\\sqlite3';`n`$dbhost = 'c:\\projects\\test.db';`n`$dbport = '';`n`$dbname = '';`n`$dbuser = '';`n`$dbpasswd = '';`n`$phpbb_functional_url = 'http://phpbb.test/';"; $data | Out-File -Encoding "Default" "c:\\projects\\phpbb\\tests\\test_config.php"
}
# Install PhantomJS
cinst -y phantomjs
Start-Process "phantomjs" "--webdriver=8910" | Out-Null
- ps: |
cd c:\projects\phpbb\phpBB
(Get-Content c:\projects\phpbb\phpBB\web.config).replace("<configuration>", "<configuration>`n`t<system.web>`n`t`t<customErrors mode=`"Off`"/>`n`t</system.web>") | Set-Content c:\projects\phpbb\phpBB\web.config
(Get-Content c:\projects\phpbb\phpBB\web.config).replace("`t</system.webServer>", "`t`t<httpErrors errorMode=`"Detailed`" />`n`t</system.webServer>") | Set-Content c:\projects\phpbb\phpBB\web.config
- cd c:\projects\phpbb\phpBB
- php ..\composer.phar install
- choco install -y urlrewrite
- ps: New-WebSite -Name 'phpBBTest' -PhysicalPath 'c:\projects\phpbb\phpBB' -Force
- ps: Import-Module WebAdministration; Set-ItemProperty 'IIS:\Sites\phpBBTest' -name Bindings -value @{protocol='http';bindingInformation='*:80:phpbb.test'}
- echo Change default anonymous user AUTH to ApplicationPool
- appcmd set config -section:anonymousAuthentication /username:"" --password
- echo Setup FAST-CGI configuration
- appcmd set config /section:system.webServer/fastCGI /+[fullPath='C:\tools\php\php-cgi.exe']
- echo Setup FACT-CGI handler
- appcmd set config /section:system.webServer/handlers /+[name='PHP-FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='C:\tools\php\php-cgi.exe',resourceType='Either']
- iisreset
- NET START W3SVC
- mkdir "C:\projects\phpbb\phpBB\cache\test"
- mkdir "C:\projects\phpbb\phpBB\cache\installer"
- icacls "C:\projects\phpbb\phpBB\cache" /grant Users:F /T
- icacls "C:\projects\phpbb\phpBB\files" /grant Users:F /T
- icacls "C:\projects\phpbb\phpBB\store" /grant Users:F /T
- icacls "C:\projects\phpbb\phpBB\images\avatars\upload" /grant Users:F /T
test_script:
- cd c:\projects\phpbb
- php -e phpBB\vendor\phpunit\phpunit\phpunit --verbose

View File

@@ -1,18 +0,0 @@
# This file is for standardising the coding style between different editors
# http://editorconfig.org/
root = true
[*]
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
[*.yml]
indent_size = 4
indent_style = space

View File

@@ -1,6 +0,0 @@
## CONTRIBUTE
1. [Create an account on phpBB.com](http://www.phpbb.com/community/ucp.php?mode=register)
2. [Create a ticket (unless there already is one)](http://tracker.phpbb.com/secure/CreateIssue!default.jspa)
3. Read our [Coding guidelines](https://wiki.phpbb.com/Coding_guidelines) and [Git Contribution Guidelines](http://wiki.phpbb.com/Git)
4. Send us a pull request

View File

@@ -1,10 +0,0 @@
Checklist:
- [ ] Correct branch: master for new features; 3.2.x for fixes
- [ ] Tests pass
- [ ] Code follows coding guidelines: [master](https://area51.phpbb.com/docs/dev/master/development/coding_guidelines.html) and [3.2.x](https://area51.phpbb.com/docs/dev/3.2.x/development/coding_guidelines.html)
- [ ] Commit follows commit message [format](https://area51.phpbb.com/docs/dev/3.2.x/development/git.html)
Tracker ticket (set the ticket ID to **your ticket ID**):
https://tracker.phpbb.com/browse/PHPBB3-12345

26
.gitignore vendored
View File

@@ -1,26 +0,0 @@
*~
/phpunit.xml
/phpBB/cache/*
!/phpBB/cache/.htaccess
!/phpBB/cache/index.html
/phpBB/composer.phar
/phpBB/config*.php*
/phpBB/ext/*
/phpBB/files/*
/phpBB/images/avatars/gallery/*
/phpBB/images/avatars/upload/*
/phpBB/images/ranks/*
/phpBB/install/schemas/schema.json
/phpBB/language/*
!/phpBB/language/en
/phpBB/store/*
/phpBB/styles/*
!/phpBB/styles/prosilver
!/phpBB/styles/all
/phpBB/vendor
/tests/phpbb_unit_tests.sqlite*
/tests/test_config*.php
/tests/tmp/*
/tests/vendor
/vagrant/phpbb-install-config.yml
.vagrant

78
.jscsrc
View File

@@ -1,78 +0,0 @@
{
"excludeFiles": ["node_modules/**", "**/build/**"],
"requireCurlyBraces": [
"if", "else", "for", "while", "do", "try", "catch"
],
"requireSpaceBeforeKeywords": [
"else", "while", "catch"
],
"requireSpaceAfterKeywords": [
"do", "for", "if", "else", "switch", "case", "try", "catch", "while", "return", "typeof"
],
"requireSpaceBeforeBlockStatements": true,
"requireParenthesesAroundIIFE": true,
"requireSpacesInConditionalExpression": {
"afterTest": true,
"beforeConsequent": true,
"afterConsequent": true,
"beforeAlternate": true
},
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"requireSpacesInFunction": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInCallExpression": true,
"requireBlocksOnNewline": true,
"requirePaddingNewlinesBeforeKeywords": ["case"],
"disallowEmptyBlocks": true,
"disallowSpacesInsideArrayBrackets": "nested",
"disallowSpacesInsideParentheses": true,
"requireSpacesInsideObjectBrackets": "all",
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceAfterObjectKeys": true,
"requireSpaceBeforeObjectValues": true,
"requireCommaBeforeLineBreak": true,
"requireOperatorBeforeLineBreak": [
"?", "=", "+", "-", "/", "*", "===", "!==", ">", ">=", "<", "<="
],
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireSpaceBeforeBinaryOperators": [
"=", "+", "+=", "-", "-=", "/", "/=", "*", "*=", "===", "!==", "<", "<=", ">", ">="
],
"requireSpaceAfterBinaryOperators": [
"=", "+", "+=", "-", "-=", "/", "/=", "*", "*=", "===", "!==", "<", "<=", ">", ">="
],
"disallowKeywords": ["with"],
"disallowMultipleLineStrings": true,
"disallowMixedSpacesAndTabs": "smart",
"disallowTrailingWhitespace": true,
"disallowTrailingComma": true,
"disallowKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": true,
"maximumLineLength": {
"value": 120,
"tabSize": 4,
"allowUrlComments": true,
"allowRegex": true
},
"requireCapitalizedConstructors": true,
"requireDotNotation": true,
"disallowYodaConditions": true,
"requireSpaceAfterLineComment": {
"allExcept": ["#", "="]
},
"disallowNewlineBeforeBlockStatements": true,
"validateQuoteMarks": {
"mark": "'",
"escape": true
},
"validateParameterSeparator": ", ",
"safeContextKeyword": ["that"]
}

View File

@@ -1,25 +0,0 @@
{
"bitwise": true,
"curly": true,
"eqeqeq": true,
"es3": true,
"forin": false,
"freeze": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonbsp": true,
"undef": true,
"unused": true,
"strict": true,
"browser": true,
"devel": true,
"jquery": true,
"globals": {
"JSON": true,
"phpbb": true
}
}

View File

@@ -1,55 +0,0 @@
language: php
sudo: required
dist: precise
matrix:
include:
- php: 5.4
env: DB=none;NOTESTS=1
- php: 5.4
env: DB=mysqli # MyISAM
- php: 5.4
env: DB=mysql
- php: 5.4
env: DB=mariadb
- php: 5.4
env: DB=postgres
- php: 5.4
env: DB=sqlite3
- php: 5.4
env: DB=mysqli;SLOWTESTS=1
- php: 5.5
env: DB=mysqli
- php: 5.6
env: DB=mysqli
- php: 7.0
env: DB=mysqli
- php: 7.1
env: DB=mysqli
- php: 7.2
env: DB=mysqli
- php: nightly
env: DB=mysqli
allow_failures:
- php: nightly
fast_finish: true
services:
- redis-server
install:
- travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
before_script:
- travis/setup-database.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- phantomjs --webdriver=8910 > /dev/null &
script:
- travis/phing-sniff.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/check-sami-parse-errors.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/check-executable-files.sh $DB $TRAVIS_PHP_VERSION $NOTESTS ./
- sh -c "if [ '$SLOWTESTS' != '1' -a '$DB' = 'mysqli' ]; then phpBB/vendor/bin/phpunit tests/lint_test.php; fi"
- sh -c "if [ '$NOTESTS' != '1' -a '$SLOWTESTS' != '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --verbose --stop-on-error; fi"
- sh -c "if [ '$SLOWTESTS' = '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --group slow; fi"
- sh -c "set -x;if [ '$NOTESTS' = '1' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git remote set-branches --add origin $TRAVIS_BRANCH && git fetch && git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..$TRAVIS_PULL_REQUEST_SHA; fi"

View File

@@ -1,40 +0,0 @@
[![phpBB](https://www.phpbb.com/theme/images/logos/blue/160x52.png)](http://www.phpbb.com)
## ABOUT
phpBB is a free open-source bulletin board written in PHP.
## COMMUNITY
Get your copy of phpBB, find support and lots more on [phpBB.com](http://www.phpbb.com)! Discuss the development on [area51](http://area51.phpbb.com/phpBB/index.php).
## INSTALLING DEPENDENCIES
To be able to run an installation from the repo (and not from a pre-built package) you need to run the following commands to install phpBB's dependencies.
cd phpBB
php ../composer.phar install
## CONTRIBUTE
1. [Create an account on phpBB.com](http://www.phpbb.com/community/ucp.php?mode=register)
2. [Create a ticket (unless there already is one)](http://tracker.phpbb.com/secure/CreateIssue!default.jspa)
3. Read our [Coding guidelines](https://area51.phpbb.com/docs/dev/development/coding_guidelines.html) and [Git Contribution Guidelines](https://area51.phpbb.com/docs/dev/development/git.html)
4. Send us a pull request
## VAGRANT
Read our [Vagrant documentation](phpBB/docs/vagrant.md) to find out how to use Vagrant to develop and contribute to phpBB.
## AUTOMATED TESTING
We have unit and functional tests in order to prevent regressions. You can view the bamboo continuous integration [here](https://bamboo.phpbb.com) or check our travis builds below:
* [![Build Status](https://travis-ci.org/phpbb/phpbb.svg?branch=master)](http://travis-ci.org/phpbb/phpbb)[![Build status](https://ci.appveyor.com/api/projects/status/8g98ybngd2f3axy1/branch/master?svg=true)](https://ci.appveyor.com/project/phpBB/phpbb/branch/master) **master** - Latest development version
* [![Build Status](https://travis-ci.org/phpbb/phpbb.svg?branch=3.2.x)](http://travis-ci.org/phpbb/phpbb)[![Build status](https://ci.appveyor.com/api/projects/status/8g98ybngd2f3axy1/branch/3.2.x?svg=true)](https://ci.appveyor.com/project/phpBB/phpbb/branch/3.2.x) **3.2.x** - Development of version 3.2.x
* [![Build Status](https://travis-ci.org/phpbb/phpbb.svg?branch=3.1.x)](http://travis-ci.org/phpbb/phpbb) **3.1.x** - Development of version 3.1.x
## LICENSE
[GNU General Public License v2](http://opensource.org/licenses/gpl-2.0.php)

25
Vagrantfile vendored
View File

@@ -1,25 +0,0 @@
require 'json'
require 'yaml'
VAGRANTFILE_API_VERSION ||= "2"
confDir = $confDir ||= File.expand_path("phpBB/vendor/laravel/homestead", File.dirname(__FILE__))
homesteadYamlPath = "vagrant/bootstrap.yaml"
afterScriptPath = "vagrant/after.sh"
aliasesPath = "vagrant/aliases"
require File.expand_path(confDir + '/scripts/homestead.rb')
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if File.exists? aliasesPath then
config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases"
end
if File.exists? homesteadYamlPath then
Homestead.configure(config, YAML::load(File.read(homesteadYamlPath)))
end
if File.exists? afterScriptPath then
config.vm.provision "shell", path: afterScriptPath
end
end

View File

@@ -1,558 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="phpBB" description="The phpBB forum software" default="all" basedir="../">
<!-- a few settings for the build -->
<property name="newversion" value="3.2.4-RC1" />
<property name="prevversion" value="3.2.3" />
<property name="olderversions" value="3.0.14, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.7-pl1, 3.1.8, 3.1.9, 3.1.10, 3.1.11, 3.1.12, 3.2.0-a1, 3.2.0-a2, 3.2.0-b1, 3.2.0-b2, 3.2.0-RC1, 3.2.0-RC2, 3.2.0, 3.2.1, 3.2.2" />
<!-- no configuration should be needed beyond this point -->
<property name="oldversions" value="${olderversions}, ${prevversion}" />
<property name="versions" value="${oldversions}, ${newversion}" />
<!-- These are the main targets which you will probably want to use -->
<target name="all" depends="clean,prepare,composer,test,docs,package" />
<target name="build" depends="clean,prepare,composer,test,docs" />
<target name="prepare">
<mkdir dir="build/logs" />
<mkdir dir="build/api" />
<mkdir dir="build/codebrowser" />
<mkdir dir="build/coverage" />
<mkdir dir="build/cpd" />
<mkdir dir="build/dependencies" />
<mkdir dir="build/new_version" />
<mkdir dir="build/new_version/files" />
<mkdir dir="build/new_version/patches" />
<mkdir dir="build/new_version/release_files" />
<mkdir dir="build/new_version/update" />
<mkdir dir="build/old_versions" />
<mkdir dir="build/save" />
</target>
<target name="clean">
<delete dir="build/logs" />
<delete dir="build/api" />
<delete dir="build/codebrowser" />
<delete dir="build/coverage" />
<delete dir="build/cpd" />
<delete dir="build/dependencies" />
<delete dir="build/new_version" />
<delete dir="build/old_versions" />
<delete dir="build/save" />
</target>
<!--
This target basically just runs composer in the phpBB tree to ensure
all dependencies are loaded. Additional development dependencies are
loaded because testing framework may depend on them.
-->
<target name="composer">
<exec dir="phpBB"
command="php ../composer.phar install --ignore-platform-reqs"
checkreturn="true"
passthru="true" />
</target>
<target name="test" depends="clean,prepare,composer">
<exec dir="."
command="phpBB/vendor/bin/phpunit
--log-junit build/logs/phpunit.xml
--coverage-clover build/logs/clover.xml
--coverage-html build/coverage"
passthru="true" />
</target>
<target name="test-slow" depends="clean,prepare,composer">
<exec dir="."
command="phpBB/vendor/bin/phpunit
--log-junit build/logs/phpunit.xml
--group slow
--coverage-clover build/logs/clover-slow.xml
--coverage-html build/coverage-slow"
passthru="true" />
</target>
<target name="sniff">
<exec command="phpBB/vendor/bin/phpcs
-s -p
--extensions=php
--standard=build/code_sniffer/ruleset-php-strict-core.xml
--ignore=${project.basedir}/phpBB/phpbb/db/migration/data/v30x/*
phpBB/phpbb"
dir="." returnProperty="retval-php-strict" passthru="true" />
<exec command="phpBB/vendor/bin/phpcs
-s -p
--extensions=php
--standard=build/code_sniffer/ruleset-php-legacy-core.xml
--ignore=${project.basedir}/phpBB/cache/*
--ignore=${project.basedir}/phpBB/develop/*
--ignore=${project.basedir}/phpBB/ext/*
--ignore=${project.basedir}/phpBB/includes/diff/*.php
--ignore=${project.basedir}/phpBB/includes/sphinxapi.php
--ignore=${project.basedir}/phpBB/includes/utf/data/*
--ignore=${project.basedir}/phpBB/install/data/*
--ignore=${project.basedir}/phpBB/install/database_update.php
--ignore=${project.basedir}/phpBB/phpbb/*
--ignore=${project.basedir}/phpBB/vendor/*
phpBB"
dir="." returnProperty="retval-php-legacy" passthru="true" />
<exec command="phpBB/vendor/bin/phpcs
-s -p
--extensions=php
--standard=build/code_sniffer/ruleset-php-extensions.xml
--ignore=${project.basedir}/phpBB/ext/*/tests/*
--ignore=${project.basedir}/phpBB/ext/*/vendor/*
phpBB/ext"
dir="." returnProperty="retval-php-ext" passthru="true" />
<if>
<or>
<not><equals arg1="${retval-php-strict}" arg2="0" /></not>
<not><equals arg1="${retval-php-legacy}" arg2="0" /></not>
<not><equals arg1="${retval-php-ext}" arg2="0" /></not>
</or>
<then>
<fail message="PHP Code Sniffer failed." />
</then>
</if>
</target>
<!-- Builds docs for current branch into build/api/output/master -->
<target name="docs">
<exec dir="."
command="phpBB/vendor/bin/sami.php update build/sami-checkout.conf.php"
passthru="true" />
</target>
<!-- Builds docs for multiple branches/tags into build/api/output/$branch -->
<target name="docs-all">
<exec dir="."
command="phpBB/vendor/bin/sami.php update build/sami-all.conf.php"
passthru="true" />
</target>
<target name="old-version-diffs">
<foreach list="${oldversions}" param="version" target="old-version-diff" />
</target>
<!-- This target retrieves an old version from the git tag release-${version}
and creates a diff between that release and the new one -->
<target name="old-version-diff">
<echo msg="Retrieving version ${version}" />
<mkdir dir="build/old_versions/release-${version}" />
<phingcall target="export">
<property name="revision" value="release-${version}" />
<property name="version" value="${version}" />
<property name="dir" value="build/old_versions/release-${version}" />
<property name="skip-composer" value="true" />
</phingcall>
<phingcall target="clean-diff-dir">
<property name="dir" value="build/old_versions/release-${version}" />
</phingcall>
<exec dir="build/old_versions" command="LC_ALL=C diff -crNEBZbd release-${version} release-${newversion} >
../new_version/patches/phpBB-${version}_to_${newversion}.patch" escape="false" />
<exec dir="build/old_versions" command="LC_ALL=C diff -qr release-${version} release-${newversion} | grep 'Only in release-${version}' > ../new_version/patches/phpBB-${version}_to_${newversion}.deleted" escape="false" />
</target>
<target name="prepare-new-version">
<!-- select the currently checked out commit (HEAD) for packaging -->
<mkdir dir="build/new_version/phpBB3" />
<phingcall target="export">
<property name="revision" value="HEAD" />
<property name="dir" value="build/new_version/phpBB3" />
</phingcall>
<!-- copy into directory for diffs -->
<exec dir="build" command="cp -rp new_version/phpBB3 old_versions/release-${newversion}" />
<!-- and clean up -->
<phingcall target="clean-diff-dir">
<property name="dir" value="build/old_versions/release-${newversion}" />
</phingcall>
<!-- create an empty config.php file (not for diffs) -->
<touch file="build/new_version/phpBB3/config.php" />
</target>
<target name="package" depends="clean,prepare,prepare-new-version,old-version-diffs">
<exec dir="build" command="php -f package.php '${versions}' > logs/package.log" escape="false" />
<exec dir="build" escape="false"
command="LC_ALL=C diff -crNEBZbd old_versions/release-${prevversion}/language new_version/phpBB3/language >
save/phpbb-${prevversion}_to_${newversion}_language.patch" />
<exec dir="build" escape="false"
command="LC_ALL=C diff -crNEBZbd old_versions/release-${prevversion}/styles/prosilver new_version/phpBB3/styles/prosilver >
save/phpbb-${prevversion}_to_${newversion}_prosilver.patch" />
<exec dir="build" escape="false"
command="git shortlog --summary --numbered release-${prevversion}...HEAD >
save/phpbb-${prevversion}_to_${newversion}_git_shortlog.txt" />
<exec dir="build" escape="false"
command="git diff --stat release-${prevversion}...HEAD >
save/phpbb-${prevversion}_to_${newversion}_git_diffstat.txt" />
<phingcall target="checksum-dir">
<property name="dir" value="build/new_version/release_files" />
</phingcall>
</target>
<target name="checksum-dir">
<foreach param="filename" absparam="absfilename" target="checksum-file">
<fileset dir="${dir}">
<type type="file" />
</fileset>
</foreach>
</target>
<target name="checksum-file">
<echo msg="Creating checksum file for ${absfilename}" />
<php function="dirname" returnProperty="dir"><param value="${absfilename}"/></php>
<exec dir="${dir}" command="sha256sum ${filename} > ${filename}.sha256" />
</target>
<target name="announcement" depends="prepare">
<echo msg="Writing download links and checksums for email announcement to save/announcement_email_${newversion}.txt" />
<exec dir="build" escape="false"
command="php -f build_announcement.php email '${newversion}' 'new_version/release_files' sha256 >
save/announcement_email_${newversion}.txt" />
<echo msg="Writing download links and checksums for bbcode announcement to save/announcement_bbcode_${newversion}.txt" />
<exec dir="build" escape="false"
command="php -f build_announcement.php bbcode '${newversion}' 'new_version/release_files' sha256 >
save/announcement_bbcode_${newversion}.txt" />
</target>
<target name="changelog" depends="prepare">
<exec dir="build" escape="false"
command="php -f build_changelog.php '${newversion}' >
save/changelog_${newversion}.html" />
</target>
<!--
This target can be called using phingcall to retrieve a clean
checkout of a commit from git. It will only export the phpBB directory.
The properties revision and dir are required.
This target will remove directories that are not needed in distribution
and set correct permissions.
-->
<target name="export">
<exec dir="phpBB"
command="git archive ${revision} | tar -xf - -C ../${dir}"
checkreturn="true" />
<!-- Install composer dependencies, if there are any. -->
<exec dir="${dir}"
command='php -r "\$j = json_decode(file_get_contents(\"composer.json\")); echo isset(\$j->require);"'
checkreturn="true"
outputProperty='composer-has-dependencies' />
<if>
<equals arg1="${composer-has-dependencies}" arg2="1" trim="true" />
<then>
<!-- We have non-dev composer dependencies -->
<if>
<not><isset property="skip-composer" /></not>
<then>
<exec dir="."
command="git ls-tree ${revision} composer.phar"
checkreturn="true"
outputProperty='composer-ls-tree-output' />
<if>
<equals arg1="${composer-ls-tree-output}" arg2="" trim="true" />
<then>
<fail message="There are composer dependencies, but composer.phar is missing." />
</then>
<else>
<!-- Export the phar, install dependencies, delete phar. -->
<exec dir="."
command="git archive ${revision} composer.phar | tar -xf - -C ${dir}"
checkreturn="true" />
<exec dir="${dir}"
command="php composer.phar install --no-dev --optimize-autoloader --ignore-platform-reqs"
checkreturn="true"
passthru="true" />
<delete file="${dir}/composer.phar" />
<phingcall target="clean-vendor-dir">
<property name="dir" value="${dir}" />
</phingcall>
</else>
</if>
</then>
</if>
</then>
<else>
<!-- We do not have composer dependencies, do not ship composer files -->
<delete file="${dir}/composer.json" />
<delete file="${dir}/composer.lock" />
</else>
</if>
<!-- Checkout latest viglink to ext folder -->
<available file="${dir}/ext" type="dir" property="add-viglink-ext" />
<exec dir="${dir}"
command='php -r "echo version_compare(&apos;${version}&apos;, &apos;3.2.0-RC2&apos;, &apos;>=&apos;) ? &apos;true&apos; : &apos;false&apos;;"'
checkreturn="true"
outputProperty='viglink-available' />
<if>
<and>
<equals arg1="${add-viglink-ext}" arg2="1" trim="true" />
<or>
<equals arg1="${revision}" arg2="HEAD" trim="true" />
<equals arg1="${viglink-available}" arg2="1" trim="true" />
</or>
</and>
<then>
<exec dir="${dir}/ext" command="mkdir phpbb" passthru="true" />
<exec dir="${dir}/ext/phpbb" command="git clone https://github.com/phpbb-extensions/viglink.git viglink" passthru="true" checkreturn="true" />
<if>
<equals arg1="${revision}" arg2="HEAD" trim="true" />
<then>
<exec dir="${dir}/ext/phpbb/viglink"
command="git rev-parse release-phpbb-${version}"
returnProperty='viglink_head_tag_exists' />
<if>
<equals arg1="${viglink_head_tag_exists}" arg2="0" trim="true" />
<then>
<exec dir="${dir}/ext/phpbb/viglink" command="git checkout release-phpbb-${version}" passthru="true" />
</then>
<else>
<exec dir="${dir}/ext/phpbb/viglink" command="git checkout master" passthru="true" />
</else>
</if>
</then>
<else>
<exec dir="${dir}/ext/phpbb/viglink" command="git checkout release-phpbb-${version}" passthru="true" />
</else>
</if>
<delete dir="${dir}/ext/phpbb/viglink/.git" />
<delete dir="${dir}/ext/phpbb/viglink/tests" />
<delete dir="${dir}/ext/phpbb/viglink/travis" />
<delete file="${dir}/ext/phpbb/viglink/.gitattributes" />
<delete file="${dir}/ext/phpbb/viglink/.travis.yml" />
<delete file="${dir}/ext/phpbb/viglink/phpunit.xml.dist" />
<delete file="${dir}/ext/phpbb/viglink/README.md" />
</then>
</if>
<!-- Create schema.json -->
<exec dir="${dir}" command="php develop/create_schema_files.php" />
<delete file="${dir}/config.php" />
<delete dir="${dir}/develop" />
<delete dir="${dir}/install/data" />
<delete dir="${dir}/config/development" />
<delete dir="${dir}/config/test" />
<echo msg="Setting permissions for checkout of ${revision} in ${dir}" />
<!-- set permissions of all files to 644, directories to 755 -->
<exec dir="${dir}" command="find . -type f|xargs chmod 644" escape="false" />
<exec dir="${dir}" command="find . -type d|xargs chmod 755" escape="false" />
<!-- set permissions of some directories to 777 -->
<chmod mode="0777" file="${dir}/cache" />
<chmod mode="0777" file="${dir}/store" />
<chmod mode="0777" file="${dir}/files" />
<chmod mode="0777" file="${dir}/images/avatars/upload" />
</target>
<target name="clean-vendor-dir">
<!-- Delete unrelated files from vendor/, see PHPBB3-12390 -->
<delete dir="${dir}/vendor/bantu/ini-get-wrapper/tests" />
<delete file="${dir}/vendor/bantu/ini-get-wrapper/.gitignore" />
<delete file="${dir}/vendor/bantu/ini-get-wrapper/.scrutinizer.yml" />
<delete file="${dir}/vendor/bantu/ini-get-wrapper/.travis.yml" />
<delete file="${dir}/vendor/bantu/ini-get-wrapper/phpunit.xml.dist" />
<delete file="${dir}/vendor/bantu/ini-get-wrapper/README.md" />
<delete dir="${dir}/vendor/google/recaptcha/examples" />
<delete dir="${dir}/vendor/google/recaptcha/tests" />
<delete file="${dir}/vendor/google/recaptcha/.gitignore" />
<delete file="${dir}/vendor/google/recaptcha/.travis.yml" />
<delete file="${dir}/vendor/google/recaptcha/CONTRIBUTING.md" />
<delete file="${dir}/vendor/google/recaptcha/phpunit.xml.dist" />
<delete file="${dir}/vendor/google/recaptcha/README.md" />
<delete dir="${dir}/vendor/guzzlehttp/guzzle/build" />
<delete dir="${dir}/vendor/guzzlehttp/guzzle/docs" />
<delete dir="${dir}/vendor/guzzlehttp/guzzle/tests" />
<delete file="${dir}/vendor/guzzlehttp/guzzle/CHANGELOG.md" />
<delete file="${dir}/vendor/guzzlehttp/guzzle/.editorconfig" />
<delete file="${dir}/vendor/guzzlehttp/guzzle/.gitignore" />
<delete file="${dir}/vendor/guzzlehttp/guzzle/Makefile" />
<delete file="${dir}/vendor/guzzlehttp/guzzle/phpunit.xml.dist" />
<delete file="${dir}/vendor/guzzlehttp/guzzle/README.md" />
<delete file="${dir}/vendor/guzzlehttp/guzzle/.travis.yml" />
<delete file="${dir}/vendor/guzzlehttp/guzzle/UPGRADING.md" />
<delete dir="${dir}/vendor/guzzlehttp/ringphp/docs" />
<delete dir="${dir}/vendor/guzzlehttp/ringphp/tests" />
<delete file="${dir}/vendor/guzzlehttp/ringphp/CHANGELOG.md" />
<delete file="${dir}/vendor/guzzlehttp/ringphp/.gitignore" />
<delete file="${dir}/vendor/guzzlehttp/ringphp/Makefile" />
<delete file="${dir}/vendor/guzzlehttp/ringphp/phpunit.xml.dist" />
<delete file="${dir}/vendor/guzzlehttp/ringphp/README.rst" />
<delete file="${dir}/vendor/guzzlehttp/ringphp/.travis.yml" />
<delete dir="${dir}/vendor/guzzlehttp/streams/tests" />
<delete file="${dir}/vendor/guzzlehttp/streams/CHANGELOG.rst" />
<delete file="${dir}/vendor/guzzlehttp/streams/.gitignore" />
<delete file="${dir}/vendor/guzzlehttp/streams/Makefile" />
<delete file="${dir}/vendor/guzzlehttp/streams/phpunit.xml.dist" />
<delete file="${dir}/vendor/guzzlehttp/streams/README.rst" />
<delete file="${dir}/vendor/guzzlehttp/streams/.travis.yml" />
<delete dir="${dir}/vendor/lusitanian/oauth/examples" />
<delete dir="${dir}/vendor/lusitanian/oauth/tests" />
<delete file="${dir}/vendor/lusitanian/oauth/.gitignore" />
<delete file="${dir}/vendor/lusitanian/oauth/.scrutinizer.yml" />
<delete file="${dir}/vendor/lusitanian/oauth/.travis.yml" />
<delete file="${dir}/vendor/lusitanian/oauth/phpunit.xml.dist" />
<delete file="${dir}/vendor/lusitanian/oauth/README.md" />
<delete dir="${dir}/vendor/paragonie/random_compat/dist" />
<delete dir="${dir}/vendor/paragonie/random_compat/other" />
<delete file="${dir}/vendor/paragonie/random_compat/CHANGELOG.md" />
<delete file="${dir}/vendor/paragonie/random_compat/ERRATA.md" />
<delete file="${dir}/vendor/paragonie/random_compat/README.md" />
<delete file="${dir}/vendor/paragonie/random_compat/SECURITY.md" />
<delete file="${dir}/vendor/patchwork/utf8/.travis.yml" />
<delete file="${dir}/vendor/patchwork/utf8/CHANGELOG.md" />
<delete file="${dir}/vendor/patchwork/utf8/phpunit.xml.dist" />
<delete file="${dir}/vendor/patchwork/utf8/README.md" />
<delete dir="${dir}/vendor/psr/log/Psr/Log/Test" />
<delete file="${dir}/vendor/psr/log/.gitignore" />
<delete file="${dir}/vendor/psr/log/README.md" />
<delete dir="${dir}/vendor/react/promise/tests" />
<delete file="${dir}/vendor/react/promise/CHANGELOG.md" />
<delete file="${dir}/vendor/react/promise/.gitignore" />
<delete file="${dir}/vendor/react/promise/phpunit.xml.dist" />
<delete file="${dir}/vendor/react/promise/README.md" />
<delete file="${dir}/vendor/react/promise/.travis.yml" />
<delete dir="${dir}/vendor/s9e/text-formatter/.git" />
<delete dir="${dir}/vendor/symfony/config/.git" />
<delete dir="${dir}/vendor/symfony/config/Tests" />
<delete file="${dir}/vendor/symfony/config/.gitignore" />
<delete file="${dir}/vendor/symfony/config/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/config/README.md" />
<delete file="${dir}/vendor/symfony/config/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/console/.git" />
<delete dir="${dir}/vendor/symfony/console/Tests" />
<delete file="${dir}/vendor/symfony/console/.gitignore" />
<delete file="${dir}/vendor/symfony/console/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/console/README.md" />
<delete file="${dir}/vendor/symfony/console/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/debug/.git" />
<delete dir="${dir}/vendor/symfony/debug/Tests" />
<delete file="${dir}/vendor/symfony/debug/.gitignore" />
<delete file="${dir}/vendor/symfony/debug/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/debug/README.md" />
<delete file="${dir}/vendor/symfony/debug/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/dependency-injection/.git" />
<delete dir="${dir}/vendor/symfony/dependency-injection/Tests" />
<delete file="${dir}/vendor/symfony/dependency-injection/.gitignore" />
<delete file="${dir}/vendor/symfony/dependency-injection/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/dependency-injection/README.md" />
<delete file="${dir}/vendor/symfony/dependency-injection/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/event-dispatcher/.git" />
<delete dir="${dir}/vendor/symfony/event-dispatcher/Tests" />
<delete file="${dir}/vendor/symfony/event-dispatcher/.gitignore" />
<delete file="${dir}/vendor/symfony/event-dispatcher/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/event-dispatcher/README.md" />
<delete file="${dir}/vendor/symfony/event-dispatcher/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/filesystem/.git" />
<delete dir="${dir}/vendor/symfony/filesystem/Tests" />
<delete file="${dir}/vendor/symfony/filesystem/.gitignore" />
<delete file="${dir}/vendor/symfony/filesystem/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/filesystem/README.md" />
<delete file="${dir}/vendor/symfony/filesystem/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/finder/.git" />
<delete dir="${dir}/vendor/symfony/finder/Tests" />
<delete file="${dir}/vendor/symfony/finder/.gitignore" />
<delete file="${dir}/vendor/symfony/finder/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/finder/README.md" />
<delete file="${dir}/vendor/symfony/finder/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/http-foundation/.git" />
<delete dir="${dir}/vendor/symfony/http-foundation/Tests" />
<delete file="${dir}/vendor/symfony/http-foundation/.gitignore" />
<delete file="${dir}/vendor/symfony/http-foundation/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/http-foundation/README.md" />
<delete file="${dir}/vendor/symfony/http-foundation/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/http-kernel/.git" />
<delete dir="${dir}/vendor/symfony/http-kernel/Tests" />
<delete file="${dir}/vendor/symfony/http-kernel/.gitignore" />
<delete file="${dir}/vendor/symfony/http-kernel/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/http-kernel/README.md" />
<delete file="${dir}/vendor/symfony/http-kernel/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/proxy-manager-bridge/.git" />
<delete dir="${dir}/vendor/symfony/proxy-manager-bridge/Tests" />
<delete file="${dir}/vendor/symfony/proxy-manager-bridge/.gitignore" />
<delete file="${dir}/vendor/symfony/proxy-manager-bridge/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/proxy-manager-bridge/README.md" />
<delete file="${dir}/vendor/symfony/proxy-manager-bridge/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/routing/.git" />
<delete dir="${dir}/vendor/symfony/routing/Tests" />
<delete file="${dir}/vendor/symfony/routing/.gitignore" />
<delete file="${dir}/vendor/symfony/routing/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/routing/README.md" />
<delete file="${dir}/vendor/symfony/routing/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/twig-bridge/.git" />
<delete dir="${dir}/vendor/symfony/twig-bridge/Tests" />
<delete file="${dir}/vendor/symfony/twig-bridge/.gitignore" />
<delete file="${dir}/vendor/symfony/twig-bridge/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/twig-bridge/README.md" />
<delete file="${dir}/vendor/symfony/twig-bridge/phpunit.xml.dist" />
<delete dir="${dir}/vendor/symfony/yaml/.git" />
<delete dir="${dir}/vendor/symfony/yaml/Tests" />
<delete file="${dir}/vendor/symfony/yaml/.gitignore" />
<delete file="${dir}/vendor/symfony/yaml/CHANGELOG.md" />
<delete file="${dir}/vendor/symfony/yaml/README.md" />
<delete file="${dir}/vendor/symfony/yaml/phpunit.xml.dist" />
<delete dir="${dir}/vendor/twig/twig/doc" />
<delete dir="${dir}/vendor/twig/twig/ext" />
<delete dir="${dir}/vendor/twig/twig/test" />
<delete file="${dir}/vendor/twig/twig/.editorconfig" />
<delete file="${dir}/vendor/twig/twig/.gitignore" />
<delete file="${dir}/vendor/twig/twig/.travis.yml" />
<delete file="${dir}/vendor/twig/twig/CHANGELOG" />
<delete file="${dir}/vendor/twig/twig/phpunit.xml.dist" />
<delete file="${dir}/vendor/twig/twig/README.rst" />
<delete file="${dir}/vendor/zendframework/zend-code/CONTRIBUTING.md" />
<delete file="${dir}/vendor/zendframework/zend-code/README.md" />
<delete file="${dir}/vendor/zendframework/zend-eventmanager/CONTRIBUTING.md" />
<delete file="${dir}/vendor/zendframework/zend-eventmanager/README.md" />
<delete file="${dir}/vendor/zendframework/zend-stdlib/CONTRIBUTING.md" />
<delete file="${dir}/vendor/zendframework/zend-stdlib/README.md" />
</target>
<target name="clean-diff-dir">
<delete dir="${dir}/cache" />
<delete dir="${dir}/docs" />
<delete dir="${dir}/files" />
<delete dir="${dir}/install" />
<delete dir="${dir}/store" />
<delete dir="${dir}/vendor" />
</target>
</project>

View File

@@ -1,84 +0,0 @@
#!/usr/bin/env php
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
if (php_sapi_name() !== 'cli' || $_SERVER['argc'] != 5)
{
echo "Usage (CLI only): build_announcement.php email|bbcode new_version release_files_dir checksum_algorithm\n";
exit(1);
}
$mode = $_SERVER['argv'][1];
$version = $_SERVER['argv'][2];
$root = $_SERVER['argv'][3];
$checksum_algorithm = $_SERVER['argv'][4];
$series_version = substr($version, 0, 3);
$base_url = "https://download.phpbb.com/pub/release/$series_version";
if (version_compare($version, "$series_version.0", '<'))
{
// Everything before 3.x.0, i.e. unstable (e.g. alpha, beta, rc)
$url = "$base_url/unstable/$version";
}
else if (strpos($version, 'RC') !== false)
{
// Release candidate of stable release
$url = "$base_url/qa/$version";
}
else
{
// Stable release (e.g. 3.x.0, 3.x.1, 3.x.2, 3.x.3-PL1)
$url = "$base_url/$version";
}
if ($mode === 'bbcode')
{
$template = "[url=%1\$s/%2\$s]%2\$s[/url]\n{$checksum_algorithm}sum: %3\$s\n";
}
else
{
$template = "%s/%s\n{$checksum_algorithm}sum: %s\n";
}
function phpbb_rnatsort($array)
{
$strrnatcmp = function($a, $b)
{
return strnatcmp($b, $a);
};
usort($array, $strrnatcmp);
return $array;
}
function phpbb_string_ends_with($haystack, $needle)
{
return substr($haystack, -strlen($needle)) === $needle;
}
function phpbb_get_checksum($checksum_file)
{
return array_shift(explode(' ', file_get_contents($checksum_file)));
}
foreach (phpbb_rnatsort(array_diff(scandir($root), array('.', '..'))) as $filename)
{
if (phpbb_string_ends_with($filename, $checksum_algorithm))
{
continue;
}
else
{
printf($template, $url, $filename, phpbb_get_checksum("$root/$filename.$checksum_algorithm"));
}
}

View File

@@ -1,57 +0,0 @@
#!/usr/bin/env php
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
if ($_SERVER['argc'] != 2)
{
echo "Please specify the new version as argument (e.g. build_changelog.php '1.0.2').\n";
exit(1);
}
$fixVersion = $_SERVER['argv'][1];
$query = 'project IN (PHPBB3, SECURITY)
AND resolution = Fixed
AND fixVersion = "' . $fixVersion . '"
AND status IN ("Unverified Fix", Closed)';
$url = 'http://tracker.phpbb.com/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=' . urlencode($query) . '&tempMax=1000';
$xml = simplexml_load_string(file_get_contents($url));
foreach ($xml->xpath('//item') as $item)
{
$key = (string) $item->key;
$keyUrl = 'http://tracker.phpbb.com/browse/' . $key;
$keyLink = '<a href="' . $keyUrl . '">' . $key . '</a>';
$value = str_replace($key, $keyLink, htmlspecialchars($item->title));
$value = str_replace(']', '] -', $value);
$types[(string) $item->type][$key] = $value;
}
ksort($types);
foreach ($types as $type => $tickets)
{
echo "<h4>$type</h4>\n";
echo "<ul>\n";
uksort($tickets, 'strnatcasecmp');
foreach ($tickets as $ticket)
{
echo "<li>$ticket</li>\n";
}
echo "</ul>\n";
}

View File

@@ -1,378 +0,0 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
class build_package
{
var $package_infos;
var $old_packages;
var $versions;
var $locations;
// -c - context diff
// -r - compare recursive
// -N - Treat missing files as empty
// -E - Ignore tab expansions
// -Z - Ignore white space at line end.
// -b - Ignore changes in the amount of white space.
// -B - Ignore blank lines
// -d - Try to find smaller set of changes
var $diff_options = '-crNEBZbd';
var $diff_options_long = '-x images -crNEB'; // -x fonts -x imageset //imageset not used here, because it includes the imageset.cfg file. ;)
var $verbose = false;
var $status_begun = false;
var $num_dots = 0;
function __construct($versions, $verbose = false)
{
$this->versions = $versions;
$this->verbose = $verbose;
// Get last two entries
$_latest = $this->versions[count($this->versions) - 1];
$_before = $this->versions[count($this->versions) - 2];
$this->locations = array(
'new_version' => dirname(dirname(__FILE__)) . '/phpBB/',
'old_versions' => dirname(__FILE__) . '/old_versions/',
'root' => dirname(__FILE__) . '/',
'package_dir' => dirname(__FILE__) . '/new_version/'
);
$this->package_infos = array(
'package_name' => 'phpBB3',
'name_prefix' => 'phpbb',
'simple_name' => 'release-' . $_latest,
'new_version_number' => $_latest,
'short_version_number' => str_replace('.', '', $_latest),
'release_filename' => 'phpBB-' . $_latest,
'last_version' => 'release-' . $_before,
'last_version_number' => $_before,
);
$this->package_infos['dest_dir'] = $this->locations['package_dir'] . $this->package_infos['package_name'];
$this->package_infos['diff_dir'] = $this->locations['old_versions'] . $this->package_infos['simple_name'];
$this->package_infos['patch_directory'] = $this->locations['package_dir'] . 'patches';
$this->package_infos['files_directory'] = $this->locations['package_dir'] . 'files';
$this->package_infos['update_directory'] = $this->locations['package_dir'] . 'update';
$this->package_infos['release_directory'] = $this->locations['package_dir'] . 'release_files';
// Old packages always exclude the latest version. ;)
$this->old_packages = array();
foreach ($this->versions as $package_version)
{
if ($package_version == $_latest)
{
continue;
}
$this->old_packages['release-' . $package_version] = $package_version . '_to_';
}
}
function get($var)
{
return $this->package_infos[$var];
}
function begin_status($headline)
{
if ($this->status_begun)
{
echo "\nDone.\n\n";
}
$this->num_dots = 0;
echo $headline . "\n ";
$this->status_begun = true;
}
function run_command($command)
{
$result = trim(`$command`);
if ($this->verbose)
{
echo " command : " . getcwd() . '$ ' . $command . "\n";
echo " result : " . $result . "\n";
}
else
{
if ($this->num_dots > 70)
{
echo "\n";
$this->num_dots = 0;
}
echo '.';
$this->num_dots++;
}
flush();
}
function create_directory($directory, $dir_struct)
{
if (!file_exists($directory))
{
$this->run_command("mkdir $directory");
}
if (is_array($dir_struct))
{
foreach ($dir_struct as $_dir => $_dir_struct)
{
$this->create_directory($directory . '/' . $_dir, $_dir_struct);
}
}
}
function collect_diff_files($diff_filename, $package_name)
{
$diff_result = $binary = array();
$diff_contents = file($diff_filename);
$special_diff_contents = array();
foreach ($diff_contents as $num => $line)
{
$line = trim($line);
if (!$line)
{
continue;
}
// Special diff content?
if (strpos($line, 'diff ' . $this->diff_options . ' ') === 0 || strpos($line, '*** ') === 0 || strpos($line, '--- ') === 0 || (strpos($line, ' Exp $') !== false && strpos($line, '$Id:') !== false))
{
$special_diff_contents[] = $line;
}
else if (strpos($line, 'diff ' . $this->diff_options . ' ') === 0 || strpos($line, '*** ') === 0 || strpos($line, '--- ') === 0 || (strpos($line, ' Exp $') !== false && strpos($line, '$Id:') !== false) || (strpos($line, ' $') !== false && strpos($line, '$Id:') !== false))
{
$special_diff_contents[] = $line;
}
// Is diffing line?
if (strstr($line, 'diff ' . $this->diff_options . ' '))
{
$next_line = $diff_contents[$num+1];
if (strpos($next_line, '***') === 0)
{
// *** phpbb208/admin/admin_board.php Sat Jul 10 20:16:26 2004
$next_line = explode("\t", $next_line);
$next_line = trim($next_line[0]);
$next_line = str_replace('*** ' . $package_name . '/', '', $next_line);
$diff_result[] = $next_line;
}
}
// Is binary?
if (preg_match('/^Binary files ' . $package_name . '\/(.*) and [a-z0-9._-]+\/\1 differ/i', $line, $match))
{
$binary[] = trim($match[1]);
}
}
// Now go through the list again and find out which files have how many changes...
$num_changes = array();
/* [1070] => diff -crN phpbb200/includes/usercp_avatar.php phpbb2023/includes/usercp_avatar.php
[1071] => *** phpbb200/includes/usercp_avatar.php Sat Jul 10 20:16:13 2004
[1072] => --- phpbb2023/includes/usercp_avatar.php Wed Feb 6 22:28:04 2008
[1073] => *** 6,12 ****
[1074] => ! * $Id$
[1075] => --- 6,12 ----
[1076] => *** 51,59 ****
[1077] => --- 51,60 ----
[1078] => *** 62,80 ****
[1079] => --- 63,108 ----
[1080] => *** 87,97 ****
*/
while (($line = array_shift($special_diff_contents)) !== NULL)
{
$line = trim($line);
if (!$line)
{
continue;
}
// Is diffing line?
if (strstr($line, 'diff ' . $this->diff_options . ' '))
{
$next_line = array_shift($special_diff_contents);
if (strpos($next_line, '*** ') === 0)
{
// *** phpbb208/admin/admin_board.php Sat Jul 10 20:16:26 2004
$next_line = explode("\t", $next_line);
$next_line = trim($next_line[0]);
$next_line = str_replace('*** ' . $package_name . '/', '', $next_line);
$is_reached = false;
$prev_line = '';
while (!$is_reached)
{
$line = array_shift($special_diff_contents);
if (strpos($line, 'diff ' . $this->diff_options) === 0 || empty($special_diff_contents))
{
$is_reached = true;
array_unshift($special_diff_contents, $line);
continue;
}
if (strpos($line, '*** ') === 0 && strpos($line, ' ****') !== false)
{
$is_comment = false;
while (!(strpos($line, '--- ') === 0 && strpos($line, ' ----') !== false))
{
$line = array_shift($special_diff_contents);
if (strpos($line, ' Exp $') !== false || strpos($line, '$Id:') !== false)
{
$is_comment = true;
}
}
if (!$is_comment)
{
if (!isset($num_changes[$next_line]))
{
$num_changes[$next_line] = 1;
}
else
{
$num_changes[$next_line]++;
}
}
}
}
}
}
}
// Now remove those results not having changes
$return = array();
foreach ($diff_result as $key => $value)
{
if (isset($num_changes[$value]))
{
$return[] = $value;
}
}
foreach ($binary as $value)
{
$return[] = $value;
}
$diff_result = $return;
unset($return);
unset($special_diff_contents);
$result = array(
'files' => array(),
'binary' => array(),
'all' => $diff_result,
);
$binary_extensions = array('gif', 'jpg', 'jpeg', 'png', 'ttf');
// Split into file and binary
foreach ($diff_result as $filename)
{
if (strpos($filename, '.') === false)
{
$result['files'][] = $filename;
continue;
}
$extension = explode('.', $filename);
$extension = array_pop($extension);
if (in_array($extension, $binary_extensions))
{
$result['binary'][] = $filename;
}
else
{
$result['files'][] = $filename;
}
}
return $result;
}
/**
* Collect the list of the deleted files from a list of deleted files and folders.
*
* @param string $deleted_filename The full path to a file containing the list of deleted files and directories
* @param string $package_name The name of the package
* @return array
*/
public function collect_deleted_files($deleted_filename, $package_name)
{
$result = array();
$file_contents = file($deleted_filename);
foreach ($file_contents as $filename)
{
$filename = trim($filename);
if (!$filename)
{
continue;
}
$filename = str_replace('Only in ' . $package_name, '', $filename);
$filename = ltrim($filename, '/');
if (substr($filename, 0, 1) == ':')
{
$replace = '';
}
else
{
$replace = '/';
}
$filename = str_replace(': ', $replace, $filename);
if (is_dir("{$this->locations['old_versions']}{$package_name}/{$filename}"))
{
$iterator = new \RecursiveIteratorIterator(
new \RecursiveDirectoryIterator(
"{$this->locations['old_versions']}{$package_name}/{$filename}",
\FilesystemIterator::UNIX_PATHS | \FilesystemIterator::SKIP_DOTS
),
\RecursiveIteratorIterator::LEAVES_ONLY
);
foreach ($iterator as $file_info)
{
$result[] = "{$filename}/{$iterator->getSubPathname()}";
}
}
else
{
$result[] = $filename;
}
}
return $result;
}
}

View File

@@ -1,232 +0,0 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
/**
* Checks that each PHP source file contains a valid header as defined by the
* phpBB Coding Guidelines.
*
* @package code_sniffer
* @author Manuel Pichler <mapi@phpundercontrol.org>
*/
class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
{
/**
* Returns an array of tokens this test wants to listen for.
*
* @return array
*/
public function register()
{
return array(T_OPEN_TAG);
}
/**
* Processes this test, when one of its tokens is encountered.
*
* @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token
* in the stack passed in $tokens.
*
* @return null
*/
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
{
// We are only interested in the first file comment.
if ($stackPtr !== 0)
{
if ($phpcsFile->findPrevious(T_OPEN_TAG, $stackPtr - 1) !== false)
{
return;
}
}
// Fetch next non whitespace token
$tokens = $phpcsFile->getTokens();
$start = $phpcsFile->findNext(T_WHITESPACE, $stackPtr + 1, null, true);
// Skip empty files
if ($tokens[$start]['code'] === T_CLOSE_TAG)
{
return;
}
// Mark as error if this is not a doc comment
else if ($start === false || $tokens[$start]['code'] !== T_DOC_COMMENT_OPEN_TAG)
{
$phpcsFile->addError('Missing required file doc comment.', $stackPtr);
return;
}
// Find comment end token
$end = $tokens[$start]['comment_closer'];
// If there is no end, skip processing here
if ($end === false)
{
return;
}
// check comment lines without the first(/**) an last(*/) line
for ($token = $start + 1, $c = $end - 2; $token <= $c; ++$token)
{
// Check that each line starts with a '*'
if ($tokens[$token]['column'] === 1 && (($tokens[$token]['content'] !== '*' && $tokens[$token]['content'] !== ' ') || ($tokens[$token]['content'] === ' ' && $tokens[$token + 1]['content'] !== '*')))
{
$message = 'The file doc comment should not be indented.';
$phpcsFile->addWarning($message, $token);
}
}
// Check that the first and last line is empty
// /**T_WHITESPACE
// (T_WHITESPACE)*T_WHITESPACE
// (T_WHITESPACE)* ...
// (T_WHITESPACE)*T_WHITESPACE
// T_WHITESPACE*/
if (!(($tokens[$start + 2]['content'] !== '*' && $tokens[$start + 4]['content'] !== '*') || ($tokens[$start + 3]['content'] !== '*' && $tokens[$start + 6]['content'] !== '*')))
{
$message = 'The first file comment line should be empty.';
$phpcsFile->addWarning($message, ($start + 1));
}
if ($tokens[$end - 3]['content'] !== '*' && $tokens[$end - 6]['content'] !== '*')
{
$message = 'The last file comment line should be empty.';
$phpcsFile->addWarning($message, $end - 1);
}
//$this->processPackage($phpcsFile, $start, $tags);
//$this->processVersion($phpcsFile, $start, $tags);
$this->processCopyright($phpcsFile, $start, $tokens[$start]['comment_tags']);
$this->processLicense($phpcsFile, $start, $tokens[$start]['comment_tags']);
}
/**
* Checks that the tags array contains a valid package tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.
* @param array(string=>array) $tags The found file doc comment tags.
*
* @return null
*/
protected function processPackage(PHP_CodeSniffer_File $phpcsFile, $ptr, $tags)
{
if (!isset($tags['package']))
{
$message = 'Missing require @package tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
}
else if (preg_match('/^([\w]+)$/', $tags['package'][0]) === 0)
{
$message = 'Invalid content found for @package tag.';
$phpcsFile->addWarning($message, $tags['package'][1]);
}
}
/**
* Checks that the tags array contains a valid version tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.
* @param array(string=>array) $tags The found file doc comment tags.
*
* @return null
*/
protected function processVersion(PHP_CodeSniffer_File $phpcsFile, $ptr, $tags)
{
if (!isset($tags['version']))
{
$message = 'Missing require @version tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
}
else if (preg_match('/^\$Id:[^\$]+\$$/', $tags['version'][0]) === 0)
{
$message = 'Invalid content found for @version tag, use "$Id: $".';
$phpcsFile->addError($message, $tags['version'][1]);
}
}
/**
* Checks that the tags array contains a valid copyright tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.
* @param array(string=>array) $tags The found file doc comment tags.
*
* @return null
*/
protected function processCopyright(PHP_CodeSniffer_File $phpcsFile, $ptr, $tags)
{
$copyright = '(c) phpBB Limited <https://www.phpbb.com>';
$tokens = $phpcsFile->getTokens();
foreach ($tags as $tag)
{
if ($tokens[$tag]['content'] === '@copyright')
{
if ($tokens[$tag + 2]['content'] !== $copyright)
{
$message = 'Invalid content found for the first @copyright tag, use "' . $copyright . '".';
$phpcsFile->addError($message, $tags['copyright'][0][1]);
}
return;
}
}
$message = 'Missing require @copyright tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
}
/**
* Checks that the tags array contains a valid license tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.
* @param array(string=>array) $tags The found file doc comment tags.
*
* @return null
*/
protected function processLicense(PHP_CodeSniffer_File $phpcsFile, $ptr, $tags)
{
$license = 'GNU General Public License, version 2 (GPL-2.0)';
$tokens = $phpcsFile->getTokens();
$found = false;
foreach ($tags as $tag)
{
if ($tokens[$tag]['content'] === '@license')
{
if ($found)
{
$message = 'It must be only one @license tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
}
$found = true;
if ($tokens[$tag + 2]['content'] !== $license)
{
$message = 'Invalid content found for @license tag, use "' . $license . '".';
$phpcsFile->addError($message, $tags['license'][0][1]);
}
}
}
if (!$found)
{
$message = 'Missing require @license tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
}
}
}

View File

@@ -1,143 +0,0 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
/**
* Checks that the opening brace of a control structures is on the line after.
* From Generic_Sniffs_Functions_OpeningFunctionBraceBsdAllmanSniff
*/
class phpbb_Sniffs_ControlStructures_OpeningBraceBsdAllmanSniff implements PHP_CodeSniffer_Sniff
{
/**
* Registers the tokens that this sniff wants to listen for.
*/
public function register()
{
return array(
T_IF,
T_ELSE,
T_FOREACH,
T_WHILE,
T_DO,
T_FOR,
T_SWITCH,
);
}
/**
* Processes this test, when one of its tokens is encountered.
*
* @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token in the
* stack passed in $tokens.
*
* @return void
*/
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();
if (isset($tokens[$stackPtr]['scope_opener']) === false)
{
return;
}
/*
* ...
* }
* else if ()
* {
* ...
*/
if ($tokens[$stackPtr]['code'] === T_ELSE && $tokens[$stackPtr + 2]['code'] === T_IF)
{
return;
}
$openingBrace = $tokens[$stackPtr]['scope_opener'];
/*
* ...
* do
* {
* <code>
* } while();
* ...
* }
* else
* {
* ...
*/
if ($tokens[$stackPtr]['code'] === T_DO ||$tokens[$stackPtr]['code'] === T_ELSE)
{
$cs_line = $tokens[$stackPtr]['line'];
}
else
{
// The end of the function occurs at the end of the argument list. Its
// like this because some people like to break long function declarations
// over multiple lines.
$cs_line = $tokens[$tokens[$stackPtr]['parenthesis_closer']]['line'];
}
$braceLine = $tokens[$openingBrace]['line'];
$lineDifference = ($braceLine - $cs_line);
if ($lineDifference === 0)
{
$error = 'Opening brace should be on a new line';
$phpcsFile->addError($error, $openingBrace, 'BraceOnSameLine');
return;
}
if ($lineDifference > 1)
{
$error = 'Opening brace should be on the line after the declaration; found %s blank line(s)';
$data = array(($lineDifference - 1));
$phpcsFile->addError($error, $openingBrace, 'BraceSpacing', $data);
return;
}
// We need to actually find the first piece of content on this line,
// as if this is a method with tokens before it (public, static etc)
// or an if with an else before it, then we need to start the scope
// checking from there, rather than the current token.
$lineStart = $stackPtr;
while (($lineStart = $phpcsFile->findPrevious(array(T_WHITESPACE), ($lineStart - 1), null, false)) !== false)
{
if (strpos($tokens[$lineStart]['content'], $phpcsFile->eolChar) !== false)
{
break;
}
}
// We found a new line, now go forward and find the first non-whitespace
// token.
$lineStart = $phpcsFile->findNext(array(T_WHITESPACE), $lineStart, null, true);
// The opening brace is on the correct line, now it needs to be
// checked to be correctly indented.
$startColumn = $tokens[$lineStart]['column'];
$braceIndent = $tokens[$openingBrace]['column'];
if ($braceIndent !== $startColumn)
{
$error = 'Opening brace indented incorrectly; expected %s spaces, found %s';
$data = array(
($startColumn - 1),
($braceIndent - 1),
);
$phpcsFile->addError($error, $openingBrace, 'BraceIndent', $data);
}
}
}

View File

@@ -1,60 +0,0 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
/**
* Checks that there is exactly one space between the keyword and the opening
* parenthesis of a control structures.
*/
class phpbb_Sniffs_ControlStructures_OpeningParenthesisSniff implements PHP_CodeSniffer_Sniff
{
/**
* Registers the tokens that this sniff wants to listen for.
*/
public function register()
{
return array(
T_IF,
T_FOREACH,
T_WHILE,
T_FOR,
T_SWITCH,
T_ELSEIF,
T_CATCH,
);
}
/**
* Processes this test, when one of its tokens is encountered.
*
* @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token in the
* stack passed in $tokens.
*
* @return void
*/
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();
if ($tokens[$stackPtr + 1]['content'] === '(')
{
$error = 'There should be exactly one space between the keyword and opening parenthesis';
$phpcsFile->addError($error, $stackPtr, 'NoSpaceBeforeOpeningParenthesis');
}
else if ($tokens[$stackPtr + 1]['content'] !== ' ')
{
$error = 'There should be exactly one space between the keyword and opening parenthesis';
$phpcsFile->addError($error, $stackPtr, 'IncorrectSpaceBeforeOpeningParenthesis');
}
}
}

View File

@@ -1,253 +0,0 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
/**
* Checks that each use statement is used.
*/
class phpbb_Sniffs_Namespaces_UnusedUseSniff implements PHP_CodeSniffer_Sniff
{
/**
* {@inheritdoc}
*/
public function register()
{
return array(T_USE);
}
protected function check($phpcsFile, $found_name, $full_name, $short_name, $line)
{
if ($found_name === $full_name)
{
$error = 'Either use statement or full name must be used.';
$phpcsFile->addError($error, $line, 'FullName');
}
if ($found_name === $short_name)
{
return true;
}
return false;
}
/**
* {@inheritdoc}
*/
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
{
if ($this->should_ignore_use($phpcsFile, $stackPtr) === true)
{
return;
}
$tokens = $phpcsFile->getTokens();
$class_name_start = $phpcsFile->findNext(array(T_NS_SEPARATOR, T_STRING), ($stackPtr + 1));
$find = array(
T_NS_SEPARATOR,
T_STRING,
T_WHITESPACE,
);
$class_name_end = $phpcsFile->findNext($find, ($stackPtr + 1), null, true);
$aliasing_as_position = $phpcsFile->findNext(T_AS, $class_name_end, null, false, null, true);
if ($aliasing_as_position !== false)
{
$alias_position = $phpcsFile->findNext(T_STRING, $aliasing_as_position, null, false, null, true);
$class_name_short = $tokens[$alias_position]['content'];
$class_name_full = $phpcsFile->getTokensAsString($class_name_start, ($class_name_end - $class_name_start - 1));
}
else
{
$class_name_full = $phpcsFile->getTokensAsString($class_name_start, ($class_name_end - $class_name_start));
$class_name_short = $tokens[$class_name_end - 1]['content'];
}
$ok = false;
// Checks in simple statements (new, instanceof and extends)
foreach (array(T_INSTANCEOF, T_NEW, T_EXTENDS) as $keyword)
{
$old_simple_statement = $stackPtr;
while (($simple_statement = $phpcsFile->findNext($keyword, ($old_simple_statement + 1))) !== false)
{
$old_simple_statement = $simple_statement;
$simple_class_name_start = $phpcsFile->findNext(array(T_NS_SEPARATOR, T_STRING), ($simple_statement + 1));
if ($simple_class_name_start === false) {
continue;
}
$simple_class_name_end = $phpcsFile->findNext($find, ($simple_statement + 1), null, true);
$simple_class_name = trim($phpcsFile->getTokensAsString($simple_class_name_start, ($simple_class_name_end - $simple_class_name_start)));
$ok = $this->check($phpcsFile, $simple_class_name, $class_name_full, $class_name_short, $simple_statement) ? true : $ok;
}
}
// Checks paamayim nekudotayim
$old_paamayim_nekudotayim = $stackPtr;
while (($paamayim_nekudotayim = $phpcsFile->findNext(T_PAAMAYIM_NEKUDOTAYIM, ($old_paamayim_nekudotayim + 1))) !== false)
{
$old_paamayim_nekudotayim = $paamayim_nekudotayim;
$paamayim_nekudotayim_class_name_start = $phpcsFile->findPrevious($find, $paamayim_nekudotayim - 1, null, true);
$paamayim_nekudotayim_class_name_end = $paamayim_nekudotayim - 1;
$paamayim_nekudotayim_class_name = trim($phpcsFile->getTokensAsString($paamayim_nekudotayim_class_name_start + 1, ($paamayim_nekudotayim_class_name_end - $paamayim_nekudotayim_class_name_start)));
$ok = $this->check($phpcsFile, $paamayim_nekudotayim_class_name, $class_name_full, $class_name_short, $paamayim_nekudotayim) ? true : $ok;
}
// Checks in implements
$old_implements = $stackPtr;
while (($implements = $phpcsFile->findNext(T_IMPLEMENTS, ($old_implements + 1))) !== false)
{
$old_implements = $implements;
$old_implemented_class = $implements;
while (($implemented_class = $phpcsFile->findNext(T_STRING, ($old_implemented_class + 1), null, false, null, true)) !== false)
{
$old_implemented_class = $implemented_class;
$implements_class_name_start = $phpcsFile->findNext(array(T_NS_SEPARATOR, T_STRING), ($implemented_class - 1));
$implements_class_name_end = $phpcsFile->findNext($find, ($implemented_class - 1), null, true);
$implements_class_name = trim($phpcsFile->getTokensAsString($implements_class_name_start, ($implements_class_name_end - $implements_class_name_start)));
$ok = $this->check($phpcsFile, $implements_class_name, $class_name_full, $class_name_short, $implements) ? true : $ok;
}
}
$old_docblock = $stackPtr;
while (($docblock = $phpcsFile->findNext(T_DOC_COMMENT_CLOSE_TAG, ($old_docblock + 1))) !== false)
{
$old_docblock = $docblock;
$ok = $this->checkDocblock($phpcsFile, $docblock, $tokens, $class_name_full, $class_name_short) ? true : $ok;
}
// Checks in type hinting
$old_function_declaration = $stackPtr;
while (($function_declaration = $phpcsFile->findNext(T_FUNCTION, ($old_function_declaration + 1))) !== false)
{
$old_function_declaration = $function_declaration;
// Check type hint
$params = $phpcsFile->getMethodParameters($function_declaration);
foreach ($params as $param)
{
$ok = $this->check($phpcsFile, $param['type_hint'], $class_name_full, $class_name_short, $function_declaration) ? true : $ok;
}
}
// Checks in catch blocks
$old_catch = $stackPtr;
while (($catch = $phpcsFile->findNext(T_CATCH, ($old_catch + 1))) !== false)
{
$old_catch = $catch;
$caught_class_name_start = $phpcsFile->findNext(array(T_NS_SEPARATOR, T_STRING), $catch + 1);
$caught_class_name_end = $phpcsFile->findNext($find, $caught_class_name_start + 1, null, true);
$caught_class_name = trim($phpcsFile->getTokensAsString($caught_class_name_start, ($caught_class_name_end - $caught_class_name_start)));
$ok = $this->check($phpcsFile, $caught_class_name, $class_name_full, $class_name_short, $catch) ? true : $ok;
}
if (!$ok)
{
$error = 'There must not be unused USE statements.';
$phpcsFile->addError($error, $stackPtr, 'Unused');
}
}
/**
* Check if this use statement is part of the namespace block.
*
* @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token in
* the stack passed in $tokens.
*
* @return bool
*/
private function should_ignore_use(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();
// Ignore USE keywords inside closures.
$next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
if ($tokens[$next]['code'] === T_OPEN_PARENTHESIS)
{
return true;
}
// Ignore USE keywords for traits.
if ($phpcsFile->hasCondition($stackPtr, array(T_CLASS, T_TRAIT)) === true)
{
return true;
}
return false;
}
/**
* @param PHP_CodeSniffer_File $phpcsFile
* @param int $field
* @param array $tokens
* @param string $class_name_full
* @param string $class_name_short
* @param bool $ok
*
* @return bool
*/
private function checkDocblock(PHP_CodeSniffer_File $phpcsFile, $comment_end, $tokens, $class_name_full, $class_name_short)
{
$ok = false;
$comment_start = $tokens[$comment_end]['comment_opener'];
foreach ($tokens[$comment_start]['comment_tags'] as $tag)
{
if (!in_array($tokens[$tag]['content'], array('@param', '@var', '@return', '@throws'), true))
{
continue;
}
$classes = $tokens[($tag + 2)]['content'];
$space = strpos($classes, ' ');
if ($space !== false)
{
$classes = substr($classes, 0, $space);
}
$tab = strpos($classes, "\t");
if ($tab !== false)
{
$classes = substr($classes, 0, $tab);
}
$classes = explode('|', str_replace('[]', '', $classes));
foreach ($classes as $class)
{
$ok = $this->check($phpcsFile, $class, $class_name_full, $class_name_short, $tokens[$tag + 2]['line']) ? true : $ok;
}
}
return $ok;
}
}

View File

@@ -1,18 +0,0 @@
<?xml version="1.0"?>
<ruleset name="phpBB Minimum Standard">
<description>phpBB minimum coding standard</description>
<!-- All code files MUST use only UTF-8 without BOM. -->
<rule ref="Generic.Files.ByteOrderMark" />
<!-- All code files MUST use the Unix LF (linefeed) line ending. -->
<rule ref="Generic.Files.LineEndings" />
<!-- Tabs MUST be used for indentation -->
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent" />
<!-- ALL braces MUST be on their own lines. -->
<rule ref="./phpbb/Sniffs/ControlStructures/OpeningBraceBsdAllmanSniff.php" />
</ruleset>

View File

@@ -1,8 +0,0 @@
<?xml version="1.0"?>
<ruleset name="phpBB PHP Strict Standard Extensions">
<description>phpBB coding standard for PHP files of phpBB extensions</description>
<rule ref="./ruleset-php-strict.xml" />
</ruleset>

View File

@@ -1,11 +0,0 @@
<?xml version="1.0"?>
<ruleset name="phpBB PHP Legacy Standard Core">
<description>phpBB legacy coding standard for PHP files of phpBB core</description>
<rule ref="./ruleset-php-legacy.xml" />
<!-- Each file MUST start with a valid header as defined by the Coding Guidelines -->
<rule ref="./phpbb/Sniffs/Commenting/FileCommentSniff.php" />
</ruleset>

View File

@@ -1,92 +0,0 @@
<?xml version="1.0"?>
<ruleset name="phpBB PHP Legacy Standard">
<description>phpBB legacy coding standard for PHP files</description>
<rule ref="./ruleset-minimum.xml" />
<!-- "for (; bar; )" should be "while (bar)" instead -->
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" />
<!-- A method MUST not only call its parent -->
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
<!-- The body of each structure MUST be enclosed by braces. -->
<rule ref="Generic.ControlStructures.InlineControlStructure" />
<!-- There MUST not be more than one statement per line. -->
<rule ref="Generic.Formatting.DisallowMultipleStatements" />
<!-- Call-time pass-by-reference MUST not be used. -->
<rule ref="Generic.Functions.CallTimePassByReference.NotAllowed" />
<!-- Filenames MUST be lowercase. -->
<rule ref="Generic.Files.LowercasedFilename" />
<!-- The function brace MUST be on the line following the function declaration
and MUST be indented to the same column as the start of the function declaration. -->
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman" />
<!-- There MUST be exactly one space after a cast. -->
<rule ref="Generic.Formatting.SpaceAfterCast" />
<!-- Class constants MUST be declared in all upper case with underscore separators. -->
<rule ref="Generic.NamingConventions.UpperCaseConstantName" />
<!-- Only <?php, no short tags. -->
<rule ref="Generic.PHP.DisallowShortOpenTag.EchoFound" />
<!-- Method arguments with default values MUST go at the end of the argument list. -->
<rule ref="PEAR.Functions.ValidDefaultValue" />
<!-- Each file MUST end with exactly one newline character -->
<rule ref="PSR2.Files.EndFileNewline" />
<!-- When referencing arrays there MUST NOT be any whitespace around the opening bracket
or before the closing bracket. -->
<rule ref="Squiz.Arrays.ArrayBracketSpacing" />
<!-- The "else if" statement MUST be written with a space between the words else and if. -->
<rule ref="Squiz.ControlStructures.ElseIfDeclaration" />
<!-- There MUST be a space between each element of a foreach loop. -->
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration" />
<!-- In a for loop declaration, there MUST be no space inside the brackets
and there MUST be 0 spaces before and 1 space after semicolons. -->
<rule ref="Squiz.ControlStructures.ForLoopDeclaration" />
<!-- In the argument list, there MUST NOT be a space before each comma,
and there MUST be one space after each comma. -->
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
<properties>
<property name="equalsSpacing" value="1"/>
</properties>
</rule>
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint" />
<!-- All built-in PHP functions MUST be called lowercased. -->
<rule ref="Squiz.Functions.LowercaseFunctionKeywords" />
<!-- The eval() function MUST NOT be used. -->
<rule ref="Squiz.PHP.Eval" />
<!-- There MUST NOT be trailing whitespace at the end of lines. -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" />
<!-- There MUST NOT be whitespace before the first content of a file -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile" />
<!-- There MUST NOT be whitespace after the last content of a file -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndFile" />
<!-- Functions MUST NOT contain multiple empty lines in a row -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" />
<!-- The ?> closing tag MUST be omitted from files containing only PHP. -->
<rule ref="Zend.Files.ClosingTag" />
<!-- There MUST be one space between control structure and opening parenthesis -->
<rule ref="./phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php" />
</ruleset>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0"?>
<ruleset name="phpBB PHP Strict Standard Core">
<description>phpBB coding standard for PHP files of phpBB core</description>
<rule ref="./ruleset-php-legacy-core.xml" />
<rule ref="./ruleset-php-strict.xml" />
</ruleset>

View File

@@ -1,48 +0,0 @@
<?xml version="1.0"?>
<ruleset name="phpBB PHP Strict Standard">
<description>phpBB coding standard for PHP files</description>
<rule ref="./ruleset-php-legacy.xml" />
<!-- There SHOULD NOT be more than 80 characters per line
There MUST NOT be more than 120 characters per line -->
<!--
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="80"/>
<property name="absoluteLineLimit" value="120"/>
</properties>
</rule>
-->
<!-- The PHP constants true, false, and null MUST be in lower case. -->
<rule ref="Generic.PHP.LowerCaseConstant" />
<!-- PHP keywords MUST be in lower case. -->
<rule ref="Generic.PHP.LowerCaseKeyword" />
<!-- Constructors MUST be called __construct() instead of after the class. -->
<rule ref="Generic.NamingConventions.ConstructorName" />
<!-- Classes etc. MUST be namespaced -->
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace" />
<!-- A file MUST not contain more than one class/interface -->
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses" />
<!-- Files containing classes MUST not have any side-effects -->
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols" />
<!-- When present, all use declarations MUST go after the namespace declaration.
There MUST be one use keyword per declaration.
There MUST be one blank line after the use block. -->
<rule ref="PSR2.Namespaces.UseDeclaration" />
<!-- There MUST be one blank line after the namespace declaration -->
<rule ref="PSR2.Namespaces.NamespaceDeclaration" />
<!-- There MUST NOT be unused use statements. -->
<rule ref="./phpbb/Sniffs/Namespaces/UnusedUseSniff.php" />
</ruleset>

View File

@@ -1,39 +0,0 @@
#!/usr/bin/env bash
orig_dir="../../phpBB"
rm -rf test_release_files
mkdir test_release_files
cd test_release_files
for ext in "tar.bz2" "zip"
do
cp "../new_version/release_files/$1.$ext" ./
if [ "$ext" = "tar.bz2" ]
then
command="tar -xjf"
else
command="unzip -q"
fi
$command "$1.$ext"
for file in `find phpBB3 -name '.svn' -prune -o -type f -print`
do
orig_file="${file/#phpBB3/$orig_dir}"
diff_result=`diff $orig_file $file`
if [ -n "$diff_result" ]
then
echo "Difference in package $1.$ext"
echo $diff_result
fi
done
rm -rf phpBB3
done
cd ..
rm -rf test_release_files

View File

@@ -1,503 +0,0 @@
#!/usr/bin/env php
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
//$versions = array('3.0.2', '3.0.3', '3.0.4', '3.0.5', '3.0.6', '3.0.7-RC1', '3.0.7-RC2', '3.0.7', '3.0.7-PL1');
if ($_SERVER['argc'] < 2)
{
die("Please specify a list of versions as the first argument (e.g. package.php '1.0.0, 1.0.1, 1.0.2').");
}
$versions = explode(',', $_SERVER['argv'][1]);
$versions = array_map('trim', $versions);
$verbose = true;
require('build_helper.php');
$package = new build_package($versions, $verbose);
echo "Building Release Packages\n";
echo "Now all three package types (patch, files, release) are built as well as the update package (update).\n";
// Go trough all versions making a diff if we even have old versions
// For phpBB 3.0.x we might choose a different update method, rendering the things below useless...
if (count($package->old_packages))
{
chdir($package->locations['old_versions']);
// This array is for holding the filenames change
$diff_file_changes = array();
foreach ($package->old_packages as $_package_name => $dest_package_filename)
{
$package->begin_status('Parsing patch/diff files for phpBB-' . $dest_package_filename . $package->get('new_version_number'));
// Parse this diff to determine file changes from the checked versions and save them
$diff_file_changes[$_package_name] = $package->collect_diff_files(
$package->get('patch_directory') . '/phpBB-' . $dest_package_filename . $package->get('new_version_number') . '.patch',
$_package_name
);
$diff_file_changes[$_package_name]['deleted'] = $package->collect_deleted_files(
$package->get('patch_directory') . '/phpBB-' . $dest_package_filename . $package->get('new_version_number') . '.deleted',
$_package_name
);
}
// Now put those files determined within the correct directories
foreach ($diff_file_changes as $_package_name => $file_contents)
{
$package->begin_status('Creating files-only informations for ' . $package->old_packages[$_package_name] . $package->get('new_version_number'));
$dest_filename_dir = $package->get('files_directory') . '/' . $package->old_packages[$_package_name] . $package->get('new_version_number');
if (!file_exists($dest_filename_dir))
{
$package->run_command('mkdir ' . $dest_filename_dir);
}
// Now copy the file contents
foreach ($file_contents['all'] as $file)
{
$source_filename = $package->get('dest_dir') . '/' . $file;
$dest_filename = $dest_filename_dir . '/' . $file;
// Create Directories along the way?
$file = explode('/', $file);
// Remove filename portion
$file[count($file)-1] = '';
chdir($dest_filename_dir);
foreach ($file as $entry)
{
$entry = trim($entry);
if ($entry)
{
if (!file_exists('./' . $entry))
{
$package->run_command('mkdir ' . $entry);
}
chdir('./' . $entry);
}
}
$package->run_command('cp ' . $source_filename . ' ' . $dest_filename);
}
}
// Because there might be binary changes, we re-create the patch files... without parsing file differences.
$package->run_command('rm -Rv ' . $package->get('patch_directory'));
if (!file_exists($package->get('patch_directory')))
{
$package->run_command('mkdir ' . $package->get('patch_directory'));
}
chdir($package->locations['old_versions']);
foreach ($package->old_packages as $_package_name => $dest_package_filename)
{
$package->begin_status('Creating patch/diff files for phpBB-' . $dest_package_filename . $package->get('new_version_number'));
$dest_package_filename = $package->get('patch_directory') . '/phpBB-' . $dest_package_filename . $package->get('new_version_number') . '.patch';
$package->run_command('diff ' . $package->diff_options_long . ' ' . $_package_name . ' ' . $package->get('simple_name') . ' > ' . $dest_package_filename);
}
$packages = $diff_file_changes;
foreach ($packages as $_package_name => $file_contents)
{
$package->begin_status('Building specific update files for ' . $package->old_packages[$_package_name] . $package->get('new_version_number'));
$dest_filename_dir = $package->get('update_directory') . '/' . $package->old_packages[$_package_name] . $package->get('new_version_number');
if (!file_exists($dest_filename_dir))
{
$package->run_command('mkdir ' . $dest_filename_dir);
}
$package->run_command('cp -Rp ' . $package->get('dest_dir') . '/docs ' . $dest_filename_dir);
$package->run_command('cp -Rp ' . $package->get('dest_dir') . '/install ' . $dest_filename_dir);
$package->run_command('cp -Rp ' . $package->get('dest_dir') . '/vendor ' . $dest_filename_dir);
$package->run_command('mkdir ' . $dest_filename_dir . '/install/update');
$package->run_command('mkdir ' . $dest_filename_dir . '/install/update/old');
$package->run_command('mkdir ' . $dest_filename_dir . '/install/update/new');
// Remove some files
$package->run_command('rm -v ' . $dest_filename_dir . '/install/install_install.php');
$package->run_command('rm -v ' . $dest_filename_dir . '/install/install_convert.php');
$package->run_command('rm -Rv ' . $dest_filename_dir . '/install/schemas');
$package->run_command('rm -Rv ' . $dest_filename_dir . '/install/convertors');
foreach ($file_contents['all'] as $index => $file)
{
if (strpos($file, 'recode_cjk') !== false)
{
unset($file_contents['all'][$index]);
}
$source_filename = $package->locations['old_versions'] . $package->get('simple_name') . '/' . $file;
if (!file_exists($source_filename))
{
unset($file_contents['all'][$index]);
}
}
// First of all, fill the 'old' directory
foreach ($file_contents['all'] as $file)
{
$source_filename = $package->locations['old_versions'] . $_package_name . '/' . $file;
$dest_filename = $dest_filename_dir . '/install/update/old/' . $file;
if (!file_exists($source_filename))
{
continue;
}
// Create Directories along the way?
$file = explode('/', $file);
// Remove filename portion
$file[count($file)-1] = '';
chdir($dest_filename_dir . '/install/update/old');
foreach ($file as $entry)
{
$entry = trim($entry);
if ($entry)
{
if (!file_exists('./' . $entry))
{
$package->run_command('mkdir ' . $entry);
}
chdir('./' . $entry);
}
}
$package->run_command('cp ' . $source_filename . ' ' . $dest_filename);
}
/**
* We try to keep the update packages as small as possible while creating them.
* However, we sometimes need to include additional files that are not included
* in the diff in order to be able to correctly include the relatively
* referenced files from the same or subsequent directories.
*/
$copy_relative_directories = array(
'config/' => array(
'recursive' => true,
'copied' => false,
'copy' => array(
'config/*' => 'config',
),
),
);
// Then fill the 'new' directory
foreach ($file_contents['all'] as $file)
{
$source_filename = $package->locations['old_versions'] . $package->get('simple_name') . '/' . $file;
$dest_filename = $dest_filename_dir . '/install/update/new/' . $file;
$filename = $file;
// Create Directories along the way?
$file = explode('/', $file);
// Remove filename portion
$file[count($file)-1] = '';
chdir($dest_filename_dir . '/install/update/new');
foreach ($file as $entry)
{
$entry = trim($entry);
if ($entry)
{
if (!file_exists('./' . $entry))
{
$package->run_command('mkdir ' . $entry);
}
chdir('./' . $entry);
}
}
$package->run_command('cp ' . $source_filename . ' ' . $dest_filename);
foreach ($copy_relative_directories as $reference => $data)
{
// Copy all relative referenced files if needed
if (strpos($filename, $reference) === 0 && !$data['copied'])
{
foreach ($data['copy'] as $source_dir_files => $destination_dir)
{
// Create directories along the way?
$directories = explode('/', $destination_dir);
chdir($dest_filename_dir . '/install/update/new');
foreach ($directories as $dir)
{
$dir = trim($dir);
if ($dir)
{
if (!file_exists('./' . $dir))
{
$package->run_command('mkdir ' . $dir);
}
chdir('./' . $dir);
}
}
$source_dir_files = $package->locations['old_versions'] . $package->get('simple_name') . '/' . $source_dir_files;
$destination_dir = $dest_filename_dir . '/install/update/new/' . $destination_dir;
if (isset($data['recursive']) && $data['recursive'])
{
$package->run_command('cp -Rp ' . $source_dir_files . ' ' . $destination_dir);
}
else
{
$package->run_command('cp ' . $source_dir_files . ' ' . $destination_dir);
}
}
$copy_relative_directories[$reference]['copied'] = true;
}
}
}
/**
* We need to always copy the template and asset files that we need in
* the update, to ensure that the page is displayed correctly.
*/
$copy_update_files = array(
'adm/images/*' => 'adm/images',
'adm/style/admin.css' => 'adm/style',
'adm/style/admin.js' => 'adm/style',
'adm/style/ajax.js' => 'adm/style',
'adm/style/installer_*' => 'adm/style',
'assets/javascript/*' => 'assets/javascript',
);
foreach ($copy_update_files as $source_files => $destination_dir)
{
// Create directories along the way?
$directories = explode('/', $destination_dir);
chdir($dest_filename_dir . '/install/update/new');
foreach ($directories as $dir)
{
$dir = trim($dir);
if ($dir)
{
if (!file_exists('./' . $dir))
{
$package->run_command('mkdir ' . $dir);
}
chdir('./' . $dir);
}
}
$source_dir_files = $package->locations['old_versions'] . $package->get('simple_name') . '/' . $source_files;
$destination_dir = $dest_filename_dir . '/install/update/new/' . $destination_dir;
$package->run_command('cp ' . $source_dir_files . ' ' . $destination_dir);
}
// Build index.php file for holding the file structure
$index_contents = '<?php
if (!defined(\'IN_PHPBB\'))
{
exit;
}
// Set update info with file structure to update
$update_info = array(
\'version\' => array(\'from\' => \'' . str_replace('_to_', '', $package->old_packages[$_package_name]) . '\', \'to\' => \'' . $package->get('new_version_number') . '\'),
';
if (count($file_contents['all']))
{
$index_contents .= "\t'files' => array(\n\t\t'" . implode("',\n\t\t'", $file_contents['all']) . "',\n\t),\n";
}
else
{
$index_contents .= "\t'files' => array(),\n";
}
if (count($file_contents['binary']))
{
$index_contents .= "\t'binary' => array(\n\t\t'" . implode("',\n\t\t'", $file_contents['binary']) . "',\n\t),\n";
}
else
{
$index_contents .= "\t'binary' => array(),\n";
}
if (count($file_contents['deleted']))
{
$index_contents .= "\t'deleted' => array(\n\t\t'" . implode("',\n\t\t'", $file_contents['deleted']) . "',\n\t),\n";
}
else
{
$index_contents .= "\t'deleted' => array(),\n";
}
$index_contents .= ");\n";
$fp = fopen($dest_filename_dir . '/install/update/index.php', 'wt');
fwrite($fp, $index_contents);
fclose($fp);
}
unset($diff_file_changes);
$package->begin_status('Clean up all install files');
// Copy the install files to their respective locations
$package->run_command('cp -Rp ' . $package->get('dest_dir') . '/docs ' . $package->get('patch_directory'));
$package->run_command('cp -Rp ' . $package->get('dest_dir') . '/install ' . $package->get('patch_directory'));
$package->run_command('cp -Rp ' . $package->get('dest_dir') . '/vendor ' . $package->get('patch_directory'));
// Remove some files
chdir($package->get('patch_directory') . '/install');
$package->run_command('rm -v install_install.php');
$package->run_command('rm -v install_update.php');
$package->run_command('rm -v install_convert.php');
$package->run_command('rm -Rv schemas');
$package->run_command('rm -Rv convertors');
}
// Build Main phpBB Release
$compress_programs = array(
// 'tar.gz' => 'tar -czf',
'tar.bz2' => 'tar -cjf',
'zip' => 'zip -r'
);
if (count($package->old_packages))
{
// Build Patch Files
chdir($package->get('patch_directory'));
foreach ($compress_programs as $extension => $compress_command)
{
$package->begin_status('Packaging phpBB Patch Files for ' . $extension);
// Build Package
$package->run_command($compress_command . ' ../release_files/' . $package->get('release_filename') . '-patch.' . $extension . ' *');
}
// Build Files Package
chdir($package->get('files_directory'));
foreach ($compress_programs as $extension => $compress_command)
{
$package->begin_status('Packaging phpBB Files for ' . $extension);
$package->run_command('mkdir ' . $package->get('files_directory') . '/release');
$package->run_command('cp -Rp ' . $package->get('dest_dir') . '/docs ' . $package->get('files_directory') . '/release');
$package->run_command('cp -Rp ' . $package->get('dest_dir') . '/install ' . $package->get('files_directory') . '/release');
$package->run_command('cp -Rp ' . $package->get('dest_dir') . '/vendor ' . $package->get('files_directory') . '/release');
$package->run_command('rm -v ' . $package->get('files_directory') . '/release/install/install_install.php');
$package->run_command('rm -v ' . $package->get('files_directory') . '/release/install/install_update.php');
$package->run_command('rm -v ' . $package->get('files_directory') . '/release/install/install_convert.php');
$package->run_command('rm -Rv ' . $package->get('files_directory') . '/release/install/schemas');
$package->run_command('rm -Rv ' . $package->get('files_directory') . '/release/install/convertors');
// Pack files
foreach ($package->old_packages as $_package_name => $package_path)
{
chdir($package_path . $package->get('new_version_number'));
$command = ($extension == 'zip') ? 'zip -r' : 'tar cf';
$_ext = ($extension == 'zip') ? 'zip' : 'tar';
$package->run_command("$command ../release/phpBB-$package_path" . $package->get('new_version_number') . ".$_ext *");
chdir('..');
}
chdir('./release');
$package->run_command("$compress_command ../../release_files/" . $package->get('release_filename') . '-files.' . $extension . ' *');
chdir('..');
$package->run_command('rm -Rv ' . $package->get('files_directory') . '/release');
}
// Build Update Package
foreach ($compress_programs as $extension => $compress_command)
{
chdir($package->get('update_directory'));
$package->begin_status('Packaging phpBB Update for ' . $extension);
$package->run_command('mkdir ' . $package->get('update_directory') . '/release');
// Pack update files
$packages = $package->old_packages;
foreach ($packages as $_package_name => $package_path)
{
chdir($package_path . $package->get('new_version_number'));
$package->run_command('rm -v install/install_install.php');
$package->run_command('rm -v install/install_convert.php');
$package->run_command('rm -v includes/utf/data/recode_cjk.php');
$package->run_command('rm -Rv install/schemas');
$package->run_command('rm -Rv install/convertors');
$command = ($extension == 'zip') ? 'zip -r' : 'tar cf';
$_ext = ($extension == 'zip') ? 'zip' : 'tar';
$package->run_command("$command ../release/$package_path" . $package->get('new_version_number') . ".$_ext *");
chdir('..');
$last_version = $package_path . $package->get('new_version_number');
// chdir('./release');
// $package->run_command("$compress_command ../../release_files/" . $package->get('release_filename') . '-update.' . $extension . ' *');
// chdir('..');
chdir('./' . $last_version);
// Copy last package over...
$package->run_command('rm -v ../release_files/phpBB-' . $last_version . ".$extension");
$package->run_command("$compress_command ../../release_files/phpBB-$last_version.$extension *");
chdir('..');
}
$package->run_command('rm -Rv ' . $package->get('update_directory') . '/release');
}
}
// Delete updater and convertor from main archive
chdir($package->get('dest_dir') . '/install');
// $package->run_command('rm -v database_update.php');
$package->run_command('rm -v install_update.php');
chdir($package->locations['package_dir']);
foreach ($compress_programs as $extension => $compress_command)
{
$package->begin_status('Packaging phpBB for ' . $extension);
$package->run_command('rm -v ./release_files/' . $package->get('release_filename') . ".{$extension}");
// Build Package
$package->run_command("$compress_command ./release_files/" . $package->get('release_filename') . '.' . $extension . ' ' . $package->get('package_name'));
}
// Microsoft Web PI packaging
$package->begin_status('Packaging phpBB for Microsoft WebPI');
$file = './release_files/' . $package->get('release_filename') . '.webpi.zip';
$package->run_command('cp -p ./release_files/' . $package->get('release_filename') . ".zip $file");
$package->run_command('cd ./../webpi && ' . $compress_programs['zip'] . " ./../new_version/$file *");
// verify results
chdir($package->locations['root']);
$package->begin_status('********** Verifying packages **********');
$package->run_command('./compare.sh ' . $package->package_infos['release_filename']);
echo "Done.\n";

View File

@@ -1,32 +0,0 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
require __DIR__ . '/sami-checkout.conf.php';
$config['versions'] = Sami\Version\GitVersionCollection::create(__DIR__ . '/../')
/*
This would be nice, but currently causes various problems that need
debugging.
->addFromTags('release-3.0.*')
->add('3.0.x', '3.0-next (olympus)')
->addFromTags('release-3.1.*')
->add('3.1.x', '3.1-next (ascraeus)')
->add('master')
*/
->add('3.0.x')
->add('3.1.x')
->add('3.2.x')
->add('master')
;
return new Sami\Sami($iterator, $config);

View File

@@ -1,44 +0,0 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
// Prevent 'Class "acm" does not exist.' exception on removeClass().
class PhpbbArrayStore extends Sami\Store\ArrayStore
{
public function removeClass(Sami\Project $project, $name)
{
unset($this->classes[$name]);
}
}
$iterator = Symfony\Component\Finder\Finder::create()
->files()
->name('*.php')
->in(__DIR__ . '/../phpBB/')
->notPath('#^cache/#')
->notPath('#^develop/#')
->notPath('#^ext/#')
->notPath('#^vendor/#')
->notPath('data')
;
$config = array(
'theme' => 'enhanced',
'title' => 'phpBB API Documentation',
'build_dir' => __DIR__.'/api/output/%version%',
'cache_dir' => __DIR__.'/api/cache/%version%',
'default_opened_level' => 2,
// Do not use JsonStore. See https://github.com/fabpot/Sami/issues/79
'store' => new PhpbbArrayStore,
);
return new Sami\Sami($iterator, $config);

View File

@@ -1,39 +0,0 @@
/**********************************************************************/
/* Install.SQL */
/* Creates a login and makes the user a member of db roles */
/* */
/**********************************************************************/
-- Declare variables for database name, username and password
DECLARE @dbName sysname,
@dbUser sysname,
@dbPwd nvarchar(max);
-- Set variables for database name, username and password
SET @dbName = 'PlaceHolderForDb';
SET @dbUser = 'PlaceHolderForUser';
SET @dbPwd = 'PlaceHolderForPassword';
DECLARE @cmd nvarchar(max)
-- Create login
IF( SUSER_SID(@dbUser) is null )
BEGIN
print '-- Creating login '
SET @cmd = N'CREATE LOGIN ' + quotename(@dbUser) + N' WITH PASSWORD ='''+ replace(@dbPwd, '''', '''''') + N''''
EXEC(@cmd)
END
-- Create database user and map to login
-- and add user to the datareader, datawriter, ddladmin and securityadmin roles
--
SET @cmd = N'USE ' + quotename(@DBName) + N';
IF( NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = ''' + replace(@dbUser, '''', '''''') + N'''))
BEGIN
print ''-- Creating user'';
CREATE USER ' + quotename(@dbUser) + N' FOR LOGIN ' + quotename(@dbUser) + N';
print ''-- Adding user'';
EXEC sp_addrolemember ''db_owner'', ''' + replace(@dbUser, '''', '''''') + N''';
END'
EXEC(@cmd)
GO

View File

@@ -1,15 +0,0 @@
USE PlaceHolderForDb$$
DROP PROCEDURE IF EXISTS add_user $$
CREATE PROCEDURE add_user()
BEGIN
DECLARE EXIT HANDLER FOR 1044 BEGIN END;
GRANT ALL PRIVILEGES ON PlaceHolderForDb.* to 'PlaceHolderForUser'@'PlaceHolderForServer' IDENTIFIED BY 'PlaceHolderForPassword';
FLUSH PRIVILEGES;
END
$$
CALL add_user() $$
DROP PROCEDURE IF EXISTS add_user $$

View File

@@ -1,13 +0,0 @@
<msdeploy.iisapp>
<iisapp path="phpBB3" />
<dbmysql path="install/mysql.sql" commandDelimiter="$$" removeCommandDelimiter="true" />
<dbfullsql path="install/mssql.sql" />
<setAcl path="phpBB3/cache" setAclAccess="Modify" setAclUser="anonymousAuthenticationUser" />
<setAcl path="phpBB3/files" setAclAccess="Modify" setAclUser="anonymousAuthenticationUser" />
<setAcl path="phpBB3/store" setAclAccess="Modify" setAclUser="anonymousAuthenticationUser" />
<setAcl path="phpBB3/images/avatars/upload" setAclAccess="Modify" setAclUser="anonymousAuthenticationUser" />
<setAcl path="phpBB3/config.php" setAclAccess="Modify" setAclUser="anonymousAuthenticationUser" setAclResourceType="File" />
</msdeploy.iisapp>

View File

@@ -1,256 +0,0 @@
<parameters>
<parameter
name="AppPath"
defaultValue="Default Web Site/phpBB3"
tags="iisapp">
<parameterEntry
type="ProviderPath"
scope="iisapp"
match="phpBB3" />
</parameter>
<!--ACLs-->
<parameter
name="aclCache"
description="Sets the ACL on the cache/ folder"
defaultValue="{AppPath}/cache"
tags="Hidden">
<parameterEntry
type="ProviderPath"
scope="setAcl"
match="phpBB3/cache$" />
</parameter>
<parameter
name="aclFiles"
description="Sets the ACL on the files/ folder"
defaultValue="{AppPath}/files"
tags="Hidden">
<parameterEntry
type="ProviderPath"
scope="setAcl"
match="phpBB3/files$" />
</parameter>
<parameter
name="aclStore"
description="Sets the ACL on the store/ folder"
defaultValue="{AppPath}/store"
tags="Hidden">
<parameterEntry
type="ProviderPath"
scope="setAcl"
match="phpBB3/store$" />
</parameter>
<parameter
name="aclAvatarUpload"
description="Sets the ACL on the avatars/upload/ folder"
defaultValue="{AppPath}/images/avatars/upload"
tags="Hidden">
<parameterEntry
type="ProviderPath"
scope="setAcl"
match="phpBB3/images/avatars/upload$" />
</parameter>
<parameter
name="aclConfig"
description="Sets the ACL on the config.php file"
defaultValue="{AppPath}/config.php"
tags="Hidden">
<parameterEntry
type="ProviderPath"
scope="setAcl"
match="phpBB3/config.php$" />
</parameter>
<!-- SQL parameters -->
<parameter name="SQL Database Server" description="Enter the database server (usually machine name ) " defaultValue="." tags="SQL">
</parameter>
<parameter name="SQL DatabaseServer Instance" description="Enter the database instance name" defaultValue="SQLExpress" tags="SQL">
</parameter>
<!-- Read database server from config.php . Update 'dbhost' in config.php on publish -->
<parameter name="SQL Automatic DatabaseServer" defaultValue="dbhost = '{SQL Database Server}\\{SQL DatabaseServer Instance}';" tags="Hidden,SQL">
<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbhost\s*=\s*'([^']*)'\s*;" />
</parameter>
<parameter
name="SQL DatabaseName" description="Database name for your application." defaultValue="phpbb" tags="SQL, dbName">
<parameterEntry type="TextFile" scope="install/mssql.sql" match="PlaceHolderForDb" />
</parameter>
<!-- Read database name from config.php . Update 'dbname' in config.php on publish -->
<parameter name="SQL Automatic DatabaseName" defaultValue="dbname = '{SQL DatabaseName}';" tags="Hidden,SQL">
<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbname\s*=\s*'([^']*)'\s*;" />
</parameter>
<parameter
name="SQL DatabaseAdministrator"
description="Database server administartor username."
defaultValue="sa"
tags="SQL, DbAdminUsername" >
</parameter>
<parameter
name="SQL DatabaseAdministratorPassword"
description="Database server administrator password."
tags="Password,SQL,DbAdminPassword">
</parameter>
<parameter
name="SQL Database Username"
description="Username to access your database."
defaultValue="phpbb"
tags="SQL, DbUsername">
<parameterEntry
type="TextFile"
scope="install/mssql.sql"
match="PlaceHolderForUser" />
</parameter>
<!-- Read database user from config.php . Update 'dbuser' in config.php on publish -->
<parameter name="SQL Automatic Database User" defaultValue="dbuser = '{SQL Database Username}';" tags="Hidden,SQL">
<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbuser\s*=\s*'([^']*)'\s*;" />
</parameter>
<parameter
name="SQL Database Password"
description="Password for your phpBB database. (Must be at least 8 characters, contain at least one lower case letter, one upper case letter and one digit)"
tags="New, Password,SQL, DbUserPassword">
<parameterValidation
type = "RegularExpression"
validationString = "^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$" />
<parameterEntry
type="TextFile"
scope="install/mssql.sql"
match="PlaceHolderForPassword" />
</parameter>
<!-- Read database user password from config.php . Update 'dbpasswd' in config.php on publish -->
<parameter name="SQL Automatic Database Password" defaultValue="dbpasswd = '{SQL Database Password}';" tags="Hidden,SQL">
<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbpasswd\s*=\s*'([^']*)'\s*;" />
</parameter>
<!-- SQL Connection string -->
<parameter
name="SQL ConnectionString"
description="Automatically sets the connection string for the connection request."
defaultValue="Server={SQL Database Server}\{SQL DatabaseServer Instance};Database={SQL DatabaseName};uid={SQL DatabaseAdministrator};Pwd={SQL DatabaseAdministratorPassword};"
tags="Hidden,SQLConnectionString,Validate">
<parameterEntry
type="ProviderPath"
scope="dbfullsql"
match="install/mssql.sql" />
</parameter>
<parameter
name="SQL Database type"
description="SQL database type"
defaultValue="mssql"
tags="SQL,Hidden">
</parameter>
<!-- MYSQL parameters -->
<parameter
name="MySQL Database Server"
description="Enter the hostname"
defaultValue="localhost"
tags="MySQL, dbServer">
<parameterEntry
type="TextFile"
scope="install/mysql.sql"
match="PlaceHolderForServer" />
</parameter>
<!-- Read database server from config.php . Update 'dbhost' in config.php on publish -->
<parameter name="Automatic MySQL DatabaseServer" defaultValue="dbhost = '{MySQL Database Server}';" tags="Hidden,MySQL">
<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbhost\s*=\s*'([^']*)'\s*;" />
</parameter>
<parameter
name="MySQL Database Name"
description="Database Name for your application."
defaultValue="phpbb"
tags="MySQL, dbName">
<parameterEntry
type="TextFile"
scope="install/mysql.sql"
match="PlaceHolderForDb" />
</parameter>
<!-- Read database name from config.php . Update 'dbname' in config.php on publish -->
<parameter name="Automatic MySQL Database Name" defaultValue="dbname = '{MySQL Database Name}';" tags="Hidden,MySQL">
<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbname\s*=\s*'([^']*)'\s*;" />
</parameter>
<parameter
name="MySQL Database Username"
description="Username to access your phpBB database."
defaultValue="phpbb"
tags="MySQL, DbUsername">
<parameterEntry
type="TextFile"
scope="install/mysql.sql"
match="PlaceHolderForUser" />
</parameter>
<!-- Read database user from config.php . Update 'dbuser' in config.php on publish -->
<parameter name="Automatic MySQL Database User" defaultValue="dbuser = '{MySQL Database Username}';" tags="Hidden,MySQL">
<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbuser\s*=\s*'([^']*)'\s*;" />
</parameter>
<parameter
name="MySQL Database Password"
description="Password for your phpBB database. (Minimum 4 characters)"
tags="New, Password,MySQL,DbUserPassword">
<parameterValidation
type = "RegularExpression"
validationString = "^.{4,}$" />
<parameterEntry
type="TextFile"
scope="install/mysql.sql"
match="PlaceHolderForPassword" />
</parameter>
<!-- Read database password from config.php . Update 'dbpasswd' in config.php on publish -->
<parameter name="MySQL Automatic Database Password" defaultValue="dbpasswd = '{MySQL Database Password}';" tags="Hidden,MySQL">
<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbpasswd\s*=\s*'([^']*)'\s*;" />
</parameter>
<!-- MySQL admin credentials -->
<parameter
name="MySQL Database Administrator"
description="Database administrator username."
defaultValue="root"
tags="MySQL, DbAdminUsername" >
</parameter>
<parameter
name="MySQL Database Administrator Password"
description="Database administrator password."
tags="Password,MySQL,DbAdminPassword" >
</parameter>
<!-- MySQL Connectionstring -->
<parameter
name="MySQLConnectionString"
description="Automatically sets the connection string for the connection request."
defaultValue="Server={MySQL Database Server};Database={MySQL Database Name};uid={MySQL Database Administrator};Pwd={MySQL Database Administrator Password};"
tags="Hidden,MySQLConnectionString,Validate">
<parameterEntry
type="ProviderPath"
scope="dbmysql"
match="install/mysql.sql" />
</parameter>
</parameters>

Binary file not shown.

View File

@@ -1,56 +0,0 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
# Calls the git commit-msg hook on all non-merge commits in a given commit range.
#
if [ "$#" -ne 1 ];
then
echo "Expected one argument (commit range, e.g. phpbb/develop..ticket/12345)."
exit
fi
DIR=$(dirname "$0")
COMMIT_RANGE="$1"
COMMIT_MSG_HOOK_PATH="$DIR/hooks/commit-msg"
COMMIT_MSG_HOOK_FATAL=$(git config --bool phpbb.hooks.commit-msg.fatal 2> /dev/null)
git config phpbb.hooks.commit-msg.fatal true
EXIT_STATUS=0
for COMMIT_HASH in $(git rev-list --no-merges "$COMMIT_RANGE")
do
echo "Inspecting commit message of commit $COMMIT_HASH"
# The git commit-msg hook takes a path to a file containing a commit
# message. So we have to extract the commit message into a file first,
# which then also needs to be deleted after our work is done.
COMMIT_MESSAGE_PATH="$DIR/commit_msg.$COMMIT_HASH"
git log -n 1 --pretty=format:%B "$COMMIT_HASH" > "$COMMIT_MESSAGE_PATH"
# Invoke hook on commit message file.
"$COMMIT_MSG_HOOK_PATH" "$COMMIT_MESSAGE_PATH"
# If any commit message hook complains with a non-zero exit status, we
# will send a non-zero exit status upstream.
if [ $? -ne 0 ]
then
EXIT_STATUS=1
fi
rm "$COMMIT_MESSAGE_PATH"
done
# Restore phpbb.hooks.commit-msg.fatal config
if [ -n "$COMMIT_MSG_HOOK_FATAL" ]
then
git config phpbb.hooks.commit-msg.fatal "$COMMIT_MSG_HOOK_FATAL"
fi
exit $EXIT_STATUS

View File

@@ -1,368 +0,0 @@
#!/bin/sh
#
# A hook to check syntax of a phpBB3 commit message, per:
# * <http://wiki.phpbb.com/display/DEV/Git>
# * <http://area51.phpbb.com/phpBB/viewtopic.php?p=209919#p209919>
#
# This is a commit-msg hook.
#
# To install this you can either copy or symlink it to
# $GIT_DIR/hooks, example:
#
# ln -s ../../git-tools/hooks/commit-msg \\
# .git/hooks/commit-msg
#
# You can configure whether invalid commit messages abort commits:
#
# git config phpbb.hooks.commit-msg.fatal true (abort)
# git config phpbb.hooks.commit-msg.fatal false (warn only, do not abort)
#
# The default is to warn only.
#
# Warning/error messages use color by default if the output is a terminal
# ("output" here is normally standard error when you run git commit).
# To force or disable the use of color:
#
# git config phpbb.hooks.commit-msg.color true (force color output)
# git config phpbb.hooks.commit-msg.color false (disable color output)
config_ns="phpbb.hooks.commit-msg";
if [ "$(git config --bool $config_ns.fatal)" = "true" ]
then
fatal=1;
severity=Error;
else
fatal=0;
severity=Warning;
fi
debug_level=$(git config --int $config_ns.debug || echo 0);
# Error codes
ERR_LENGTH=1;
ERR_HEADER=2;
ERR_EMPTY=3;
ERR_DESCRIPTION=4;
ERR_FOOTER=5;
ERR_EOF=6;
ERR_UNKNOWN=42;
debug()
{
local level;
level=$1;
shift;
if [ $debug_level -ge $level ]
then
echo $@;
fi
}
quit()
{
if [ $1 -eq 0 ] || [ $1 -eq $ERR_UNKNOWN ]
then
# success
exit 0;
elif [ $fatal -eq 0 ]
then
# problems found but fatal is false
complain 'Please run `git commit --amend` and fix the problems mentioned.' 1>&2
exit 0;
else
complain "Aborting commit." 1>&2
exit $1;
fi
}
use_color()
{
if [ -z "$use_color_cached" ]
then
case $(git config --bool $config_ns.color)
in
false)
use_color_cached=1
;;
true)
use_color_cached=0
;;
*)
# tty detection in shell:
# http://hwi.ath.cx/jsh/list/shext/isatty.sh.html
tty 0>/dev/stdout >/dev/null 2>&1
use_color_cached=$?
;;
esac
fi
# return value is the flag inverted -
# if return value is 0, this means use color
return $use_color_cached
}
complain()
{
if use_color
then
# Careful: our argument may include arguments to echo like -n
# ANSI color codes:
# http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html
printf "\033[31m\033[1m"
if [ "$1" = "-n" ]
then
echo "$@"
printf "\033[0m"
else
# This will print one trailing space.
# Not sure how to avoid this at the moment.
echo "$@" $(printf "\033[0m")
fi
else
echo "$@"
fi
}
# Check for empty commit message
if ! grep -qv '^#' "$1"
then
# Commit message is empty (or contains only comments).
# Let git handle this.
# It will abort with a message like so:
#
# Aborting commit due to empty commit message.
exit 0
fi
msg=$(grep -v '^#' "$1" |grep -nE '.{81,}')
if [ $? -eq 0 ]
then
complain "The following lines are greater than 80 characters long:" >&2;
complain >&2
complain "$msg" >&2;
quit $ERR_LENGTH;
fi
# Check for CR/LF line breaks
if grep -q $'\r$' "$1"
then
complain "The commit message uses CR/LF line breaks, which are not permitted." >&2
complain >&2
quit $ERR_EOF;
fi
lines=$(wc -l "$1" | awk '{ print $1; }');
expecting=header;
in_description=0;
in_empty=0;
ticket=0;
branch_regex="[a-z]+[a-z0-9-]*[a-z0-9]+";
i=1;
tickets="";
while [ $i -le $lines ]
do
# Grab the line we are studying
line=$(head -n$i "$1" | tail -n1);
debug 1 "==> [$i] $line (description: $in_description, empty: $in_empty)";
err=$ERR_UNKNOWN;
if [ -z "$expecting" ]
then
quit $err;
fi
if [ "${expecting#comment}" = "$expecting" ]
then
# Prefix comments to the expected tokens list
expecting="comment $expecting";
fi
debug 2 "Expecting: $expecting";
# Loop over each of the expected line formats
for expect in $expecting
do
# Reset the error code each iteration
err=$ERR_UNKNOWN;
# Test for validity of each line format
# This is done first so $? contains the result
case $expect in
"header")
err=$ERR_HEADER;
echo "$line" | grep -Eq "^\[(ticket/[0-9]+|feature/$branch_regex|task/$branch_regex)\] .+$"
result=$?
if ! echo "$line" | grep -Eq "^\[(ticket/[0-9]+|feature/$branch_regex|task/$branch_regex)\] [a-zA-Z].+$"
then
# Don't be too strict.
# Commits may be temporary, intended to be squashed later.
# Just issue a warning here.
complain "$severity: heading should be a sentence beginning with a letter." 1>&2
complain "You entered:" 1>&2
complain "$line" 1>&2
fi
# restore exit code
(exit $result)
;;
"empty")
err=$ERR_EMPTY;
echo "$line" | grep -Eq "^$"
;;
"description")
err=$ERR_DESCRIPTION;
# Free flow text, the line length was constrained by the initial check
echo "$line" | grep -Eq "^.+$";
;;
"footer")
err=$ERR_FOOTER;
# Each ticket is on its own line
echo "$line" | grep -Eq "^PHPBB3-[0-9]+$";
;;
"eof")
err=$ERR_EOF;
# Should not end up here
false
;;
"possibly-eof")
# Allow empty and/or comment lines at the end
! tail -n +"$i" "$1" |grep -qvE '^($|#)'
;;
"comment")
echo "$line" | grep -Eq "^#";
;;
*)
complain "Unrecognised token $expect" >&2;
quit $err;
;;
esac
# Preserve the result of the line check
result=$?;
debug 2 "$expect - '$line' - $result";
if [ $result -eq 0 ]
then
# Break out the loop on success
# otherwise roll on round and keep looking for a match
break;
fi
done
if [ $result -eq 0 ]
then
# Have we switched out of description mode?
if [ $in_description -eq 1 ] && [ "$expect" != "description" ] && [ "$expect" != "empty" ] && [ "$expect" != "comment" ]
then
# Yes, okay we need to backtrace one line and reanalyse
in_description=0;
i=$(( $i - $in_empty ));
# Reset the empty counter
in_empty=0;
continue;
fi
# Successful match, but on which line format
case $expect in
"header")
expecting="empty";
echo "$line" | grep -Eq "^\[ticket/[0-9]+\]$" && (
ticket=$(echo "$line" | sed 's,\[ticket/\([0-9]*\)\].*,\1,');
)
;;
"empty")
# Description might have empty lines as spacing
expecting="footer description";
in_empty=$(($in_empty + 1));
if [ $in_description -eq 1 ]
then
expecting="$expecting empty";
fi
;;
"description")
expecting="description empty";
in_description=1;
;;
"footer")
expecting="footer possibly-eof";
if [ "$tickets" = "" ]
then
tickets="$line";
else
tickets="$tickets $line";
fi
;;
"comment")
# Comments should expect the same thing again
;;
"possibly-eof")
expecting="eof";
;;
*)
complain "Unrecognised token $expect" >&2;
quit 254;
;;
esac
if [ "$expect" != "empty" ]
then
in_empty=0;
fi
debug 3 "Now expecting: $expecting";
else
# None of the expected line formats matched
# Guess we'll call it a day here then
complain "Syntax error on line $i:" >&2;
complain ">> $line" >&2;
complain -n "Expecting: " >&2;
complain "$expecting" | sed 's/ /, /g' >&2;
quit $err;
fi
i=$(( $i + 1 ));
done
# If EOF is expected exit cleanly
echo "$expecting" | grep -q "eof" || (
# Unexpected EOF, error
complain "Unexpected EOF encountered" >&2;
quit $ERR_EOF;
) && (
# Do post scan checks
if [ ! -z "$tickets" ]
then
# Check for duplicate tickets
dupes=$(echo "$tickets" | sed 's/ /\n/g' | sort | uniq -d);
if [ ! -z "$dupes" ]
then
complain "The following tickets are repeated:" >&2;
complain "$dupes" | sed 's/ /\n/g;s/^/* /g' >&2;
quit $ERR_FOOTER;
fi
fi
# Check the branch ticket is mentioned, doesn't make sense otherwise
if [ $ticket -gt 0 ]
then
echo "$tickets" | grep -Eq "\bPHPBB3-$ticket\b" || (
complain "Ticket ID [$ticket] of branch missing from list of tickets:" >&2;
complain "$tickets" | sed 's/ /\n/g;s/^/* /g' >&2;
quit $ERR_FOOTER;
) || exit $?;
fi
# Got here okay exit to reality
exit 0;
);
exit $?;

View File

@@ -1,17 +0,0 @@
#!/bin/sh
#
# Script to install the git hooks
# by symlinking them into the .git/hooks directory
#
# Usage (from within git-tools/hooks):
# ./install
dir=$(dirname $0)
for file in $(ls $dir)
do
if [ $file != "install" ] && [ $file != "uninstall" ]
then
ln -s "../../git-tools/hooks/$file" "$dir/../../.git/hooks/$file"
fi
done

View File

@@ -1,88 +0,0 @@
#!/bin/sh
#
# A hook to disallow php syntax errors to be committed
# by running php -l (lint) on them. It requires php-cli
# to be installed.
#
# This is a pre-commit hook.
#
# To install this you can either copy or symlink it to
# $GIT_DIR/hooks, example:
#
# ln -s ../../git-tools/hooks/pre-commit \\
# .git/hooks/pre-commit
if [ -z "$PHP_BIN" ]
then
PHP_BIN=php
fi
if [ "$(echo -e test)" = test ]
then
echo_e="echo -e"
else
echo_e="echo"
fi
# necessary check for initial commit
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
errors=""
if ! which "$PHP_BIN" >/dev/null 2>&1
then
echo "PHP Syntax check failed:"
echo "PHP binary does not exist or is not in path: $PHP_BIN"
exit 1
fi
# dash does not support $'\n':
# http://forum.soft32.com/linux2/Bug-409179-DASH-Settings-IFS-work-properly-ftopict70039.html
IFS='
'
# get a list of staged files
for line in $(git diff-index --cached --full-index $against)
do
# split needed values
sha=$(echo $line | cut -d' ' -f4)
temp=$(echo $line | cut -d' ' -f5)
status=$(echo $temp | cut -d' ' -f1)
filename=$(echo $temp | cut -d' ' -f2)
# file extension
ext=$(echo $filename | sed 's/^.*\.//')
# only check files with php extension
if [ $ext != "php" ]
then
continue
fi
# do not check deleted files
if [ $status = "D" ]
then
continue
fi
# check the staged file content for syntax errors
# using php -l (lint)
result=$(git cat-file -p $sha | "$PHP_BIN" -n -l -ddisplay_errors\=1 -derror_reporting\=E_ALL -dlog_errrors\=0 2>&1)
if [ $? -ne 0 ]
then
# Swap back in correct filenames
errors=$(echo "$errors"; echo "$result" | grep ':' | sed -e "s@in - on@in $filename on@g")
fi
done
unset IFS
if [ -n "$errors" ]
then
echo "PHP Syntax check failed: "
$echo_e "$errors"
exit 1
fi

View File

@@ -1,42 +0,0 @@
#!/bin/sh
#
# A hook to add [$branch] to the beginning of a commit message
# if certain conditions are met.
#
# This is a prepare-commit-msg hook.
#
# To install this you can either copy or symlink it to
# $GIT_DIR/hooks, example:
#
# ln -s ../../git-tools/hooks/prepare-commit-msg \\
# .git/hooks/prepare-commit-msg
# get branch name
branch="$(git symbolic-ref HEAD)"
# exit if no branch name is present
# (eg. detached HEAD)
if [ $? -ne 0 ]
then
exit
fi
# strip off refs/heads/
branch="$(echo "$branch" | sed "s/refs\/heads\///g")"
# add [branchname] to commit message
# * only run when normal commit is made (without -m or -F;
# not a merge, etc.)
# * also make sure the branch name begins with bug/ or feature/
if [ "$2" = "" ]
then
tail="";
# Branch is prefixed with 'ticket/', append ticket ID to message
if [ "$branch" != "${branch##ticket/}" ];
then
tail="$(printf "\n\nPHPBB3-${branch##ticket/}")";
fi
echo "[$branch] $tail$(cat "$1")" > "$1"
fi

View File

@@ -1,16 +0,0 @@
#!/bin/sh
#
# Script to uninstall the git hooks
#
# Usage (from within git-tools/hooks):
# ./uninstall
dir=$(dirname $0)
for file in $(ls $dir)
do
if [ $file != "install" ] && [ $file != "uninstall" ]
then
rm -f "$dir/../../.git/hooks/$file"
fi
done

View File

@@ -1,194 +0,0 @@
#!/usr/bin/env php
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
function show_usage()
{
$filename = basename(__FILE__);
echo "$filename merges a github pull request.\n";
echo "\n";
echo "Usage: [php] $filename -p pull_request_id [OPTIONS]\n";
echo "\n";
echo "Options:\n";
echo " -p pull_request_id The pull request id to be merged (mandatory)\n";
echo " -r remote Remote of upstream, defaults to 'upstream' (optional)\n";
echo " -d Outputs the commands instead of running them (optional)\n";
echo " -h This help text\n";
exit(2);
}
// Handle arguments
$opts = getopt('p:r:dh');
if (empty($opts) || isset($opts['h']))
{
show_usage();
}
$pull_id = get_arg($opts, 'p', '');
$remote = get_arg($opts, 'r', 'upstream');
$dry_run = !get_arg($opts, 'd', true);
try
{
exit(work($pull_id, $remote));
}
catch (RuntimeException $e)
{
echo $e->getMessage();
exit($e->getCode());
}
function work($pull_id, $remote)
{
// Get some basic data
$pull = get_pull('phpbb', 'phpbb3', $pull_id);
if (!$pull_id)
{
show_usage();
}
if ($pull['state'] != 'open')
{
throw new RuntimeException(sprintf("Error: pull request is closed\n",
$target_branch), 5);
}
$pull_user = $pull['head'][0];
$pull_branch = $pull['head'][1];
$target_branch = $pull['base'][1];
switch ($target_branch)
{
case 'develop-olympus':
run("git checkout develop-olympus");
run("git pull $remote develop-olympus");
add_remote($pull_user, 'phpbb3');
run("git fetch $pull_user");
run("git merge --no-ff $pull_user/$pull_branch");
run("phpBB/vendor/bin/phpunit");
run("git checkout develop");
run("git pull $remote develop");
run("git merge --no-ff develop-olympus");
run("phpBB/vendor/bin/phpunit");
break;
case 'develop':
run("git checkout develop");
run("git pull $remote develop");
add_remote($pull_user, 'phpbb3');
run("git fetch $pull_user");
run("git merge --no-ff $pull_user/$pull_branch");
run("phpBB/vendor/bin/phpunit");
break;
default:
throw new RuntimeException(sprintf("Error: pull request target branch '%s' is not a main branch\n",
$target_branch), 5);
break;
}
}
function add_remote($username, $repository, $pushable = false)
{
$url = get_repository_url($username, $repository, false);
run("git remote add $username $url", true);
if ($pushable)
{
$ssh_url = get_repository_url($username, $repository, true);
run("git remote set-url --push $username $ssh_url");
}
}
function get_repository_url($username, $repository, $ssh = false)
{
$url_base = ($ssh) ? 'git@github.com:' : 'git://github.com/';
return $url_base . $username . '/' . $repository . '.git';
}
function api_request($query)
{
return api_url_request("https://api.github.com/$query?per_page=100");
}
function api_url_request($url)
{
$contents = file_get_contents($url, false, stream_context_create(array(
'http' => array(
'header' => "User-Agent: phpBB/1.0\r\n",
),
)));
if ($contents === false)
{
throw new RuntimeException("Error: failed to retrieve pull request data\n", 4);
}
$contents = json_decode($contents);
if (isset($contents->message) && strpos($contents->message, 'API Rate Limit') === 0)
{
throw new RuntimeException('Reached github API Rate Limit. Please try again later' . "\n", 4);
}
return $contents;
}
function get_pull($username, $repository, $pull_id)
{
$request = api_request("repos/$username/$repository/pulls/$pull_id");
$pull = $request->pull;
$pull_data = array(
'base' => array($pull->base->user->login, $pull->base->ref),
'head' => array($pull->head->user->login, $pull->head->ref),
'state' => $pull->state,
);
return $pull_data;
}
function get_arg($array, $index, $default)
{
return isset($array[$index]) ? $array[$index] : $default;
}
function run($cmd, $ignore_fail = false)
{
global $dry_run;
if (!empty($dry_run))
{
echo "$cmd\n";
}
else
{
passthru(escapeshellcmd($cmd), $status);
if ($status != 0 && !$ignore_fail)
{
throw new RuntimeException(sprintf("Error: command '%s' failed with status %s'\n",
$cmd, $status), 6);
}
}
}

View File

@@ -1,85 +0,0 @@
<IfModule mod_rewrite.c>
RewriteEngine on
#
# Uncomment the statement below if URL rewriting doesn't
# work properly. If you installed phpBB in a subdirectory
# of your site, properly set the argument for the statement.
# e.g.: if your domain is test.com and you installed phpBB
# in http://www.test.com/phpBB/index.php you have to set
# the statement RewriteBase /phpBB/
#
#RewriteBase /
#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
# The following 3 lines will rewrite URLs passed through the front controller
# to not require app.php in the actual URL. In other words, a controller is
# by default accessed at /app.php/my/controller, but can also be accessed at
# /my/controller
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]
#
# If symbolic links are not already being followed,
# uncomment the line below.
# http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/
#
#Options +FollowSymLinks
</IfModule>
# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_host.
# We could just conditionally provide both versions, but unfortunately Apache
# does not explicitly tell us its version if the module mod_version is not
# available. In this case, we check for the availability of module
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
<IfModule mod_version.c>
<IfVersion < 2.4>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfVersion>
<IfVersion >= 2.4>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfModule>
<IfModule mod_authz_core.c>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfModule>
</IfModule>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 826 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 930 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 807 B

View File

@@ -1,91 +0,0 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
/**
*/
define('IN_PHPBB', true);
define('ADMIN_START', true);
define('NEED_SID', true);
// Include files
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
require($phpbb_root_path . 'common.' . $phpEx);
require($phpbb_root_path . 'includes/functions_acp.' . $phpEx);
require($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
require($phpbb_root_path . 'includes/functions_module.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('acp/common');
// End session management
// Have they authenticated (again) as an admin for this session?
if (!isset($user->data['session_admin']) || !$user->data['session_admin'])
{
login_box('', $user->lang['LOGIN_ADMIN_CONFIRM'], $user->lang['LOGIN_ADMIN_SUCCESS'], true, false);
}
// Is user any type of admin? No, then stop here, each script needs to
// check specific permissions but this is a catchall
if (!$auth->acl_get('a_'))
{
send_status_line(403, 'Forbidden');
trigger_error('NO_ADMIN');
}
// We define the admin variables now, because the user is now able to use the admin related features...
define('IN_ADMIN', true);
// Some oft used variables
$safe_mode = (@ini_get('safe_mode') == '1' || strtolower(@ini_get('safe_mode')) === 'on') ? true : false;
$file_uploads = (@ini_get('file_uploads') == '1' || strtolower(@ini_get('file_uploads')) === 'on') ? true : false;
$module_id = $request->variable('i', '');
$mode = $request->variable('mode', '');
// Set custom style for admin area
$template->set_custom_style(array(
array(
'name' => 'adm',
'ext_path' => 'adm/style/',
),
), $phpbb_admin_path . 'style');
$template->assign_var('T_ASSETS_PATH', $phpbb_root_path . 'assets');
$template->assign_var('T_TEMPLATE_PATH', $phpbb_admin_path . 'style');
// Instantiate new module
$module = new p_master();
// Instantiate module system and generate list of available modules
$module->list_modules('acp');
// Select the active module
$module->set_active($module_id, $mode);
// Assign data to the template engine for the list of modules
// We do this before loading the active module for correct menu display in trigger_error
$module->assign_tpl_vars(append_sid("{$phpbb_admin_path}index.$phpEx"));
// Load and execute the relevant module
$module->load_active();
// Generate the page
adm_page_header($module->get_page_title());
$template->set_filenames(array(
'body' => $module->get_tpl_name(),
));
adm_page_footer();

View File

@@ -1,493 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<!-- IF U_BACK -->
<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>
<!-- ENDIF -->
<h1>{L_TITLE}</h1>
<p>{L_TITLE_EXPLAIN}</p>
<!-- IF S_WARNING -->
<div class="errorbox">
<h3>{L_WARNING}</h3>
<p>{WARNING_MSG}</p>
</div>
<!-- ENDIF -->
<!-- IF S_NOTIFY -->
<div class="successbox">
<h3>{L_NOTIFY}</h3>
<p>{NOTIFY_MSG}</p>
</div>
<!-- ENDIF -->
<!-- IF S_UPLOADING_FILES -->
<h2>{L_UPLOADING_FILES}</h2>
<!-- BEGIN upload -->
:: {upload.FILE_INFO}<br />
<!-- IF upload.S_DENIED --><span class="error">{upload.DENIED}</span><!-- ELSEIF upload.ERROR_MSG --><span class="error">{upload.ERROR_MSG}</span><!-- ELSE --><span class="success">{L_SUCCESSFULLY_UPLOADED}</span><!-- ENDIF -->
<br /><br />
<!-- END upload -->
<!-- ENDIF -->
<!-- IF S_ATTACHMENT_SETTINGS -->
<!-- IF not S_THUMBNAIL_SUPPORT -->
<div class="errorbox">
<p>{L_NO_THUMBNAIL_SUPPORT}</p>
</div>
<!-- ENDIF -->
<form id="attachsettings" method="post" action="{U_ACTION}">
<!-- BEGIN options -->
<!-- IF options.S_LEGEND -->
<!-- IF not options.S_FIRST_ROW -->
</fieldset>
<!-- ENDIF -->
<fieldset>
<legend>{options.LEGEND}</legend>
<!-- ELSE -->
<dl>
<dt><label for="{options.KEY}">{options.TITLE}{L_COLON}</label><!-- IF options.S_EXPLAIN --><br /><span>{options.TITLE_EXPLAIN}</span><!-- ENDIF --></dt>
<dd>{options.CONTENT}</dd>
</dl>
<!-- ENDIF -->
<!-- END options -->
</fieldset>
<fieldset class="submit-buttons">
<legend>{L_SUBMIT}</legend>
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</fieldset>
<!-- IF not S_SECURE_DOWNLOADS -->
<div class="errorbox">
<p>{L_SECURE_DOWNLOAD_NOTICE}</p>
</div>
<!-- ENDIF -->
<fieldset>
<legend>{L_SECURE_TITLE}</legend>
<p>{L_DOWNLOAD_ADD_IPS_EXPLAIN}</p>
<dl>
<dt><label for="ip_hostname">{L_IP_HOSTNAME}{L_COLON}</label></dt>
<dd><textarea id="ip_hostname" cols="40" rows="3" name="ips"></textarea></dd>
</dl>
<dl>
<dt><label for="exclude">{L_IP_EXCLUDE}{L_COLON}</label><br /><span>{L_EXCLUDE_ENTERED_IP}</span></dt>
<dd><label><input type="radio" id="exclude" name="ipexclude" value="1" class="radio" /> {L_YES}</label>
<label><input type="radio" name="ipexclude" value="0" checked="checked" class="radio" /> {L_NO}</label></dd>
</dl>
<p class="quick">
<input class="button1" type="submit" id="securesubmit" name="securesubmit" value="{L_SUBMIT}" />
</p>
</fieldset>
<fieldset>
<legend>{L_REMOVE_IPS}</legend>
<!-- IF S_DEFINED_IPS -->
<p>{L_DOWNLOAD_REMOVE_IPS_EXPLAIN}</p>
<dl>
<dt><label for="remove_ip_hostname">{L_IP_HOSTNAME}{L_COLON}</label></dt>
<dd><select name="unip[]" id="remove_ip_hostname" multiple="multiple" size="10">{DEFINED_IPS}</select></dd>
</dl>
<p class="quick">
<input class="button1" type="submit" id="unsecuresubmit" name="unsecuresubmit" value="{L_SUBMIT}" />
</p>
</fieldset>
<!-- ELSE -->
<p>{L_NO_IPS_DEFINED}</p>
<!-- ENDIF -->
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- ELSEIF S_EXTENSION_GROUPS -->
<!-- IF S_EDIT_GROUP -->
<script type="text/javascript" defer="defer">
// <![CDATA[
function update_image(newimage)
{
if (newimage == 'no_image')
{
document.getElementById('image_upload_icon').src = "{ROOT_PATH}images/spacer.gif";
}
else
{
document.getElementById('image_upload_icon').src = "{ROOT_PATH}{IMG_PATH}/" + newimage;
}
}
function show_extensions(elem)
{
var str = '';
for (i = 0; i < elem.length; i++)
{
var element = elem.options[i];
if (element.selected)
{
if (str)
{
str = str + ', ';
}
str = str + element.innerHTML;
}
}
if (document.all)
{
document.all.ext.innerText = str;
}
else if (document.getElementById('ext').textContent)
{
document.getElementById('ext').textContent = str;
}
else if (document.getElementById('ext').firstChild.nodeValue)
{
document.getElementById('ext').firstChild.nodeValue = str;
}
}
// ]]>
</script>
<form id="extgroups" method="post" action="{U_ACTION}">
<fieldset>
<input type="hidden" name="action" value="{ACTION}" />
<input type="hidden" name="g" value="{GROUP_ID}" />
<legend>{L_LEGEND}</legend>
<dl>
<dt><label for="group_name">{L_GROUP_NAME}{L_COLON}</label></dt>
<dd><input type="text" id="group_name" size="20" maxlength="100" name="group_name" value="{GROUP_NAME}" /></dd>
</dl>
<dl>
<dt><label for="category">{L_SPECIAL_CATEGORY}{L_COLON}</label><br /><span>{L_SPECIAL_CATEGORY_EXPLAIN}</span></dt>
<dd>{S_CATEGORY_SELECT}</dd>
</dl>
<dl>
<dt><label for="allowed">{L_ALLOWED}{L_COLON}</label></dt>
<dd><input type="checkbox" class="radio" id="allowed" name="allow_group" value="1"<!-- IF ALLOW_GROUP --> checked="checked"<!-- ENDIF --> /></dd>
</dl>
<dl>
<dt><label for="allow_in_pm">{L_ALLOW_IN_PM}{L_COLON}</label></dt>
<dd><input type="checkbox" class="radio" id="allow_in_pm" name="allow_in_pm" value="1"<!-- IF ALLOW_IN_PM --> checked="checked"<!-- ENDIF --> /></dd>
</dl>
<dl>
<dt><label for="upload_icon">{L_UPLOAD_ICON}{L_COLON}</label></dt>
<dd><select name="upload_icon" id="upload_icon" onchange="update_image(this.options[selectedIndex].value);">
<option value="no_image"<!-- IF S_NO_IMAGE --> selected="selected"<!-- ENDIF -->>{L_NO_IMAGE}</option>{S_FILENAME_LIST}
</select></dd>
<dd>&nbsp;<img <!-- IF S_NO_IMAGE -->src="{ROOT_PATH}images/spacer.gif"<!-- ELSE -->src="{UPLOAD_ICON_SRC}"<!-- ENDIF --> id="image_upload_icon" alt="" title="" />&nbsp;</dd>
</dl>
<dl>
<dt><label for="extgroup_filesize">{L_MAX_EXTGROUP_FILESIZE}{L_COLON}</label></dt>
<dd><input type="number" id="extgroup_filesize" min="0" max="999999999999999" step="any" name="max_filesize" value="{EXTGROUP_FILESIZE}" /> <select name="size_select">{S_EXT_GROUP_SIZE_OPTIONS}</select></dd>
</dl>
<dl>
<dt><label for="assigned_extensions">{L_ASSIGNED_EXTENSIONS}{L_COLON}</label></dt>
<dd><div id="ext">{ASSIGNED_EXTENSIONS}</div> <span>[<a href="{U_EXTENSIONS}">{L_GO_TO_EXTENSIONS}</a> ]</span></dd>
<dd><select name="extensions[]" id="assigned_extensions" class="narrow" onchange="show_extensions(this);" multiple="multiple" size="8">{S_EXTENSION_OPTIONS}</select></dd>
</dl>
<dl>
<dt><label for="allowed_forums">{L_ALLOWED_FORUMS}{L_COLON}</label><br /><span>{L_ALLOWED_FORUMS_EXPLAIN}</span></dt>
<dd><label><input type="radio" id="allowed_forums" class="radio" name="forum_select" value="0"<!-- IF not S_FORUM_IDS --> checked="checked"<!-- ENDIF --> /> {L_ALLOW_ALL_FORUMS}</label></dd>
<dd><label><input type="radio" class="radio" name="forum_select" value="1"<!-- IF S_FORUM_IDS --> checked="checked"<!-- ENDIF --> /> {L_ALLOW_SELECTED_FORUMS}</label></dd>
<dd><select name="allowed_forums[]" multiple="multiple" size="8">{S_FORUM_ID_OPTIONS}</select></dd>
</dl>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- ELSE -->
<form id="extgroups" method="post" action="{U_ACTION}">
<fieldset class="tabulated">
<legend>{L_TITLE}</legend>
<table class="table1">
<col class="row1" /><col class="row1" /><col class="row2" />
<thead>
<tr>
<th>{L_EXTENSION_GROUP}</th>
<th>{L_SPECIAL_CATEGORY}</th>
<th>{L_OPTIONS}</th>
</tr>
</thead>
<tbody>
<!-- BEGIN groups -->
<!-- IF groups.S_ADD_SPACER and not groups.S_FIRST_ROW -->
<tr>
<td class="spacer" colspan="3">&nbsp;</td>
</tr>
<!-- ENDIF -->
<tr>
<td><strong>{groups.GROUP_NAME}</strong>
<!-- IF groups.S_GROUP_ALLOWED and not groups.S_ALLOWED_IN_PM --><br /><span>&raquo; {L_NOT_ALLOWED_IN_PM}</span>
<!-- ELSEIF groups.S_ALLOWED_IN_PM and not groups.S_GROUP_ALLOWED --><br /><span>&raquo; {L_ONLY_ALLOWED_IN_PM}</span>
<!-- ELSEIF not groups.S_GROUP_ALLOWED and not groups.S_ALLOWED_IN_PM --><br /><span>&raquo; {L_NOT_ALLOWED_IN_PM_POST}</span>
<!-- ELSE --><br /><span>&raquo; {L_ALLOWED_IN_PM_POST}</span><!-- ENDIF -->
</td>
<td>{groups.CATEGORY}</td>
<td align="center" valign="middle" style="white-space: nowrap;">&nbsp;<a href="{groups.U_EDIT}">{ICON_EDIT}</a>&nbsp;&nbsp;<a href="{groups.U_DELETE}" data-ajax="row_delete">{ICON_DELETE}</a>&nbsp;</td>
</tr>
<!-- END groups -->
</tbody>
</table>
<p class="quick">
{L_CREATE_GROUP}{L_COLON} <input type="text" name="group_name" maxlength="30" />
<input class="button2" name="add" type="submit" value="{L_SUBMIT}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- ENDIF -->
<!-- ELSEIF S_EXTENSIONS -->
<form id="add_ext" method="post" action="{U_ACTION}">
<fieldset>
<legend>{L_ADD_EXTENSION}</legend>
<dl>
<dt><label for="add_extension">{L_EXTENSION}</label></dt>
<dd><input type="text" id="add_extension" size="20" maxlength="100" name="add_extension" value="{ADD_EXTENSION}" /></dd>
</dl>
<dl>
<dt><label for="extension_group">{L_EXTENSION_GROUP}</label></dt>
<dd>{GROUP_SELECT_OPTIONS}</dd>
</dl>
<p class="quick">
<input type="submit" id="add_extension_check" name="add_extension_check" class="button2" value="{L_SUBMIT}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
<form id="change_ext" method="post" action="{U_ACTION}">
<fieldset class="tabulated">
<legend>{L_TITLE}</legend>
<table class="table1">
<col class="row1" /><col class="row1" /><col class="row2" />
<thead>
<tr>
<th>{L_EXTENSION}</th>
<th>{L_EXTENSION_GROUP}</th>
<th>{L_DELETE}</th>
</tr>
</thead>
<tbody>
<!-- BEGIN extensions -->
<!-- IF extensions.S_SPACER -->
<tr>
<td class="spacer" colspan="3">&nbsp;</td>
</tr>
<!-- ENDIF -->
<tr>
<td><strong>{extensions.EXTENSION}</strong></td>
<td>{extensions.GROUP_OPTIONS}</td>
<td><input type="checkbox" class="radio" name="extension_id_list[]" value="{extensions.EXTENSION_ID}" /><input type="hidden" name="extension_change_list[]" value="{extensions.EXTENSION_ID}" /></td>
</tr>
<!-- END extensions -->
</tbody>
</table>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- ELSEIF S_ORPHAN -->
<form id="orphan" method="post" action="{U_ACTION}">
<fieldset class="tabulated">
<legend>{L_TITLE}</legend>
<div class="pagination top-pagination">
<!-- IF .pagination or TOTAL_FILES -->
{L_NUMBER_FILES}{L_COLON} {TOTAL_FILES} &bull; {L_TOTAL_SIZE}{L_COLON} {TOTAL_SIZE}
<!-- IF .pagination -->
&bull; <!-- INCLUDE pagination.html -->
<!-- ELSE -->
&bull; {PAGE_NUMBER}
<!-- ENDIF -->
<!-- ENDIF -->
</div>
<!-- IF .orphan -->
<table class="table1 zebra-table fixed-width-table">
<thead>
<tr>
<th>{L_FILENAME}</th>
<th style="width: 15%;">{L_FILEDATE}</th>
<th style="width: 15%;">{L_FILESIZE}</th>
<th style="width: 15%;">{L_ATTACH_POST_ID}</th>
<th style="width: 15%;">{L_ATTACH_TO_POST}</th>
<th style="width: 15%;">{L_DELETE}</th>
</tr>
</thead>
<tbody>
<!-- BEGIN orphan -->
<tr>
<td><a href="{orphan.U_FILE}">{orphan.REAL_FILENAME}</a></td>
<td>{orphan.FILETIME}</td>
<td>{orphan.FILESIZE}</td>
<td><strong>{L_ATTACH_ID}{L_COLON} </strong><input type="number" min="0" max="9999999999" name="post_id[{orphan.ATTACH_ID}]" value="{orphan.POST_ID}" style="width: 75%;" /></td>
<td><input type="checkbox" class="radio" name="add[{orphan.ATTACH_ID}]" /></td>
<td><input type="checkbox" class="radio" name="delete[{orphan.ATTACH_ID}]" /></td>
</tr>
<!-- END orphan -->
<tr class="row4">
<td colspan="4">&nbsp;</td>
<td class="small"><a href="#" onclick="marklist('orphan', 'add', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('orphan', 'add', false); return false;">{L_UNMARK_ALL}</a></td>
<td class="small"><a href="#" onclick="marklist('orphan', 'delete', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('orphan', 'delete', false); return false;">{L_UNMARK_ALL}</a></td>
</tr>
</tbody>
</table>
<!-- ELSE -->
<div class="errorbox">
<p>{L_NO_ATTACHMENTS}</p>
</div>
<!-- ENDIF -->
<!-- IF TOTAL_FILES -->
<div class="pagination">
{L_NUMBER_FILES}{L_COLON} {TOTAL_FILES} &bull; {L_TOTAL_SIZE}{L_COLON} {TOTAL_SIZE}
<!-- IF .pagination -->
&bull; <!-- INCLUDE pagination.html -->
<!-- ELSE -->
&bull; {PAGE_NUMBER}
<!-- ENDIF -->
</div>
<!-- ENDIF -->
<!-- IF .orphan -->
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
<!-- ENDIF -->
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- ELSEIF S_MANAGE -->
<form id="attachments" method="post" action="{U_ACTION}">
<fieldset class="tabulated">
<legend>{L_TITLE}</legend>
<div class="pagination top-pagination">
<!-- IF .pagination or TOTAL_FILES -->
{L_NUMBER_FILES}{L_COLON} {TOTAL_FILES} &bull; {L_TOTAL_SIZE}{L_COLON} {TOTAL_SIZE}
<!-- IF .pagination -->
&bull; <!-- INCLUDE pagination.html -->
<!-- ELSE -->
&bull; {PAGE_NUMBER}
<!-- ENDIF -->
<!-- ENDIF -->
</div>
<!-- IF .attachments -->
<table class="table1 zebra-table fixed-width-table">
<thead>
<tr>
<th>{L_FILENAME}</th>
<th style="width: 15%;">{L_POSTED}</th>
<th style="width: 15%;" class="centered-text">{L_FILESIZE}</th>
<th style="width: 10%;" class="centered-text">{L_MARK}</th>
</tr>
</thead>
<tbody>
<!-- BEGIN attachments -->
<tr>
<td>
<!-- IF attachments.S_IN_MESSAGE -->{L_EXTENSION_GROUP}{L_COLON} <strong><!-- IF attachments.EXT_GROUP_NAME -->{attachments.EXT_GROUP_NAME}<!-- ELSE -->{L_NO_EXT_GROUP}<!-- ENDIF --></strong><br />{attachments.L_DOWNLOAD_COUNT}<br />{L_IN} {L_PRIVATE_MESSAGE}
<!-- ELSE --><a href="{attachments.U_FILE}" style="font-weight: bold;">{attachments.REAL_FILENAME}</a><br /><!-- IF attachments.COMMENT -->{attachments.COMMENT}<br /><!-- ENDIF -->{attachments.L_DOWNLOAD_COUNT}<br />{L_TOPIC}{L_COLON} <a href="{attachments.U_VIEW_TOPIC}">{attachments.TOPIC_TITLE}</a><!-- ENDIF -->
</td>
<td>{attachments.FILETIME}<br />{L_POST_BY_AUTHOR} {attachments.ATTACHMENT_POSTER}</td>
<td class="centered-text">{attachments.FILESIZE}</td>
<td class="centered-text"><input type="checkbox" class="radio" name="delete[{attachments.ATTACH_ID}]" /></td>
</tr>
<!-- END attachments -->
</tbody>
</table>
<!-- ELSE -->
<div class="errorbox">
<p>{L_NO_ATTACHMENTS}</p>
</div>
<!-- ENDIF -->
<!-- IF TOTAL_FILES -->
<div class="pagination">
{L_NUMBER_FILES}{L_COLON} {TOTAL_FILES} &bull; {L_TOTAL_SIZE}{L_COLON} {TOTAL_SIZE}
<!-- IF .pagination -->
&bull; <!-- INCLUDE pagination.html -->
<!-- ELSE -->
&bull; {PAGE_NUMBER}
<!-- ENDIF -->
</div>
<!-- ENDIF -->
<fieldset class="display-options">
{L_DISPLAY_LOG}{L_COLON} &nbsp;{S_LIMIT_DAYS}&nbsp;{L_SORT_BY}{L_COLON} {S_SORT_KEY} {S_SORT_DIR}
<input class="button2" type="submit" value="{L_GO}" name="sort" />
</fieldset>
<hr />
<!-- IF .attachments -->
<fieldset class="quick">
<input class="button2" type="submit" name="submit" value="{L_DELETE_MARKED}" /><br />
<p class="small">
<a href="#" onclick="marklist('attachments', 'delete', true); return false;">{L_MARK_ALL}</a> &bull;
<a href="#" onclick="marklist('attachments', 'delete', false); return false;">{L_UNMARK_ALL}</a>
</p>
</fieldset>
<!-- ENDIF -->
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- IF S_ACTION_OPTIONS -->
<fieldset>
<legend>{L_RESYNC_STATS}</legend>
<form id="action_stats_form" method="post" action="{U_ACTION}">
<dl>
<dt><label for="action_stats">{L_RESYNC_FILES_STATS}</label><br /><span>{L_RESYNC_FILES_STATS_EXPLAIN}</span></dt>
<dd><input type="hidden" name="action" value="stats" /><input class="button2" type="submit" id="action_stats" name="action_stats" value="{L_RUN}" /></dd>
</dl>
</form>
</fieldset>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- INCLUDE overall_footer.html -->

View File

@@ -1,11 +0,0 @@
<dl>
<dt><label for="avatar_gravatar_email">{L_GRAVATAR_AVATAR_EMAIL}{L_COLON}</label><br /><span>{L_GRAVATAR_AVATAR_EMAIL_EXPLAIN}</span></dt>
<dd><input type="email" name="avatar_gravatar_email" id="avatar_gravatar_email" value="{AVATAR_GRAVATAR_EMAIL}" class="inputbox" /></dd>
</dl>
<dl>
<dt><label for="avatar_gravatar_width">{L_GRAVATAR_AVATAR_SIZE}{L_COLON}</label><br /><span>{L_GRAVATAR_AVATAR_SIZE_EXPLAIN}</span></dt>
<dd>
<input type="number" name="avatar_gravatar_width" id="avatar_gravatar_width" min="{AVATAR_MIN_WIDTH}" max="{AVATAR_MAX_WIDTH}" value="{AVATAR_GRAVATAR_WIDTH}" class="inputbox autowidth" /> {L_PIXEL} &times;&nbsp;
<input type="number" name="avatar_gravatar_height" id="avatar_gravatar_height" min="{AVATAR_MIN_HEIGHT}" max="{AVATAR_MAX_HEIGHT}" value="{AVATAR_GRAVATAR_HEIGHT}" class="inputbox autowidth" /> {L_PIXEL}
</dd>
</dl>

View File

@@ -1,20 +0,0 @@
<dl>
<dt><label for="category">{L_AVATAR_CATEGORY}{L_COLON}</label></dt>
<dd><select name="avatar_local_cat" id="category">
<!-- BEGIN avatar_local_cats -->
<option value="{avatar_local_cats.NAME}"<!-- IF avatar_local_cats.SELECTED --> selected="selected"<!-- ENDIF -->>{avatar_local_cats.NAME}</option>
<!-- END avatar_local_cats -->
</select>&nbsp;<input type="submit" value="{L_GO}" name="avatar_local_go" class="button2" /></dd>
</dl>
<!-- IF AVATAR_LOCAL_SHOW -->
<ul id="gallery">
<!-- BEGIN avatar_local_row -->
<!-- BEGIN avatar_local_col -->
<li>
<label for="av-{avatar_local_row.S_ROW_COUNT}-{avatar_local_row.avatar_local_col.S_ROW_COUNT}"><img src="{avatar_local_row.avatar_local_col.AVATAR_IMAGE}" alt="" /><br />
<input type="radio" name="avatar_local_file" id="av-{avatar_local_row.S_ROW_COUNT}-{avatar_local_row.avatar_local_col.S_ROW_COUNT}" value="{avatar_local_row.avatar_local_col.AVATAR_FILE}"<!-- IF avatar_local_row.avatar_local_col.CHECKED -->checked="checked"<!-- ENDIF --> /></label>
</li>
<!-- END avatar_local_col -->
<!-- END avatar_local_row -->
</ul>
<!-- ENDIF -->

View File

@@ -1,11 +0,0 @@
<dl>
<dt><label for="avatar_remote_url">{L_LINK_REMOTE_AVATAR}{L_COLON}</label><br /><span>{L_LINK_REMOTE_AVATAR_EXPLAIN}</span></dt>
<dd><input type="url" name="avatar_remote_url" id="avatar_remote_url" value="{AVATAR_REMOTE_URL}" class="inputbox" /></dd>
</dl>
<dl>
<dt><label for="avatar_remote_width">{L_LINK_REMOTE_SIZE}{L_COLON}</label><br /><span>{L_LINK_REMOTE_SIZE_EXPLAIN}</span></dt>
<dd>
<input type="number" name="avatar_remote_width" id="avatar_remote_width" min="{AVATAR_MIN_WIDTH}" max="{AVATAR_MAX_WIDTH}" value="{AVATAR_REMOTE_WIDTH}" class="inputbox autowidth" /> {L_PIXEL} &times;&nbsp;
<input type="number" name="avatar_remote_height" id="avatar_remote_height" min="{AVATAR_MIN_HEIGHT}" max="{AVATAR_MAX_HEIGHT}" value="{AVATAR_REMOTE_HEIGHT}" class="inputbox autowidth" /> {L_PIXEL}
</dd>
</dl>

View File

@@ -1,11 +0,0 @@
<dl>
<dt><label for="avatar_upload_file">{L_UPLOAD_AVATAR_FILE}{L_COLON}</label></dt>
<dd><input type="hidden" name="MAX_FILE_SIZE" value="{AVATAR_UPLOAD_SIZE}" /><input type="file" name="avatar_upload_file" id="avatar_upload_file" class="inputbox autowidth" /></dd>
</dl>
<!-- IF S_UPLOAD_AVATAR_URL -->
<dl>
<dt><label for="avatar_upload_url">{L_UPLOAD_AVATAR_URL}{L_COLON}</label><br /><span>{L_UPLOAD_AVATAR_URL_EXPLAIN}</span></dt>
<dd><input type="url" name="avatar_upload_url" id="avatar_upload_url" value="" class="inputbox" /></dd>
</dl>
<!-- ENDIF -->

View File

@@ -1,131 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<p>{L_ACP_BAN_EXPLAIN}</p>
<h1>{L_TITLE}</h1>
<p>{L_EXPLAIN}</p>
<script type="text/javascript">
// <![CDATA[
var ban_length = new Array();
ban_length[-1] = '';
var ban_reason = new Array();
ban_reason[-1] = '';
var ban_give_reason = new Array();
ban_give_reason[-1] = '';
<!-- BEGIN bans -->
ban_length['{bans.BAN_ID}'] = '{bans.A_LENGTH}';
<!-- IF bans.A_REASON -->
ban_reason['{bans.BAN_ID}'] = '{bans.A_REASON}';
<!-- ENDIF -->
<!-- IF bans.A_GIVE_REASON -->
ban_give_reason['{bans.BAN_ID}'] = '{bans.A_GIVE_REASON}';
<!-- ENDIF -->
<!-- END bans -->
function display_details(option)
{
document.getElementById('unbanlength').value = ban_length[option];
if (option in ban_reason) {
document.getElementById('unbanreason').innerHTML = ban_reason[option];
} else {
document.getElementById('unbanreason').innerHTML = '';
}
if (option in ban_give_reason) {
document.getElementById('unbangivereason').innerHTML = ban_give_reason[option];
} else {
document.getElementById('unbangivereason').innerHTML = '';
}
}
// ]]>
</script>
<form id="acp_ban" method="post" action="{U_ACTION}">
<fieldset>
<legend>{L_TITLE}</legend>
<dl>
<dt><label for="ban">{L_BAN_CELL}{L_COLON}</label></dt>
<dd><!-- EVENT acp_ban_cell_prepend --><textarea name="ban" cols="40" rows="3" id="ban"></textarea><!-- EVENT acp_ban_cell_append --></dd>
<!-- IF S_USERNAME_BAN --><dd>[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]</dd><!-- ENDIF -->
</dl>
<dl>
<dt><label for="banlength">{L_BAN_LENGTH}{L_COLON}</label></dt>
<dd><label for="banlength"><select name="banlength" id="banlength" onchange="if(this.value==-1){document.getElementById('banlengthother').style.display = 'block';}else{document.getElementById('banlengthother').style.display='none';}">{S_BAN_END_OPTIONS}</select></label></dd>
<dd id="banlengthother" style="display: none;"><label><input type="text" name="banlengthother" class="inputbox" /><br /><span>{L_YEAR_MONTH_DAY}</span></label></dd>
</dl>
<dl>
<dt><label for="banexclude">{L_BAN_EXCLUDE}{L_COLON}</label><br /><span>{L_BAN_EXCLUDE_EXPLAIN}</span></dt>
<dd><label><input type="radio" name="banexclude" value="1" class="radio" /> {L_YES}</label>
<label><input type="radio" name="banexclude" id="banexclude" value="0" checked="checked" class="radio" /> {L_NO}</label></dd>
</dl>
<dl>
<dt><label for="banreason">{L_BAN_REASON}{L_COLON}</label></dt>
<dd><input name="banreason" type="text" class="text medium" maxlength="255" id="banreason" /></dd>
</dl>
<dl>
<dt><label for="bangivereason">{L_BAN_GIVE_REASON}{L_COLON}</label></dt>
<dd><input name="bangivereason" type="text" class="text medium" maxlength="255" id="bangivereason" /></dd>
</dl>
<p class="submit-buttons">
<input class="button1" type="submit" id="bansubmit" name="bansubmit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="banreset" name="banreset" value="{L_RESET}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
<br /><br />
<h1>{L_UNBAN_TITLE}</h1>
<p>{L_UNBAN_EXPLAIN}</p>
<form id="acp_unban" method="post" action="{U_ACTION}">
<fieldset>
<legend>{L_UNBAN_TITLE}</legend>
<!-- IF S_BANNED_OPTIONS -->
<dl>
<dt><label for="unban">{L_BAN_CELL}{L_COLON}</label></dt>
<dd><select id="unban" name="unban[]" multiple="multiple" size="10" style="width: 50%" onchange="if (this.selectedIndex > -1) display_details(this.options[this.selectedIndex].value); else display_details(-1);">{BANNED_OPTIONS}</select></dd>
</dl>
<dl>
<dt><label for="unbanlength">{L_BAN_LENGTH}{L_COLON}</label></dt>
<dd><input style="border: 0;" type="text" class="text full" readonly="readonly" name="unbanlength" id="unbanlength" /></dd>
</dl>
<dl>
<dt><label for="unbanreason">{L_BAN_REASON}{L_COLON}</label></dt>
<dd><textarea style="border: 0;" class="text full" readonly="readonly" name="unbanreason" id="unbanreason" rows="5" cols="80">&nbsp;</textarea></dd>
</dl>
<dl>
<dt><label for="unbangivereason">{L_BAN_GIVE_REASON}{L_COLON}</label></dt>
<dd><textarea style="border: 0;" class="text full" readonly="readonly" name="unbangivereason" id="unbangivereason" rows="5" cols="80">&nbsp;</textarea></dd>
</dl>
<p class="submit-buttons">
<input class="button1" type="submit" id="unbansubmit" name="unbansubmit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="unbanreset" name="unbanreset" value="{L_RESET}" />
</p>
{S_FORM_TOKEN}
</fieldset>
<!-- ELSE -->
<p>{L_NO_BAN_CELL}</p>
{S_FORM_TOKEN}
</fieldset>
<!-- ENDIF -->
</form>
<!-- INCLUDE overall_footer.html -->

View File

@@ -1,126 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<!-- IF S_EDIT_BBCODE -->
<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>
<h1>{L_ACP_BBCODES}</h1>
<p>{L_ACP_BBCODES_EXPLAIN}</p>
<form id="acp_bbcodes" method="post" action="{U_ACTION}">
<fieldset>
<legend>{L_BBCODE_USAGE}</legend>
<p>{L_BBCODE_USAGE_EXPLAIN}</p>
<dl>
<dt><label for="bbcode_match">{L_EXAMPLES}</label><br /><br /><span>{L_BBCODE_USAGE_EXAMPLE}</span></dt>
<dd><textarea id="bbcode_match" name="bbcode_match" cols="60" rows="5">{BBCODE_MATCH}</textarea></dd>
</dl>
</fieldset>
<fieldset>
<legend>{L_HTML_REPLACEMENT}</legend>
<p>{L_HTML_REPLACEMENT_EXPLAIN}</p>
<dl>
<dt><label for="bbcode_tpl">{L_EXAMPLES}</label><br /><br /><span>{L_HTML_REPLACEMENT_EXAMPLE}</span></dt>
<dd><textarea id="bbcode_tpl" name="bbcode_tpl" cols="60" rows="8">{BBCODE_TPL}</textarea></dd>
</dl>
</fieldset>
<fieldset>
<legend>{L_BBCODE_HELPLINE}</legend>
<p>{L_BBCODE_HELPLINE_EXPLAIN}</p>
<dl>
<dt><label for="bbcode_helpline">{L_BBCODE_HELPLINE_TEXT}</label></dt>
<dd><input type="text" id="bbcode_helpline" name="bbcode_helpline" size="60" maxlength="255" value="{BBCODE_HELPLINE}" /></dd>
</dl>
</fieldset>
<fieldset>
<legend>{L_SETTINGS}</legend>
<dl>
<dt><label for="display_on_posting">{L_DISPLAY_ON_POSTING}</label></dt>
<dd><input type="checkbox" class="radio" name="display_on_posting" id="display_on_posting" value="1"<!-- IF DISPLAY_ON_POSTING --> checked="checked"<!-- ENDIF --> /></dd>
</dl>
</fieldset>
<!-- EVENT acp_bbcodes_edit_fieldsets_after -->
<fieldset class="submit-buttons">
<legend>{L_SUBMIT}</legend>
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
{S_FORM_TOKEN}
</fieldset>
<br />
<table class="table1" id="down">
<thead>
<tr>
<th colspan="2">{L_TOKENS}</th>
</tr>
<tr>
<td class="row3" colspan="2">{L_TOKENS_EXPLAIN}</td>
</tr>
<tr>
<th>{L_TOKEN}</th>
<th>{L_TOKEN_DEFINITION}</th>
</tr>
</thead>
<tbody>
<!-- BEGIN token -->
<tr style="vertical-align: top;">
<td class="row1">{token.TOKEN}</td>
<td class="row2">{token.EXPLAIN}</td>
</tr>
<!-- END token -->
</tbody>
</table>
</form>
<!-- ELSE -->
<h1>{L_ACP_BBCODES}</h1>
<p>{L_ACP_BBCODES_EXPLAIN}</p>
<form id="acp_bbcodes" method="post" action="{U_ACTION}">
<fieldset class="tabulated">
<legend>{L_ACP_BBCODES}</legend>
<table class="table1 zebra-table" id="down">
<thead>
<tr>
<th>{L_BBCODE_TAG}</th>
<th>{L_ACTION}</th>
</tr>
</thead>
<tbody>
<!-- BEGIN bbcodes -->
<tr>
<td style="text-align: center;">{bbcodes.BBCODE_TAG}</td>
<td class="actions"><!-- EVENT acp_bbcodes_actions_prepend --> <a href="{bbcodes.U_EDIT}">{ICON_EDIT}</a> <a href="{bbcodes.U_DELETE}" data-ajax="row_delete">{ICON_DELETE}</a> <!-- EVENT acp_bbcodes_actions_append --></td>
</tr>
<!-- BEGINELSE -->
<tr class="row3">
<td colspan="2">{L_ACP_NO_ITEMS}</td>
</tr>
<!-- END bbcodes -->
</tbody>
</table>
<p class="quick">
<input class="button2" name="submit" type="submit" value="{L_ADD_BBCODE}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- ENDIF -->
<!-- INCLUDE overall_footer.html -->

View File

@@ -1,53 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<h1>{L_TITLE}</h1>
<p>{L_TITLE_EXPLAIN}</p>
<!-- IF S_ERROR -->
<div class="errorbox">
<h3>{L_WARNING}</h3>
<p>{ERROR_MSG}</p>
</div>
<!-- ENDIF -->
<form id="acp_board" method="post" action="{U_ACTION}">
<!-- BEGIN options -->
<!-- IF options.S_LEGEND -->
<!-- IF not options.S_FIRST_ROW -->
</fieldset>
<!-- ENDIF -->
<fieldset>
<legend>{options.LEGEND}</legend>
<!-- ELSE -->
<dl>
<dt><label for="{options.KEY}">{options.TITLE}{L_COLON}</label><!-- IF options.S_EXPLAIN --><br /><span>{options.TITLE_EXPLAIN}</span><!-- ENDIF --></dt>
<dd>{options.CONTENT}</dd>
</dl>
<!-- ENDIF -->
<!-- END options -->
<!-- IF S_AUTH -->
</fieldset>
<!-- BEGIN auth_tpl -->
<!-- INCLUDE {auth_tpl.TEMPLATE_FILE} -->
<!-- END auth_tpl -->
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<!-- ENDIF -->
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- INCLUDE overall_footer.html -->

View File

@@ -1,102 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<!-- IF S_EDIT_BOT -->
<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>
<h1>{L_TITLE}</h1>
<p>{L_BOT_EDIT_EXPLAIN}</p>
<!-- IF S_ERROR -->
<div class="errorbox">
<h3>{L_WARNING}</h3>
<p>{ERROR_MSG}</p>
</div>
<!-- ENDIF -->
<form id="acp_bots" method="post" action="{U_ACTION}">
<fieldset>
<legend>{L_TITLE}</legend>
<dl>
<dt><label for="bot_name">{L_BOT_NAME}{L_COLON}</label><br /><span>{L_BOT_NAME_EXPLAIN}</span></dt>
<dd><input name="bot_name" type="text" id="bot_name" value="{BOT_NAME}" maxlength="255" /></dd>
</dl>
<dl>
<dt><label for="bot_style">{L_BOT_STYLE}{L_COLON}</label><br /><span>{L_BOT_STYLE_EXPLAIN}</span></dt>
<dd><select id="bot_style" name="bot_style">{S_STYLE_OPTIONS}</select></dd>
</dl>
<dl>
<dt><label for="bot_lang">{L_BOT_LANG}{L_COLON}</label><br /><span>{L_BOT_LANG_EXPLAIN}</span></dt>
<dd><select id="bot_lang" name="bot_lang">{S_LANG_OPTIONS}</select></dd>
</dl>
<dl>
<dt><label for="bot_active">{L_BOT_ACTIVE}{L_COLON}</label></dt>
<dd><select id="bot_active" name="bot_active">{S_ACTIVE_OPTIONS}</select></dd>
</dl>
<dl>
<dt><label for="bot_agent">{L_BOT_AGENT}{L_COLON}</label><br /><span>{L_BOT_AGENT_EXPLAIN}</span></dt>
<dd><input name="bot_agent" type="text" id="bot_agent" value="{BOT_AGENT}" maxlength="255" /></dd>
</dl>
<dl>
<dt><label for="bot_ip">{L_BOT_IP}{L_COLON}</label><br /><span>{L_BOT_IP_EXPLAIN}</span></dt>
<dd><input name="bot_ip" type="text" id="bot_ip" value="{BOT_IP}" maxlength="255" /></dd>
</dl>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
{S_FORM_TOKEN}
</p>
</fieldset>
</form>
<!-- ELSE -->
<h1>{L_BOTS}</h1>
<p>{L_BOTS_EXPLAIN}</p>
<form id="acp_bots" method="post" action="{U_ACTION}">
<table class="table1 zebra-table">
<thead>
<tr>
<th>{L_BOT_NAME}</th>
<th>{L_BOT_LAST_VISIT}</th>
<th colspan="3">{L_OPTIONS}</th>
<th>{L_MARK}</th>
</tr>
</thead>
<tbody>
<!-- BEGIN bots -->
<tr>
<td style="width: 50%;">{bots.BOT_NAME}</td>
<td style="width: 15%; white-space: nowrap;" align="center">&nbsp;{bots.LAST_VISIT}&nbsp;</td>
<td style="text-align: center;">&nbsp;<a href="{bots.U_ACTIVATE_DEACTIVATE}" data-ajax="activate_deactivate">{bots.L_ACTIVATE_DEACTIVATE}</a>&nbsp;</td>
<td style="text-align: center;">&nbsp;<a href="{bots.U_EDIT}">{L_EDIT}</a>&nbsp;</td>
<td style="text-align: center;">&nbsp;<a href="{bots.U_DELETE}" data-ajax="row_delete">{L_DELETE}</a>&nbsp;</td>
<td style="text-align: center;"><input type="checkbox" class="radio" name="mark[]" value="{bots.BOT_ID}" /></td>
</tr>
<!-- END bots -->
</tbody>
</table>
<fieldset class="quick" style="float: {S_CONTENT_FLOW_BEGIN};">
<input class="button2" name="add" type="submit" value="{L_BOT_ADD}" />
</fieldset>
<fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
<select name="action">{S_BOT_OPTIONS}</select>
<input class="button2" name="submit" type="submit" value="{L_SUBMIT}" />
<p class="small"><a href="#" onclick="marklist('acp_bots', 'mark', true);">{L_MARK_ALL}</a> &bull; <a href="#" onclick="marklist('acp_bots', 'mark', false);">{L_UNMARK_ALL}</a></p>
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- ENDIF -->
<!-- INCLUDE overall_footer.html -->

View File

@@ -1,79 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<h1>{L_ACP_VC_SETTINGS}</h1>
<p>{L_ACP_VC_SETTINGS_EXPLAIN}</p>
<p>{L_ACP_VC_EXT_GET_MORE}</p>
<!-- IF ERROR_MSG -->
<div class="errorbox">
<h3>{L_WARNING}</h3>
<p>{ERROR_MSG}</p>
</div>
<!-- ENDIF -->
<form id="acp_captcha" method="post" action="{U_ACTION}">
<fieldset>
<legend>{L_GENERAL_OPTIONS}</legend>
<dl>
<dt><label for="enable_confirm">{L_VISUAL_CONFIRM_REG}{L_COLON}</label><br /><span>{L_VISUAL_CONFIRM_REG_EXPLAIN}</span></dt>
<dd><label><input type="radio" class="radio" id="enable_confirm" name="enable_confirm" value="1"<!-- IF REG_ENABLE --> checked="checked"<!-- ENDIF --> /> {L_ENABLED}</label>
<label><input type="radio" class="radio" name="enable_confirm" value="0"<!-- IF not REG_ENABLE --> checked="checked"<!-- ENDIF --> /> {L_DISABLED}</label></dd>
</dl>
<dl>
<dt><label for="max_reg_attempts">{L_REG_LIMIT}{L_COLON}</label><br /><span>{L_REG_LIMIT_EXPLAIN}</span></dt>
<dd><input id="max_reg_attempts" type="number" min="0" max="9999" name="max_reg_attempts" value="{REG_LIMIT}" /></dd>
</dl>
<dl>
<dt><label for="max_login_attempts">{L_MAX_LOGIN_ATTEMPTS}{L_COLON}</label><br /><span>{L_MAX_LOGIN_ATTEMPTS_EXPLAIN}</span></dt>
<dd><input id="max_login_attempts" type="number" min="0" max="9999" name="max_login_attempts" value="{MAX_LOGIN_ATTEMPTS}" /></dd>
</dl>
<dl>
<dt><label for="enable_post_confirm">{L_VISUAL_CONFIRM_POST}{L_COLON}</label><br /><span>{L_VISUAL_CONFIRM_POST_EXPLAIN}</span></dt>
<dd><label><input type="radio" class="radio" id="enable_post_confirm" name="enable_post_confirm" value="1"<!-- IF POST_ENABLE --> checked="checked"<!-- ENDIF --> /> {L_ENABLED}</label>
<label><input type="radio" class="radio" name="enable_post_confirm" value="0"<!-- IF not POST_ENABLE --> checked="checked"<!-- ENDIF --> /> {L_DISABLED}</label></dd>
</dl>
<dl>
<dt><label for="confirm_refresh">{L_VISUAL_CONFIRM_REFRESH}{L_COLON}</label><br /><span>{L_VISUAL_CONFIRM_REFRESH_EXPLAIN}</span></dt>
<dd><label><input type="radio" class="radio" id="confirm_refresh" name="confirm_refresh" value="1"<!-- IF CONFIRM_REFRESH --> checked="checked"<!-- ENDIF --> /> {L_ENABLED}</label>
<label><input type="radio" class="radio" name="confirm_refresh" value="0"<!-- IF not CONFIRM_REFRESH --> checked="checked"<!-- ENDIF --> /> {L_DISABLED}</label></dd>
</dl>
</fieldset>
<fieldset>
<legend>{L_AVAILABLE_CAPTCHAS}</legend>
<dl>
<dt><label for="captcha_select">{L_CAPTCHA_SELECT}{L_COLON}</label><br /><span>{L_CAPTCHA_SELECT_EXPLAIN}</span></dt>
<dd><select id="captcha_select" name="select_captcha" onchange="(document.getElementById('acp_captcha')).submit()" >{CAPTCHA_SELECT}</select></dd>
</dl>
<!-- IF S_CAPTCHA_HAS_CONFIG -->
<dl>
<dt><label for="configure">{L_CAPTCHA_CONFIGURE}{L_COLON}</label><br /><span>{L_CAPTCHA_CONFIGURE_EXPLAIN}</span></dt>
<dd><input class="button2" type="submit" id="configure" name="configure" value="{L_CONFIGURE}" /></dd>
</dl>
<!-- ENDIF -->
</fieldset>
<!-- IF CAPTCHA_PREVIEW_TPL -->
<fieldset>
<legend>{L_PREVIEW}</legend>
<!-- INCLUDE {CAPTCHA_PREVIEW_TPL} -->
</fieldset>
<!-- ENDIF -->
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input class="button1" type="submit" id="main_submit" name="main_submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="form_reset" name="reset" value="{L_RESET}" />&nbsp;
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- INCLUDE overall_footer.html -->

View File

@@ -1,76 +0,0 @@
<!-- INCLUDE overall_header.html -->
<script type="text/javascript">
// <![CDATA[
var form_name = 'acp_contact';
var text_name = 'contact_admin_info';
var load_draft = false;
var upload = false;
var imageTag = false;
// ]]>
</script>
<a id="maincontent"></a>
<h1>{L_ACP_CONTACT_SETTINGS}</h1>
<p>{L_ACP_CONTACT_SETTINGS_EXPLAIN}</p>
<form id="acp_contact" method="post" action="{U_ACTION}">
<fieldset>
<legend>{L_GENERAL_OPTIONS}</legend>
<dl>
<dt><label for="contact_admin_form_enable">{L_CONTACT_US_ENABLE}{L_COLON}</label><br /><span>{L_CONTACT_US_ENABLE_EXPLAIN}</span></dt>
<dd>
<label><input type="radio" class="radio" id="contact_admin_form_enable" name="contact_admin_form_enable" value="1"<!-- IF CONTACT_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_ENABLED}</label>
<label><input type="radio" class="radio" name="contact_admin_form_enable" value="0"<!-- IF not CONTACT_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_DISABLED}</label>
</dd>
</dl>
</fieldset>
<!-- IF CONTACT_US_INFO_PREVIEW -->
<fieldset>
<legend>{L_CONTACT_US_INFO_PREVIEW}</legend>
<p>{CONTACT_US_INFO_PREVIEW}</p>
</fieldset>
<!-- ENDIF -->
<fieldset>
<legend>{L_CONTACT_US_INFO}</legend>
<p>{L_CONTACT_US_INFO_EXPLAIN}</p>
<!-- INCLUDE acp_posting_buttons.html -->
<dl class="responsive-columns">
<dt style="width: 90px;" id="color_palette_placeholder" data-orientation="v" data-height="12" data-width="15" data-bbcode="true">
</dt>
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px;">
<textarea name="contact_admin_info" rows="10" cols="60" style="width: 95%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" data-bbcode="true">{CONTACT_US_INFO}</textarea>
</dd>
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px; margin-top: 5px;">
<!-- IF S_BBCODE_ALLOWED -->
<label><input type="checkbox" class="radio" name="disable_bbcode"<!-- IF S_BBCODE_DISABLE_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_DISABLE_BBCODE}</label>
<!-- ENDIF -->
<!-- IF S_SMILIES_ALLOWED -->
<label><input type="checkbox" class="radio" name="disable_smilies"<!-- IF S_SMILIES_DISABLE_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_DISABLE_SMILIES}</label>
<!-- ENDIF -->
<!-- IF S_LINKS_ALLOWED -->
<label><input type="checkbox" class="radio" name="disable_magic_url"<!-- IF S_MAGIC_URL_DISABLE_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_DISABLE_MAGIC_URL}</label>
<!-- ENDIF -->
</dd>
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px; margin-top: 10px;"><strong>{L_OPTIONS}{L_COLON} </strong>{BBCODE_STATUS} :: {IMG_STATUS} :: {FLASH_STATUS} :: {URL_STATUS} :: {SMILIES_STATUS}</dd>
</dl>
</fieldset>
<fieldset class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="submit" name="preview" value="{L_PREVIEW}" />
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- INCLUDE overall_footer.html -->

View File

@@ -1,98 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<!-- IF MODE eq 'restore' -->
<h1>{L_ACP_RESTORE}</h1>
<p>{L_ACP_RESTORE_EXPLAIN}</p>
<!-- IF .files -->
<form id="acp_backup" method="post" action="{U_ACTION}">
<fieldset>
<legend>{L_RESTORE_OPTIONS}</legend>
<dl>
<dt><label for="file">{L_SELECT_FILE}{L_COLON}</label></dt>
<dd><select id="file" name="file" size="10"><!-- BEGIN files --><option value="{files.FILE}"<!-- IF files.S_FIRST_ROW --> selected="selected"<!-- ENDIF -->>{files.NAME}</option><!-- END files --></select></dd>
</dl>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_START_RESTORE}" />&nbsp;
<input class="button2" type="submit" id="delete" name="delete" value="{L_DELETE_BACKUP}" />&nbsp;
<input class="button2" type="submit" id="download" name="download" value="{L_DOWNLOAD_BACKUP}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- ELSE -->
<div class="errorbox">
<p>{L_ACP_NO_ITEMS}</p>
</div>
<!-- ENDIF -->
<!-- ELSE -->
<h1>{L_ACP_BACKUP}</h1>
<p>{L_ACP_BACKUP_EXPLAIN}</p>
<script type="text/javascript">
// <![CDATA[
function selector(bool)
{
var table = document.getElementById('table');
for (var i = 0; i < table.options.length; i++)
{
table.options[i].selected = bool;
}
}
// ]]>
</script>
<form id="acp_backup" method="post" action="{U_ACTION}">
<fieldset>
<legend>{L_BACKUP_OPTIONS}</legend>
<dl>
<dt><label for="type">{L_BACKUP_TYPE}{L_COLON}</label></dt>
<dd><label><input type="radio" class="radio" name="type" value="full" id="type" checked="checked" /> {L_FULL_BACKUP}</label>
<label><input type="radio" name="type" class="radio" value="structure" /> {L_STRUCTURE_ONLY}</label>
<label><input type="radio" class="radio" name="type" value="data" /> {L_DATA_ONLY}</label></dd>
</dl>
<dl>
<dt><label for="method">{L_FILE_TYPE}{L_COLON}</label></dt>
<dd><!-- BEGIN methods -->
<label><input name="method"<!-- IF methods.S_FIRST_ROW --> id="method" checked="checked"<!-- ENDIF --> type="radio" class="radio" value="{methods.TYPE}" /> {methods.TYPE}</label>
<!-- END methods --></dd>
</dl>
<dl>
<dt><label for="where">{L_ACTION}{L_COLON}</label></dt>
<dd>
<label><input id="where" type="radio" class="radio" name="where" value="store" checked="checked" /> {L_STORE_LOCAL}</label>
<label><input type="radio" class="radio" name="where" value="download" /> {L_DOWNLOAD}</label>
</dd>
</dl>
<dl>
<dt><label for="table">{L_TABLE_SELECT}{L_COLON}</label></dt>
<dd><select id="table" name="table[]" size="10" multiple="multiple">
<!-- BEGIN tables -->
<option value="{tables.TABLE}">{tables.TABLE}</option>
<!-- END tables -->
</select></dd>
<dd><a href="#" onclick="selector(true); return false;">{L_SELECT_ALL}</a> :: <a href="#" onclick="selector(false); return false;">{L_DESELECT_ALL}</a></dd>
</dl>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- ENDIF -->
<!-- INCLUDE overall_footer.html -->

View File

@@ -1,45 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<h1>{L_ACP_DISALLOW_USERNAMES}</h1>
<p>{L_ACP_DISALLOW_EXPLAIN}</p>
<form id="acp_disallow" method="post" action="{U_ACTION}">
<fieldset>
<legend>{L_ADD_DISALLOW_TITLE}</legend>
<dl>
<dt><label for="user">{L_USERNAME}{L_COLON}</label><br /><span>{L_ADD_DISALLOW_EXPLAIN}</span></dt>
<dd><input id="user" type="text" class="text medium" maxlength="255" name="disallowed_user" /></dd>
</dl>
<p class="quick">
<input class="button1" type="submit" name="disallow" value="{L_SUBMIT}" />
</p>
</fieldset>
<h1>{L_DELETE_DISALLOW_TITLE}</h1>
<p>{L_DELETE_DISALLOW_EXPLAIN}</p>
<fieldset>
<legend>{L_DELETE_DISALLOW_TITLE}</legend>
<!-- IF S_DISALLOWED_NAMES -->
<dl>
<dt><label for="disallowed">{L_USERNAME}{L_COLON}</label></dt>
<dd><select name="disallowed_id" id="disallowed">{S_DISALLOWED_NAMES}</select></dd>
</dl>
<p class="quick">
<input class="button1" type="submit" name="allow" value="{L_SUBMIT}" />
</p>
<!-- ELSE -->
<p>{L_NO_DISALLOWED}</p>
<!-- ENDIF -->
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- INCLUDE overall_footer.html -->

View File

@@ -1,62 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<h1>{L_ACP_MASS_EMAIL}</h1>
<p>{L_ACP_MASS_EMAIL_EXPLAIN}</p>
<!-- IF S_WARNING -->
<div class="errorbox">
<h3>{L_WARNING}</h3>
<p>{WARNING_MSG}</p>
</div>
<!-- ENDIF -->
<form id="acp_email" method="post" action="{U_ACTION}">
<fieldset>
<legend>{L_COMPOSE}</legend>
<dl>
<dt><label for="group">{L_SEND_TO_GROUP}{L_COLON}</label></dt>
<!-- EVENT acp_email_group_options_prepend -->
<dd><select id="group" name="g">{S_GROUP_OPTIONS}</select></dd>
<!-- EVENT acp_email_group_options_append -->
</dl>
<dl>
<dt><label for="usernames">{L_SEND_TO_USERS}{L_COLON}</label><br /><span>{L_SEND_TO_USERS_EXPLAIN}</span></dt>
<dd><textarea name="usernames" id="usernames" rows="5" cols="40">{USERNAMES}</textarea></dd>
<dd><!-- EVENT acp_email_find_username_prepend -->[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]<!-- EVENT acp_email_find_username_append --></dd>
</dl>
<dl>
<dt><label for="subject">{L_SUBJECT}{L_COLON}</label></dt>
<dd><input name="subject" type="text" id="subject" value="{SUBJECT}" /></dd>
</dl>
<dl>
<dt><label for="message">{L_MASS_MESSAGE}{L_COLON}</label><br /><span>{L_MASS_MESSAGE_EXPLAIN}</span></dt>
<dd><textarea id="message" name="message" rows="10" cols="60">{MESSAGE}</textarea></dd>
</dl>
<dl>
<dt><label for="priority">{L_MAIL_PRIORITY}{L_COLON}</label></dt>
<dd><select id="priority" name="mail_priority_flag">{S_PRIORITY_OPTIONS}</select></dd>
</dl>
<dl>
<dt><label for="banned">{L_MAIL_BANNED}{L_COLON}</label><br /><span>{L_MAIL_BANNED_EXPLAIN}</span></dt>
<dd><input id="banned" name="mail_banned_flag" type="checkbox" class="radio" /></dd>
</dl>
<dl>
<dt><label for="send">{L_SEND_IMMEDIATELY}{L_COLON}</label></dt>
<dd><input id="send" type="checkbox" class="radio" name="send_immediately" checked="checked" /></dd>
</dl>
<!-- EVENT acp_email_options_after -->
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SEND_EMAIL}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- INCLUDE overall_footer.html -->

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