Get the App
SLTechnology News&Howtos  ›  Servers  › 

What should be paid attention to in the secondary development of Imperial CMS

Shulou Source: shulou.com Published: 2022-06-02 01:20:50 10月01日 Update

This article mainly introduces what the secondary development of Imperial CMS needs to pay attention to, which can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

1. Do not change in the original system

Plug-ins with no vulnerabilities are recommended to be done independently and will not be changed in the original system. For example, today's AJAX login, registration, download, do not need AJAX can also log in and download, and even if users find the old login connection, the old registration address, the old download address, there will be no loopholes.

2. Write all the code in your own file

If you do not change the original system file will be a loophole, then do not write a piece of code in the original file, write all the code in your own file, in terms of functions, reference the file to the appropriate location, insert the function where you want to change and comment it.

3. Some file systems will be regenerated. The code should not be handwritten into these files.

We all know that e/class/config.php is a configuration file (ecms7.0 version is e/config/config.php), which contains the whole site parameter settings, model information, etc., which is often updated, and no one writes the code here.

4. Do not misplace the files created by yourself

The directory structure used by trylife so far is as follows:

E/trylife/common/ places the commonly used PHP function files of the commonly used JQuery js plug-ins

E/trylife/ plug-in 1 English directory name / js php html and other files that are unique to this plug-in

E/trylife/ plugin 2 English directory name /

.

E/trylife/ plug-in n English directory name /

Thank you for reading this article carefully. I hope the editor will share what you need to pay attention to in the secondary development of Imperial CMS. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Tags: Files plug-ins code directories systems functions vulnerabilities directory names articles English empire development address commonly used login appropriate not used value location information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info macOS Shulou Technology OPPO Reno Linux