05 February 2006 @ 06:12 am
Forum Abstraction Layer template...
Looking over the code, I found that it should be pretty trivial to generate a clean FAL... since I've already moved away from using the actual forum database as much as possible (mainly done when I was hosting StormChat for Fantastic Byways, and when Evolution was still being hosted on Pele).



<?php

function getAvatar($userinfo) {
    
// returns URL to the avatar to display for the user
}

function 
checkAuth($username$password$modGroup$checkAdmin) {
    
// success: return user info array
    // failure: return error string
}

function 
checkBoardBan($ip$userid) {
    
// returns boolean result
}

function 
checkValidAlias($alias$uid) {
    
// returns boolean result
}

?>