I have created the basics, which I think would be located in the file /Hotaru.php
Code: Select all
//PHPBB and Hotaru Bridge (from within Hotaru)
//Not sure how to continue this, or how to validate at this point
//requires $phpbbbridge inclusion somewhere
public function getUser($userid); // Checks if "Hotaru" News has userid of guest or registered
{
if ($userid >= 1); // if logged in, then do nothing (Updating profiles are not necessary as they will share the same IDs)
{
elseif ($userid = 0); // if not logged in, what's the reason?
{
if ($phpbbbridge['userid'] >= 1); //checks if user is logged in phpbb
{
//if yes then execute a mySQL injection from the phpBB database to the Hotaru database
//mySQL injection is INCOMPLETE
}
elseif ($phpbbbridge['userid'] = 0 || NULL); // The user is not in the phpBB database, therefore they are just a guest, do nothing.
{
// User is a guest, do nothing here but treat them well ;)
}
}
}
}
The Hotaru CMS can be found here: http://www.hotarucms.org/