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

📄 tran.php

📁 相关软件: ·帝国网站管理系统(Ecms) v3.5 繁体版 ·搜索更多与"帝国网站管理系统(Ecms) "相关的软件 注意事项: ·注意:本站软件一律只用鼠标左键打开
💻 PHP
字号:
<?
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/functions.php");
include("../../class/config.php");
include("../../data/language/message.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=$_GET['userid'];
$loginin=$_GET['username'];
$loginrnd=$_GET['rnd'];
$classid=$_GET['classid'];
$type=$_GET['type'];
$doing=$_GET['doing'];
$editor=1;
is_login($logininid,$loginin,$loginrnd);
db_close();
$empire=null;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>上传</title>
<link href="../../data/images/css.css" rel="stylesheet" type="text/css">
<script>
function DoInsertUrl(str)
{
	if(str=="http://")
	{
		alert('请输入要插入的连接');
	    return false;
	}
pos=str.lastIndexOf(".")+1;
len=str.length;
ext=str.substring(pos,len);
if((ext == "gif")||(ext == "jpg")||(ext == "jepg")||(ext == "png")||(ext == "bmp"))
	{
	parent.InsertFile("<img src='"+str+"' border=0>");
	}
else if(ext=="swf")
	{
		parent.InsertFile("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" name=\"movie\" width=\"400\" height=\"350\" id=\"movie\"><param name=\"movie\" value=\""+str+"\"><param name=\"quality\" value=\"high\"><param name=\"menu\" value=\"false\"><embed src=\""+str+"\" width=\"400\" height=\"350\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" id=\"movie\" name=\"movie\" menu=\"false\"></embed></object>");
     }
else
	{
	parent.InsertFile("<a href='"+str+"'>"+str+"</a>");
	}
}
</script>
</head>

<body>
<form action="<? echo"../enews.php?userid=$logininid&username=$loginin&rnd=$loginrnd";?>" method="post" enctype="multipart/form-data" name="form1">
        
  <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#698CC3">
    <input type=hidden name=classid value="<?=$classid?>">
    <input type=hidden name=enews value="TranFile">
    <input type=hidden name=type value="<?=$type?>">
    <input type=hidden name=doing value="<?=$doing?>">
    <tr> 
      <td colspan="2"><strong><font color="#FFFFFF">上传</font></strong></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td>直接链接地址<br>
        (图片/链接):</td>
      <td><input name="inserturl" type="text" id="inserturl" value="http://" size="32"> 
        <input type="button" name="Submit2" value="插入" onclick="DoInsertUrl(document.form1.inserturl.value);"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="22%">远程保存:</td>
      <td width="78%"><input name="tranurl" type="text" id="tranurl" value="http://" size="32"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td>本地上传:</td>
      <td><input type="file" name="file"> </td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>&nbsp;</td>
      <td><input name="getsmall" type="checkbox" id="getsmall" value="1">
        同时生成缩略图. 缩图宽度: 
        <input name="width" type="text" id="width" value="105" size="6">
        * 高度: 
        <input name="height" type="text" id="height" value="118" size="6"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td>文件编号:</td>
      <td><input name="no" type="text" id="no"> <input type="submit" name="Submit" value="上传"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="2">说明:可上传的文件: 
        <?=$public_r[filetype]?>
        ,最大容量: 
        <?=$public_r[filesize]?>
        KB(本地比远程忧先)</td>
    </tr>
  </table>
      </form>
</body>
</html>

⌨️ 快捷键说明

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