phpbb

Replicate PHPBB password hashing in ASP.net c#

纵然是瞬间 提交于 2019-12-12 07:58:35
问题 I'm using phpbb 3.0.8 at the moment. It has 3,000 users and around 60,000 posts. I'm changing the forum to a different one, written in classic ASP (I know people are going to disapprove of this but I have good reasons). My site is written in ASP.net. The classic ASP forum has an API to connect to it. I've set all this up, and it works fine. I have written my own login form. I want to copy all the user accounts over. The current forum has the table: Username | Password | Hash | Salt I've

phpbb BBCode to HTML (regex or otherwise)

眉间皱痕 提交于 2019-12-11 12:58:01
问题 I'm in the process of migrating content from phpBB to WordPress. I have suceeded up to the point of translating the bbcode into html. The BBCode is complicated by an alphanumeric string that is injected into each tag. A common post will contain text like so... [url=url] Click here [/url:583ow9wo] [b:583ow9wo] BOLD [/b:583ow9wo] [img:583ow9wo] jpg [/img:583ow9wo] I am inexperienced with Regular Expressions but believe this may be a way out, as I found some help from the following post https:/

Authenticate user against PhPbb database

∥☆過路亽.° 提交于 2019-12-09 16:01:03
问题 Recently I have started implementing a solution which will use a PhPbb database for forms authorization, I have used the class from this below thread: PhPbb C# Authentication Port So i wrote a membership provider using this class in the 'ValidateUser' function: public override bool ValidateUser(string username, string password) { ForumsDataContext db = Root.ForumsDataContext; PhPbbCryptoServiceProvider phpbbCrypt = new PhPbbCryptoServiceProvider(); string remoteHash = db.Users.Where(u => u

Removing bidirectional duplicates in MySQL

冷暖自知 提交于 2019-12-08 09:41:47
问题 I'm modifying phpBB's table to have bidirectional relationships for friends. Unfortuntately, people that have already added friends have created duplicate rows: user1 user2 friend 2 3 true 3 2 true 2 4 true So I'd like to remove rows 1 and 2 from the example above. Currently, this is my query built (doesn't work atm): DELETE FROM friends WHERE user1 IN (SELECT user1 FROM (SELECT f1.user1 FROM friends f1, friends f2 WHERE f1.user1=f2.user2 AND f1.user2=f2.user1 GROUP BY f1.user1) AS vtable);

Illegal use of $_REQUEST. You must use the request class or request_var() to access input data

旧时模样 提交于 2019-12-08 04:20:12
问题 Bit out of my depth here. I'm integrating the forum provider 'phpBB' with my own site and creating an external direct messaging system to phpBB itself. I'm at the stage where I'm receiving this error: Warning: Cannot modify header information - headers already sent by (output started at /home/treeves4/public_html/pm/pm/new_pm.php:25) in /home/treeves4/public_html/pm/pm/phpBB/includes/functions.php on line 2474 Illegal use of $_REQUEST. You must use the request class or request_var() to access

Authenticate phpBB using custom MS-SQL database

南笙酒味 提交于 2019-12-07 16:21:32
问题 How can I let my users to log into a phpBB forum by entering their user credentials while these credentials are stored in a separate MS SQL database? 回答1: You need to create a custom authentication plugin for phpbb. Since your requirement is authentication against a database, it should be pretty straight forward to re-use the existing plugin phpbb uses for authentication against it's own internal database. Authentication plugins are located in <install_dir>/includes/auth An authentication

curl gives 403 error?

假如想象 提交于 2019-12-07 13:09:01
问题 I'm trying to set a cookie for my phpBB forums from a MediaWiki login page. Using the hook after a login to the wiki is successful, I want to run a php script that sets the cookie. The script works when I run it independently or when I use GET , but for security reasons I want to POST to the script. For this I figured curl would be the best option. Unfortunately, even the basic script like this: curl_setopt($ch, CURLOPT_URL, "http://www.example.com/ForumLogin.php"); curl_setopt($ch, CURLOPT

Use PHPBB2 Login Credentials in my site

亡梦爱人 提交于 2019-12-06 08:22:51
问题 I'm currently using a PHPBB2 forum for a section of one of my sites, and I would like to extend this site (add new pages, scripts, etc). I would like to restrict access to these pages to the users already logged in the PHPBB2 Forum. In fact, if only members of a certain MemberGroup could access these pages, that would be great. Is there a way to use the same login credentials on the rest of my site, and to check out which groups the members are from? Thanks (by the way, these pages are in PHP

curl gives 403 error?

若如初见. 提交于 2019-12-05 23:00:44
I'm trying to set a cookie for my phpBB forums from a MediaWiki login page. Using the hook after a login to the wiki is successful, I want to run a php script that sets the cookie. The script works when I run it independently or when I use GET , but for security reasons I want to POST to the script. For this I figured curl would be the best option. Unfortunately, even the basic script like this: curl_setopt($ch, CURLOPT_URL, "http://www.example.com/ForumLogin.php"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); Gives me a 403 Forbidden error. There's no rules in robots

Authenticate phpBB using custom MS-SQL database

≡放荡痞女 提交于 2019-12-05 21:52:27
How can I let my users to log into a phpBB forum by entering their user credentials while these credentials are stored in a separate MS SQL database? You need to create a custom authentication plugin for phpbb. Since your requirement is authentication against a database, it should be pretty straight forward to re-use the existing plugin phpbb uses for authentication against it's own internal database. Authentication plugins are located in <install_dir>/includes/auth An authentication plugin must be named auth_<your custom name>.php So in your case, create a copy of auth_db.php and call it e.g.