コード例 #1
0
ファイル: setup.php プロジェクト: jprice/EHCP
function newmail_optpage_register_block()
{
    // Gets added to the user's OPTIONS page.
    global $optpage_blocks;
    if (!soupNazi()) {
        /* Register Squirrelspell with the $optionpages array. */
        $optpage_blocks[] = array('name' => _("NewMail Options"), 'url' => SM_PATH . 'plugins/newmail/newmail_opt.php', 'desc' => _("This configures settings for playing sounds and/or showing popup windows when new mail arrives."), 'js' => TRUE);
    }
}
コード例 #2
0
ファイル: setup.php プロジェクト: jprice/EHCP
function ehcp_change_pass_optpage_register_block()
{
    // Gets added to the user's OPTIONS page.
    global $optpage_blocks;
    if (!soupNazi()) {
        /* Register Squirrelspell with the $optionpages array. */
        $optpage_blocks[] = array('name' => _("Ehcp Change Password"), 'url' => SM_PATH . 'plugins/ehcp_change_pass/ehcp_change_pass_opt.php', 'desc' => _("This configures settings for Change new EHCP email password."), 'js' => TRUE);
    }
}
コード例 #3
0
ファイル: setup.php プロジェクト: jprice/EHCP
/**
 * This function adds a "Check Spelling" link to the "Compose" row
 * during message composition.
 *
 * @return void
 */
function squirrelspell_setup()
{
    /**
     * Check if this browser is capable of displaying SquirrelSpell
     * correctly.
     */
    if (!soupNazi()) {
        /**
         * Some people may choose to disable javascript even though their
         * browser is capable of using it. So these freaks don't complain,
         * use document.write() so the "Check Spelling" button is not
         * displayed if js is off in the browser.
         */
        echo "<script type=\"text/javascript\">\n" . "<!--\n" . 'document.write("<input type=\\"button\\" value=\\"' . _("Check Spelling") . '\\" name=\\"check_spelling\\" onclick=\\"window.open(\'../plugins/squirrelspell/sqspell_' . 'interface.php\', \'sqspell\', \'status=yes,width=550,height=370,' . 'resizable=yes\')\\" />");' . "\n" . "//-->\n" . "</script>\n";
    }
}