/** * Prints HTML Code for explanation */ function PageMainCode() { $sCode = ''; switch ($_GET['explain']) { case 'Unconfirmed': $sCode = _t("_ATT_UNCONFIRMED_E"); break; case 'Approval': $sCode = _t("_ATT_APPROVAL_E"); break; case 'Active': $sCode = _t("_ATT_ACTIVE_E"); break; case 'Rejected': $sCode = _t("_ATT_REJECTED_E"); break; case 'Suspended': $sCode = _t("_ATT_SUSPENDED_E", $GLOBALS['site']['title']); break; case 'membership': $sCode = membershipActionsList((int) $_GET['type']); break; } return $GLOBALS['oSysTemplate']->parseHtmlByName('default_padding.html', array('content' => $sCode)); }
/** * Prints HTML Code for explanation */ function PageMainCode() { global $site; global $oTemplConfig; $b = "<table width=" . ($oTemplConfig->expl_db_w - 5) . " class=text cellspacing=0 cellpadding=0><td width=5><img src={$site['images']}spacer.gif alt=\"\" width=5></td><td width=" . ($oTemplConfig->expl_db_w - 15) . "><div width=" . ($oTemplConfig->expl_db_w - 15) . " align=justify>"; $a = "</div></td><td width=5><img src={$site['images']}spacer.gif alt=\"\" width=5></td></table>"; switch ($_GET['explain']) { case 'Unconfirmed': return $b . _t("_ATT_UNCONFIRMED_E") . $a; case 'Approval': return $b . _t("_ATT_APPROVAL_E") . $a; case 'Active': return $b . _t("_ATT_ACTIVE_E") . $a; case 'Rejected': return $b . _t("_ATT_REJECTED_E") . $a; case 'Suspended': return $b . _t("_ATT_SUSPENDED_E", $site['title']) . $a; case 'membership': return membershipActionsList((int) $_GET['type']); } return ""; }
/** * Prints HTML Code for explanation */ function PageMainCode() { global $site; global $oTemplConfig; $b = "<table width=" . ($oTemplConfig->expl_db_w - 5) . " class=text cellspacing=0 cellpadding=0><td width=5><img src={$site['images']}spacer.gif width=5></td><td width=" . ($oTemplConfig->expl_db_w - 15) . "><div width=" . ($oTemplConfig->expl_db_w - 15) . " align=justify>"; $a = "</div></td><td width=5><img src={$site['images']}spacer.gif width=5></td></table>"; switch ($_GET['explain']) { case 'Unconfirmed': return $b . _t("_ATT_UNCONFIRMED_E") . $a; case 'Approval': return $b . _t("_ATT_APPROVAL_E") . $a; case 'Active': return $b . _t("_ATT_ACTIVE_E") . $a; case 'Rejected': return $b . _t("_ATT_REJECTED_E") . $a; case 'Suspended': return $b . _t("_ATT_SUSPENDED_E", $site['title']) . $a; case 'credits': return $b . _t("_MEMBERSHIP_CREDITS_E") . $a; case 'membership': return membershipActionsList((int) $_GET['type']); case 'im_up': return im_up(); case 'imadd': ?> <script type="text/javascript"> <!-- var amount = 8 function pause() { myID = setTimeout( "close_win()", amount*1000 ) } function close_win() { window.close() } pause(); //--> </script> <?php $ID = (int) $_GET['ID']; db_res("INSERT INTO IMessages SET IDFrom = " . (int) $_COOKIE['memberID'] . ", IDTo = {$ID}, `When`=NOW(), Msg=''"); return $b . _t("_User was added to im") . $a; } return ""; }