📄 upload.php
字号:
<?php/*Copyright Intermesh 2003Author: Merijn Schering <mschering@intermesh.nl>Version: 1.0 Release date: 08 July 2003This program is free software; you can redistribute it and/or modify itunder the terms of the GNU General Public License as published by theFree Software Foundation; either version 2 of the License, or (at youroption) any later version.*/$return_to = isset($_REQUEST['return_to']) ? $_REQUEST['return_to'] : $_SERVER['PHP_SELF']."?path=".$urlencoded_path;?><input type="hidden" name="task" value="upload" /><input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $GO_CONFIG->max_file_size; ?>" /><?php$tabtable = new tabtable('upload_tab', $fbUpload, '100%','');$tabtable->print_head($return_to);?><table border="0" cellpadding="4" cellspacing="0"><?php if(isset($feedback)) echo '<tr><td>'.$feedback.'</td></tr>';?><tr> <td> <?php echo '<h3>'.$fbPath.': '.$page_title.'</h3>'.$fbSelect; ?> :<br /> <input type="file" name="file[]" maxlength="100" class="textbox" size="50" /> <?php $button = new button($fbMultipleFiles, 'javascript:openPopup(\'upload\',\''. $GO_CONFIG->control_url.'JUpload/jupload.php?post_url='. urlencode($GO_MODULES->full_url.'jupload.php?sid='.session_id()).'\',\'640\',\'400\');', '120'); ?><br /> <input type="file" name="file[]" class="textbox" size="50" /><br /> <input type="file" name="file[]" class="textbox" size="50" /><br /> <input type="file" name="file[]" class="textbox" size="50" /><br /> <input type="file" name="file[]" class="textbox" size="50" /> </td></tr><tr> <td> <?php echo $fbMaxUploadSize.": ".format_size($GO_CONFIG->max_file_size)." (".number_format($GO_CONFIG->max_file_size, 0, $_SESSION['GO_SESSION']['decimal_seperator'], $_SESSION['GO_SESSION']['thousands_seperator'])." bytes)"; if ( $GO_CONFIG->user_quota != 0 ) { $absolute_path = split( "/", $page_title );// echo $fbUserQuotaFree.": ".$absolute_path; exec( "du ".$GO_CONFIG->file_storage_path.$absolute_path[1]." -s", $retval ); sscanf( $retval[0], "%d", $usedspace ); echo "<br>$fbFreeQuotaSpace: ".format_size( ($GO_CONFIG->user_quota - $usedspace)*1024 ); } ?> </td></tr><tr> <td id="status" class="Success"> </td></tr><tr> <td> <br /> <?php $button = new button($cmdOk, "javascript:upload()"); echo $button->get_html(); $button = new button($cmdCancel, "javascript:document.location='".$return_to."';"); echo $button->get_html(); ?> </td></tr></table><?php$tabtable->print_foot();?><script type="text/javascript"><!--function upload(){ var status = null; if (status = get_object("status")) { status.innerHTML = "<?php echo $fbPleaseWait; ?>"; } document.forms[0].submit();}--></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -