📄 album_top.php
字号:
<?php
require_once( "inc/global.inc" );
require_once( "inc/EverDatabase.inc" );
require_once( "inc/common.inc" );
require_once( "inc/utility.php" );
com_sesnstart( );
include_once( "inc/amcy_top.inc" );
$step = isset( $_REQUEST['step'] ) ? ereg( "^1|2\$", $_REQUEST['step'] ) ? $_REQUEST['step'] : 1 : 1;
$term = true;
$error = array( );
$error['title'] = "错误";
$error['code'] = "error";
while ( $term )
{
if ( !isset( $nd ) || !is_object( $nd ) )
{
$nd = "";
if ( !dml_opendb( $nd, $GLOBALEX['nd'], $GLOBALEX['db'] ) )
{
$term = false;
$error['msg'] = "数据库连接失败,请与技术支持联系(Email:".$GLOBALEX['nd']['email'].")。";
break;
}
}
if ( !( $step == 1 ) )
{
break;
}
$parr = array( );
$parr['user_id'] = $_SESSION['LOGIN_USER_ID'];
$result = array( );
if ( !( $result = dml_getalbumtag( $nd, $nodata, &$error, $parr ) ) && $nodata === true )
{
$term = false;
break;
}
if ( $_REQUEST['type'] == 2 )
{
$sharealbumclass = "albumtab2";
$allalbumclass = "albumtab1";
}
else if ( $_REQUEST['type'] == 3 )
{
$allalbumclass = "albumtab2";
$sharealbumclass = "albumtab1";
}
else
{
$allalbumclass = "albumtab1";
$sharealbumclass = "albumtab1";
break;
}
}
if ( isset( $nd ) && is_object( $nd ) )
{
@com_closedb( $nd, $term, $GLOBALEX['db'] );
}
$fa = array( );
while ( !$term && !( $step == 1 ) )
{
$fa['fh'] = "tpl/general/album/amcy_top_1.html";
include( $fa['fh'] );
break;
}
if ( !$term )
{
$fa['fh_error'] = "tpl/error.html";
include( $fa['fh_error'] );
}
echo "\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -