Im trying to integrate Openfire with an email aplication, and i need a script ( php ) to add new users directly to Openfire database.
I made this script
<?php
$cnt = mysql_connect("localhost","root","pass");
if (!$cnt)
{
die('Nu se poate conecta la baza de date CANT CONNECT : ' . mysql_error());
}
$pass = $_POST;
$encryptedPassword = md5($pass);
mysql_select_db("im", $cnt);
mysql_query("insert into jiveUser(username, encryptedPassword, email, name) values('$_POST[username]', '$encryptedPassword' , '$_POST[email]', '$_POST[name]')");
echo "Introdus in baza de date ! DONE ";
mysql_close();
?>
After ive added some new users , whom i saw them in phpmyadmin, i cant login with those users via Spark
After that i went to admin interface to see if, when i click Users/Grups new users added by this scripts are shown.
They arent, but they are counted , i meen i see 20 users but system tell me that i have 23 users . those 3 added by this script are not shown
Any ideea where its my mistake ?
Thank You and Best Regards