0

I was looking for an open source php website code and found one at http://projects.students3k.com/online-exam-website-php-source-code.html and downloaded it. It doesnt have a read me so I suppose it involves something which is common sense to people who use php.

Subsequently, I installed apache2, placed the whole stuff in var/www/ and connected to the database.

  1. What I'm unable to do is find any users to login to the user or admin interface. I did find a file with some users in a csv format but it doesn't work
  2. The instructions say I have to make changes to a file lib/db.php for adding my local parameters.

This is not any sort of homework and I really wanna explore the functionality of this website.

P.S. - The file size is 80 Mb before i'm scolded for posting such links.

P.P.S - It will reallllly help me and I have smashed my head trying.

db.php file after modifications :

define('DB_SERVER', 'localhost');
define('DB_USER', 'root');
define('DB_PASSWD', 'password');
define('DB_NAME', 'test');
define('ADMIN_URL', 'localhost/admin/');
define('URL', 'localhost/');
define('IMAGEURL', '/var/www/images');

define('Site_Admin_Name','http://online-test.students3k.com/admin/');
define('Site_Name', 'http://online-test.students3k.com/');
define('Admin_folder_Name', '/var/www/admin/web');
define('Admin_Path','<a href="../home.php" style="text-decoration: none;">Admin</a>
                         <span class="org_arrow"><b>&raquo;</b></span>');
define('Site_Title', 'Ismart Exams');
define('Admin_Site_Title', 'Ismart Exams :: Admin Panel');
4

1 回答 1

1

You need to import the data into your database. The file is located at

database/ismartexams.sql

After you imported the data there will be three users available.

  1. admin
  2. testengine
  3. superadmin

Their passwords are equal to the username.

于 2013-05-12T22:12:34.950 回答