2013-05-12 21:51
浏览 35


I was looking for an open source php website code and found one at 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_Name', '');
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');
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题