当前位置:网站首页>Dream weaving prompt information prompt box beautification
Dream weaving prompt information prompt box beautification
2022-08-02 20:02:00 【website building shadow】

The tutorial is as follows
Open /include/common.func.php and find about line 278
function ShowMsg({Intermediate code omitted...}Change the entire function to
function ShowMsg($msg, $gourl, $onlymsg=0, $limittime=0){if(empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..';$htmlhead = "\r\n\r\nInformation \r\n\r\n\r\n\r\n";$htmlhead .= " \r\n\r\n".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."\r\n\r\n\r\n \r\n
\r\n\r\n";$litime = ($limittime==0 ? 1000 : $limittime);$func = '';if($gourl=='-1'){if($limittime==0) $litime = 5000;$gourl = "javascript:history.go(-1);";}if($gourl=='' || $onlymsg==1){$msg = "";}else{//When the URL is: close::objname, close the id=objname element of the parent frameif(preg_match('/close::/',$gourl)){$tgobj = trim(preg_replace('/close::/', '', $gourl));$gourl = 'javascript:;';$func .= "window.parent.document.getElementById('{$tgobj}').style.display='none';\r\n";}$func .= " var pgo=0;function JumpUrl(){if(pgo==0){ location='$gourl'; pgo=1; }}\r\n";$rmsg = $func;$rmsg .= "document.write(\"\");\r\n;";$rmsg .= "document.write(\"";$rmsg .= "Information
\");\r\n";$rmsg .= "document.write(\"\");\r\n";$rmsg .= "document.write(\"".str_replace("\"",""",$msg)."\");\r\n";$rmsg .= "document.write(\"";if($onlymsg==0){if( $gourl != 'javascript:;' && $gourl != ''){$rmsg .= "Click to jump";$rmsg .= "
\");\r\n";$rmsg .= "setTimeout('JumpUrl()',$litime);";}else{$rmsg .= "
\");\r\n";}}else{$rmsg .= "
Note: If you have changed this function, remember to make a backup copy of yours and try again!
边栏推荐
猜你喜欢
随机推荐
一些与开发者体验有关的话题
Navicat for mysql cracked versions installed
[C Language Brush Questions] Three Questions for Getting Started with Pointers | String Length, String Copy, Two Number Swap
MySQL常见面试题汇总(建议收藏!!!)
Security First: Tools You Need to Know to Implement DevSecOps Best Practices
新特性解读 | MySQL 8.0 GIPK 不可见主键
用函数递归的方法解决汉诺塔问题
The days of patching are more difficult than the days of writing code
mysql四种隔离级别
golang源码分析(7):chan
究极异常处理逻辑——多层次异常的处理顺序
IReport常见问题及处理方法
解决多版本jar包冲突问题
搭建属于自己的知识库(Wikijs)
npm install 编译时报“Cannot read properties of null (reading ‘pickAlgorithm‘)“
executeScript异步执行的时候没有返回值的原因
docker安装Oracle之后常用的一些命令
golang刷leetcode动态规划(8)盈利计划
【无标题】
文件上传很难搞?10分钟带你学会阿里云OSS对象存储








