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

📄 temp.inc.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


function cptemp( $FromPath, $ToPath )
{
	global $strTempNe;
	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, 438 );
				}
				else
				{
					if ( !file_exists( $tofile ) )
					{
						mkdir( $tofile, 511 );
					}
					cptemp( $nowfile, $tofile );
				}
			}
		}
		closedir( $handle );
	}
	else
	{
		err( $strTempNe, "", "" );
		exit( );
	}
}

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;
	global $strDownNotice11;
	global $strDownNotice12;
	if ( $jpg_size == 0 )
	{
		err( $strDownNotice9, "", "" );
	}
	if ( substr( $fname, 0 - 4 ) == ".php" || substr( $fname, 0 - 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, 438 );
	$UploadImage[0] = 0;
	$UploadImage[1] = 0;
	return $UploadImage;
}

?>

⌨️ 快捷键说明

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