/* Decoded by unphp.net */
?>b'okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `id` FROM `profiles` WHERE `master_server_id` = \'%d\' AND `profile_name` = \'%s\'", $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc, $GrjlOHSQNQdEoAovnFiOBKXWOJIewMlZigQE );
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
return true;
}
return false;
}
function gRScCBBLbGqXtTeKDMrdavEiRpzrjY ( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc, $DhgeTYztpZKYLMRRlOkmQbtyEwRLDkOPGBLGw )
{
global $mcDB;
$nqAKFozIcCWReIAlUiuMyHpiZenOuJtoFzGdlxs = rgJYriKrXFPMkjrcdXPmGtITBbIEDMNUQI( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `id` FROM `lines` WHERE `server_id` IN(" . implode( ",", $nqAKFozIcCWReIAlUiuMyHpiZenOuJtoFzGdlxs ) . ") AND `username` = \'%s\'", $DhgeTYztpZKYLMRRlOkmQbtyEwRLDkOPGBLGw );
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
return true;
}
return false;
}
function lBAqjuBlRrgFmVYaaHYfvnAwcpTysqqFojTz ( $kVyMLbovQRfhPTQpLnuEzkKIRtrcvySIggA )
{
$izNuffqEcAckPEVDqCgVYPylLYdoroWXQM = intval( trim( shell_exec( "ps ax | pgrep -f \'" . MULTICS_ROOT_PATH . "$kVyMLbovQRfhPTQpLnuEzkKIRtrcvySIggA\' | wc -l" ) ) );
return ($izNuffqEcAckPEVDqCgVYPylLYdoroWXQM > 0) ? true : false;
}
function wppJTGiTJPBxLibkeVQfVIRupepsqtgkAk ( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc, $ALbZOIxHWtMBgpFpzoCUmvQJUoBUEWmLswrE = null, $RqyBBjafAEbIRYcFtXdChWLXacwHEVIKSZycOE = null )
{
global $mcDB;
$nqAKFozIcCWReIAlUiuMyHpiZenOuJtoFzGdlxs = rgJYriKrXFPMkjrcdXPmGtITBbIEDMNUQI( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
if ( ! is_null( $RqyBBjafAEbIRYcFtXdChWLXacwHEVIKSZycOE ) )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `package_id` FROM `group_packages` WHERE `group_id` = \'%d\'", $RqyBBjafAEbIRYcFtXdChWLXacwHEVIKSZycOE );
}
else
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT * FROM `lines_options` WHERE `server_id` IN(" . implode( ",", $nqAKFozIcCWReIAlUiuMyHpiZenOuJtoFzGdlxs ) . ")" );
return $mcDB->uRkfhIjOyHziEyCiTLMEUfuMfkXqDIgnaoo( );
}
$DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl = array();
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
$hdAWGJiYhdWJcKfPoxjjtaRpbRoSBuHelhCC = mcLib::sLYQRInHqFhKEHlZrlkIQnxTDtZrYVNtKK( $mcDB->uRkfhIjOyHziEyCiTLMEUfuMfkXqDIgnaoo( ) );
if ( is_null( $ALbZOIxHWtMBgpFpzoCUmvQJUoBUEWmLswrE ) )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT * FROM `lines_options` WHERE id IN (" . implode( ",", $hdAWGJiYhdWJcKfPoxjjtaRpbRoSBuHelhCC ) . ") AND `server_id` IN(" . implode( ",", $nqAKFozIcCWReIAlUiuMyHpiZenOuJtoFzGdlxs ) . ")" );
}
else
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT * FROM `lines_options` WHERE id IN (" . implode( ",", $hdAWGJiYhdWJcKfPoxjjtaRpbRoSBuHelhCC ) . ") AND `server_id` IN(" . implode( ",", $nqAKFozIcCWReIAlUiuMyHpiZenOuJtoFzGdlxs ) . ") AND `option_type` = \'%d\'", $ALbZOIxHWtMBgpFpzoCUmvQJUoBUEWmLswrE );
}
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
$qokgghIvvtdFTbcmRNpVfJyQvgMHvYjzI = $mcDB->uRkfhIjOyHziEyCiTLMEUfuMfkXqDIgnaoo( );
return $qokgghIvvtdFTbcmRNpVfJyQvgMHvYjzI;
}
}
return array();
}
function paRLWvPlZBfaODfFYycJWdneZmvlGuRClnXU ( )
{
global $mcDB;
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT t1.*,t2.`group_name`,t2.`group_color` FROM `users` t1,`member_groups` t2 WHERE t1.member_group_id = t2.id" );
$DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl = array();
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
$DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl = $mcDB->uRkfhIjOyHziEyCiTLMEUfuMfkXqDIgnaoo( );
}
return $DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl;
}
function rPTBCpcRnauDkRNPyDclFJmNhhKQKDdnFzLRA ( $dnPTGTeGDUZsSAqwTgGwVTBJvGOrWvKHTDeyU )
{
global $mcMember;
$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM = ZUrSdeXnmuZXglBYlzpmZSNdazohydQtlQ( $dnPTGTeGDUZsSAqwTgGwVTBJvGOrWvKHTDeyU );
if ( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'member_id\' ] != 0 and QfgmwmBvfYFOZAUveQPxsjeLiIZGpv( "users", "id", $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'member_id\' ] ) )
{
$TufInpZBGNPOOTyQYSTpJwrcPkpYlDxlUkhvFY = $mcMember->CMKHygROrmbNPyTkrefFrYYMJWXEZDDZZzNM( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'member_id\' ] );
$hBkeQgUgZYpYztnsCXcLbGrfTYARSfeHIqE = ($MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'blocked\' ] == 0) ? mcLib::$DCAniUabCJTZRZoqVOqPyWvFCsiwIw[ \'EMAIL_MSG_MONITOR_WARN_SUB\' ] : mcLib::$DCAniUabCJTZRZoqVOqPyWvFCsiwIw[ \'EMAIL_MSG_MONITOR_BAN_SUB\' ];
$SdtVaDUjvAdylPNMaNLUMtvzujtTIfbPfVTQ = ($MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'blocked\' ] == 0) ? mcLib::$DCAniUabCJTZRZoqVOqPyWvFCsiwIw[ \'EMAIL_MSG_MONITOR_WARN\' ] : mcLib::$DCAniUabCJTZRZoqVOqPyWvFCsiwIw[ \'EMAIL_MSG_MONITOR_BAN\' ];
$hBkeQgUgZYpYztnsCXcLbGrfTYARSfeHIqE = str_ireplace( array( "{SERVER_NAME}", "{MEMBER_NAME}", "{LINE_USERNAME}" ), array( mcLib::$DCAniUabCJTZRZoqVOqPyWvFCsiwIw[ \'SERVER_NAME\' ], $TufInpZBGNPOOTyQYSTpJwrcPkpYlDxlUkhvFY[ \'username\' ], $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'username\' ] ), $hBkeQgUgZYpYztnsCXcLbGrfTYARSfeHIqE );
$SdtVaDUjvAdylPNMaNLUMtvzujtTIfbPfVTQ = str_ireplace( array( "{SERVER_NAME}", "{MEMBER_NAME}", "{LINE_USERNAME}" ), array( mcLib::$DCAniUabCJTZRZoqVOqPyWvFCsiwIw[ \'SERVER_NAME\' ], $TufInpZBGNPOOTyQYSTpJwrcPkpYlDxlUkhvFY[ \'username\' ], $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'username\' ] ), $SdtVaDUjvAdylPNMaNLUMtvzujtTIfbPfVTQ );
ddlmVvmzVjxXGrMcBspRssPvrDVoVVEQ( $TufInpZBGNPOOTyQYSTpJwrcPkpYlDxlUkhvFY[ \'email\' ], $hBkeQgUgZYpYztnsCXcLbGrfTYARSfeHIqE, $SdtVaDUjvAdylPNMaNLUMtvzujtTIfbPfVTQ );
return true;
}
else
{
return false;
}
}
function RgTdRnnrdzSJxxBykFYWcPPilOBuvVKGYI ( $YrsTPgwSjJPsKEEoCpXhinwlNc, $oMHgEZUoRVZvnWRXGmIGrnGHnVJWLaQeQQgY, $uABhuiqYFRfuCFouuKawvoKtmYAgDzCmDBnKyKGtw, $oMQyWMTydaLunorZyNBschIyhwlaYmbffGCwW = 0 )
{
global $mcDB;
$YrsTPgwSjJPsKEEoCpXhinwlNc = mcLib::MVmafwfmjqufexpnGzEfOftlkVUTLXdJcqmVWWE( $YrsTPgwSjJPsKEEoCpXhinwlNc );
$oMHgEZUoRVZvnWRXGmIGrnGHnVJWLaQeQQgY = mcLib::MVmafwfmjqufexpnGzEfOftlkVUTLXdJcqmVWWE( $oMHgEZUoRVZvnWRXGmIGrnGHnVJWLaQeQQgY );
if ( empty( $oMHgEZUoRVZvnWRXGmIGrnGHnVJWLaQeQQgY ) )
{
return false;
}
if ( $oMQyWMTydaLunorZyNBschIyhwlaYmbffGCwW == 0 )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "INSERT INTO `tickets_topics` (`member_id`,`topic_title`,`date`,`admin_read`,`user_read`) VALUES (\'%d\',\'%s\',\'%d\',0,1)", $uABhuiqYFRfuCFouuKawvoKtmYAgDzCmDBnKyKGtw, $YrsTPgwSjJPsKEEoCpXhinwlNc, time( ) );
}
else
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "INSERT INTO `tickets_topics` (`member_id`,`topic_title`,`date`,`admin_read`,`user_read`) VALUES (\'%d\',\'%s\',\'%d\',1,0)", $uABhuiqYFRfuCFouuKawvoKtmYAgDzCmDBnKyKGtw, $YrsTPgwSjJPsKEEoCpXhinwlNc, time( ) );
}
if ( $mcDB->ULDNqqTHJzNmXeYeEHmcmoXgZdHkcfrjhQlY( ) > 0 )
{
$PGDOPflUfOQbLlmljrWUKUuSHNrYYdbBTmyY = $mcDB->lZqicXChQNuEPumhIutyOVXkAvvxQGrziptdRBQ( );
if ( $oMQyWMTydaLunorZyNBschIyhwlaYmbffGCwW == 0 )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "INSERT INTO `tickets_post` (`topic_id`,`post`,`admin_reply`,`date`) VALUES(\'%d\',\'%s\',0,\'%d\')", $PGDOPflUfOQbLlmljrWUKUuSHNrYYdbBTmyY, $oMHgEZUoRVZvnWRXGmIGrnGHnVJWLaQeQQgY, time( ) );
}
else
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "INSERT INTO `tickets_post` (`topic_id`,`post`,`admin_reply`,`date`) VALUES(\'%d\',\'%s\',1,\'%d\')", $PGDOPflUfOQbLlmljrWUKUuSHNrYYdbBTmyY, $oMHgEZUoRVZvnWRXGmIGrnGHnVJWLaQeQQgY, time( ) );
}
return true;
}
return false;
}
function LgVUamksYPgQdsdTyQUcqiXsvwzUNUyyvQPMA ( $xAUHlifzsNLBexnMwNPckbQfaYXeQtKESDPKI, $UmhsmnqYIvOczzHGEafZkToVbijUroFzQU )
{
global $mcDB;
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `settings` SET `setting_value` = \'%s\' WHERE `setting_key` = \'%s\'", $UmhsmnqYIvOczzHGEafZkToVbijUroFzQU, $xAUHlifzsNLBexnMwNPckbQfaYXeQtKESDPKI );
mcLib::$DCAniUabCJTZRZoqVOqPyWvFCsiwIw[ $xAUHlifzsNLBexnMwNPckbQfaYXeQtKESDPKI ] = $UmhsmnqYIvOczzHGEafZkToVbijUroFzQU;
if ( $mcDB->ULDNqqTHJzNmXeYeEHmcmoXgZdHkcfrjhQlY( ) > 0 )
{
return true;
}
return false;
}
function soEsBhBxvGgcbFMrvPeDREGHbYGWvQfDiHrGCS ( $HBzaPhJbeAgldftvWeOUsWoQurtVgXxugk, $oMHgEZUoRVZvnWRXGmIGrnGHnVJWLaQeQQgY, $VCcZgzrsCRWsCnDdRMBUPRgvMzjcxeLD = 1 )
{
global $mcDB;
$oMHgEZUoRVZvnWRXGmIGrnGHnVJWLaQeQQgY = mcLib::MVmafwfmjqufexpnGzEfOftlkVUTLXdJcqmVWWE( $oMHgEZUoRVZvnWRXGmIGrnGHnVJWLaQeQQgY );
if ( empty( $oMHgEZUoRVZvnWRXGmIGrnGHnVJWLaQeQQgY ) )
{
return false;
}
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "INSERT INTO `tickets_post` (`topic_id`,`post`,`admin_reply`,`date`) VALUES(\'%d\',\'%s\',\'%d\',\'%d\')", $HBzaPhJbeAgldftvWeOUsWoQurtVgXxugk, $oMHgEZUoRVZvnWRXGmIGrnGHnVJWLaQeQQgY, $VCcZgzrsCRWsCnDdRMBUPRgvMzjcxeLD, time( ) );
if ( $VCcZgzrsCRWsCnDdRMBUPRgvMzjcxeLD == 1 )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `tickets_topics` SET `user_read` = 0,`admin_read` = 1 WHERE `id` = \'%d\'", $HBzaPhJbeAgldftvWeOUsWoQurtVgXxugk );
}
else
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `tickets_topics` SET `user_read` = 1,`admin_read` = 0 WHERE `id` = \'%d\'", $HBzaPhJbeAgldftvWeOUsWoQurtVgXxugk );
}
return false;
}
function NRomAbAHrJdQfOJAogpMYCugQnXcHuSyhFEps ( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM )
{
global $_LANG;
$BFpXwGCohRpLDDAXolgFFoOBrbQrTlvNngu = "";
if ( ! is_array( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM ) )
{
return $BFpXwGCohRpLDDAXolgFFoOBrbQrTlvNngu;
}
if ( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'blocked\' ] == 1 )
{
$BFpXwGCohRpLDDAXolgFFoOBrbQrTlvNngu = "{$_LANG[\'BLOCKED\']}";
}
elseif ( ! is_null( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'date_end\' ] ) and time( ) >= $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'date_end\' ] )
{
$BFpXwGCohRpLDDAXolgFFoOBrbQrTlvNngu = "{$_LANG[\'EXPIRED\']}";
}
elseif ( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'enable\' ] == 0 )
{
$BFpXwGCohRpLDDAXolgFFoOBrbQrTlvNngu = "{$_LANG[\'DISABLED\']}";
}
else
{
$BFpXwGCohRpLDDAXolgFFoOBrbQrTlvNngu = "{$_LANG[\'RUNNING\']}";
}
return $BFpXwGCohRpLDDAXolgFFoOBrbQrTlvNngu;
}
function bebEhDiwIVullMUPzhIbGlVTRRhNdFI ( $cKNQSxaoKuScNfUKXZCEkdDSzQVmIsrNapfw )
{
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH = "";
switch ( $cKNQSxaoKuScNfUKXZCEkdDSzQVmIsrNapfw )
{
case "PHP_BIN":
if ( defined( \'PHP_BINDIR\' ) )
{
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH = PHP_BINDIR . \'/php\';
}
elseif ( isset( $_SERVER[ \'PATH\' ] ) )
{
$DOUrCHCXBkoPAnuKlRBiaVbpUiIWhlFxbPwzLE = explode( ":", $_SERVER[ \'PATH\' ] );
$DOUrCHCXBkoPAnuKlRBiaVbpUiIWhlFxbPwzLE = array_map( "trim", $DOUrCHCXBkoPAnuKlRBiaVbpUiIWhlFxbPwzLE );
foreach ( $DOUrCHCXBkoPAnuKlRBiaVbpUiIWhlFxbPwzLE as $FPoVMLLRBDpjMFFQNfagMSzShTmjgwKaTMFck )
{
if ( file_exists( $FPoVMLLRBDpjMFFQNfagMSzShTmjgwKaTMFck . \'/php\' ) && is_file( $FPoVMLLRBDpjMFFQNfagMSzShTmjgwKaTMFck . \'/php\' ) )
{
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH = $FPoVMLLRBDpjMFFQNfagMSzShTmjgwKaTMFck . \'/php\';
break;
}
}
}
elseif ( function_exists( \'shell_exec\' ) )
{
$wcAdgiCDmlHWQpBibubkzMXkHTWJSB = trim( shell_exec( "which php" ) );
if ( empty( $wcAdgiCDmlHWQpBibubkzMXkHTWJSB ) )
{
$LqrbaezjqzWripdyEZgxrOPyehvRLUdIIaM = trim( shell_exec( "whereis php" ) );
$eVAjOCTHuwfvGZotAPMvQIfqaZIsRBtVU = explode( " ", $LqrbaezjqzWripdyEZgxrOPyehvRLUdIIaM );
if ( count( $eVAjOCTHuwfvGZotAPMvQIfqaZIsRBtVU ) == 1 )
{
return false;
}
else
{
$wcAdgiCDmlHWQpBibubkzMXkHTWJSB = $eVAjOCTHuwfvGZotAPMvQIfqaZIsRBtVU[ 1 ];
}
}
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH = $wcAdgiCDmlHWQpBibubkzMXkHTWJSB;
}
break;
}
return $sxrEMJLCtAHUsbhglwaKdFpNiPOyOH;
}
function WaPbSGexTdikWMpoWabVuGeqKlfZxEXQDUQ ( $ERKMLKZKDVJKcISHlTdPOFOGKlIgTarPqNYY = false )
{
global $mcDB;
if ( $ERKMLKZKDVJKcISHlTdPOFOGKlIgTarPqNYY !== false )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `cronjobs` SET `enabled` = 0 WHERE `id` = \'%d\'", $ERKMLKZKDVJKcISHlTdPOFOGKlIgTarPqNYY );
}
else
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `cronjobs` SET `enabled` = 0;" );
}
RjmngzaIITYRBdPQdtXbclJEEhFhhnhLrSPVLo( );
}
function uCvtIAVzQwdGAMKLaaJFXVlObFPArkvbRRVYGfc ( $ERKMLKZKDVJKcISHlTdPOFOGKlIgTarPqNYY = false )
{
global $mcDB;
if ( $ERKMLKZKDVJKcISHlTdPOFOGKlIgTarPqNYY !== false )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `cronjobs` SET `enabled` = 1 WHERE `id` = \'%d\'", $ERKMLKZKDVJKcISHlTdPOFOGKlIgTarPqNYY );
}
else
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `cronjobs` SET `enabled` = 1;" );
}
RjmngzaIITYRBdPQdtXbclJEEhFhhnhLrSPVLo( );
}
function NgeYsQmHBsFBfFcZLbyFYhDrYTvmHsUuqyNnYE ( $ERKMLKZKDVJKcISHlTdPOFOGKlIgTarPqNYY )
{
global $mcDB;
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `enabled` FROM `cronjobs` WHERE `id` = \'%d\'", $ERKMLKZKDVJKcISHlTdPOFOGKlIgTarPqNYY );
return ($mcDB->iycjdDvSoqgLkyJNknsfSqnsRpysAuGjvCAJk( ) == 1) ? true : false;
}
function MJiVHnXSQFjMDzIBokTuQcYueWGWUztLQzozEA ( )
{
global $mcDB;
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `enabled` FROM `cronjobs` WHERE `id` = 1" );
$iWZBmdEJnXemgpuymvJsIBCAFqBQPnKgvsmM = intval( $mcDB->iycjdDvSoqgLkyJNknsfSqnsRpysAuGjvCAJk( ) );
return ($iWZBmdEJnXemgpuymvJsIBCAFqBQPnKgvsmM > 0) ? true : false;
}
function RjmngzaIITYRBdPQdtXbclJEEhFhhnhLrSPVLo ( )
{
global $mcDB;
if ( ! function_exists( \'shell_exec\' ) )
{
return false;
}
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT * FROM `cronjobs` WHERE `enabled` = 1" );
$DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl = $mcDB->uRkfhIjOyHziEyCiTLMEUfuMfkXqDIgnaoo( );
$BqpLREeOlzFBsxCEytaUDHkqGhjDxQOo = array();
$wcAdgiCDmlHWQpBibubkzMXkHTWJSB = bebEhDiwIVullMUPzhIbGlVTRRhNdFI( \'PHP_BIN\' );
foreach ( $DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl as $ZttOQsMcNSiqFIOCfzEcbBejXFezo )
{
$fWFIoOeLRZHanGpgepvsybXrcrrzVsFzTelWc = MULTICS_ROOT_PATH . $ZttOQsMcNSiqFIOCfzEcbBejXFezo[ \'filename\' ];
$BqpLREeOlzFBsxCEytaUDHkqGhjDxQOo[ ] = "*/{$ZttOQsMcNSiqFIOCfzEcbBejXFezo[\'run_per_mins\']} * * * * $wcAdgiCDmlHWQpBibubkzMXkHTWJSB " . $fWFIoOeLRZHanGpgepvsybXrcrrzVsFzTelWc . " #{$ZttOQsMcNSiqFIOCfzEcbBejXFezo[\'description\']}";
}
$FSnruvLbBDsUqZjIPXseUDOVPIFbAmnJw = trim( shell_exec( "crontab -l" ) );
if ( ! empty( $FSnruvLbBDsUqZjIPXseUDOVPIFbAmnJw ) )
{
$YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp = explode( "\n", $FSnruvLbBDsUqZjIPXseUDOVPIFbAmnJw );
$YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp = array_map( "trim", $YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp );
$ehLrMjIoeWPEDvcdYCknOWplgvrZHXTXA = count( $YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp );
for ( $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII = 0; $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII < $ehLrMjIoeWPEDvcdYCknOWplgvrZHXTXA; $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII++ )
{
if ( stripos( $YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp[ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ], MULTICS_ROOT_PATH ) )
{
unset( $YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp[ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] );
}
}
foreach ( $BqpLREeOlzFBsxCEytaUDHkqGhjDxQOo as $sjkZogRAxvYotfOurMbRyIRnSeErnChtczRlao )
{
array_push( $YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp, $sjkZogRAxvYotfOurMbRyIRnSeErnChtczRlao );
}
}
else
{
$YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp = $BqpLREeOlzFBsxCEytaUDHkqGhjDxQOo;
}
shell_exec( "crontab -r" );
$ckFfGAFzXrufrNptHmteDhXpZQLShzrQiPxoI = tempnam( "/tmp", "crontab" );
$WsQzTVieuZnBnrAghIQrLynUlOklfchDDMK = fopen( $ckFfGAFzXrufrNptHmteDhXpZQLShzrQiPxoI, "w" );
fwrite( $WsQzTVieuZnBnrAghIQrLynUlOklfchDDMK, implode( "\r\n", $YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp ) . "\r\n" );
fclose( $WsQzTVieuZnBnrAghIQrLynUlOklfchDDMK );
shell_exec( "crontab $ckFfGAFzXrufrNptHmteDhXpZQLShzrQiPxoI" );
@unlink( $ckFfGAFzXrufrNptHmteDhXpZQLShzrQiPxoI );
}
function utmAajtHxuKyZECXytyxqbimsWrusFyGupcQxE ( $rKtjjytgRkFCZvsYCbiuXywNLejYVPlhNM, $pXDrlwVXwuxAzlpShefsNcSIaDMBjP = false )
{
global $mcDB;
switch ( $rKtjjytgRkFCZvsYCbiuXywNLejYVPlhNM )
{
case "user":
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `id` FROM `tickets_topics` WHERE `user_read` = 0 AND `member_id` = \'%d\'", $pXDrlwVXwuxAzlpShefsNcSIaDMBjP );
break;
case "admin":
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `id` FROM `tickets_topics` WHERE `admin_read` = 0" );
break;
default:
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `id` FROM `tickets_topics` WHERE `admin_read` = 0" );
}
$DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl = $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( );
return ($DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl);
}
function CuCSxyhINcUKGtFvQMjsYppplRNvSztRIVlc ( $XJrWwzCuHsMWbsdvQwtGNhHQNeCdzMDw, $LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ )
{
global $mcDB;
if ( is_array( $XJrWwzCuHsMWbsdvQwtGNhHQNeCdzMDw ) )
{
$UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu = $XJrWwzCuHsMWbsdvQwtGNhHQNeCdzMDw;
$zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc = $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu[ \'id\' ];
}
else
{
$UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu = oYCxjcrMGXMRxqdxNWbnkfGvamJjzhEJTY( $XJrWwzCuHsMWbsdvQwtGNhHQNeCdzMDw );
}
$kmFAlcgmXFPRdUJfdCDogfzWChxUcTebylg = giVihcIAplDDhWVfapZXkdopkxjXNtULY( $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu[ \'domain\' ], $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu[ \'port\' ], $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu[ \'username\' ], $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu[ \'password\' ], \'editor\', 1, array( "textedit" => $LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ ) );
if ( ! $kmFAlcgmXFPRdUJfdCDogfzWChxUcTebylg )
{
return false;
}
return true;
}
function dNiVXsZBvJIeHBMhQFpdVlalmNBXCykyT ( $FPoVMLLRBDpjMFFQNfagMSzShTmjgwKaTMFck )
{
$QDDOjZXIDVzUBtjRhGuPPIocXqtOAkbkuoU = scandir( $FPoVMLLRBDpjMFFQNfagMSzShTmjgwKaTMFck );
$OyfvsLWHuDCsVntfSXVItMlNmrnxeAzgyk = array();
$pxbbXVTVwjlZwLdQRyoYdEURdYPMZWhDbjkty = count( $QDDOjZXIDVzUBtjRhGuPPIocXqtOAkbkuoU );
for ( $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII = 0; $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII < $pxbbXVTVwjlZwLdQRyoYdEURdYPMZWhDbjkty; $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII++ )
{
if ( $QDDOjZXIDVzUBtjRhGuPPIocXqtOAkbkuoU[ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] != "." && $QDDOjZXIDVzUBtjRhGuPPIocXqtOAkbkuoU[ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] != ".." )
{
if ( is_dir( $FPoVMLLRBDpjMFFQNfagMSzShTmjgwKaTMFck . "/" . $QDDOjZXIDVzUBtjRhGuPPIocXqtOAkbkuoU[ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] ) )
{
$OyfvsLWHuDCsVntfSXVItMlNmrnxeAzgyk = array_merge( $OyfvsLWHuDCsVntfSXVItMlNmrnxeAzgyk, dNiVXsZBvJIeHBMhQFpdVlalmNBXCykyT( $FPoVMLLRBDpjMFFQNfagMSzShTmjgwKaTMFck . "/" . $QDDOjZXIDVzUBtjRhGuPPIocXqtOAkbkuoU[ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] ) );
}
else
{
$OyfvsLWHuDCsVntfSXVItMlNmrnxeAzgyk[ ] = $FPoVMLLRBDpjMFFQNfagMSzShTmjgwKaTMFck . "/" . $QDDOjZXIDVzUBtjRhGuPPIocXqtOAkbkuoU[ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ];
}
}
}
return ($OyfvsLWHuDCsVntfSXVItMlNmrnxeAzgyk);
}
function jEVlapbqfglyCxlIjnfIRSPFsPixApedrKyo ( $XJrWwzCuHsMWbsdvQwtGNhHQNeCdzMDw )
{
if ( is_array( $XJrWwzCuHsMWbsdvQwtGNhHQNeCdzMDw ) )
{
$UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu = $XJrWwzCuHsMWbsdvQwtGNhHQNeCdzMDw;
$zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc = $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu[ \'id\' ];
}
else
{
$UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu = oYCxjcrMGXMRxqdxNWbnkfGvamJjzhEJTY( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
}
$pXrzOKQPXMpZznnhCQHkfoDzxDIJGeRs = array( "mgcamd" => "mgcamd?id=0&list=connected", "cccam" => "cccam?id=0&list=connected", "newcamd" => "newcamd?pid=0&list=connected" );
$PYpzOmGZidMeWUxlNTDVkLuYUKBQnTAhDujBBOk = array( "mgcamd" => "/(.*?)
(.*?)<\/a>(.*?)
Total Zapping: (.*?)<\/td>(.*?)/s", "cccam" => "/(.*?) (.*?)<\/a>(.*?) | Total Zapping: (.*?)<\/td>(.*?)/s", "newcamd" => "/ | (.*?)<\/a><\/td>(.*?) | Total Zapping: (.*?)<\/td>(.*?)/s" );
$RJWcEkKmZNNbFaNyufPOBBjwheorRXsMPXqIaQI = lFMhMMBGGtGPUdijJopIGdmRSuDYItqMJIHEU( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp = array();
foreach ( $RJWcEkKmZNNbFaNyufPOBBjwheorRXsMPXqIaQI as $tDwtLOHiEZRLJaZyFQFpxBryRwkDhYDVaLkqNobdg )
{
$YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp[ $tDwtLOHiEZRLJaZyFQFpxBryRwkDhYDVaLkqNobdg[ \'username\' ] ] = $tDwtLOHiEZRLJaZyFQFpxBryRwkDhYDVaLkqNobdg;
}
$FKaZVSHZRCxLdMAtbyFIufXVbxJDHZTVmUBUgI = array();
$LumfUgZWFlJkfOfmddTbDKQLKhZepTbnCnUIus = array();
foreach ( $pXrzOKQPXMpZznnhCQHkfoDzxDIJGeRs as $zWTaSlfAGQvEiDLlWliUczjQjFNEPOrKlQ => $JgwPyJgJRrQRPYDArewMejJusIwsiJjmwlAoaU )
{
$XcmjOcODJjoZfpZBFazCggIbeCHIhBcyiJX = giVihcIAplDDhWVfapZXkdopkxjXNtULY( $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu[ \'domain\' ], $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu[ \'port\' ], $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu[ \'username\' ], $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu[ \'password\' ], $JgwPyJgJRrQRPYDArewMejJusIwsiJjmwlAoaU );
$LumfUgZWFlJkfOfmddTbDKQLKhZepTbnCnUIus[ $zWTaSlfAGQvEiDLlWliUczjQjFNEPOrKlQ ] = $XcmjOcODJjoZfpZBFazCggIbeCHIhBcyiJX;
}
if ( ! empty( $LumfUgZWFlJkfOfmddTbDKQLKhZepTbnCnUIus ) )
{
foreach ( $LumfUgZWFlJkfOfmddTbDKQLKhZepTbnCnUIus as $zWTaSlfAGQvEiDLlWliUczjQjFNEPOrKlQ => $XcmjOcODJjoZfpZBFazCggIbeCHIhBcyiJX )
{
if ( preg_match_all( $PYpzOmGZidMeWUxlNTDVkLuYUKBQnTAhDujBBOk[ $zWTaSlfAGQvEiDLlWliUczjQjFNEPOrKlQ ], $XcmjOcODJjoZfpZBFazCggIbeCHIhBcyiJX, $QPpbAKhgFBxdhoKDUAboxdCQgouqVbQrFdDM ) )
{
for ( $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII = 0; $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII < count( $QPpbAKhgFBxdhoKDUAboxdCQgouqVbQrFdDM[ 1 ] ); $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII++ )
{
if ( isset( $FKaZVSHZRCxLdMAtbyFIufXVbxJDHZTVmUBUgI[ $YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp[ $QPpbAKhgFBxdhoKDUAboxdCQgouqVbQrFdDM[ 2 ][ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] ][ \'id\' ] ] ) and $FKaZVSHZRCxLdMAtbyFIufXVbxJDHZTVmUBUgI[ $YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp[ $QPpbAKhgFBxdhoKDUAboxdCQgouqVbQrFdDM[ 2 ][ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] ][ \'id\' ] ][ \'online\' ] == 1 )
{
continue;
}
if ( $zWTaSlfAGQvEiDLlWliUczjQjFNEPOrKlQ != "newcamd" )
{
$hTBNPbxbxEkWMpMVAoXYdCTGrpIWRivIzKk = trim( strip_tags( $QPpbAKhgFBxdhoKDUAboxdCQgouqVbQrFdDM[ 6 ][ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] ) );
}
else
{
$hTBNPbxbxEkWMpMVAoXYdCTGrpIWRivIzKk = trim( strip_tags( $QPpbAKhgFBxdhoKDUAboxdCQgouqVbQrFdDM[ 5 ][ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] ) );
}
$ejYnvQryAEOHJhKvleSiMKflZqBJKrsfuvyEU = trim( substr( $hTBNPbxbxEkWMpMVAoXYdCTGrpIWRivIzKk, - 2 ) );
if ( $ejYnvQryAEOHJhKvleSiMKflZqBJKrsfuvyEU == \'OK\' || $ejYnvQryAEOHJhKvleSiMKflZqBJKrsfuvyEU == \'ms\' || $ejYnvQryAEOHJhKvleSiMKflZqBJKrsfuvyEU == "" )
{
$hTBNPbxbxEkWMpMVAoXYdCTGrpIWRivIzKk = 2;
}
else
{
$hTBNPbxbxEkWMpMVAoXYdCTGrpIWRivIzKk = 1;
}
$FKaZVSHZRCxLdMAtbyFIufXVbxJDHZTVmUBUgI[ $YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp[ $QPpbAKhgFBxdhoKDUAboxdCQgouqVbQrFdDM[ 2 ][ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] ][ \'id\' ] ] = array( "multics_id" => $QPpbAKhgFBxdhoKDUAboxdCQgouqVbQrFdDM[ 1 ][ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ], "line_info" => $YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp[ $QPpbAKhgFBxdhoKDUAboxdCQgouqVbQrFdDM[ 2 ][ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] ], "zaps" => ($zWTaSlfAGQvEiDLlWliUczjQjFNEPOrKlQ != "newcamd") ? $QPpbAKhgFBxdhoKDUAboxdCQgouqVbQrFdDM[ 5 ][ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ] : $QPpbAKhgFBxdhoKDUAboxdCQgouqVbQrFdDM[ 4 ][ $PkmhXPbPvCcSikBmDzjHuyljGIDgckcLrskII ], "emulator" => $zWTaSlfAGQvEiDLlWliUczjQjFNEPOrKlQ, "online" => $hTBNPbxbxEkWMpMVAoXYdCTGrpIWRivIzKk );
}
}
}
}
return $FKaZVSHZRCxLdMAtbyFIufXVbxJDHZTVmUBUgI;
}
function eEMngkjalTsRMEOYDBXzxFONXuJcupcPyeQR ( $FKaZVSHZRCxLdMAtbyFIufXVbxJDHZTVmUBUgI, $WpFiAaWkxLTvasqjbarrImxEEzVtSTE, $oRjBmIifkcpHFRMENTgIzgNpwZKCQYU, $UxOZnuCRmRAazSKWEtMeyeToqgKqUVFOg )
{
if ( ! is_array( $FKaZVSHZRCxLdMAtbyFIufXVbxJDHZTVmUBUgI ) )
{
return 0;
}
foreach ( $FKaZVSHZRCxLdMAtbyFIufXVbxJDHZTVmUBUgI as $rKtjjytgRkFCZvsYCbiuXywNLejYVPlhNM )
{
if ( $rKtjjytgRkFCZvsYCbiuXywNLejYVPlhNM[ $WpFiAaWkxLTvasqjbarrImxEEzVtSTE ] === $oRjBmIifkcpHFRMENTgIzgNpwZKCQYU )
{
if ( is_array( $UxOZnuCRmRAazSKWEtMeyeToqgKqUVFOg ) )
{
$SbaQNErKfDxowdIuFcPPYwChdvzbeTLDahwVQto = array();
foreach ( $UxOZnuCRmRAazSKWEtMeyeToqgKqUVFOg as $XOlzDywpOciXAUSIjhBdVbPctEeXCCFOfEw )
{
if ( array_key_exists( $XOlzDywpOciXAUSIjhBdVbPctEeXCCFOfEw, $rKtjjytgRkFCZvsYCbiuXywNLejYVPlhNM ) )
{
$SbaQNErKfDxowdIuFcPPYwChdvzbeTLDahwVQto[ ] = $rKtjjytgRkFCZvsYCbiuXywNLejYVPlhNM[ $XOlzDywpOciXAUSIjhBdVbPctEeXCCFOfEw ];
}
}
return $SbaQNErKfDxowdIuFcPPYwChdvzbeTLDahwVQto;
}
else
{
return $rKtjjytgRkFCZvsYCbiuXywNLejYVPlhNM[ $UxOZnuCRmRAazSKWEtMeyeToqgKqUVFOg ];
}
}
}
return 0;
}
function url_result($url, $user, $pass) {
$ch = curl_init();
$userAgent = \'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5\';
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(\'Content-Type: text/xml\'));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERPWD, $user . ":" . $pass);
$data = curl_exec($ch);
/*
if (curl_errno($ch)> 0){
die(\'There was a cURL error: \' . curl_error($ch));
} else {
curl_close($ch);
*/
return $data;
}
function get_between($content, $start, $end){
$r = explode($start, $content);
if (isset($r[1])){
$r = explode($end, $r[1]);
return $r[0];
}
return \'\';
}
function url_check($url, $user, $pass)
{
$ch = curl_init();
$userAgent = \'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5\';
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
//curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_USERPWD, $user . ":" . $pass);
$data = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);
if (empty($info[\'http_code\'])) {
$data3="error";
} else {
// load the HTTP codes
$data3=$info[\'http_code\'];
}
//echo $data3;
return $data3;
}
function DLCuvOIdvDRxZjbRkmaOBeEtFvIpkuQGM ( $xVsdXLfYVLgEWyTlxJpGgTxKLQUFXBzRCU, $uLLgHBmPthKUFeERtjXtrvBKCOuDsRwXcfc )
{
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH = array();
foreach ( $xVsdXLfYVLgEWyTlxJpGgTxKLQUFXBzRCU as $vsoUnWAxYIeyfhpklUzbRnsqTRUrzOnPpAcyU )
{
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH[ ] = $vsoUnWAxYIeyfhpklUzbRnsqTRUrzOnPpAcyU[ $uLLgHBmPthKUFeERtjXtrvBKCOuDsRwXcfc ];
}
return $sxrEMJLCtAHUsbhglwaKdFpNiPOyOH;
}
function MXxaxAaUuizfJTWmZshaNBbIPCpxvo ( $rXJHTTCJoTzFkfzuEwkSbcctojVMocBTbsAc, $dXmQMpDJHJVTpkNPKawnXBZyJnmNDSDu = \'user\' )
{
global $mcDB, $mcMember;
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH = array();
if ( ! is_array( $rXJHTTCJoTzFkfzuEwkSbcctojVMocBTbsAc ) )
{
return $sxrEMJLCtAHUsbhglwaKdFpNiPOyOH;
}
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT t1.*,t2.`master_server_id` as `master_server_id`,t2.`domain_name` AS domain_name, t2.`description` AS description, t2.`port` AS port, t3.emulator_name AS emulator_name,t3.id as emulator_id FROM `lines` t1, `multics_servers` t2, `emulators` t3 WHERE t2.emulator_id = t3.id AND t1.server_id = t2.id AND t1.`id` IN (" . implode( ",", $rXJHTTCJoTzFkfzuEwkSbcctojVMocBTbsAc ) . ")" );
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) == 0 )
{
return array();
}
$vEpqYuhSuEDLcndnSVnIkoDnZMNUjJlqfN = $mcDB->uRkfhIjOyHziEyCiTLMEUfuMfkXqDIgnaoo( );
$CJmouEtuOMxIAGgLTpwUDGyzqMGaAEdjSxs = upzpUQDSvbmvIQrAiyHPgIUIZiGeJMzxY( );
if ( $dXmQMpDJHJVTpkNPKawnXBZyJnmNDSDu == \'user\' )
{
foreach ( $vEpqYuhSuEDLcndnSVnIkoDnZMNUjJlqfN as $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM )
{
if ( ! isset( $TTqmmAgABBMDPKSZOELErYCXBwxyMtFWGqtrk[ $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'master_server_id\' ] ] ) )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `config_value` FROM `multics_config_vars` WHERE `master_server_id` = \'%d\' AND `config_value_name` = \'%s\'", $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'master_server_id\' ], \'MGCAMD KEY\' );
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
$TTqmmAgABBMDPKSZOELErYCXBwxyMtFWGqtrk[ $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'master_server_id\' ] ] = $mcDB->iycjdDvSoqgLkyJNknsfSqnsRpysAuGjvCAJk( );
}
else
{
$TTqmmAgABBMDPKSZOELErYCXBwxyMtFWGqtrk[ $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'master_server_id\' ] ] = "01 02 03 04 05 06 07 08 09 10 11 12 13 14";
}
}
if ( ! isset( $RQqojXWAQaqYYrWUVoLExMCZk[ $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'master_server_id\' ] ] ) )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `config_value` FROM `multics_config_vars` WHERE `master_server_id` = \'%d\' AND `config_value_name` = \'%s\'", $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'master_server_id\' ], \'DEFAULT KEY\' );
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
$RQqojXWAQaqYYrWUVoLExMCZk[ $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'master_server_id\' ] ] = $mcDB->iycjdDvSoqgLkyJNknsfSqnsRpysAuGjvCAJk( );
}
else
{
$RQqojXWAQaqYYrWUVoLExMCZk[ $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'master_server_id\' ] ] = "01 02 03 04 05 06 07 08 09 10 11 12 13 14";
}
}
switch ( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'emulator_id\' ] )
{
case 1:
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH[ $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'id\' ] ][ ] = "C: {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'domain_name\']} {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'port\']} {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'username\']} {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'password\']}";
break;
case 2:
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH[ $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'id\' ] ][ ] = "CWS = {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'domain_name\']} {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'port\']} {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'username\']} {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'password\']} {$TTqmmAgABBMDPKSZOELErYCXBwxyMtFWGqtrk[$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'master_server_id\']]}";
break;
case 3:
$YcocofCYXiTPRBJexeEGlCtGuXaFDxBDMT = "N: {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'domain_name\']} [PROFILE_PORT] {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'username\']} {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'password\']} {$RQqojXWAQaqYYrWUVoLExMCZk[$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'master_server_id\']]}";
$PUWXehduSmEptZYeeotezsmpWnQXCRgpVRPsE = explode( ",", $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'profiles\' ] );
foreach ( $PUWXehduSmEptZYeeotezsmpWnQXCRgpVRPsE as $WSVDZhEHvOJutoXJFuRlHglbEzTBWaGwZhjKI )
{
$nNukxWKLpgIqtWHqZVwaysTTqRnpcXUbHxDrpE = str_replace( "[PROFILE_PORT]", $CJmouEtuOMxIAGgLTpwUDGyzqMGaAEdjSxs[ $WSVDZhEHvOJutoXJFuRlHglbEzTBWaGwZhjKI ], $YcocofCYXiTPRBJexeEGlCtGuXaFDxBDMT );
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH[ $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'id\' ] ][ ] = $nNukxWKLpgIqtWHqZVwaysTTqRnpcXUbHxDrpE;
}
break;
}
}
}
else
{
foreach ( $vEpqYuhSuEDLcndnSVnIkoDnZMNUjJlqfN as $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM )
{
$ftIznUWGlGdmUWNSGAwhoEtPjjUAiUIs = @unserialize( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'line_options\' ] );
$dnfNcRpTEmnCPWCTSEeDEGLvnRFFNVhNc = "";
if ( ! empty( $ftIznUWGlGdmUWNSGAwhoEtPjjUAiUIs ) )
{
foreach ( $ftIznUWGlGdmUWNSGAwhoEtPjjUAiUIs as $uLLgHBmPthKUFeERtjXtrvBKCOuDsRwXcfc => $snmwuFrtGBXxOFNZAbDPBzKeqiHsBVM )
{
$uLLgHBmPthKUFeERtjXtrvBKCOuDsRwXcfc = @str_replace( "=", "", $uLLgHBmPthKUFeERtjXtrvBKCOuDsRwXcfc );
if ( substr( $snmwuFrtGBXxOFNZAbDPBzKeqiHsBVM, - 1 ) == \';\' )
$dnfNcRpTEmnCPWCTSEeDEGLvnRFFNVhNc .= $uLLgHBmPthKUFeERtjXtrvBKCOuDsRwXcfc . \'=\' . $snmwuFrtGBXxOFNZAbDPBzKeqiHsBVM . \' \';
else
$dnfNcRpTEmnCPWCTSEeDEGLvnRFFNVhNc .= $uLLgHBmPthKUFeERtjXtrvBKCOuDsRwXcfc . \'=\' . $snmwuFrtGBXxOFNZAbDPBzKeqiHsBVM . \'; \';
}
}
$dnfNcRpTEmnCPWCTSEeDEGLvnRFFNVhNc = trim( $dnfNcRpTEmnCPWCTSEeDEGLvnRFFNVhNc );
$AgMdqTDzCjMnOBIsowiyLEqtheHQOBSrPmhgg = "";
if ( strlen( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'profiles\' ] ) > 0 )
{
$PUWXehduSmEptZYeeotezsmpWnQXCRgpVRPsE = explode( ",", $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'profiles\' ] );
foreach ( $PUWXehduSmEptZYeeotezsmpWnQXCRgpVRPsE as $WSVDZhEHvOJutoXJFuRlHglbEzTBWaGwZhjKI )
{
if ( array_key_exists( $WSVDZhEHvOJutoXJFuRlHglbEzTBWaGwZhjKI, $CJmouEtuOMxIAGgLTpwUDGyzqMGaAEdjSxs ) )
$AgMdqTDzCjMnOBIsowiyLEqtheHQOBSrPmhgg .= $CJmouEtuOMxIAGgLTpwUDGyzqMGaAEdjSxs[ $WSVDZhEHvOJutoXJFuRlHglbEzTBWaGwZhjKI ] . ",";
}
$AgMdqTDzCjMnOBIsowiyLEqtheHQOBSrPmhgg = substr( $AgMdqTDzCjMnOBIsowiyLEqtheHQOBSrPmhgg, 0, - 1 );
}
else
{
$AgMdqTDzCjMnOBIsowiyLEqtheHQOBSrPmhgg = 0;
}
$VoiZORHgiPwgcfNXLqBqnTsbJhhDQoPLjjk = $mcMember->enuLZXwCAGrbvPofcgEYEOgeRSIcNwSMgoze( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'member_id\' ] );
if ( $VoiZORHgiPwgcfNXLqBqnTsbJhhDQoPLjjk === false )
{
$uABhuiqYFRfuCFouuKawvoKtmYAgDzCmDBnKyKGtw = "";
$VoiZORHgiPwgcfNXLqBqnTsbJhhDQoPLjjk = \'NONE\';
}
else
{
$uABhuiqYFRfuCFouuKawvoKtmYAgDzCmDBnKyKGtw = "panel_memberid=" . $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'member_id\' ] . \';\';
}
$MDvdmsLcPfyAsVarysQqkKkVsZjIXsVCuyIlATuEQ = "";
if ( ! is_null( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'date_end\' ] ) )
{
$MDvdmsLcPfyAsVarysQqkKkVsZjIXsVCuyIlATuEQ = "panel_expdate=" . $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'date_end\' ] . \';\';
}
$nPgyEEBoaGeVyyMHquepgMzrSdogyTTpgKGM = "test_line=" . $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'test_line\' ] . \';\';
$ONJAznIuIASvylYAOSLLZWAdomXTJhMBdmq = "profile_ids=" . $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'profiles\' ] . \';\';
switch ( $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'emulator_id\' ] )
{
case 1:
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH[ \'CCCAM PORT: \' . $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'port\' ] ][ ] = "F: {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'username\']} {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'password\']} {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'reshare\']} { $dnfNcRpTEmnCPWCTSEeDEGLvnRFFNVhNc name=$VoiZORHgiPwgcfNXLqBqnTsbJhhDQoPLjjk; $MDvdmsLcPfyAsVarysQqkKkVsZjIXsVCuyIlATuEQ $ONJAznIuIASvylYAOSLLZWAdomXTJhMBdmq $nPgyEEBoaGeVyyMHquepgMzrSdogyTTpgKGM $uABhuiqYFRfuCFouuKawvoKtmYAgDzCmDBnKyKGtw profiles=$AgMdqTDzCjMnOBIsowiyLEqtheHQOBSrPmhgg; }";
break;
case 2:
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH[ \'MGCAMD PORT: \' . $MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[ \'port\' ] ][ ] = "MGUSER: {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'username\']} {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'password\']} { $dnfNcRpTEmnCPWCTSEeDEGLvnRFFNVhNc name=$VoiZORHgiPwgcfNXLqBqnTsbJhhDQoPLjjk; $MDvdmsLcPfyAsVarysQqkKkVsZjIXsVCuyIlATuEQ $ONJAznIuIASvylYAOSLLZWAdomXTJhMBdmq $nPgyEEBoaGeVyyMHquepgMzrSdogyTTpgKGM $uABhuiqYFRfuCFouuKawvoKtmYAgDzCmDBnKyKGtw profiles=$AgMdqTDzCjMnOBIsowiyLEqtheHQOBSrPmhgg; }";
break;
case 3:
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH[ \'USER\' ][ ] = "USER: {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'username\']} {$MVxFYLxJdIYdlSkGEvSOgWdgcXnEjIbgOM[\'password\']} { $AgMdqTDzCjMnOBIsowiyLEqtheHQOBSrPmhgg; $nPgyEEBoaGeVyyMHquepgMzrSdogyTTpgKGM $MDvdmsLcPfyAsVarysQqkKkVsZjIXsVCuyIlATuEQ $uABhuiqYFRfuCFouuKawvoKtmYAgDzCmDBnKyKGtw $ONJAznIuIASvylYAOSLLZWAdomXTJhMBdmq $dnfNcRpTEmnCPWCTSEeDEGLvnRFFNVhNc }";
break;
}
}
}
return $sxrEMJLCtAHUsbhglwaKdFpNiPOyOH;
}
function BRdrDnvguWeUxAbhDRleQItyBwaHnbikRCtybVY ( $RqyBBjafAEbIRYcFtXdChWLXacwHEVIKSZycOE, $ueIkLaHVJOLanaTUgHUHWsXnzUjCFZHwtdAIr )
{
global $mcDB;
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `package_id` FROM `group_packages` WHERE `group_id` = \'%d\'", $RqyBBjafAEbIRYcFtXdChWLXacwHEVIKSZycOE );
$DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl = array();
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
$hdAWGJiYhdWJcKfPoxjjtaRpbRoSBuHelhCC = mcLib::sLYQRInHqFhKEHlZrlkIQnxTDtZrYVNtKK( $mcDB->uRkfhIjOyHziEyCiTLMEUfuMfkXqDIgnaoo( ) );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT * FROM `lines_options` WHERE `option_type` = \'%d\' AND id IN(" . implode( ",", $hdAWGJiYhdWJcKfPoxjjtaRpbRoSBuHelhCC ) . ")", $ueIkLaHVJOLanaTUgHUHWsXnzUjCFZHwtdAIr );
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
$DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl = $mcDB->uRkfhIjOyHziEyCiTLMEUfuMfkXqDIgnaoo( );
}
}
return $DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl;
}
function oBucYiIdWXFpQOhjVOZGfzxgmCdvSaXawlJU ( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc )
{
global $mcDB;
$ucWWxhmkIYXDxHKsdUhRaeVHovdPIoDGU = qUlcDtRuZmaQHePVpmaDOoKhBgiQdsjEIc( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$PUWXehduSmEptZYeeotezsmpWnQXCRgpVRPsE = hmAwbwfvbCIDVTGrAUhxGfvwwtmcebShRGNuL( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$nqAKFozIcCWReIAlUiuMyHpiZenOuJtoFzGdlxs = rgJYriKrXFPMkjrcdXPmGtITBbIEDMNUQI( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `id` FROM `lines` WHERE (`date_end` > \'" . time( ) . "\' OR `date_end` IS NULL) AND `blocked` = 0 AND `enable` = 1 AND `server_id` IN(" . implode( ",", $nqAKFozIcCWReIAlUiuMyHpiZenOuJtoFzGdlxs ) . ")" );
$YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp = array();
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
$oJCZbqXRQAIzsjgkbFyqmMOMzynnr = mcLib::sLYQRInHqFhKEHlZrlkIQnxTDtZrYVNtKK( $mcDB->uRkfhIjOyHziEyCiTLMEUfuMfkXqDIgnaoo( ) );
$YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp = MXxaxAaUuizfJTWmZshaNBbIPCpxvo( $oJCZbqXRQAIzsjgkbFyqmMOMzynnr, \'config\' );
}
$vUEaDzbnTibYcfhCkKhfHpheWqBoYjhY = "#===============================================================#\r\n";
$vUEaDzbnTibYcfhCkKhfHpheWqBoYjhY .= "#===================== MultiCS Panel v4.8 ======================#\r\n";
$vUEaDzbnTibYcfhCkKhfHpheWqBoYjhY .= "#===============================================================#\r\n\r\n\r\n";
$LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ = "";
unset( $ucWWxhmkIYXDxHKsdUhRaeVHovdPIoDGU[ \'CCCAM PORT\' ] );
unset( $ucWWxhmkIYXDxHKsdUhRaeVHovdPIoDGU[ \'MGCAMD PORT\' ] );
foreach ( $ucWWxhmkIYXDxHKsdUhRaeVHovdPIoDGU as $rfNrOeeMCJzwLfffhbizDjyTQfpvtspGIXhk => $snmwuFrtGBXxOFNZAbDPBzKeqiHsBVM )
{
if ( is_array( $snmwuFrtGBXxOFNZAbDPBzKeqiHsBVM ) )
{
foreach ( $snmwuFrtGBXxOFNZAbDPBzKeqiHsBVM as $iWZBmdEJnXemgpuymvJsIBCAFqBQPnKgvsmM )
{
$LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ .= $rfNrOeeMCJzwLfffhbizDjyTQfpvtspGIXhk . ": " . $iWZBmdEJnXemgpuymvJsIBCAFqBQPnKgvsmM . "\r\n";
}
}
else
{
$LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ .= $rfNrOeeMCJzwLfffhbizDjyTQfpvtspGIXhk . ": " . $snmwuFrtGBXxOFNZAbDPBzKeqiHsBVM . "\r\n";
}
}
foreach ( $YCWzarlpjCjbSnAvzVqxuHSpdXhJNytYMjp as $uLLgHBmPthKUFeERtjXtrvBKCOuDsRwXcfc => $YcocofCYXiTPRBJexeEGlCtGuXaFDxBDMT )
{
if ( $uLLgHBmPthKUFeERtjXtrvBKCOuDsRwXcfc != \'USER\' )
$LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ .= $uLLgHBmPthKUFeERtjXtrvBKCOuDsRwXcfc . " #SERVER FOR LINES\r\n";
foreach ( $YcocofCYXiTPRBJexeEGlCtGuXaFDxBDMT as $BIIdlAwzrVQHZsDfIApuSeSqhCyVsPFxjlWwfE )
{
$LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ .= $BIIdlAwzrVQHZsDfIApuSeSqhCyVsPFxjlWwfE . "\r\n";
}
}
$LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ .= yRiFxtJZpetzFCGGJdwfeeBRRLELsSLIOXChLBGbnk( $PUWXehduSmEptZYeeotezsmpWnQXCRgpVRPsE );
if ( empty( $LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ ) )
{
return false;
}
return $vUEaDzbnTibYcfhCkKhfHpheWqBoYjhY . $LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ;
}
function yRiFxtJZpetzFCGGJdwfeeBRRLELsSLIOXChLBGbnk ( $PUWXehduSmEptZYeeotezsmpWnQXCRgpVRPsE )
{
$LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ = "";
foreach ( $PUWXehduSmEptZYeeotezsmpWnQXCRgpVRPsE as $WSVDZhEHvOJutoXJFuRlHglbEzTBWaGwZhjKI )
{
$LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ .= "[{$WSVDZhEHvOJutoXJFuRlHglbEzTBWaGwZhjKI[\'profile_name\']}]\r\n";
$jwZlRjPJJsEAqtWfknsiOPmYCwpEBnsYhXmAfs = unserialize( $WSVDZhEHvOJutoXJFuRlHglbEzTBWaGwZhjKI[ \'profile_options\' ] );
foreach ( $jwZlRjPJJsEAqtWfknsiOPmYCwpEBnsYhXmAfs as $EcdxFeQuVoMFpKmSWHSkdDNJLgRbSdvwQ => $CnsMmdLsjZHWKUYOFjaTkPgteUxNwmOEcfNc )
{
$LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ .= $EcdxFeQuVoMFpKmSWHSkdDNJLgRbSdvwQ . " : " . $CnsMmdLsjZHWKUYOFjaTkPgteUxNwmOEcfNc . "\r\n";
}
$LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ .= "\r\n\r\n##############################\r\n\r\n";
}
return $LfMfpOENHloEtVkOXPzMkQHbeTYnfmWVQ;
}
function upzpUQDSvbmvIQrAiyHPgIUIZiGeJMzxY ( $AGISLiuSCWwzoEHNczCSPbUpEfeGsfhXpQhZMJjE = false )
{
global $mcDB;
if ( $AGISLiuSCWwzoEHNczCSPbUpEfeGsfhXpQhZMJjE )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `profile_options` FROM `profiles` WHERE `id` = \'%d\'", $AGISLiuSCWwzoEHNczCSPbUpEfeGsfhXpQhZMJjE );
$UIxVjJkDpArqKYfbpLOcaehrVBCHgqvQY = unserialize( $mcDB->iycjdDvSoqgLkyJNknsfSqnsRpysAuGjvCAJk( ) );
return array( $AGISLiuSCWwzoEHNczCSPbUpEfeGsfhXpQhZMJjE => $UIxVjJkDpArqKYfbpLOcaehrVBCHgqvQY[ \'PORT\' ] );
}
else
{
$PUWXehduSmEptZYeeotezsmpWnQXCRgpVRPsE = array();
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `id`,`profile_options` FROM `profiles`" );
foreach ( $mcDB->uRkfhIjOyHziEyCiTLMEUfuMfkXqDIgnaoo( ) as $vhFTvdzxPpZQiQAJJtlRbuPQHrcAITvcNdrSEJs )
{
$UIxVjJkDpArqKYfbpLOcaehrVBCHgqvQY = unserialize( $vhFTvdzxPpZQiQAJJtlRbuPQHrcAITvcNdrSEJs[ \'profile_options\' ] );
if ( array_key_exists( \'PORT\', $UIxVjJkDpArqKYfbpLOcaehrVBCHgqvQY ) and is_numeric( $UIxVjJkDpArqKYfbpLOcaehrVBCHgqvQY[ \'PORT\' ] ) )
{
$PUWXehduSmEptZYeeotezsmpWnQXCRgpVRPsE[ $vhFTvdzxPpZQiQAJJtlRbuPQHrcAITvcNdrSEJs[ \'id\' ] ] = $UIxVjJkDpArqKYfbpLOcaehrVBCHgqvQY[ \'PORT\' ];
}
}
return $PUWXehduSmEptZYeeotezsmpWnQXCRgpVRPsE;
}
}
function OyUAmKmRjMKmaUdTnqgLqdyFnqRoPrtEofsMP ( )
{
return TRUE;
}
function DgfgKeLTBlEfWDyjkTOzsQlcHqEnvKKJexY ( $dBQstFLRgwLkBVnxVeaGGzHKeHnLryPQto = false )
{
return $dBQstFLRgwLkBVnxVeaGGzHKeHnLryPQto ? FALSE : TRUE;
}
function XPkSZNlGXyxtRXrNNOuzejFMdHOabHzvtdc ( $DusLBJMhUCzywEODLgLmdsIDgALlrZDDLiKY, $uLLgHBmPthKUFeERtjXtrvBKCOuDsRwXcfc = \'\' )
{
return NULL;
}
function pFpKJvtbBXELLMhkVafUkCsKePHMRDDNtRkuI ( $FkwpJNTPndxffUzDpuyCLnNWTCiywSUWBmmY )
{
return NULL;
}
function GTdEUMbLdTGkyqQVsPwATtvzRKsDRLgOzerQ ( )
{
tEJMxRHZYAcQGLnMttsPwXuLfbsubE( 0 );
return TRUE;
}
function tEJMxRHZYAcQGLnMttsPwXuLfbsubE ( $qpvldMTAVaiMrhLqJToqUWOsYiwmAxdWesagA )
{
global $mcDB;
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `multics_licence` SET `show_message` = \'%d\' WHERE `id` = 1", $qpvldMTAVaiMrhLqJToqUWOsYiwmAxdWesagA );
}
function hhWsScCioFnqBpnRgLBAWFYbrZtQugsBDBYs ( $JqWYUJnYbJhGNDdwGsIkkSCfITQllw, $upLEjvhCNokQZCysQMKMsHhSBYBTUDmTLfc )
{
if ( ! is_readable( $JqWYUJnYbJhGNDdwGsIkkSCfITQllw ) )
die( \'File not found or inaccessible! Contact administrator\' );
$YLtkveuXRGksIkLmuEXqMVYlZlAEJZRVHVQ = filesize( $JqWYUJnYbJhGNDdwGsIkkSCfITQllw );
$upLEjvhCNokQZCysQMKMsHhSBYBTUDmTLfc = rawurldecode( $upLEjvhCNokQZCysQMKMsHhSBYBTUDmTLfc );
@ob_end_clean( );
if ( ini_get( \'zlib.output_compression\' ) )
ini_set( \'zlib.output_compression\', \'Off\' );
header( \'Content-Type: text/plain\' );
header( \'Content-Disposition: attachment; filename="\' . $upLEjvhCNokQZCysQMKMsHhSBYBTUDmTLfc . \'"\' );
header( "Content-Transfer-Encoding: binary" );
header( \'Accept-Ranges: bytes\' );
header( "Cache-control: private" );
header( \'Pragma: private\' );
header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
if ( isset( $_SERVER[ \'HTTP_RANGE\' ] ) )
{
list ( $QofNWSpOGrfDYwUHjbwOGlsYcbGnKKnmaG, $lfHJSdoELKgWgpGrlKFQvrugoehPskAkyOUI ) = explode( "=", $_SERVER[ \'HTTP_RANGE\' ], 2 );
list ( $lfHJSdoELKgWgpGrlKFQvrugoehPskAkyOUI ) = explode( ",", $lfHJSdoELKgWgpGrlKFQvrugoehPskAkyOUI, 2 );
list ( $lfHJSdoELKgWgpGrlKFQvrugoehPskAkyOUI, $WvIrVDoNpxgucRchVTkRvUmKqTWNSgUhwduxQgA ) = explode( "-", $lfHJSdoELKgWgpGrlKFQvrugoehPskAkyOUI );
$lfHJSdoELKgWgpGrlKFQvrugoehPskAkyOUI = intval( $lfHJSdoELKgWgpGrlKFQvrugoehPskAkyOUI );
if ( ! $WvIrVDoNpxgucRchVTkRvUmKqTWNSgUhwduxQgA )
{
$WvIrVDoNpxgucRchVTkRvUmKqTWNSgUhwduxQgA = $YLtkveuXRGksIkLmuEXqMVYlZlAEJZRVHVQ - 1;
}
else
{
$WvIrVDoNpxgucRchVTkRvUmKqTWNSgUhwduxQgA = intval( $WvIrVDoNpxgucRchVTkRvUmKqTWNSgUhwduxQgA );
}
$AuwYxNwdIoDTEYshMEWJDAcOSdnmCiCemU = $WvIrVDoNpxgucRchVTkRvUmKqTWNSgUhwduxQgA - $lfHJSdoELKgWgpGrlKFQvrugoehPskAkyOUI + 1;
header( "HTTP/1.1 206 Partial Content" );
header( "Content-Length: $AuwYxNwdIoDTEYshMEWJDAcOSdnmCiCemU" );
header( "Content-Range: bytes $lfHJSdoELKgWgpGrlKFQvrugoehPskAkyOUI-$WvIrVDoNpxgucRchVTkRvUmKqTWNSgUhwduxQgA/$YLtkveuXRGksIkLmuEXqMVYlZlAEJZRVHVQ" );
}
else
{
$AuwYxNwdIoDTEYshMEWJDAcOSdnmCiCemU = $YLtkveuXRGksIkLmuEXqMVYlZlAEJZRVHVQ;
header( "Content-Length: " . $YLtkveuXRGksIkLmuEXqMVYlZlAEJZRVHVQ );
}
$PFFQtBNCWxfToWDEBneubfJcMOurmUHcCOM = 1 * (1024 * 1024);
$NSoxFeSdVZEHnvIicTzPJquiBVd = 0;
if ( $JqWYUJnYbJhGNDdwGsIkkSCfITQllw = fopen( $JqWYUJnYbJhGNDdwGsIkkSCfITQllw, \'r\' ) )
{
if ( isset( $_SERVER[ \'HTTP_RANGE\' ] ) )
fseek( $JqWYUJnYbJhGNDdwGsIkkSCfITQllw, $lfHJSdoELKgWgpGrlKFQvrugoehPskAkyOUI );
while ( ! feof( $JqWYUJnYbJhGNDdwGsIkkSCfITQllw ) && (! connection_aborted( )) && ($NSoxFeSdVZEHnvIicTzPJquiBVd < $AuwYxNwdIoDTEYshMEWJDAcOSdnmCiCemU) )
{
$zEYkkIVvkrLzMdToiKwOZNTKDidEHMQjFWVY = fread( $JqWYUJnYbJhGNDdwGsIkkSCfITQllw, $PFFQtBNCWxfToWDEBneubfJcMOurmUHcCOM );
print ($zEYkkIVvkrLzMdToiKwOZNTKDidEHMQjFWVY) ;
flush( );
$NSoxFeSdVZEHnvIicTzPJquiBVd += strlen( $zEYkkIVvkrLzMdToiKwOZNTKDidEHMQjFWVY );
}
fclose( $JqWYUJnYbJhGNDdwGsIkkSCfITQllw );
@unlink( $JqWYUJnYbJhGNDdwGsIkkSCfITQllw );
}
else
die( \'Error - can not open file.\' );
die( );
}
function AgnUUBeUpHEzNqbLspCaygaKysReDQiBf ( $EuvToTRHFhXPtMYzmUwPOXYuOLIStLWA )
{
global $mcDB;
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT t1.*,t2.emulator_name FROM `multics_servers` t1,`emulators` t2 WHERE t1.`emulator_id` = t2.`id` AND t1.`id` = \'%d\'", $EuvToTRHFhXPtMYzmUwPOXYuOLIStLWA );
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
return $mcDB->OywkjiJsPsfQksGnfpNDuDtblCYOpOluCAWg( );
}
return false;
}
function XzPdZKDhyYJjLVGZimLnXIOzBrJjbmkRHI ( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc, $ohPnetUvJCPtOjwymIltrcNUnhPUXzBU, $PyYnjlYDTiXgMhqpnJBWvdosggonHrWoDBpXiPp, $DhgeTYztpZKYLMRRlOkmQbtyEwRLDkOPGBLGw, $AJdNJaAsADnVbTGUDPSmxBkPkFKNnljIvfVbY )
{
global $mcDB;
WaPbSGexTdikWMpoWabVuGeqKlfZxEXQDUQ( 1 );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "DELETE FROM `multics_config_vars` WHERE `config_value_name` = \'HTTP USER\' AND `master_server_id` = \'%d\'", $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "DELETE FROM `multics_config_vars` WHERE `config_value_name` = \'HTTP PASS\' AND `master_server_id` = \'%d\'", $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "DELETE FROM `multics_config_vars` WHERE `config_value_name` = \'HTTP PORT\' AND `master_server_id` = \'%d\'", $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "INSERT INTO `multics_config_vars` (`config_value_name`,`config_value`,`master_server_id`) VALUES(\'%s\',\'%s\',\'%d\')", \'HTTP USER\', $DhgeTYztpZKYLMRRlOkmQbtyEwRLDkOPGBLGw, $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "INSERT INTO `multics_config_vars` (`config_value_name`,`config_value`,`master_server_id`) VALUES(\'%s\',\'%s\',\'%d\')", \'HTTP PORT\', $PyYnjlYDTiXgMhqpnJBWvdosggonHrWoDBpXiPp, $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "INSERT INTO `multics_config_vars` (`config_value_name`,`config_value`,`master_server_id`) VALUES(\'%s\',\'%s\',\'%d\')", \'HTTP PASS\', $AJdNJaAsADnVbTGUDPSmxBkPkFKNnljIvfVbY, $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$xLvUXTzqjKsMJKplZOCQAphgTgqSRUiQzAQ = oBucYiIdWXFpQOhjVOZGfzxgmCdvSaXawlJU( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
CuCSxyhINcUKGtFvQMjsYppplRNvSztRIVlc( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc, $xLvUXTzqjKsMJKplZOCQAphgTgqSRUiQzAQ );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `multics_master_servers` SET `username` = \'%s\',`password` = \'%s\' WHERE `id` = \'%d\'", $DhgeTYztpZKYLMRRlOkmQbtyEwRLDkOPGBLGw, $AJdNJaAsADnVbTGUDPSmxBkPkFKNnljIvfVbY, $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
if ( ! is_null( $ohPnetUvJCPtOjwymIltrcNUnhPUXzBU ) )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `multics_master_servers` SET `domain` = \'%s\' WHERE `id` = \'%d\'", $ohPnetUvJCPtOjwymIltrcNUnhPUXzBU, $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `multics_servers` SET `domain_name` = \'%s\' WHERE `master_server_id` = \'%d\'", $ohPnetUvJCPtOjwymIltrcNUnhPUXzBU, $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
}
uCvtIAVzQwdGAMKLaaJFXVlObFPArkvbRRVYGfc( 1 );
}
function gzYLbuDxOAXvDpzJDcFiNVYxZxnoiRxzjUMrtck ( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc, $JWMXOdQgIPYBstNNMfLQHTehuxMKRGKmsWhI )
{
global $mcDB;
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT `default_server_id` FROM `multics_server_emulators` WHERE `emulator_id` = \'%d\' AND `master_server_id` = \'%d\'", $JWMXOdQgIPYBstNNMfLQHTehuxMKRGKmsWhI, $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
$EuvToTRHFhXPtMYzmUwPOXYuOLIStLWA = intval( $mcDB->iycjdDvSoqgLkyJNknsfSqnsRpysAuGjvCAJk( ) );
$roZfphrbRciTKEYMqDDHmudrSgbNGKIclfJ = AgnUUBeUpHEzNqbLspCaygaKysReDQiBf( $EuvToTRHFhXPtMYzmUwPOXYuOLIStLWA );
if ( is_array( $roZfphrbRciTKEYMqDDHmudrSgbNGKIclfJ ) )
{
if ( $roZfphrbRciTKEYMqDDHmudrSgbNGKIclfJ[ \'port\' ] == 0 )
$roZfphrbRciTKEYMqDDHmudrSgbNGKIclfJ[ \'port\' ] = \'*\';
return $roZfphrbRciTKEYMqDDHmudrSgbNGKIclfJ;
}
return false;
}
return false;
}
function QFMluUTpWBQcmkeXrYTXjEPujFcVLwSXRik ( $EuvToTRHFhXPtMYzmUwPOXYuOLIStLWA, $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu = array() )
{
global $mcDB;
if ( empty( $UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu ) )
{
$UhdkqnTQnEoyfBWewLEhdfWfwOVxxofwLJu = AgnUUBeUpHEzNqbLspCaygaKysReDQiBf( $EuvToTRHFhXPtMYzmUwPOXYuOLIStLWA );
}
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "DELETE FROM `multics_servers` WHERE `id` = \'%d\'", $EuvToTRHFhXPtMYzmUwPOXYuOLIStLWA );
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `multics_server_emulators` SET `default_server_id` = 0 WHERE `default_server_id` = \'%d\'", $EuvToTRHFhXPtMYzmUwPOXYuOLIStLWA );
}
function hQFiMCFNDMzqLhPxRSyGZALDYruATg ( $BmTpyYBArMKQPCRSLcVAzQpjGdCmhEZIDc, $VlltVwtLJMZirljrQVEZDgsXdFapHKQ )
{
global $mcDB;
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "UPDATE `lines` SET `server_id` = \'%d\' WHERE `server_id` = \'%d\'", $VlltVwtLJMZirljrQVEZDgsXdFapHKQ, $BmTpyYBArMKQPCRSLcVAzQpjGdCmhEZIDc );
}
function LRRvJRBocmjnEzgAdfYcVBQNajQyraJvPfM ( $EuvToTRHFhXPtMYzmUwPOXYuOLIStLWA )
{
global $mcDB;
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT count(id) FROM `lines` WHERE `server_id` = \'%d\'", $EuvToTRHFhXPtMYzmUwPOXYuOLIStLWA );
return $mcDB->iycjdDvSoqgLkyJNknsfSqnsRpysAuGjvCAJk( );
}
function fHsiLcILgHErKJrsTfZEJsHCehNZAjwrQIqOE ( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc = false )
{
global $mcDB;
$LTUlnIWqhHTNQqmsDvWfCHXcTlmyVtfhuuyDppf = array();
if ( ! empty( $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc ) )
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT t1.*,t2.emulator_name FROM `multics_servers` t1,`emulators` t2 WHERE t1.`emulator_id` = t2.`id` AND `master_server_id` = \'%d\'", $zfOHpbrRvMDuFXGWAmyEOzLchxOAEZonYsc );
}
else
{
$mcDB->okIIAkTGwbUuDqjVZeDZLjPlJuLxPCAbQRg( "SELECT t1.*,t2.emulator_name FROM `multics_servers` t1,`emulators` t2 WHERE t1.`emulator_id` = t2.`id`" );
}
if ( $mcDB->mSgFNAoJuzlttvDkYoMsAbRCiKUPbFVEFzU( ) > 0 )
{
$DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl = $mcDB->uRkfhIjOyHziEyCiTLMEUfuMfkXqDIgnaoo( );
foreach ( $DqxWVhFTLNAKTbhfsRUoDwEXckDTaziPWl as $vhFTvdzxPpZQiQAJJtlRbuPQHrcAITvcNdrSEJs )
{
if ( ! is_array( $LTUlnIWqhHTNQqmsDvWfCHXcTlmyVtfhuuyDppf[ $vhFTvdzxPpZQiQAJJtlRbuPQHrcAITvcNdrSEJs[ \'master_server_id\' ] ] ) )
{
$LTUlnIWqhHTNQqmsDvWfCHXcTlmyVtfhuuyDppf[ $vhFTvdzxPpZQiQAJJtlRbuPQHrcAITvcNdrSEJs[ \'master_server_id\' ] ] = array();
}
if ( $vhFTvdzxPpZQiQAJJtlRbuPQHrcAITvcNdrSEJs[ \'port\' ] == 0 )
{
$vhFTvdzxPpZQiQAJJtlRbuPQHrcAITvcNdrSEJs[ \'port\' ] = \'*\';
}
$LTUlnIWqhHTNQqmsDvWfCHXcTlmyVtfhuuyDppf[ $vhFTvdzxPpZQiQAJJtlRbuPQHrcAITvcNdrSEJs[ \'master_server_id\' ] ][ ] = $vhFTvdzxPpZQiQAJJtlRbuPQHrcAITvcNdrSEJs;
}
}
return $LTUlnIWqhHTNQqmsDvWfCHXcTlmyVtfhuuyDppf;
}
function tMKOaCRnlddBinWvlkGmWMZHYFTWPS ( $olxQYtqCxlDHwTVzSsVZqigaedvcEoXVowkRg = null )
{
$uFLXefZOWIgZuJlXtDRSwjGCUVuSYHnzuU = array( 1 => "Administrator", 2 => "Normal User", 3 => "Banned" );
$sxrEMJLCtAHUsbhglwaKdFpNiPOyOH = "";
return $sxrEMJLCtAHUsbhglwaKdFpNiPOyOH;
}
function nAxOvXXUOWhRJMcBHuHLkVzvwveLTFvrlf ( $ohPnetUvJCPtOjwymIltrcNUnhPUXzBU, $rKtjjytgRkFCZvsYCbiuXywNLejYVPlhNM, $PyYnjlYDTiXgMhqpnJBWvdosggonHrWoDBpXiPp, $CphMeSrTExlZCaZxjDLyhNifxgILplQebFJA )
{
$kmFAlcgmXFPRdUJfdCDogfzWChxUcTebylg = giVihcIAplDDhWVfapZXkdopkxjXNtULY( $ohPnetUvJCPtOjwymIltrcNUnhPUXzBU, $PyYnjlYDTiXgMhqpnJBWvdosggonHrWoDBpXiPp, $rKtjjytgRkFCZvsYCbiuXywNLejYVPlhNM, $CphMeSrTExlZCaZxjDLyhNifxgILplQebFJA, \'editor\' );
if ( $kmFAlcgmXFPRdUJfdCDogfzWChxUcTebylg )
{
if ( stristr( $kmFAlcgmXFPRdUJfdCDogfzWChxUcTebylg, "Multi" ) )
{
if ( preg_match( "/ |