⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 temp.inc.php

📁 asp新闻网站源码
💻 PHP
字号:
<?php 

/////////复制模版

function CpTemp($FromPath,$ToPath){

	global $strTempNe;

	//ChkLic("../license.php");
	
	if(file_exists($FromPath)){
		$handle=opendir($FromPath);
		while ($ifile = readdir($handle)){
			$nowfile=$FromPath."/".$ifile;
			$tofile=$ToPath."/".$ifile;

    		if($ifile!="." && $ifile!=".."){
    			if(!is_dir($nowfile)){
					copy($nowfile,$tofile);
					chmod($tofile,0666);
				}else{
					if(!file_exists($tofile)){
					   mkdir($tofile,0777);
					}
					
					CpTemp($nowfile,$tofile);
			
				}
    		
    	
    		}
      		
     	}
      	closedir($handle); 

	}else{

		err($strTempNe,"","");

	}
		
}


function TempSave(){

	global $customer;

	$tempid=$_REQUEST["tempid"];

	$temparr  = array (
		'softname'  => MEDIPRO_SOFTNAME,
		'type'  => MEDIPRO_TYPE,
		'tempid'  => $tempid
	);

	$arr=$customer -> call ("MPCheck", $temparr);

	if($arr["ifexist"]=="yes"){
		
		$func=$arr["dofunc"];
		$func($arr["tempname"],$arr["savepath"]);
	}
}


function unPackTemp($tempname,$savepath){



}

function UploadTemp($jpg,$jpg_type,$fname,$jpg_size,$path){

	global $strDownNotice9,$strDownNotice11,$strDownNotice12; 

	if ($jpg_size == 0) {

		err($strDownNotice9,"","");

	}
	if (substr($fname,-4)==".php" || substr($fname,-4)==".exe") {
			err($strDownNotice11,"","");
	}
	
	
	$hzarr=explode(".",$fname);
	$num=sizeof($hzarr)-1;
	$UploadImage[2]=$hzarr[$num];
		
 
		
		$file_path = $path."/".$fname;
		$UploadImage[3] = $path."/".$fname;
		
		copy ($jpg,$file_path);
		chmod ($file_path,0666);
		

		$UploadImage[0]=0;
		$UploadImage[1]=0;

		return $UploadImage;

}


?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -