search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

Frequently Asked Questions about Secondary Development

Collection 47
Read 29161
update time 2016-09-11
1. If the "Close all dynamic pages in the foreground" option is turned on, how can the secondary development files be accessed?
Answer: You can add the line at the top of the developed program code: define('EmpireCMSAdmin','1');
It is not affected by this setting.

2. How does LoadLang() import the language package file path?
Answer: The address of the imported language pack file is relative to ../data/language/ directory, example:
(1) If the program file is in the /e/extend/ directory, such as: /e/extend/a.php, you can use:
to import the language package 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 use:
to import the language package require '../'.LoadLang('pub/fun.php');
(3) If the program file is in the root directory, such as: /a.php, you can use:
to import the language package require ECMS_PATH.'e/data/'.LoadLang('pub/fun.php');

3. How $editor declares directory level variables:
Answer: This variable does not need to be set if you do not use functions such as printerror().
The default $editor variable is 0.
When the program file is in the /e/path/ directory, $editor does not need to be set, that is, the default is 0.
When the program file is in the /e/path/path2/ directory, $editor=1.
When the program file is in the /e/path/path2/path3/ directory, $editor=2.
When the program file is in the /e/path/path2/path3/path4/ directory, $editor=3.

4. Introduction to import files:
Import column, topic, and title classification cache files: /e/data/dbcache/class.php
Import the member group cache file: /e/data/dbcache/MemberLevel.php
Import tag function file:/e/class/t_functions.php
Import the compilation tag file: /e/class/functions.php

5. Recommended variable filtering
(1). Numeric variables can be processed with (int) or intval function, example:
$page=(int)$_GET['page'];
or
$page=intval($_GET['page']);
(2) Numeric variables with decimal points can be processed with the (float) or floatval function, example:
$money=(float)$money;
or
$money=floatval($money);
(3), character type processing:
Without spaces or other special symbols, use
RepPostVar() function filter

With spaces or other special symbols use:
RepPostVar2() function filter

Usage for writing to the database:
RepPostStr() function filter


Hot AI Tools
Undress AI Tool
Undress AI Tool

Undress images for free

AI Clothes Remover
AI Clothes Remover

Online AI tool for removing clothes from photos.

Undresser.AI Undress
Undresser.AI Undress

AI-powered app for creating realistic nude photos

ArtGPT
ArtGPT

AI image generator for creative art from text prompts.

Stock Market GPT
Stock Market GPT

AI powered investment research for smarter decisions

Popular tool
Notepad++7.3.1
Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version
SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1
Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6
Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version
SublimeText3 Mac version

God-level code editing software (SublimeText3)