I am useing pfc with punbb 1.3.4 forum engine.
PFC is super cool, salut to the develops of pfc. CHEERES.
But after making the configurations i noticed that the chat script doesn't work,
it sends, sendRequest: /connect "Username"
But then, no request is received,i did a search into the javascript files and noticed in that in sendRequest function, its using ajax "method : 'post', i changed it to 'get' and pfc started working.
Now let me guess about the cause of the behavior. In punbb, all 'post' request must have an valid csrf_token that must be generated against the php file.
So without the csrf_token the 'post' request cant get through.
I dont know if you guys count it as bug, but i can suggest two ways of solving the problem.
1) Get a good IDE then search->replace all "method: 'post'" to "method: 'get'"
2) Hook into whole lot of code of pfc and add functionality of checking if its included in punbb then generate csrf_token and send post request with valid csrf_token.
Definitely 1st one is easier, but i want to know, "Doest pfc's php scripts listen to $_REQEST ? or $_POST or $_GET ?
I'm asking that because if i changed all 'post' to 'get', and cfc's php scripts are listening to $_POST then everything will be messed up.
Any better idea from you guys ?