Home > CMS Tutorial > Discuz > body text

How to modify admin.php in discuz

藏色散人
Release: 2021-06-17 10:32:45
Original
3423 people have browsed it

discuzHow to modify admin.php: 1. Open the root directory and modify the "admin.php" file name to "study.php"; 2. Modify the content of the "header.htm" file.

How to modify admin.php in discuz

The operating environment of this article: Windows 7 system, Discuz X3.2 version, DELL G3 computer

How to modify admin.php in discuz?

How to modify the backend address admin.php and frontend login management URL in Discuz Under normal circumstances, you only need to modify 2 places. This tutorial aims to teach you how to modify these 2 places. If you find that there are other places that need to be modified, please let me know in the thread.

Modification 1.

Open the root directory and modify the admin.php file name to study.php. Then you can log in to the backend normally through http://your domain name/study.php

Modification 2.

At this time, the front desk login entrance has not changed. You need to modify the entrance address and modify the file template/default/common/header.htm (note: default here is your Style folder) found:

<span class="pipe">|</span><a href="admin.php?frames=yes&action=cloud&operation=applist" target="_blank">{lang cloudcp}</a>
Copy after login

modified to

<span class="pipe">|</span><a href="study.php?frames=yes&action=cloud&operation=applist" target="_blank">{lang cloudcp}</a>
Copy after login

Find

<span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a>
Copy after login

again and modify it to

<span class="pipe">|</span><a href="study.php" target="_blank">{lang admincp}</a>
Copy after login

Then upload the overwrite and update the cache. But in addition: Logically speaking, it is basically OK, but some plug-ins have admin.php written directly in some file management connections in the background, which will cause problems. Generally, when making plug-ins, use the constant of the background script address instead of admin.php and there will be no problems. There are no problems, so you may have a file not found, which is a 404 error, when using the background management function of some plug-ins.

Recommended learning: "

PHP Video Tutorial

"

The above is the detailed content of How to modify admin.php in discuz. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!