source/index/index.ctrl.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
class indexControl extends skymvc
{
	function __construct()
	{
		parent::__construct();
	}
	
	public function onTest(){
		echo M("user_invitecode")->getCode(1);
		 
	} 

	public function onDefault()
	{
		if(defined("RURL301") && RURL301!="" && !get("ajax")){
			$arr=parse_url(RURL301);
			parse_str($arr["query"],$get);
			 
			if($arr["path"]=="/module.php" && isset($get["m"])){
				$m=preg_replace("/\W/iUs","",$get["m"]);
				
				CC($m,$m)->smarty->assign("skins","module/".$m."/themes/index/");
				CC($m,$m)->smarty->template_dir="module/".$m."/themes/index/";
				require_once(ROOT_PATH."module/".$m."/module.php");
				if(function_exists("moduleInit")){
					moduleInit();
				}
				CC($m,$m)->onDefault();
				exit;
			}
			
			header("HTTP/1.1 301 Moved Permanently");			
			header("Location: ".RURL301);			
			exit();
		}
		$fromapp=get("fromapp");
		switch($fromapp){
			case "uniapp":
				$flashList=M("ad")->listByNo("uniapp-index");
				$navList=M("navbar")->navlist(14);
				break;
			default:
				$flashList=M("ad")->listByNo("wap-index");
				$navList=M("navbar")->navlist(4);
				break;
		}
		
		$articleList=M("article")->Dselect(array(
			"where"=>" is_recommend=1 AND status=1 ",
			"limit"=>6,
			"order"=>" id DESC"
		));
		$this->smarty->goAssign(array(
			"flashList"=>$flashList,
			"articleList"=>$articleList,
			"navList"=>$navList
		));
		$tpl=M("pagetpl")->get("index","index","index.html");
		$this->smarty->display($tpl);
后面还有 4 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。