📄 submit.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "fck/upfunction.php" );
echo "\r\n<html>\r\n<head>\r\n<title>今日日志</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$fckeditor1 = deal_with_upinsertpic( $fckeditor1 );
$connection = openconnection( );
if ( $DIA_DATE == "" )
{
$DIA_DATE = date( "Y-m-d", time( ) );
}
$query = "insert into DIARY(USER_ID,DIA_DATE,DIA_TYPE,CONTENT) values ('{$LOGIN_USER_ID}','{$DIA_DATE}','{$DIA_TYPE}','{$fckeditor1}')";
exequery( $connection, $query );
$TABLE_ID = mysql_insert_id( );
$TABLE_NAME = "diary";
$i = 0;
for ( ; $i < count( $afpatth ); ++$i )
{
writetodatabase( $TABLE_ID, $TABLE_NAME, $LOGIN_USER_ID, $afpatth[$i], $type[$i], $oldfn[$i], $size[$i] );
}
header( "location: ../" );
echo "\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -