Ejemplo n.º 1
0
 echo "        <table class=\"box\" width=\"100%\">\n";
 echo "          <tr>\n";
 echo "            <td align=\"left\" class=\"posthead\">\n";
 echo "              <table class=\"posthead\" width=\"100%\">\n";
 echo "                <tr>\n";
 echo "                  <td align=\"left\" class=\"subhead\">", gettext("Forum Options"), "</td>\n";
 echo "                </tr>\n";
 echo "              </table>\n";
 echo "              <table class=\"posthead\" width=\"100%\">\n";
 echo "                <tr>\n";
 echo "                  <td align=\"center\">\n";
 echo "                    <table class=\"posthead\" width=\"95%\">\n";
 if ($available_styles = styles_get_available()) {
     echo "                      <tr>\n";
     echo "                        <td align=\"left\" class=\"posthead\">", gettext("Style"), ":</td>\n";
     echo "                        <td align=\"left\">", form_dropdown_array("style", htmlentities_array($available_styles), isset($new_user_prefs['STYLE']) && style_exists($new_user_prefs['STYLE']) ? htmlentities_array($new_user_prefs['STYLE']) : htmlentities_array(forum_get_setting('default_style', null, 'default')), "", "register_dropdown"), "</td>\n";
     echo "                      </tr>\n";
 }
 echo "                      <tr>\n";
 echo "                        <td align=\"left\" class=\"posthead\">", gettext("Forum emoticons"), " [<a href=\"display_emoticons.php?webtag={$webtag}\" target=\"_blank\" class=\"popup 500x400\">", gettext("Preview"), "</a>]:</td>\n";
 echo "                        <td align=\"left\">", form_dropdown_array("emoticons", htmlentities_array($available_emoticons), isset($new_user_prefs['EMOTICONS']) && in_array($new_user_prefs['EMOTICONS'], array_keys($available_emoticons)) ? htmlentities_array($new_user_prefs['EMOTICONS']) : htmlentities_array(forum_get_setting('default_emoticons', null, 'default')), "", "register_dropdown"), "</td>\n";
 echo "                      </tr>\n";
 echo "                      <tr>\n";
 echo "                        <td align=\"left\" class=\"posthead\" width=\"255\">", gettext("Preferred language"), ":</td>\n";
 echo "                        <td align=\"left\">", form_dropdown_array("language", htmlentities_array($available_langs), isset($new_user_prefs['LANGUAGE']) ? htmlentities_array($new_user_prefs['LANGUAGE']) : htmlentities_array(forum_get_setting('default_language', null, 'en')), "", "register_dropdown"), "</td>\n";
 echo "                      </tr>\n";
 echo "                      <tr>\n";
 echo "                        <td align=\"left\" colspan=\"2\">&nbsp;</td>\n";
 echo "                      </tr>\n";
 echo "                    </table>\n";
 echo "                  </td>\n";
Ejemplo n.º 2
0
function html_get_user_style_path()
{
    static $user_style = false;
    if ($user_style === false) {
        if (!($user_style = session::get_value('STYLE'))) {
            $user_style = html_get_cookie('forum_style', null, forum_get_setting('default_style', null, 'default'));
        }
        if (!style_exists($user_style)) {
            $user_style = forum_get_setting('default_style', null, 'default');
        }
    }
    return $user_style;
}
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\" width=\"220\">", gettext("Forum Keywords"), ":</td>\n";
echo "                        <td align=\"left\">", form_input_text("forum_keywords", isset($forum_settings['forum_keywords']) ? htmlentities_array($forum_settings['forum_keywords']) : '', 42, 80), "&nbsp;</td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\" width=\"220\">", gettext("Forum Content Rating"), ":</td>\n";
echo "                        <td align=\"left\">", form_dropdown_array("forum_content_rating", htmlentities_array($content_ratings_array), isset($forum_settings['forum_content_rating']) ? htmlentities_array($forum_settings['forum_content_rating']) : 0), "</td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\" colspan=\"2\">&nbsp;</td>\n";
echo "                      </tr>\n";
if (($available_styles = styles_get_available()) !== false) {
    echo "                      <tr>\n";
    echo "                        <td align=\"left\" width=\"220\">", gettext("Default Style"), ":</td>\n";
    echo "                        <td align=\"left\">", form_dropdown_array("default_style", htmlentities_array($available_styles), isset($forum_settings['default_style']) && style_exists($forum_settings['default_style']) ? htmlentities_array($forum_settings['default_style']) : 'default'), "</td>\n";
    echo "                      </tr>\n";
}
echo "                      <tr>\n";
echo "                        <td align=\"left\" width=\"220\">", gettext("Default Emoticons"), " [<a href=\"display_emoticons.php?webtag={$webtag}\" target=\"_blank\" class=\"popup 500x400\">", gettext("Preview"), "</a>]:</td>\n";
echo "                        <td align=\"left\">", form_dropdown_array("default_emoticons", htmlentities_array($available_emoticons), isset($forum_settings['default_emoticons']) && in_array($forum_settings['default_emoticons'], array_keys($available_emoticons)) ? $forum_settings['default_emoticons'] : 'none'), "</td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\" width=\"220\">", gettext("Default Language"), ":</td>\n";
echo "                        <td align=\"left\">", form_dropdown_array("default_language", htmlentities_array($available_langs), isset($forum_settings['default_language']) && in_array($forum_settings['default_language'], $available_langs) ? $forum_settings['default_language'] : 'en'), "</td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\" colspan=\"2\">&nbsp;</td>\n";
echo "                      </tr>\n";
echo "                    </table>\n";
echo "                  </td>\n";
Ejemplo n.º 4
0
function html_get_user_style_path()
{
    static $user_style = false;
    if ($user_style === false) {
        if (isset($_SESSION['STYLE']) && strlen(trim($_SESSION['STYLE'])) > 0) {
            $user_style = $_SESSION['STYLE'];
        } else {
            $user_style = forum_get_setting('default_style', 'strlen', 'default');
        }
        if (!style_exists($user_style)) {
            $user_style = forum_get_setting('default_style', 'strlen', 'default');
        }
    }
    return $user_style;
}