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.
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>
modified to
<span class="pipe">|</span><a href="study.php?frames=yes&action=cloud&operation=applist" target="_blank">{lang cloudcp}</a>
Find
<span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a>
again and modify it to
<span class="pipe">|</span><a href="study.php" target="_blank">{lang admincp}</a>
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 TutorialThe 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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool