解密php文件
发布网友
发布时间:2022-05-11 11:44
我来回答
共2个回答
热心网友
时间:2022-04-20 09:03
解密之后如下:
<?php
include_once( "IAC.CIACLoginSession.class" );
include_once( "UIC.CUICConfig.class" );
include_once( "PDC.CPSession.class" );
include_once( "PDC.CMember.class" );
include_once( "PDC.CMemberLogin.class" );
include_once( "PDC.CSysConfig.class" );
include_once( "PDC.CWebSiteContent.class" );
include_once( "LOG.CAuditLog.class" );
include_once( "LOG.CBaseLog.class" );
include_once( "PUC.Functions.inc" );
if ( defined( "__license_type" ) && constant( "__license_type" ) != "33VP" )
{
echo "Invalid license type!";
exit( );
}
define( "CST_PUC_IDENT", "Member" );
$pSysLog = new cbaselog( );
$pSysLog->openfacility( "DMC" );
$pSysLog->openfacility( "PDC" );
$pSysLog->openfacility( "UIC" );
$pSysLog->openfacility( "RPC" );
$pSysLog->openfacility( CST_PUC_IDENT );
$pSysConfig = new csysconfig( );
$aSysConfig = $pSysConfig->load( );
if ( isset( $aSysConfig['log_level'] ) )
{
$pSysLog->nLogLevel = intval( $GLOBALS['aSysConfig']['log_level'] );
}
if ( isset( $aSysConfig['dmc_log_level'] ) )
{
$pSysLog->openfacility( "DMC", $GLOBALS['aSysConfig']['dmc_log_level'] );
}
if ( isset( $aSysConfig['pdc_log_level'] ) )
{
$pSysLog->openfacility( "PDC", $GLOBALS['aSysConfig']['pdc_log_level'] );
}
if ( isset( $aSysConfig['uic_log_level'] ) )
{
$pSysLog->openfacility( "UIC", $GLOBALS['aSysConfig']['uic_log_level'] );
}
if ( isset( $aSysConfig['rpc_log_level'] ) )
{
$pSysLog->openfacility( "RPC", $GLOBALS['aSysConfig']['rpc_log_level'] );
}
if ( isset( $aSysConfig[CST_PUC_IDENT."_log_level"] ) )
{
$pSysLog->openfacility( CST_PUC_IDENT, $GLOBALS['aSysConfig'][CST_PUC_IDENT."_log_level"] );
}
$pAuditLog = new cauditlog( );
$pCUICConfig = new cuicconfig( );
$strCommonMessagePath = $pCUICConfig->getmessagefilepath( "Common" );
include_once( $strCommonMessagePath );
$strFrontendMessagePath = $pCUICConfig->getmessagefilepath( CST_PUC_IDENT );
include_once( $strFrontendMessagePath );
$pWebSiteContent = new cwebsitecontent( );
$aWebSiteContent = $pWebSiteContent->load( );
$bLogined = false;
$nLoginID = 0;
$strLoginSessionKey = fn_getcookie( IAC_LOGINSESSION_COOKIE_NAME );
$bNoCookie = false;
if ( !$strLoginSessionKey && isset( $HTTP_GET_VARS[IAC_LOGINSESSION_COOKIE_NAME] ) )
{
$strLoginSessionKey = $HTTP_GET_VARS[IAC_LOGINSESSION_COOKIE_NAME];
$bNoCookie = true;
}
if ( !$strLoginSessionKey && isset( $HTTP_POST_VARS[IAC_LOGINSESSION_COOKIE_NAME] ) )
{
$strLoginSessionKey = $HTTP_POST_VARS[IAC_LOGINSESSION_COOKIE_NAME];
$bNoCookie = true;
}
if ( $strLoginSessionKey != NULL )
{
$pLoginSession = new cloginsession( );
if ( time( ) % 5 == 0 )
{
$pLoginSession->maintenance( );
}
if ( ( $nResult = $pLoginSession->checksession( $strLoginSessionKey, $HTTP_SERVER_VARS['REMOTE_ADDR'], $nLoginID ) ) == 0 )
{
$bLogined = true;
$pMemberLogin = new cmemberlogin( );
$aMemberLogin = $pMemberLogin->getbyid( $nLoginID );
$strLoginName = $aMemberLogin['login'];
$nMemberID = $aMemberLogin['organization_id'];
if ( !is_array( $aMember ) || sizeof( $aMember ) == 0 )
{
$pMember = new cmember( );
$aMember = $pMember->getbyid( $nMemberID );
$nLevelID = $aMember['level_id'];
}
if ( isset( $logout ) && 0 < strlen( trim( $logout ) ) )
{
$pLoginSession->endsession( $strLoginSessionKey, $nLoginID );
setcookie( IAC_LOGINSESSION_COOKIE_NAME );
setcookie( IAC_LOGINSESSION_COOKIE_NAME, "", time( ) - 3600 );
if ( isset( $goto_page ) && 0 < strlen( trim( $goto_page ) ) )
{
fn_doredirect( $goto_page );
}
else
{
fn_doredirect( "index.php" );
}
}
if ( $bNoCookie )
{
setcookie( IAC_LOGINSESSION_COOKIE_NAME );
setcookie( IAC_LOGINSESSION_COOKIE_NAME, "", time( ) - 3600 );
setcookie( IAC_LOGINSESSION_COOKIE_NAME, $strLoginSessionKey );
}
}
else
{
$pSysLog->log_info( CST_PUC_IDENT, "login session({$strLoginSessionKey}) check failed: {$nResult}" );
setcookie( IAC_LOGINSESSION_COOKIE_NAME );
setcookie( IAC_LOGINSESSION_COOKIE_NAME, "", time( ) - 3600 );
fn_doredirect( "login.php?goto_page=".urlencode( $PHP_SELF ) );
}
}
else
{
fn_doredirect( "login.php?goto_page=".urlencode( $PHP_SELF ) );
}
if ( is_array( $aMember ) && 0 < sizeof( $aMember ) )
{
if ( $aMember['member_type'] == 1 )
{
$strVisitorName = $aMember['contactname'];
}
else
{
$strVisitorName = $aMember['name'];
}
$strVisitorName .= ", ";
}
include_once( "PUC.Mole.Config.inc" );
$strFrontendMessagePath = $pCUICConfig->getmessagefilepath( "PUCMole" );
include_once( $strFrontendMessagePath );
if ( is_dir( PUC_MODULE_CONFIG_RELATIVE_PATH ) )
{
$__pMoleConfigDir = dir( PUC_MODULE_CONFIG_RELATIVE_PATH );
while ( ( $__strEntry = $__pMoleConfigDir->read( ) ) !== false )
{
if ( ereg( "^Mole\\.([a-zA-Z0-9]+)\\.Config\\.inc\$", $__strEntry, $__regs ) )
{
$__strMoleIdentifier = $__regs[1];
include_once( PUC_MODULE_CONFIG_DIR_NAME."/".$__strEntry );
if ( !is_null( $__strMoleIdentifier ) )
{
$strFrontendMessagePath = $pCUICConfig->getmessagefilepath( $__strMoleIdentifier );
if ( @file_exists( $strFrontendMessagePath ) )
{
include_once( $strFrontendMessagePath );
}
}
}
}
}
$aInterfaceConfig = $aCSTPUCInterfaces[CST_PUC_IDENT];
if ( !isset( $mole ) )
{
$mole = trim( $_REQUEST['mole'] );
}
if ( in_array( $mole, array_keys( $aCSTPUCMoles[CST_PUC_IDENT] ) ) )
{
$aMoleConfig = $aCSTPUCMoles[CST_PUC_IDENT][$mole];
}
else
{
$aMoleName = array_keys( $aCSTPUCMoles[CST_PUC_IDENT] );
$mole = $aMoleName[0];
$aMoleConfig = $aCSTPUCMoles[CST_PUC_IDENT][$mole];
}
$aMyENV = array(
"strPSessionKey" => $strPSessionKey,
"aPSession" => $aPSession,
"bLogined" => $bLogined,
"strLoginSessionKey" => $strLoginSessionKey,
"nLoginID" => $nLoginID,
"strLoginName" => $strLoginName,
"nMemberID" => $nMemberID,
"nLevelID" => $nLevelID,
"aMember" => $aMember,
"strVisitorName" => $strVisitorName,
"nScopeID" => intval( $aMember['_login_scope_id'] ),
"nRoleID" => intval( $aMember['_login_role_id'] ),
"strWebSiteName" => $aWebSiteContent['website_cname'],
"strCurrentTheme" => $aWebSiteContent['current_theme'],
"aWebSiteContent" => $aWebSiteContent,
"mole" => $mole
);
if ( $aMoleConfig[2] == 1 )
{
include( $aMoleConfig[0] );
exit( );
}
$strPageTitle = $aPUCMoleDisplayMap[CST_PUC_IDENT][$mole];
$strLocation = "> ".$strPageTitle;
if ( strlen( $aMoleConfig[1] ) )
{
$strLocation = sprintf( "> <a href=\"%s?mole=%s\">%s</a>", $aInterfaceConfig[1], $aMoleConfig[1], $aPUCMoleDisplayMap[CST_PUC_IDENT][$aMoleConfig[1]] ).$strLocation;
}
$strMole = $aMoleConfig[0];
switch ( $mole )
{
case "myemail" :
$strService = "Emailbox";
}
?>
热心网友
时间:2022-04-20 10:21
黑刀4