Hongmu Notes
Empire cms high-efficiency random call tag PHP code

Empire cms high-efficiency random call tag PHP code Program Notes Empire cms

High-efficiency random selection: <?php $num=$empire->num("select tagid from {$dbtbpre}enewstags"); $randnum=100; $randids=''; $randdh=''; for($i=1;$i&lt;=$randnum; $i++)"...
👁 379
Caching, pseudo-static

Caching, pseudo-static Summary of pitfalls

location ~ \.(gif|jpg|png|htm|html|css|flv|ico|swf)$ { expires 30d; }
👁 155
Imperial CMS 7.5 function decryption field processing function

Imperial CMS 7.5 function decryption field processing function Program Notes Empire cms

Preface: When adding or modifying fields, you can configure the "Backend Addition Information Processing Function," "Backend Modification Information Processing Function," "Frontend Addition Information Processing Function," or "Frontend Modification Information Processing Function." These allow you to specify separate functions for processing field content; this approach is commonly used for models that have special requirements regarding the storage format of field content. Today, we will briefly explain how to create these processing functions. Basic setup steps: 1. Write the processing function; 2. Import the function...
👁 364
Introduction to common functions of Imperial CMS

Introduction to common functions of Imperial CMS Program Notes Empire cms

I. `esub()` Field Extraction Function Syntax: `esub(string, number of characters to extract, suffix)`. Note: The suffix specifies the content appended after the extracted characters; this parameter can be omitted. Example: `<?=esub('12345678', 6)?>` returns: `123456`; `<=?=esub('12345678', 6, '…')?>` returns: `12...`
👁 254
Determine whether a certain field exists on the empire content page

Determine whether a certain field exists on the empire content page Program Notes Empire cms

$navinfor['befrom'] – simply use an if statement to check it; replace 'befrom' with your own field.
👁 151
The php code of Liang Shang, the secondary column of the empire cms

The php code of Liang Shang, the secondary column of the empire cms Program Notes Empire cms

For any unclear sections, please refer to this article: https://www.4s5.cn/archives/52.html&lt;?php if($class_r[$GLOBALS[navclassid]][bclassid]==0){$classid=$GLOBALS['navclassid'];}else{$cl...
👁 298
Empire CMS list template using php

Empire CMS list template using php Program Notes Empire cms

1. Check the box labeled "Use Program Code"; 2. Assign "list.var" to the variable $listtemp $keyboard = $r['keyboard']; $keyboard_arr = explode(&quot;,&quot;,$keyboard); $keyboard_str = ''; for($i=0;$i...
👁 173
Empire list page calls column alias

Empire list page calls column alias Program Notes Empire cms

&lt;title&gt;&lt;?php $cr=$empire-&gt;fetch1(&quot;select bname from phome_enewsclass where classid='&quot;.$GLOBALS[navclassid].&quot;' limit 1&quot;…
👁 204
Empire cms calls the specified column according to the parameters in the extended variable

Empire cms calls the specified column according to the parameters in the extended variable Program Notes Empire cms

EmpireCMS retrieves a specified category based on the parameters in the extended variables [e:loop={&quot;select sonclass, classid, classname, classimg from `[!db.pre!]enewsclass` where classid in($public_r[add_home_class...
👁 209
Implementation of two kinds of file downloads in php

Implementation of two kinds of file downloads in php Language Notes PHP

1. Directly add a file link 🔒 Hidden content: Viewable after logging in <button> <a href= "http://localhost/down.zip" > Download File </button> 2. Pass parameters to search for and redirect to a download link: Passing parameters: <button> <a href...>
👁 136
1 305 306 307 308 309 315

🔥 Popular articles

Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3750
Imperial cms imitation website tutorial corresponding notes

Imperial cms imitation website tutorial corresponding notes Program Notes Empire cms

Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq1810216796 QQ exchange group: 9589723231 Imperial cms website installation. Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq: 1810216796 qq exchange group: 958972323 Build an imperial program. If you have a server and have built an imperial website on the server, then...
👁 3413
Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014

Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014 Practical Collection empire template

This set of templates has a complete member center on mobile and PC. The member center template is also very good! By the way, there are also corresponding locomotive collection rules! Regarding installation, upload the direct installation version, install it directly, and then restore the data in the background. There is a view more on the mobile phone. If there is a problem, you can copy the view more code in index.js on the PC. If it has not taken effect yet, please check whether the js file renderings are referenced...
👁 2695