search
HomeCMS TutorialDiscuzHow to modify admin.php in discuz

How to modify admin.php in discuz

Jun 17, 2021 am 10:32 AM
discuz

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>

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 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!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SecLists

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

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool