1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Commit Graph

25 Commits

Author SHA1 Message Date
Andreas Möller
9482f9bd43 Fix: Remove unused functions (#585) 2023-12-07 18:14:43 +01:00
Lu Fei
bf7eff4a9c Fix autoload redirect failure (#788) 2023-06-26 14:19:29 +01:00
Andreas Möller
a83ae2fa32 Enhancement: Use PSR-4 autoloader (#604) 2022-07-05 12:50:41 +01:00
Andreas Möller
d6f23ea19b Fix: Move class into src/ (#581) 2022-06-29 19:03:25 +01:00
Patrick Allaert
0004e1c6fc Fixed typo 2021-06-10 18:12:17 +02:00
Sara Golemon
7971068c37 Refactor createNewsEntry for non-interactive use
Add bin/createReleaseEntry script for common release announcements
2020-06-17 22:04:52 +00:00
Peter Cowburn
4edd760ae9 use conference urls for cfp/announcements
The createNewsEntry script was recently refactored (thanks Sara!) and a
regression slipped through.

For conference news entries before the refactor, we used to generate the
"alternate" links along the lines of:
http://php.net/conferences/index.php#id2019-01-01-1

After the refactor, that changed to the following:
https://www.php.net/index.php#id2019-01-01-1

And with this commit they look like:
https://www.php.net/conferences/index.php#id2019-01-01-1
2019-07-23 20:23:53 +01:00
Sara Golemon
464ff738ba Refactor bin/createNewsEntry 2019-07-10 12:25:09 -04:00
Peter Kokot
dd8d8bf863 Sync final and leading newlines
This patch adds some missing newlines, trims some multiple redundant
final newlines into a single one, and trims few redundant leading
newlines.

According to POSIX, a line is a sequence of zero or more non-'<newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-17 12:37:26 +02:00
Peter Cowburn
02173eae56 set recommended maximum image height to 250px (was 400px) in bin/createNewsEntry 2018-03-14 22:41:51 +00:00
Peter Cowburn
4d64a90605 Merge branch 'pull-request/61' 2018-03-14 22:30:05 +00:00
Peter Cowburn
1c25572c7b pad category name in createNewsEmpty prompt
Changes the prompt from this:

Categories:
	0: frontpage	 [PHP.net frontpage news]
	1: releases	 [New PHP release]
	2: conferences	 [Conference announcement]
	3: cfp	 [Call for Papers]

To this:

Categories:
	0: frontpage  	 [PHP.net frontpage news]
	1: releases   	 [New PHP release]
	2: conferences	 [Conference announcement]
	3: cfp        	 [Call for Papers]
2017-04-15 23:01:12 +01:00
Eli White
2f2d99f80c Fixing a problem that existed with the News Creation tool. A formatting change that was thought to not affect anything functionally (changing some spacing of an option), ended up causing conference announcements to not appear on the website. 2017-04-15 10:29:48 -04:00
Andreas Heigl
589a30929b Removes possibility to add CfP AND conference
This commit eliminates the possibility to add a conference AND a CfP in
one news. If you want to create both you will then have to create two
separate news. This makes it easier to get informations regarding CfP
and Conferences separate from one another
2015-10-09 21:12:33 +02:00
Stelian, Mocanita
6fbd40c272 Added some validation calls for the createNewsEntry
Script now checks if the category is valid on submission.
Script now does a warning based check for the image size to avoid high-res images being pushed.
2015-02-25 12:05:41 +01:00
Daniel P. Brown
3cc9491588 Change multiple checks and references from 'www.php.net' to plainly 'php.net' to reduce 301's, fix a few broken items, and ease a bit of the load off the server (multiple connections per page when statically referenced as 'www.php.net.' 2012-12-05 11:09:23 -05:00
David Soria Parra
b31554db7c SVN -> Git 2012-01-24 13:25:53 +01:00
Hannes Magnusson
51a80559d4 SVNify 2009-07-30 10:42:44 +00:00
Philip Olson
5c4e61cdad hack to increase whitespace in generated entries 2009-06-21 18:39:17 +00:00
Hannes Magnusson
d75b817c2f Sync with changes in the "new system"
#Apparently I forgot to commit this when I update the "new system"..
2009-01-10 23:29:46 +00:00
Hannes Magnusson
30d9addb09 Don't assume the location of php 2008-12-11 11:50:57 +00:00
Hannes Magnusson
e10a935bbe Fix duplicated http://php.net in ID 2008-04-30 21:44:08 +00:00
Hannes Magnusson
e98ca944ec - link href MUST be IRI
- xhtml ID MUST begin with a letter, not a digit
2008-03-19 20:49:51 +00:00
Derick Rethans
d7e44e354e - Added PHP 4.4.8 releases. 2008-01-03 09:26:22 +00:00
Hannes Magnusson
6c35b02f49 Add a script to simplify adding new news/conference/cfp entries 2007-09-01 16:25:08 +00:00