I have tried to install CARE2X 2.5 RC2 version which was uploaded(in 2007) in sourceforge. But that requires previous versions of php which is less than 5.0.
Then again I downloaded the Care2x 2.6 Alpha version which was uploaded(in 2009) in sourceforge and was able to install it with out any error.
But after that, it was using session_register codes which were incompatible with newer php versions so I changed the sessions to $_SESSION[] and able to go to the main screens.
There when I try to log in, the screen was a blank, and I searched why and I could find that the new(2.6) version has a function called access which is written in a file called access_log.php and it was using SQLiteDatabase.
On that file there is a line called
$this->SQL = new SQLiteDatabase( $this->DB, 0660 );
And I tried changing the SQLiteDatabase into SQLite3 and checked as my php info says that I have SQLite3. But I could not log in. Then changed the 0660 to 0666 & 0644. No use.
In the login page there is a line calling to this AccessLog function. I comment out these things
$logs = new AccessLog();
$logs->writeline(date('Y-m-d').'/'.date('H:i'),$REMOTE_ADDR,'Main Login: OK',$user->LoginName(),$user->Name(),'','','',1);
& then my log in button worked and gave me the username password screen. Once I put them Login button became Logout as it should be, but every time I click on a module again it asks the username and password.
And if i click on Access Manager the content become blank, just like the first time when I click the log in button.
If someone can help me to install this system to php 5.5 version, I am very thankful. I am sorry for writing this very long and in very simple language. Thanks...!
Aucun commentaire:
Enregistrer un commentaire