CodeIgniter Forums
Phpbb hash password how to intergrate in codeigniter using phpbb library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Phpbb hash password how to intergrate in codeigniter using phpbb library (/showthread.php?tid=57995)



Phpbb hash password how to intergrate in codeigniter using phpbb library - El Forum - 05-03-2013

[eluser]Unknown[/eluser]
Phpbb hash password how to intergrate in codeigniter using phpbb library


Phpbb hash password how to intergrate in codeigniter using phpbb library - El Forum - 05-04-2013

[eluser]TheFuzzy0ne[/eluser]
Sorry, I've absolutely no idea what you mean. Please could you elaborate?

What do you want to do, exactly, and why are you unable to do it?


Phpbb hash password how to intergrate in codeigniter using phpbb library - El Forum - 05-04-2013

[eluser]Unknown[/eluser]
Sorry !!!

Am fresher for codeIgniter my queries below :

My folder structure :

Codeigniter

codeigniter_project/app/controllers/libraries/phpbb_library.php

Phpbb

codeigniter_project/phpbb_forum

am using phpbb library in codeignter i want phpbb password hash function in codeigniter is it possible to intergrate in codeigniter ?


Phpbb hash password how to intergrate in codeigniter using phpbb library - El Forum - 05-04-2013

[eluser]TheFuzzy0ne[/eluser]
I think so.

Code:
define('IN_PHPBB', TRUE);
include 'path_to_phpbb3/includes/functions.php';

$password = 'my-secret-password';
$pw_hash = phpbb_hash($password);
echo $pw_hash;

I'm not sure if this will work. You may get unexpected results, but there's only one way to find out. Wink

If you wanted to, you could easily make this a part of the PHPBB3 library.