dongsi4815 2013-05-12 21:51
浏览 35
已采纳

修改后运行一个开源的php项目[关闭]

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');
  • 写回答

1条回答 默认 最新

  • dongxin8392 2013-05-12 22:12
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?