1 Star 0 Fork 18

dreamfly.chen/ RTMP视频预约录制管理系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.php 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
深蓝 提交于 2021-11-05 21:43 . 视频预约与录制管理系统 2.0
<?php
if(!file_exists("data/common.inc.php"))
{
header("Location:install/index.php");
exit();
}
require_once ("include/common.php");
//前置跳转start
$cs=$_SERVER["REQUEST_URI"];
if($GLOBALS['cfg_mskin']==3 AND $GLOBALS['isMobile']==1){header("location:$cfg_mhost");}
if($GLOBALS['cfg_mskin']==4 AND $GLOBALS['isMobile']==1){header("location:$cfg_mhost");}
//前置跳转end
require_once sea_INC."/main.class.php";
echoIndex();
function echoIndex()
{
global $cfg_iscache,$t1;
$cacheName="parsed_index".$GLOBALS['cfg_mskin'].$GLOBALS['isMobile'];
$templatePath="/templets/".$GLOBALS['cfg_df_style']."/".$GLOBALS['cfg_df_html']."/index.html";
if($GLOBALS['cfg_mskin']!=0 AND $GLOBALS['cfg_mskin']!=3 AND $GLOBALS['cfg_mskin']!=4 AND $GLOBALS['isMobile']==1)
{$templatePath="/templets/".$GLOBALS['cfg_df_mstyle']."/".$GLOBALS['cfg_df_html']."/index.html";}
if($cfg_iscache){
if(chkFileCache($cacheName)){
$indexStr = getFileCache($cacheName);
}else{
$indexStr = parseIndexPart($templatePath);
setFileCache($cacheName,$indexStr);
}
}else{
$indexStr = parseIndexPart($templatePath);
}
$indexStr=str_replace("{seacms:member}",front_member(),$indexStr);
echo str_replace("{seacms:runinfo}",getRunTime($t1),$indexStr) ;
}
function parseIndexPart($templatePath)
{
global $mainClassObj;
$content=loadFile(sea_ROOT.$templatePath);
$content=$mainClassObj->parseTopAndFoot($content);
$content=replaceCurrentTypeId($content,-444);
$content=$mainClassObj->parseSelf($content);
$content=$mainClassObj->parseHistory($content);
$content=$mainClassObj->parseGlobal($content);
$content=$mainClassObj->parseAreaList($content);
$content=$mainClassObj->parseNewsAreaList($content);
$content=$mainClassObj->parseMenuList($content,"",$currentTypeId);
$content=$mainClassObj->parseVideoList($content,$currentTypeId,'','');
$content=$mainClassObj->parseNewsList($content,$currentTypeId,'','');
$content=$mainClassObj->parseTopicList($content);
$content=$mainClassObj->parseLinkList($content);
$content=$mainClassObj->parseIf($content);
return $content;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/dreamflychen/rtmp_vod.git
git@gitee.com:dreamflychen/rtmp_vod.git
dreamflychen
rtmp_vod
RTMP视频预约录制管理系统
master

搜索帮助