phpbb3 forum hosting
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: phpbb3 forum hosting
- we're poor!
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: phpbb3 forum hosting
valid_forum_1 and valid_forum_2 are examples for allowed names. You need to validate them very strictly, else you create security holes.
- we're poor!
-
- New member
- Posts: 8
- Joined: 11 Apr 2008, 18:35
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: phpbb3 forum hosting
ok. i changed all forum=name to forum1=name and its still setting topic_id's as 0 and when replying to the first topic created which is created by phpBB. it creates a new category.lol. wtf?
You think phpBB would still function properly if i set topic_id and post_id to primary key and auto-increment then removed the insert topic_id and post_id?
You think phpBB would still function properly if i set topic_id and post_id to primary key and auto-increment then removed the insert topic_id and post_id?
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: phpbb3 forum hosting
- we're poor!
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: phpbb3 forum hosting
My code was only an example, you can have it handled totally differently. But IMO it is important that you validate that to prevent potential sql injection.
- we're poor!
-
- New member
- Posts: 8
- Joined: 11 Apr 2008, 18:35
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: phpbb3 forum hosting
You think phpBB would still function properly if i set topic_id and post_id to primary key and auto-increment then removed the insert topic_id and post_id?
Return to “phpBB Development discussion”
Who is online
Users browsing this forum: SeznamBot [Crawler] and 31 guests