In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the basic problems and solutions of the secondary development of Imperial CMS. It has a certain reference value, and friends who need it can refer to it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
First, if the "close all dynamic pages in the foreground" option is turned on, how can the files of secondary development be accessed?
You can add the following line to the top of the developed program code:
Define ('EmpireCMSAdmin','1')
You will not be affected by this setting.
Second, LoadLang () import language pack file path is how to express?
The import language pack file address is relative to the.. / data/language/ directory, for example:
1. If the program file is in the / e/extend/ directory, for example: / e/extend/a.php, you can import the language pack with:
Require LoadLang ('pub/fun.php')
2. If the program file is in the / e/extend/helloworld/ directory, for example: / e/extend/helloworld/a.php, you can import the language pack with:
Require'.. / '.LoadLang (' pub/fun.php')
3. If the program file is in the root directory, such as / a.php, you can import the language pack with:
Require ECMS_PATH.'e/data/'.LoadLang ('pub/fun.php')
3. How does the $editor declare directory hierarchy variables?
This variable can not be set if functions such as printerror () are not used.
The default $editor variable is 0.
When the program file is in the / e/path/ directory, $editor is not set, that is, the default 0 is used.
When the program file is in the / e/path/path3/ directory, $editor=1.
When the program file is in the / e/path/path3/path4/ directory, $editor=2.
When the program file is in the / e/path/path3/path4/path5/ directory, $editor=3.
IV. Introduction to import files
Import column, theme, title classification cache file: / e/data/dbcache/class.php
Import member group cache file: / e/data/dbcache/MemberLevel.php
Import label function file: / e/class/t_functions.php
Import compilation tag file: / e/class/functions.php
Fifth, recommended variable filtering processing
1. Numeric variables can be handled with (int) or intval functions, for example:
$page= (int) $_ GET ['page']
Or
$page=intval ($_ GET ['page'])
2. Numeric variables with decimal points can be processed with (float) or floatval functions, for example:
$money= (float) $money
Or
$money=floatval ($money)
3. Character processing:
Those without spaces or other special symbols are filtered with the RepPostVar () function; those with spaces or other special symbols are filtered with the RepPostVar2 () function; those written to the database are filtered with the RepPostStr () function.
Thank you for reading this article carefully. I hope the editor will share the basic problems in the secondary development of Imperial CMS and the contents of the security solution will be helpful to everyone. At the same time, I also hope that you will support more, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.