function display_html($formname, $textarea, $html = TRUE, $colors = FALSE, $images = FALSE, $folder = "") { global $locale; $res = ""; if ($html) { $res .= "<div class='btn-group m-b-10'>\n"; $res .= "<button type='button' value='b' class='btn btn-sm btn-default button' style='font-weight:bold;' onclick=\"addText('" . $textarea . "', '<strong>', '</strong>', '" . $formname . "');\">b</button>\n"; $res .= "<button type='button' value='i' class='btn btn-sm btn-default button' style='font-style:italic;' onclick=\"addText('" . $textarea . "', '<i>', '</i>', '" . $formname . "');\">i</button>\n"; $res .= "<button type='button' value='u' class='btn btn-sm btn-default button' style='text-decoration:underline;' onclick=\"addText('" . $textarea . "', '<u>', '</u>', '" . $formname . "');\">u</button>\n"; $res .= "<button type='button' value='link' class='btn btn-sm btn-default button' onclick=\"addText('" . $textarea . "', '<a href=\\'', '\\' target=\\'_blank\\'>Link</a>', '" . $formname . "');\">link</button>\n"; $res .= "<button type='button' value='img' class='btn btn-sm btn-default button' onclick=\"addText('" . $textarea . "', '<img src=\\'" . str_replace("../", "", $folder) . "', '\\' style=\\'margin:5px\\' alt=\\'\\' align=\\'left\\' />', '" . $formname . "');\">img</button>\n"; $res .= "<button type='button' value='center' class='btn btn-sm btn-default button' onclick=\"addText('" . $textarea . "', '<center>', '</center>', '" . $formname . "');\">center</button>\n"; $res .= "<button type='button' value='small' class='btn btn-sm btn-default button' onclick=\"addText('" . $textarea . "', '<span class=\\'small\\'>', '</span>', '" . $formname . "');\">small</button>\n"; $res .= "<button type='button' value='small2' class='btn btn-sm btn-default button' onclick=\"addText('" . $textarea . "', '<span class=\\'small2\\'>', '</span>', '" . $formname . "');\">small2</button>\n"; $res .= "<button type='button' value='alt' class='btn btn-sm btn-default button' onclick=\"addText('" . $textarea . "', '<span class=\\'alt\\'>', '</span>', '" . $formname . "');\">alt</button>\n"; $res .= "</div>\n"; } if ($colors) { $color_array = array('maroon' => $locale['html402'], 'red' => $locale['html403'], 'orange' => $locale['html404'], 'brown' => $locale['html405'], 'yellow' => $locale['html406'], 'green' => $locale['html407'], 'lime' => $locale['html408'], 'olive' => $locale['html409'], 'cyan' => $locale['html410'], 'blue' => $locale['html411'], 'navy' => $locale['html412'], 'purple' => $locale['html413'], 'violet' => $locale['html414'], 'black' => $locale['html415'], 'gray' => $locale['html416'], 'silver' => $locale['html417'], 'white' => $locale['html418']); $placeholder = $locale['html400']; $res .= form_select('', "setcolor-{$formname}", "setcolor-{$formname}", $color_array, '', array('placeholder' => $placeholder, 'class' => 'pull-left m-r-10', 'allowclear' => 1)); add_to_jquery("\r\n function color(item) {\r\n if(!item.id) {return item.text;}\r\n var color = item.text;\r\n return '<table><tr><td><label style=\\'display: inline-block; width: 18px; height:18px; margin:3px; margin-right:5px; padding: 0px 8px; background:'+item.text+'\\'></label>'+item.text+'</td></tr></table>';\r\n }\r\n \$('#setcolor-{$formname}').select2({\r\n formatSelection: color,\r\n escapeMarkup: function(m) { return m; },\r\n formatResult: color,\r\n placeholder:'{$placeholder}',\r\n allowClear:true,\r\n });\r\n \$('#setcolor-{$formname}').on('change', function(e){\r\n addText('" . $textarea . "', '<span style=\\'color:' + this.options[this.selectedIndex].value + '\\'>', '</span>', '" . $formname . "');this.selectedIndex=0;\r\n \$(this).select2({\r\n formatSelection: color,\r\n escapeMarkup: function(m) { return m; },\r\n formatResult: color,\r\n placeholder:'{$placeholder}',\r\n allowClear:true}).val('');\r\n });\r\n "); } if ($images && $folder) { $image_files = makefilelist($folder, ".|..|index.php", TRUE); $image_list = makefileopts($image_files); $res .= "<select name='insertimage' class='form-control textbox' style='margin-top:5px' onchange=\"insertText('" . $textarea . "', '<img src=\\'" . str_replace("../", "", $folder) . "' + this.options[this.selectedIndex].value + '\\' alt=\\'\\' style=\\'margin:5px\\' align=\\'left\\' />', '" . $formname . "');this.selectedIndex=0;\">\n"; $res .= "<option value=''>" . $locale['html401'] . "</option>\n" . $image_list . "</select>\n"; } return $res; }
function display_html($formname, $textarea, $html = true, $colors = false, $images = false, $folder = "") { global $locale, $settings; // Pimped: $settings added $res = ""; if ($html) { $res .= "<input type='button' value='b' class='button' style='font-weight:bold;width:25px' onclick=\"addText('" . $textarea . "', '<strong>', '</strong>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='i' class='button' style='font-style:italic;width:25px' onclick=\"addText('" . $textarea . "', '<i>', '</i>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='u' class='button' style='text-decoration:underline;width:25px' onclick=\"addText('" . $textarea . "', '<u>', '</u>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='link' class='button' style='width:35px' onclick=\"addText('" . $textarea . "', '<a href=\\'', '\\' target=\\'_blank\\'>Link</a>', '" . $formname . "');\" />\n"; if ($settings['enable_lightbox'] == "1") { $res .= "<input type='button' value='img' class='button' style='width:35px' onclick=\"addText('" . $textarea . "', '<a class=\\'fancybox\\' href=\\'" . str_replace("../", "", $folder) . "\\'><img src=\\'" . str_replace("../", "", $folder) . "', '\\' style=\\'margin:5px\\' width=\\'300\\' height=\\'200\\' align=\\'left\\' rel=\\'group\\' /></a>', '" . $formname . "');\" />\n"; // Pimped } else { $res .= "<input type='button' value='img' class='button' style='width:35px' onclick=\"addText('" . $textarea . "', '<img src=\\'" . str_replace("../", "", $folder) . "', '\\' style=\\'margin:5px\\' align=\\'left\\' />', '" . $formname . "');\" />\n"; } $res .= "<input type='button' value='center' class='button' style='width:45px' onclick=\"addText('" . $textarea . "', '<center>', '</center>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='small' class='button' style='width:40px' onclick=\"addText('" . $textarea . "', '<span class=\\'small\\'>', '</span>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='small2' class='button' style='width:45px' onclick=\"addText('" . $textarea . "', '<span class=\\'small2\\'>', '</span>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='alt' class='button' style='width:25px' onclick=\"addText('" . $textarea . "', '<span class=\\'alt\\'>', '</span>', '" . $formname . "');\" />\n"; } if ($html && ($colors || $images)) { $res .= "<br />\n"; } if ($colors) { $res .= "<select name='setcolor' class='textbox' style='margin-top:5px' onchange=\"addText('" . $textarea . "', '<span style=\\'color:' + this.options[this.selectedIndex].value + '\\'>', '</span>', '" . $formname . "');this.selectedIndex=0;\">\n"; $res .= "<option value=''>" . $locale['html400'] . "</option>\n"; $res .= "<option value='maroon' style='color:maroon'>Maroon</option>\n"; $res .= "<option value='red' style='color:red'>Red</option>\n"; $res .= "<option value='orange' style='color:orange'>Orange</option>\n"; $res .= "<option value='brown' style='color:brown'>Brown</option>\n"; $res .= "<option value='yellow' style='color:yellow'>Yellow</option>\n"; $res .= "<option value='green' style='color:green'>Green</option>\n"; $res .= "<option value='lime' style='color:lime'>Lime</option>\n"; $res .= "<option value='olive' style='color:olive'>Olive</option>\n"; $res .= "<option value='cyan' style='color:cyan'>Cyan</option>\n"; $res .= "<option value='blue' style='color:blue'>Blue</option>\n"; $res .= "<option value='navy' style='color:navy'>Navy Blue</option>\n"; $res .= "<option value='purple' style='color:purple'>Purple</option>\n"; $res .= "<option value='violet' style='color:violet'>Violet</option>\n"; $res .= "<option value='black' style='color:black'>Black</option>\n"; $res .= "<option value='gray' style='color:gray'>Gray</option>\n"; $res .= "<option value='silver' style='color:silver'>Silver</option>\n"; $res .= "<option value='white' style='color:white'>White</option>\n"; $res .= "</select>\n"; } if ($images && $folder) { $image_files = makefilelist($folder, ".|..|index.php", true); $image_list = makefileopts($image_files); $res .= "<select name='insertimage' class='textbox' style='margin-top:5px' onchange=\"insertText('" . $textarea . "', '<img src=\\'" . str_replace("../", "", $folder) . "' + this.options[this.selectedIndex].value + '\\' style=\\'margin:5px\\' align=\\'left\\' />', '" . $formname . "');this.selectedIndex=0;\">\n"; $res .= "<option value=''>" . $locale['html401'] . "</option>\n" . $image_list . "</select>\n"; } return $res; }
function display_html($formname, $textarea, $html = true, $colors = false, $images = false, $folder = "") { global $locale; $res = ""; if ($html) { $res .= "<input type='button' value='b' class='button' style='font-weight:bold;' onclick=\"addText('" . $textarea . "', '<strong>', '</strong>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='i' class='button' style='font-style:italic;' onclick=\"addText('" . $textarea . "', '<i>', '</i>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='u' class='button' style='text-decoration:underline;' onclick=\"addText('" . $textarea . "', '<u>', '</u>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='link' class='button' onclick=\"addText('" . $textarea . "', '<a href=\\'', '\\' target=\\'_blank\\'>Link</a>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='img' class='button' onclick=\"addText('" . $textarea . "', '<img src=\\'" . str_replace("../", "", $folder) . "', '\\' style=\\'margin:5px\\' alt=\\'\\' align=\\'left\\' />', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='center' class='button' onclick=\"addText('" . $textarea . "', '<center>', '</center>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='small' class='button' onclick=\"addText('" . $textarea . "', '<span class=\\'small\\'>', '</span>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='small2' class='button' onclick=\"addText('" . $textarea . "', '<span class=\\'small2\\'>', '</span>', '" . $formname . "');\" />\n"; $res .= "<input type='button' value='alt' class='button' onclick=\"addText('" . $textarea . "', '<span class=\\'alt\\'>', '</span>', '" . $formname . "');\" />\n"; } if ($html && ($colors || $images)) { $res .= "<br />\n"; } if ($colors) { $res .= "<select name='setcolor' class='textbox' style='margin-top:5px' onchange=\"addText('" . $textarea . "', '<span style=\\'color:' + this.options[this.selectedIndex].value + '\\'>', '</span>', '" . $formname . "');this.selectedIndex=0;\">\n"; $res .= "<option value=''>" . $locale['html400'] . "</option>\n"; $res .= "<option value='maroon' style='color:maroon'>" . $locale['html402'] . "</option>\n"; $res .= "<option value='red' style='color:red'>" . $locale['html403'] . "</option>\n"; $res .= "<option value='orange' style='color:orange'>" . $locale['html404'] . "</option>\n"; $res .= "<option value='brown' style='color:brown'>" . $locale['html405'] . "</option>\n"; $res .= "<option value='yellow' style='color:yellow'>" . $locale['html406'] . "</option>\n"; $res .= "<option value='green' style='color:green'>" . $locale['html407'] . "</option>\n"; $res .= "<option value='lime' style='color:lime'>" . $locale['html408'] . "</option>\n"; $res .= "<option value='olive' style='color:olive'>" . $locale['html409'] . "</option>\n"; $res .= "<option value='cyan' style='color:cyan'>" . $locale['html410'] . "</option>\n"; $res .= "<option value='blue' style='color:blue'>" . $locale['html411'] . "</option>\n"; $res .= "<option value='navy' style='color:navy'>" . $locale['html412'] . "</option>\n"; $res .= "<option value='purple' style='color:purple'>" . $locale['html413'] . "</option>\n"; $res .= "<option value='violet' style='color:violet'>" . $locale['html414'] . "</option>\n"; $res .= "<option value='black' style='color:black'>" . $locale['html415'] . "</option>\n"; $res .= "<option value='gray' style='color:gray'>" . $locale['html416'] . "</option>\n"; $res .= "<option value='silver' style='color:silver'>" . $locale['html417'] . "</option>\n"; $res .= "<option value='white' style='color:white'>" . $locale['html418'] . "</option>\n"; $res .= "</select>\n"; } if ($images && $folder) { $image_files = makefilelist($folder, ".|..|index.php", true); $image_list = makefileopts($image_files); $res .= "<select name='insertimage' class='textbox' style='margin-top:5px' onchange=\"insertText('" . $textarea . "', '<img src=\\'" . str_replace("../", "", $folder) . "' + this.options[this.selectedIndex].value + '\\' alt=\\'\\' style=\\'margin:5px\\' align=\\'left\\' />', '" . $formname . "');this.selectedIndex=0;\">\n"; $res .= "<option value=''>" . $locale['html401'] . "</option>\n" . $image_list . "</select>\n"; } return $res; }
echo "</select></td>\n"; echo "</tr>\n<tr>\n"; echo "<td width='50%' class='tbl'>" . $locale['417'] . "</td>\n"; echo "<td width='50%' class='tbl'><select name='localeset' class='textbox'>\n"; echo makefileopts($locale_files, $settings2['locale']) . "\n"; echo "</select></td>\n"; echo "</tr>\n<tr>\n"; echo "<td width='50%' class='tbl'>" . $locale['418']; if ($userdata['user_theme'] == "Default") { if ($settings2['theme'] != str_replace(THEMES, "", substr(THEME, 0, strlen(THEME) - 1))) { echo "<div class='admin-message'>" . $locale['global_302'] . "</div>\n"; } } echo "</td>\n"; echo "<td width='50%' class='tbl'><select name='theme' class='textbox'>\n"; echo makefileopts($theme_files, $settings2['theme']) . "\n"; echo "</select></td>\n"; echo "</tr>\n<tr>\n"; echo "<td width='50%' class='tbl'>" . $locale['419'] . "</td>\n"; echo "<td width='50%' class='tbl'><select name='default_search' class='textbox'>\n[DEFAULT_SEARCH]</select></td>\n"; echo "</tr>\n<tr>\n"; echo "<td valign='top' width='50%' class='tbl'>" . $locale['420'] . "<br /><span class='small2'>" . $locale['424'] . "</span></td>\n"; echo "<td width='50%' class='tbl'><textarea name='exclude_left' cols='50' rows='5' class='textbox' style='width:230px;'>" . $settings2['exclude_left'] . "</textarea></td>\n"; echo "</tr>\n<tr>\n"; echo "<td valign='top' width='50%' class='tbl'>" . $locale['421'] . "<br /><span class='small2'>" . $locale['424'] . "</span></td>\n"; echo "<td width='50%' class='tbl'><textarea name='exclude_upper' cols='50' rows='5' class='textbox' style='width:230px;'>" . $settings2['exclude_upper'] . "</textarea></td>\n"; echo "</tr>\n<tr>\n"; echo "<td valign='top' width='50%' class='tbl'>" . $locale['422'] . "<br /><span class='small2'>" . $locale['424'] . "</span></td>\n"; echo "<td width='50%' class='tbl'><textarea name='exclude_lower' cols='50' rows='5' class='textbox' style='width:230px;'>" . $settings2['exclude_lower'] . "</textarea></td>\n"; echo "</tr>\n<tr>\n"; echo "<td valign='top' width='50%' class='tbl'>" . $locale['423'] . "<br /><span class='small2'>" . $locale['424'] . "</span></td>\n";
<td width="120px"><?php echo _t("Template"); ?> :</td> <td><select name="template"><?php echo makefileopts($templates, $spref->template); ?> </select></td> </tr> <tr> <td width="120px"><?php echo _t("Startpage"); ?> :</td> <td><select name="startapp"><?php echo makefileopts($apps, $wpref->startapp); ?> </select></td> </tr> <tr> <td width="120px"><?php echo _t("Default language"); ?> :</td> <td><select name="language"><?php echo getLanguages($wpref->language); ?> </select></td> </tr> <tr> <td><?php
echo "</table></form>\n"; } else { echo "<div class='admin-message'>\n"; //echo "<form action='".$formaction."' method='post'>\n"; echo openform('why_no_formname', 'why_no_formname', 'post', $formaction, array('downtime' => 0)); echo "<span style='color:red;font-weight:bold;'>" . sprintf($locale['502'], $upload_dir) . "</span><br />" . $locale['503'] . "<br />"; echo form_button($locale['504'], 'refresh2', 'refresh2', $locale['504'], array('class' => 'btn-primary btn-block')); //echo "<input type='submit' class='button' value='".$locale['504']."' />"; echo "</form>\n"; echo "</div>\n"; } echo "</div>"; echo "<div class='tbl2' id='show_multiform' style='font-weight:bold;cursor:pointer;margin-bottom:2px;'>" . $locale['495'] . "</div>"; echo "<div id='multi_upload' class='image_upload' style='padding:15px 0;'>"; $multi_files = makefilelist($upload_dir, ".|..|index.php", TRUE, "files", "php|js"); $multi_opts = makefileopts($multi_files); if ($can_upload == TRUE) { //echo "<form name='multiform' method='post' action='".."' enctype='multipart/form-data'>\n"; echo openform('multiform', 'multiform', 'post', FUSION_SELF . $aidlink . "&album_id=" . $_GET['album_id'], array('downtime' => 0, 'enctype' => 1)); echo "<table class='table table-responsive tbl-border center' cellpadding='2' cellspacing='0'>\n"; echo $multi_opts != "" ? "<tr>\n<td class='tbl1' colspan='2' style='text-align:center;'>" . $locale['496'] . "</td>\n</tr>\n" : ""; echo "<tr>\n<td class='tbl1' colspan='2' style='text-align:left;'>"; echo sprintf($locale['505'], $upload_dir) . "<br />"; echo sprintf($locale['506'], $album_title) . "<br />"; echo $locale['507'] . "<br />"; echo "</td>\n</tr>\n"; if ($multi_opts != "") { echo "<tr>\n<td class='tbl1' style='text-align:right;vertical-align:top;width:20%;'>" . $locale['508'] . "</td>\n"; echo "<td class='tbl1'>"; echo "<select size='10' multiple name='multi_image[]' class='textbox' style='width:90%;'>" . $multi_opts . "</select>"; echo "</td>\n</tr>\n";
echo "</tr>\n<tr>\n"; echo "<td colspan='2' style='height:10px;background-color:#f6a504;'></td>\n"; echo "</tr>\n</table>\n"; echo "<br /><br />\n"; echo "<form name='setupform' method='post' action='setup.php'>\n"; echo "<table align='center' cellpadding='0' cellspacing='1' width='450' class='tbl-border'>\n<tr>\n"; echo "<td class='tbl2'><strong>"; if (isset($_POST['step']) && preg_match("/^[2-6]\$/", $_POST['step'])) { echo $locale['00' . $_POST['step']]; } else { echo $locale['001']; } echo "</strong></td>\n</tr>\n<tr>\n<td class='tbl1' style='text-align:center'>\n"; if (!isset($_POST['step']) || $_POST['step'] == "" || $_POST['step'] == "1") { $locale_files = makefilelist("locale/", ".svn|.|..", true, "folders"); $locale_list = makefileopts($locale_files); echo $locale['010'] . "<br /><br />"; echo "<select name='localeset' class='textbox' style='margin-top:5px'>\n"; echo $locale_list . "</select><br /><br />\n"; echo $locale['011'] . "\n"; echo "</td>\n</tr>\n<tr>\n<td class='tbl2' style='text-align:center'>\n"; echo "<input type='hidden' name='step' value='2' />\n"; echo "<input type='submit' name='next' value='" . $locale['007'] . "' class='button' />\n"; } if (isset($_POST['step']) && $_POST['step'] == "2") { if (!file_exists("config.php")) { if (file_exists("_config.php") && function_exists("rename")) { @rename("_config.php", "config.php"); } else { $handle = fopen("config.php", "w"); fclose($handle);
echo "<input type='text' name='forum_name' value='" . $forum_name . "' class='textbox' style='width:285px;' /></td>\n"; echo "</tr>\n<tr>\n"; echo "<td colspan='2' class='tbl'>" . $locale['521'] . "<br />\n"; echo "<input type='text' name='forum_description' value='" . $forum_description . "' class='textbox' style='width:285px;' /></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl'>" . $locale['522'] . "<br />\n"; echo "<select name='forum_cat' class='textbox' style='width:225px;'>\n" . $cat_opts . "</select></td>\n"; echo "<td width='55' class='tbl'>"; if (!isset($_GET['action']) || $_GET['action'] != "edit") { echo $locale['523'] . "<br />\n<input type='text' name='forum_order' value='" . $forum_order . "' class='textbox' style='width:45px;' />"; echo "</td>\n</tr>\n"; } else { echo "</td></tr>\n"; } if (isset($_GET['action']) && $_GET['action'] == "edit") { $forumIconImages = makefileopts(makefilelist(INFUSIONS . "fusionboard4/images/forum_icons/", ".|..|index.php"), $forum_icon); echo "<tr><td colspan='2' class='tbl'>" . $locale['fb100'] . "<br />\n"; echo "<select name='forum_icon' class='textbox' style='width:285px;' />\n"; echo "<option value=''>---</option>\n{$forumIconImages}\n"; echo "</td>\n"; echo "</tr>\n<tr>\n"; } function renderChildren($parent, $level = 1) { global $forum_parent; $children = ""; $p_res = dbquery("select * from " . DB_PREFIX . "forums f\n\t\t\t\t\tleft join " . DB_PREFIX . "fb_forums f2 on f2.forum_id=f.forum_id\n\t\t\t\t\twhere f2.forum_parent='{$parent}'"); while ($p_data = dbarray($p_res)) { $children .= "<option value='" . $p_data['forum_id'] . "'" . ($p_data['forum_id'] == $forum_parent ? " SELECTED" : "") . ">"; for ($i = $level; $i--; $i > 0) { $children .= "--";
echo "</div>\n"; echo "<!--button -->\n"; echo "<div class='text-right'>\n"; echo "<button type='submit' name='next' value='{$locale}' class='btn btn-primary' /><i class='entypo right-dir'></i> {$locale}</button>\n"; echo "</div>\n"; } function closesetup() { echo "</form>\n"; echo "</aside>\n"; echo "</body>\n</html>\n"; } opensetup(); // Step 1 if (!isset($_POST['step']) || $_POST['step'] == "" || $_POST['step'] == "1") { $locale_list = makefileopts($locale_files, $_POST['localeset']); echo $locale['010'] . "<br /><br />"; echo "<select name='localeset' class='input-sm form-control' style='margin-top:5px'>\n"; echo $locale_list . "</select><br /><br />\n"; echo $locale['011'] . "\n"; echo "</td>\n</tr>\n<tr>\n<td class='tbl2' style='text-align:center'>\n"; echo "<input type='hidden' name='step' value='2' />\n"; renderButton(); } // Step 2 if (isset($_POST['step']) && $_POST['step'] == "2") { if (!file_exists("config.php")) { if (file_exists("_config.php") && function_exists("rename")) { @rename("_config.php", "config.php"); } else { $handle = fopen("config.php", "w");
} $data = dbarray($result); $type_name = stripslash($data['type_name']); $type_icon = $data['type_icon']; $action = FUSION_SELF . $aidlink . "§ion=ratings&update=" . $_GET['edit']; $panel = $locale['fb852']; $button = $locale['fb854']; } else { $type_name = ""; $type_icon = ""; $action = FUSION_SELF . $aidlink . "§ion=ratings"; $panel = $locale['fb851']; $button = $locale['fb853']; } opentable($panel); $iconOpts = makefileopts(makefilelist(INFUSIONS . "fusionboard4/images/forum_icons/", ".|..|index.php|Thumbs.db"), $type_icon); echo "<form action='{$action}' name='ratingForm' method='post'>\n\t\t<table width='300' cellspacing='1' cellpadding='0' class='tbl-border center'>\n\t\t<tr>\n\t\t\t<td class='tbl1'>" . $locale['fb855'] . "</td>\n\t\t\t<td class='tbl2'><input type='text' name='type_name' class='textbox' value='{$type_name}'></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class='tbl1'>" . $locale['fb856'] . "</td>\n\t\t\t<td class='tbl2'><select name='type_icon' class='textbox'>\n\t\t\t{$iconOpts}\n\t\t\t</select></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class='tbl1' colspan='2' style='text-align:center;'>\n\t\t\t<input type='submit' name='goRating' value='{$button}' class='button'>\n\t\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t</form>\n"; closetable(); tablebreak(); opentable($locale['fb860']); $result = dbquery("select * from " . DB_PREFIX . "fb_rate_type"); if (dbrows($result)) { echo "<table width='300' cellspacing='1' cellpadding='0' class='tbl-border center'>\n\t\t\t<tr>\n\t\t\t\t<td class='tbl2' style='font-weight:bold;'>" . $locale['fb855'] . "</td>\n\t\t\t\t<td class='tbl2' style='font-weight:bold;'>" . $locale['fb856'] . "</td>\n\t\t\t\t<td class='tbl2' style='font-weight:bold;'>" . $locale['fb857'] . "</td>\n\t\t\t</tr>\n"; while ($data = dbarray($result)) { echo "<tr>\n\t\t\t\t\t<td class='tbl1'>" . stripslash($data['type_name']) . "</td>\n\t\t\t\t\t<td class='tbl1'><img src='" . INFUSIONS . "fusionboard4/images/forum_icons/" . $data['type_icon'] . "' alt=''></td>\n\t\t\t\t\t<td class='tbl1'><a href='" . FUSION_SELF . $aidlink . "&section=ratings&edit=" . $data['type_id'] . "'>" . $locale['fb858'] . "</a> :: \n\t\t\t\t\t<a href='" . FUSION_SELF . $aidlink . "&section=ratings&del=" . $data['type_id'] . "' onclick=\"return confirm('" . $locale['fb869'] . "');\">" . $locale['fb859'] . "</a></td>\n\t\t\t\t</tr>\n"; } echo "</table>\n"; } else { echo "<div align='center'>" . $locale['fb861'] . "</div>\n"; } closetable();
echo "<option value='" . $vote1_user_id[$i] . "'>" . $vote1_user_name[$i] . "</option>\n"; } echo "</select>\n"; echo "<select multiple='multiple' size='10' name='votelist2' id='votelist2' class='textbox' style='width:140px' onchange=\"addvoteUser('votelist1','votelist2');\">\n"; if (isset($vote2_user_id) && is_array($vote2_user_id)) { for ($i = 0; $i < count($vote2_user_id); $i++) { echo "<option value='" . $vote2_user_id[$i] . "'>" . $vote2_user_name[$i] . "</option>\n"; } } echo "<input type='hidden' name='forum_vote' />\n"; echo "</div>"; // Forum Cat Images if ($settings['forum_cat_icons'] == "1") { $forum_cat_image = $forum_cat_image != "" ? $forum_cat_image : "default.png"; $image_files = makefilelist(IMAGES_FC, ".|..|index.php", true); $image_list = makefileopts($image_files, $forum_cat_image); echo "<div class='forum_admin'>"; echo "<strong>" . $locale['535'] . "</strong><br />\n"; echo "<select name='forum_image' class='textbox' style='width:200px;' onchange=\"PreviewForumCat();\" id='forumcat_image'>\n" . $image_list . "</select>"; echo "<br /><br /><strong>" . $locale['536'] . "</strong><br /><br />"; echo "<img src='" . ($forum_cat_image ? IMAGES_FC . $forum_cat_image : IMAGES_FC . "default.png") . "' alt='ForumCat' style='border:none' id='forumcat_preview' />"; echo "</div>"; echo "<script type='text/javascript'>\n"; echo "function PreviewForumCat() {\n"; echo "\tvar selectForumCat = document.getElementById('forumcat_image');\n"; echo "\tvar imageForumCat = document.getElementById('forumcat_preview');\n"; echo "\tvar optionValue = selectForumCat.options[selectForumCat.selectedIndex].value;\n"; echo "\tif (optionValue!='') {\n"; echo "\t\timageForumCat.src = '" . IMAGES_FC . "' + optionValue;\n"; echo "\t} else {\n"; echo "\t\timageForumCat.src = '" . IMAGES_FC . "default.png';\n";
</script> <form method="post"> <table> <tr><td><?php echo _t("Name"); ?> </td><td><input type="text" name="name" value=""></td></tr> <tr><td><?php echo _t("Id"); ?> </td><td><input type="text" name="id" value=""></td></tr> <tr><td><?php echo _t("Flag"); ?> </td><td><img src = "" id = "flag_image"><select id = "flag" name = "flag"><?php echo makefileopts($flags); ?> </select></td></tr> <tr><td><input type="submit" name="save" value="<?php echo _t("Save"); ?> "></td></tr> </table> </form> <?php if (isset($_POST['save'])) { try { if (empty($_POST['name']) || empty($_POST['id']) || empty($_POST['flag'])) { throw new Exception("missing data"); }
} $addon_type_list = ""; foreach ($addon_types as $k => $addon_type) { $addon_type_list .= "<option value='" . $k . "'" . ($addon_modtype == $k ? " selected" : "") . ">" . $addon_type . "</option>\n"; } $months = explode("|", $locale['months']); $month_list = ""; for ($i = 1; $i < count($months); $i++) { $month_list .= "<option value='" . $i . "'" . ($i == $addon_date_m ? " selected" : "") . ">" . $months[$i] . "</option>\n"; } $day_list = ""; for ($i = 1; $i < 32; $i++) { $day_list .= "<option value='" . $i . "'" . ($i == $addon_date_d ? " selected" : "") . ">" . $i . "</option>\n"; } $dld_list = makefilelist($addon_upload_dir, ".|..|index.php", true); $addon_download_list = $addon_download ? makefileopts($dld_list, $addon_download) : ""; $addon_status_list = ""; foreach ($addon_status as $k => $addon_status_name) { $addon_status_list .= "<option value='" . $k . "'" . ($addon_status_value == $k ? " selected='selected'" : "") . ">" . $addon_status_name . "</option>\n"; } opentable(isset($_GER['action']) && $_GET['action'] == "edit" ? $locale['addondb426'] : $locale['addondb425']); echo "<form name='add_mod' method='post' action='" . FUSION_SELF . $aidlink . "' enctype='multipart/form-data'>\n"; echo "<input type='hidden' name='action' value='" . (isset($_GET['action']) ? $_GET['action'] : "") . "'>\n"; echo "<input type='hidden' name='addon_id' value='" . (isset($_GET['addon_id']) ? $_GET['addon_id'] : "") . "'>\n"; echo "<table align='center' cellpadding='0' cellspacing='0' class='body'>\n"; echo "" . (isset($error) ? "<tr><td class='tbl1 error' align='center' colspan='3'>" . $error . "</td></tr>" : "") . "\n"; echo "<tr>\n"; echo "<td class='tbl1' nowrap>" . $locale['addondb402'] . ":</td>\n"; echo "<td class='tbl1' nowrap><span class='error'>*</span></td>\n"; echo "<td class='tbl1'><input type='text' class='textbox' name='addon_name' value='" . $addon_name . "' style='width:300px;'></td>\n"; echo "</tr>\n<tr>\n";
} log_admin_action("admin-4", "admin_settings_language_save"); redirect(FUSION_SELF . $aidlink . "&error=" . $error); } $settings2 = array(); $result = dbquery("SELECT settings_name, settings_value FROM " . DB_SETTINGS); while ($data = dbarray($result)) { $settings2[$data['settings_name']] = $data['settings_value']; } $locale_files = makefilelist(LOCALE, ".|..", true, "folders"); opentable($locale['lang100']); echo "<form name='settingsform' method='post' action='" . FUSION_SELF . $aidlink . "'>\n"; echo "<table cellpadding='0' cellspacing='0' width='500' class='center'>\n<tr>\n"; echo "<td width='50%' class='tbl'>" . $locale['lang101'] . "</td>\n"; echo "<td width='50%' class='tbl'><select name='localeset' class='textbox'>\n"; echo makefileopts($locale_files, $settings2['locale']) . "\n"; echo "</select></td>\n"; echo "</tr>\n<tr>\n"; echo "<td width='50%' class='tbl'>" . $locale['lang102'] . "</td>\n"; echo "<td width='50%' class='tbl'><select name='multilanguage' class='textbox'>\n"; echo "<option value='1'" . ($settings2['locale_multi'] == "1" ? " selected='selected'" : "") . ">" . $locale['518'] . "</option>\n"; echo "<option value='0'" . ($settings2['locale_multi'] == "0" ? " selected='selected'" : "") . ">" . $locale['519'] . "</option>\n"; echo "</select></td>\n"; echo "</tr>\n<tr>\n"; echo "<td width='50%' class='tbl'>" . $locale['lang107'] . "</td>\n"; echo "<td width='50%' class='tbl'><select name='multilanguage_forum' class='textbox'>\n"; echo "<option value='1'" . ($settings2['locale_multi_forum'] == "1" ? " selected='selected'" : "") . ">" . $locale['518'] . "</option>\n"; echo "<option value='0'" . ($settings2['locale_multi_forum'] == "0" ? " selected='selected'" : "") . ">" . $locale['519'] . "</option>\n"; echo "</select></td>\n"; echo "</tr>\n<tr>\n"; echo "<td width='50%' class='tbl'>" . $locale['lang108'] . "</td>\n";
+--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at www.gnu.org/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ if (!checkRights("I")) { header("Location:../../../index.php"); exit; } define("CAT_DIR", INFUSIONS . "varcade/categoryimg/"); $cat_files = makefilelist(CAT_DIR, ".|..|index.php", true); $cat_list = makefileopts($cat_files); if (isset($stats_id_cat) && !isNum($stats_id_cat)) { fallback("index.php"); } if (isset($step) && $step == "delete") { $result = dbquery("DELETE FROM " . $db_prefix . "varcade_cats WHERE cid='{$stats_id_cat}'"); } if (isset($_POST['save_cat'])) { $title = stripinput($_POST['title']); $cid = stripinput($_POST['cid']); $access = stripinput($_POST['access']); $cat_image = stripinput($_POST['cat_image']); if (isset($step) && $step == "edit") { $result = dbquery("UPDATE " . $db_prefix . "varcade_cats SET title='{$title}', access='{$access}',image='{$cat_image}' WHERE cid ='{$stats_id_cat}'"); } else { $result = dbquery("INSERT INTO " . $db_prefix . "varcade_cats (cid, title,image,access) VALUES('', '{$title}','{$cat_image}', '{$access}')");
"></td></tr> <tr><td><?php echo _t("Id"); ?> </td><td><input type="text" name="id" value="<?php echo $db->language_id; ?> "></td></tr> <tr><td><?php echo _t("Flag"); ?> </td><td><img id="flag_image" src="images/flags/<?php echo $db->language_flag; ?> "><select id="flag" name="flag"><?php echo makefileopts($flags, $db->language_flag); ?> </select></td></tr> <tr><td><input type="submit" name="save" value="<?php echo _t("Save"); ?> "></td></tr> </table> </form> <?php $db = new DB("translation"); $db->setSort("translation_phrase ASC"); $db->select("translation_lang_id='en'"); $i = 1; echo "<table>";
$content .= "</div>\n"; $content .= "<div class='well'>\n"; $content .= "<span class='strong display-inline-block m-b-10'>" . $locale['setup_1011'] . "</span>\n<br/><p>" . $locale['setup_1012'] . "</p>"; $content .= form_button('step', $locale['setup_1013'], STEP_PRIMARY_ADMIN_FORM, array('class' => 'btn-primary btn-sm m-r-10')); $content .= "</div>\n"; $content .= "<input type='hidden' name='localeset' value='" . stripinput(LANGUAGE) . "' />\n"; if (isset($db_prefix)) { $content .= "<div class='well'>\n"; $content .= "<span class='strong display-inline-block m-b-10'>" . $locale['setup_1014'] . "</span>\n<br/><p>" . $locale['setup_1015'] . "</p>"; $content .= form_button('htaccess', $locale['setup_1016'], 'htaccess', array('class' => 'btn-primary btn-sm m-r-10')); $content .= "</div>\n"; } } elseif (!isset($_POST['uninstall'])) { /* Without click uninstall this is the opening page of installer - just for safety. if not, an else suffices */ // no db_prefix $locale_list = makefileopts($locale_files, LANGUAGE); $content .= "<h4 class='strong'>" . $locale['setup_0002'] . "</h4>\n"; if (isset($_GET['error']) && $_GET['error'] == 'license') { $content .= "<div class='alert alert-danger'>" . $locale['setup_5000'] . "</div>\n"; } else { $content .= "<span>" . $locale['setup_0003'] . "</span>\n"; } $content .= "<span class='display-block m-t-20 m-b-10 strong'>" . $locale['setup_1000'] . "</span>\n"; $content .= form_select('localeset', '', LANGUAGE, array('options' => array_combine($locale_files, $locale_files), 'placeholder' => $locale['choose'])); $content .= "<script>\n"; $content .= "\$('#localeset').bind('change', function() {\n\t\t\t\tvar value = \$(this).val();\n\t\t\t\tdocument.location.href='" . FUSION_SELF . "?localeset='+value;\n\t\t\t});"; $content .= "</script>\n"; $content .= "<div>" . $locale['setup_1001'] . "</div>\n"; $content .= "<hr>\n"; $content .= form_checkbox('license', $locale['setup_0005'], ''); $content .= "<hr>\n";
| Filename: user_theme_include.php | Author: Digitanium +--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at www.gnu.org/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ if (!defined("IN_FUSION")) { die("Access Denied"); } if ($profile_method == "input") { if ($settings['userthemes'] == 1 || iADMIN) { $theme_files = makefilelist(THEMES, ".|..|templates", true, "folders"); array_unshift($theme_files, "Default"); echo "<tr>\n"; echo "<td class='tbl'>" . $locale['uf_theme'] . "</td>\n"; echo "<td class='tbl'><select name='user_theme' class='textbox' style='width:100px;'>\n" . makefileopts($theme_files, isset($user_data['user_theme']) ? $user_data['user_theme'] : "") . "\n</select></td>\n"; echo "</tr>\n"; } } elseif ($profile_method == "display") { // Not shown in profile } elseif ($profile_method == "validate_insert") { $db_fields .= ", user_theme"; $db_values .= ", '" . (isset($_POST['user_theme']) && ($settings['userthemes'] == 1 || iADMIN) ? stripinput(trim($_POST['user_theme'])) : "Default") . "'"; } elseif ($profile_method == "validate_update") { $db_values .= ", user_theme='" . (isset($_POST['user_theme']) && ($settings['userthemes'] == 1 || iADMIN) ? stripinput(trim($_POST['user_theme'])) : "Default") . "'"; }
/*---------------------------------------------------------------------------+ | Pimped-Fusion Content Management System | Copyright (C) 2009 - 2010 | http://www.pimped-fusion.net +----------------------------------------------------------------------------+ | Filename: language_switcher_panel.php | Version: Pimped Fusion v0.08.00 +----------------------------------------------------------------------------+ | Authors: slaughter +----------------------------------------------------------------------------+ | This program is released as free software under the Affero GPL license. | You can redistribute it and/or modify it under the terms of this license | which you can read by viewing the included agpl.txt or online | at www.gnu.org/licenses/agpl.html. Removal of this copyright header is | strictly prohibited without written permission from the original author(s). +---------------------------------------------------------------------------*/ $url = FUSION_REQUEST; $language_files = makefilelist(LOCALE, ".|..", true, "folders"); if (isset($_POST['switchuser_language']) && in_array($_POST['switchuser_language'], $language_files)) { setcookie("user_language", $_POST['switchuser_language'], time() + 3600 * 24 * 30, "/", "", "0"); redirect($url); } if (isset($_COOKIE['user_language']) && $_COOKIE['user_language'] != '' && preg_match("/^[0-9a-zA-Z_]+\$/", $_COOKIE['user_language'])) { $selected = $_COOKIE['user_language']; } else { $selected = $settings['locale']; } openside($locale['langswitch_100']); echo "<div style='text-align:center;'>\r\n<form name='language_switcher' method='post' action='" . $url . "'>\r\n<select name='switchuser_language' class='textbox' style='width:100px;' onchange=\"javascript:document.language_switcher.submit();\">\r\n" . makefileopts($language_files, $selected) . "\r\n</select>\r\n</form>\r\n</div>"; closeside();
<form method="post"> <table> <tr> <td><?php echo _t("Name"); ?> </td> <td><input type="text" name="name" /></td> </tr> <tr> <td><?php echo _t("Widget"); ?> </td> <td><select name="module"><?php echo makefileopts($widgets); ?> </select></td> </tr> <tr> <td><?php echo _t("Visible for"); ?> </td> <td><select name="group"><?php echo getGroups(); ?> </select> <?php echo _t("and above"); ?> </td>
/** * @param $formname * @param $textarea * @param bool $html * @param bool $colors * @param bool $images * @param string $folder * @return string */ function display_html($formname, $textarea, $html = TRUE, $colors = FALSE, $images = FALSE, $folder = "") { global $locale; $res = ""; if ($html) { $res .= "<div class='btn-group'>\n"; $res .= "<button type='button' value='b' title='" . $locale['html_000'] . "' class='btn btn-sm btn-default m-b-10 button' style='font-weight:bold;' onclick=\"addText('" . $textarea . "', '<strong>', '</strong>', '" . $formname . "');\"><i class='glyphicon glyphicon-bold'></i></button>\n"; $res .= "<button type='button' value='i' title='" . $locale['html_001'] . "' class='btn btn-sm btn-default m-b-10 button' style='font-style:italic;' onclick=\"addText('" . $textarea . "', '<i>', '</i>', '" . $formname . "');\">I</button>\n"; $res .= "<button type='button' value='u' title='" . $locale['html_002'] . "' class='btn btn-sm btn-default m-b-10 button' style='text-decoration:underline;' onclick=\"addText('" . $textarea . "', '<u>', '</u>', '" . $formname . "');\">U</button>\n"; $res .= "<button type='button' value='strike' title='" . $locale['html_003'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<del>', '</del>', '" . $formname . "');\"><del>ABC</del></button>\n"; $res .= "<button type='button' value='blockquote' title='" . $locale['html_004'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<blockquote>', '</blockquote>', '" . $formname . "');\"><i class='fa fa-quote-left'></i></button>\n"; $res .= "<button type='button' value='hr' title='" . $locale['html_005'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<hr/>', '', '" . $formname . "');\"><i class='glyphicon glyphicon-resize-horizontal'></i></button>\n"; $res .= "</div>\n"; $res .= "<div class='btn-group'>\n"; $res .= "<button type='button' class='btn btn-sm btn-default button m-b-10' value='" . $locale['html_016'] . "' onclick=\"insertText('" . $textarea . "', '<!--PAGEBREAK-->', '" . $formname . "');\">" . $locale['html_016'] . "</button>\n"; $res .= fusion_get_settings("allow_php_exe") ? "<button type='button' class='btn btn-sm btn-default button m-b-10' value='<?php?>' onclick=\"addText('" . $textarea . "', '<?php\\n', '\\n?>', '" . $formname . "');\"><?php?></button>\n" : ""; $res .= "<button type='button' class='btn btn-sm btn-default button m-b-10' value='<p>' onclick=\"addText('" . $textarea . "', '<p>', '</p>', '" . $formname . "');\"><p></button>\n"; $res .= "<button type='button' class='btn btn-default btn-sm button m-b-10' value='<br />' onclick=\"insertText('" . $textarea . "', '<br />', '" . $formname . "');\"><br /></button>\n"; $res .= "</div>\n"; $res .= "<div class='btn-group'>\n"; $res .= "<button type='button' value='left' title='" . $locale['html_006'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<p style=\\'text-align:left;\\'>', '</p>', '" . $formname . "');\"><i class='glyphicon glyphicon-align-left'></i></button>\n"; $res .= "<button type='button' value='center' title='" . $locale['html_007'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<p style=\\'text-align:center;\\'>', '</p>', '" . $formname . "');\"><i class='glyphicon glyphicon-align-center'></i></button>\n"; $res .= "<button type='button' value='right' title='" . $locale['html_008'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<p style=\\'text-align:right;\\'>', '</p>', '" . $formname . "');\"><i class='glyphicon glyphicon-align-right'></i></button>\n"; $res .= "<button type='button' value='justify' title='" . $locale['html_009'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<p style=\\'text-align:justify;\\'>', '</p>', '" . $formname . "');\"><i class='glyphicon glyphicon-align-justify'></i></button>\n"; $res .= "</div>\n"; $res .= "<div class='btn-group'>\n"; $res .= "<button type='button' value='link' title='" . $locale['html_010'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<a href=\\'', '\\' target=\\'_blank\\'>Link</a>', '" . $formname . "');\"><i class='glyphicon glyphicon-paperclip'></i></button>\n"; //$res .= "<button type='button' value='img' title='".$locale['html_011']."' class='btn btn-sm btn-default m-b-10 dropdown-toggle button' data-toggle='dropdown' onclick=\"addText('".$textarea."', '<img src=\'".str_replace("../", "", $folder)."', '\' style=\'margin:5px\' alt=\'\' align=\'left\' />', '".$formname."');\"><i class='fa fa-picture-o'></i></button>\n"; $res .= "<div class='btn-group HTML-img'><a title='" . $locale['html_011'] . "' class='btn btn-sm btn-default dropdown dropdown-toggle button' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'><i class='fa fa-picture-o'></i><b class='caret'></b></a>\n"; if ($images && $folder) { $res .= "<ul class='dropdown-menu'>\n"; $res .= "<li class='p-l-15 p-r-15'>\n"; $image_files = makefilelist($folder, ".|..|index.php", TRUE); $image_list = makefileopts($image_files); $res .= "<select name='insertimage' class='form-control textbox' style='margin-top:5px' onchange=\"insertText('" . $textarea . "', '<img src=\\'" . str_replace("../", "", $folder) . "' + this.options[this.selectedIndex].value + '\\' alt=\\'\\' style=\\'margin:5px\\' align=\\'left\\' />', '" . $formname . "');this.selectedIndex=0;\">\n"; $res .= "<option value=''>" . $locale['html_011'] . "</option>\n" . $image_list . "</select>\n"; $res .= "</li>\n</ul>\n"; } $res .= "</div>\n"; $res .= "<button type='button' value='center' title='" . $locale['html_012'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<center>', '</center>', '" . $formname . "');\">center</button>\n"; $res .= "<button type='button' value='small' title='" . $locale['html_013'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<span class=\\'small\\'>', '</span>', '" . $formname . "');\">small</button>\n"; $res .= "<button type='button' value='small2' title='" . $locale['html_014'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<span class=\\'small2\\'>', '</span>', '" . $formname . "');\">small2</button>\n"; $res .= "<button type='button' value='alt' title='" . $locale['html_015'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<span class=\\'alt\\'>', '</span>', '" . $formname . "');\">alt</button>\n"; $res .= "<button type='button' value='" . $locale['html_016'] . "' title='" . $locale['html_016'] . "' class='btn btn-sm btn-default m-b-10 button' onclick=\"addText('" . $textarea . "', '<!--PAGEBREAK-->', '', '" . $formname . "');\"><i class='glyphicon glyphicon-minus'></i></button>\n"; if ($colors) { $res .= "<div class='btn-group'>\n"; $res .= "<button title='" . $locale['html_017'] . "' class='dropdown-toggle btn btn-sm btn-default button' data-toggle='dropdown'><i class='fa fa-tint m-r-5'></i> <span class='caret'></span></button>\n"; $res .= "<ul class='dropdown-menu' role='text-color' style='width:190px;'>\n"; $res .= "<li>\n"; $res .= "<div class='display-block p-l-10 p-r-5 p-t-5 p-b-0' style='width:100%'>\n"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#000\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_8'] . "' style='background-color:#000; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#993300\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_136'] . "' style='background-color:#993300; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#333300\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_137'] . "' style='background-color:#333300; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#003300\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_138'] . "' style='background-color:#003300; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#003366\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_139'] . "' style='background-color:#003366; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#000080\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_92'] . "' style='background-color:#000080; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#333399\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_140'] . "' style='background-color:#333399; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#333333\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_141'] . "' style='background-color:#333333; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "</div>\n"; $res .= "<div class='display-block p-l-10 p-r-10 p-t-5 p-b-0' style='width:100%'>\n"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#800000\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_77'] . "' style='background-color:#800000; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#FF6600\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_142'] . "' style='background-color:#FF6600; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#FF6600\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_35'] . "' style='background-color:#2F4F4F; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#008000\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_51'] . "' style='background-color:#008000; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#008080\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_126'] . "' style='background-color:#008080; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#0000FF\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_10'] . "' style='background-color:#0000FF; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#666699\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_143'] . "' style='background-color:#666699; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#808080\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_50'] . "' style='background-color:#808080; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "</div>\n"; $res .= "<div class='display-block p-l-10 p-r-10 p-t-5 p-b-0' style='width:100%'>\n"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#FF0000\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_110'] . "' style='background-color:#FF0000; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#FF9900\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_144'] . "' style='background-color:#FF9900; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#99CC00\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_145'] . "' style='background-color:#99CC00; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#339966\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_146'] . "' style='background-color:#339966; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#33CCCC\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_147'] . "' style='background-color:#33CCCC; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#3366FF\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_148'] . "' style='background-color:#3366FF; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#800080\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_109'] . "' style='background-color:#800080; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#999999\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_149'] . "' style='background-color:#999999; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "</div>\n"; $res .= "<div class='display-block p-l-10 p-r-10 p-t-5 p-b-0' style='width:100%'>\n"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#FF00FF\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_45'] . "' style='background-color:#FF00FF; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#FFCC00\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_150'] . "' style='background-color:#FFCC00; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#FFFF00\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_134'] . "' style='background-color:#FFFF00; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#00FF00\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_75'] . "' style='background-color:#00FF00; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#00FFFF\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_3'] . "' style='background-color:#00FFFF; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#00CCFF\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_151'] . "' style='background-color:#00CCFF; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#993366\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_152'] . "' style='background-color:#993366; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#FFFFFF\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_132'] . "' style='background-color:#FFFFFF; width:17px; margin:2px; text-decoration:none !important; box-shadow: 0 0 2px #a0a0a0;'> </a>"; $res .= "</div>\n"; $res .= "<div class='display-block p-l-10 p-r-10 p-t-5 p-b-0' style='width:100%'>\n"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#FF99CC\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_153'] . "' style='background-color:#FF99CC; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#FFCC99\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_154'] . "' style='background-color:#FFCC99; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#FFFF99\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_155'] . "' style='background-color:#FFFF99; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#CCFFCC\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_156'] . "' style='background-color:#CCFFCC; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#CCFFFF\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_157'] . "' style='background-color:#CCFFFF; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#99CCFF\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_158'] . "' style='background-color:#99CCFF; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:#CC99FF\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_159'] . "' style='background-color:#CC99FF; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "<a class='display-inline-block' onclick=\"addText('" . $textarea . "', '<span style=\\'color:transparent\\'>', '</span>', '" . $formname . "');\" title='" . $locale['color_0'] . "' style='background-color:transparent; width:17px; margin:2px; text-decoration:none !important;'> </a>"; $res .= "</div>\n"; $res .= "</li>\n"; $res .= "</ul>\n"; $res .= "</div>\n"; } $res .= "</div>\n"; $res .= "<div class='btn-group'>\n"; $res .= "<button type='button' title='" . $locale['html_018'] . "' class='btn btn-sm btn-default m-b-10 button strong' onclick=\"addText('" . $textarea . "', '<p>', '</p>', '" . $formname . "');\">" . $locale['html_018'] . "</button>\n"; $res .= "<button title='" . $locale['html_019'] . "' class='dropdown-toggle btn btn-sm btn-default m-b-10 button' data-toggle='dropdown'><i class='glyphicon glyphicon-header'></i> " . $locale['html_019'] . " <span class='caret'></span></button>\n"; $res .= "<ul class='dropdown-menu' role='text-heading' style='width:190px;'>\n"; $res .= "<li>\n<a value='H1' class='pointer' onclick=\"addText('" . $textarea . "', '<h1>', '</h1>', '" . $formname . "');\"><span class='strong' style='font-size:24px; font-family: Georgia, \\'Times New Roman\\', Times, serif !important;'>Heading 1</span></a>\n</li>\n"; $res .= "<li>\n<a value='H2' class='pointer' onclick=\"addText('" . $textarea . "', '<h2>', '</h2>', '" . $formname . "');\"><span class='strong' style='font-size:19.5px; font-family: Georgia, \\'Times New Roman\\', Times, serif !important;'>Heading 2</span></a>\n</li>\n"; $res .= "<li>\n<a value='H3' class='pointer' onclick=\"addText('" . $textarea . "', '<h3>', '</h3>', '" . $formname . "');\"><span class='strong' style='font-size:15.5px; font-family: Georgia, \\'Times New Roman\\', Times, serif !important;'>Heading 3</span></a>\n</li>\n"; $res .= "<li>\n<a value='H4' class='pointer' onclick=\"addText('" . $textarea . "', '<h4>', '</h4>', '" . $formname . "');\"><span class='strong' style='font-size:13px; font-family: Georgia, \\'Times New Roman\\', Times, serif !important;'>Heading 4</span></a>\n</li>\n"; $res .= "<li>\n<a value='H5' class='pointer' onclick=\"addText('" . $textarea . "', '<h5>', '</h5>', '" . $formname . "');\"><span class='strong' style='font-size:11px; font-family: Georgia, \\'Times New Roman\\', Times, serif !important;'>Heading 5</span></a>\n</li>\n"; $res .= "<li>\n<a value='H6' class='pointer' onclick=\"addText('" . $textarea . "', '<h6>', '</h6>', '" . $formname . "');\"><span class='strong' style='font-size:9px; font-family: Georgia, \\'Times New Roman\\', Times, serif !important;'>Heading 6</span></a>\n</li>\n"; $res .= "</ul>\n"; $res .= "</div>\n"; } return $res; }
if (!isset($addon_approved_rating_list)) { $addon_approved_rating_list = ""; } $addon_approved_rating_list .= "<option value='" . $k . "'" . ($addon_approved_rating == $k ? " selected" : "") . ">" . $addon_rating . "</option>\n"; } $months = explode("|", $locale['months']); $month_list = ""; for ($i = 1; $i < count($months); $i++) { $month_list .= "<option value='" . $i . "'" . ($i == $addon_date_m ? " selected" : "") . ">" . $months[$i] . "</option>\n"; } $day_list = ""; for ($i = 1; $i < 32; $i++) { $day_list .= "<option value='" . $i . "'" . ($i == $addon_date_d ? " selected" : "") . ">" . $i . "</option>\n"; } $dld_list = makefilelist($addon_upload_dir, ".|..|index.php", true); $addon_download_list = makefileopts($dld_list, $addon_download); $addon_status_list = ""; foreach ($addon_status as $k => $addon_status_name) { $addon_status_list .= "<option value='" . $k . "'" . ($addon_status_value == $k ? " selected" : "") . ">" . $addon_status_name . "</option>\n"; } $urlprefix = !strstr($addon_demo_url, "http://") ? "http://" : ""; // GET RIGHT CONTENT END opentable($locale['440']); echo "<form name='publish' method='post' action='" . FUSION_SELF . $aidlink . "&action=2&t=m&submit_id=" . $_GET['submit_id'] . "' enctype='multipart/form-data'>\n"; echo "<table cellpadding='0' cellspacing='0' class='center'>\n<tr>\n"; echo "<td class='tbl1' nowrap>" . $locale['addondb402'] . ":</td>\r\n\t\t\t<td class='tbl1' nowrap><span class='error'>*</span></td>\r\n\t\t\t<td class='tbl1'><input type='text' class='textbox' name='addon_name' value='" . $addon_name . "' style='width:300px;'></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t<td class='tbl1' nowrap>" . $locale['addondb403'] . ":</td>\r\n\t\t\t<td class='tbl1' nowrap> </td>\r\n\t\t\t<td class='tbl1'><select class='textbox' name='addon_cat_id' style='width:300px;'>" . $cat_list . "</select>\r\n\t\t\t<input type='hidden' class='textbox' name='addon_cat_type' value='" . $addon_cat_type . "'></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t<td class='tbl1' nowrap valign='top'>" . $locale['addondb404'] . ":</td>\r\n\t\t\t<td class='tbl1' nowrap valign='top'><span class='error'>*</span></td>\r\n\t\t\t<td class='tbl1'><textarea class='textbox' name='addon_description' style='width:300px; height:100px;'>" . $addon_description . "</textarea></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t<td class='tbl1' nowrap valign='top'>" . $locale['addondb406'] . ":</td>\r\n\t\t\t<td class='tbl1' nowrap valign='top'> </td>\r\n\t\t\t<td class='tbl1'><textarea class='textbox' name='addon_copyright' style='width:300px; height:40px;'>" . $addon_copyright . "</textarea></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t<td class='tbl1' nowrap>" . $locale['addondb408'] . ":</td>\r\n\t\t\t<td class='tbl1' nowrap><span class='error'>*</span></td>\r\n\t\t\t<td class='tbl1'><input type='text' class='textbox' name='addon_version' value='" . $addon_version . "' style='width:150px;'></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t<td class='tbl1' nowrap>" . $locale['addondb409'] . ":</td>\r\n\t\t\t<td class='tbl1' nowrap> </td>\r\n\t\t\t<td class='tbl1'><select class='textbox' name='version_id' style='width:150px;'>" . buildversionoptionlist($version_id) . "</td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t<td class='tbl1' nowrap colspan='3'><hr></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t<td class='tbl1' nowrap>" . $locale['addondb410'] . ":</td>\r\n\t\t\t<td class='tbl1' nowrap> </td>\r\n\t\t\t<td class='tbl1'><select class='textbox' name='addon_download_list' style='width:300px;'>" . $addon_download_list . "</select></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t<td class='tbl1' nowrap>" . $locale['addondb411'] . ":</td>\r\n\t\t\t<td class='tbl1' nowrap> </td>\r\n\t\t\t<td class='tbl1'><input type='file' class='textbox' name='addon_download' size='43' style='width:300px;'></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t<td class='tbl1' nowrap>" . $locale['addondb412'] . ":</td>\r\n\t\t\t<td class='tbl1' nowrap> </td>\r\n\t\t\t<td class='tbl1'><span class='small'><a href='" . INFUSIONS . "addondb/files/{$addon_download}' target='_BLANK'>" . substr($addon_upload_dir . $addon_download, 6) . "</a></span></td>\r\n\t\t\t</tr>"; echo ' <script type="text/javascript" src="../lightbox/prototype.js"></script> <script type="text/javascript" src="../lightbox/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="../lightbox/lightbox.js"></script> <link rel="stylesheet" href="../lightbox/lightbox.css" type="text/css" media="screen" />
$form_action = FUSION_SELF . $aidlink . "&smiley_id=" . $_GET['smiley_id']; $form_title = $locale['402']; } else { redirect(FUSION_SELF . $aidlink); } } else { $smiley_code = ""; $smiley_image = ""; $smiley_text = ""; $form_action = FUSION_SELF . $aidlink; $form_title = $locale['401']; } opentable($form_title); $image_files = makefilelist(IMAGES . "smiley/", ".|..|index.php", true); $image_list = "<option value=''> </option>\n"; $image_list .= makefileopts($image_files, $smiley_image); echo "<form name='smiley_form' method='post' action='" . $form_action . "'>\n"; echo "<table cellpadding='0' cellspacing='0' class='center'>\n<tr>\n"; echo "<td class='tbl'>" . $locale['420'] . "</td>\n"; echo "<td class='tbl'><input type='text' name='smiley_code' value='" . $smiley_code . "' class='textbox' style='width:100px' /></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl'>" . $locale['421'] . "</td>\n"; echo "<td class='tbl'><select name='smiley_image' id='smiley_image' class='textbox' onchange=\"PreviewSmiley();\">" . $image_list . "</select></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl'>" . $locale['424'] . "</td>\n"; echo "<td class='tbl'><img src='" . ($smiley_image ? IMAGES . "smiley/" . $smiley_image : IMAGES . "imagenotfound.jpg") . "' alt='smiley' style='border:none' id='smiley_preview' /></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl'>" . $locale['422'] . "</td>\n"; echo "<td class='tbl'><input type='text' name='smiley_text' value='" . $smiley_text . "' class='textbox' style='width:100px' /></td>\n</tr>\n"; echo "<tr>\n<td align='center' colspan='2' class='tbl'><br />\n"; echo "<input type='submit' name='save_smiley' value='" . $locale['423'] . "' class='button' /></td>\n";
if (!defined("IN_FUSION")) { die("Access Denied"); } // Display user field input if ($profile_method == "input") { if ($settings['userthemes'] == 1 || iADMIN) { $user_theme = isset($user_data['user_theme']) ? $user_data['user_theme'] : ""; if ($this->isError()) { $user_theme = isset($_POST['user_theme']) ? stripinput($_POST['user_theme']) : $user_theme; } $theme_files = makefilelist(THEMES, ".|..|templates|.svn", true, "folders"); array_unshift($theme_files, "Default"); echo "<tr>\n"; echo "<td class='tbl" . $this->getErrorClass("user_theme") . "'><label for='user_theme_input'>" . $locale['uf_theme'] . $required . "</label></td>\n"; echo "<td class='tbl" . $this->getErrorClass("user_theme") . "'>"; echo "<select id='user_theme_input' name='user_theme' class='textbox' style='width:100px;'>\n" . makefileopts($theme_files, $user_theme) . "</select>"; echo "</td>\n</tr>\n"; } if ($required) { $this->setRequiredJavaScript("user_theme", $locale['uf_theme_error']); } // Display in profile } elseif ($profile_method == "display") { // Insert and update } elseif ($profile_method == "validate_insert" || $profile_method == "validate_update") { if ($settings['userthemes'] == 1 || iADMIN) { // Get input data $input_theme = isset($_POST['user_theme']) ? stripinput($_POST['user_theme']) : ""; if (theme_exists($input_theme)) { // Set update or insert user data $this->_setDBValue("user_theme", $input_theme);
$data = dbarray($result); $cat_name = $data['news_cat_name']; $cat_image = $data['news_cat_image']; $formaction = FUSION_SELF . $aidlink . "&action=edit&cat_id=" . $data['news_cat_id']; $openTable = $locale['400']; } else { redirect(FUSION_SELF . $aidlink); } } else { $cat_name = ""; $cat_image = ""; $formaction = FUSION_SELF . $aidlink; $openTable = $locale['401']; } $image_files = makefilelist(IMAGES_NC, ".|..|index.php", true); $image_list = makefileopts($image_files, $cat_image); if (isset($error) && isnum($error)) { if ($error == 1) { $errorMessage = $locale['460']; } elseif ($error == 2) { $errorMessage = $locale['461']; } if ($errorMessage) { echo "<div id='close-message'><div class='admin-message'>" . $errorMessage . "</div></div>\n"; } } opentable($openTable); echo "<form name='addcat' method='post' action='" . $formaction . "'>\n"; echo "<table cellpadding='0' cellspacing='0' width='400' class='center'>\n<tr>\n"; echo "<td width='130' class='tbl'>" . $locale['430'] . "</td>\n"; echo "<td class='tbl'><input type='text' name='cat_name' value='" . $cat_name . "' class='textbox' style='width:200px;' /></td>\n";
| can read by viewing the included agpl.txt or online | at www.gnu.org/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ if (!iADMIN) { header("Location:../../../index.php"); exit; } if (isset($step) && $step == "delete") { $result = dbquery("DELETE FROM " . $db_prefix . "kroax_kategori WHERE cid='{$cid}'"); redirect("admin.php?a_page=categories"); } define("CAT_DIR", INFUSIONS . "the_kroax/categoryimg/"); $cat_files = makefilelist(CAT_DIR, ".|..|index.php", true); $cat_list = makefileopts($cat_files, $image); $visibility_opts = ""; $sel = ""; $user_groups = getusergroups(); while (list($key, $user_group) = each($user_groups)) { $sel = $news_visibility == $user_group['0'] ? " selected" : ""; $visibility_opts .= "<option value='" . $user_group['0'] . "'{$sel}>" . $user_group['1'] . "</option>\n"; } function getparent($parentid, $title) { global $db_prefix; $result = dbquery("select * from " . $db_prefix . "kroax_kategori where cid={$parentid}"); $data = dbarray($result); if ($data['title'] != "") { $title = $data['title'] . " » " . $title; }
$rank_apply = nMEMBER; // Pimped: 101 $rank_group = "0"; // Pimped $form_action = FUSION_SELF . $aidlink; opentable($locale['400']); } echo "<form name='rank_form' method='post' action='" . $form_action . "'>\n"; echo "<table cellpadding='0' cellspacing='0' class='center'>\n<tr>\n"; echo "<td class='tbl'>" . $locale['420'] . "</td>\n"; echo "<td class='tbl'><input type='text' name='rank_title' value='" . $rank_title . "' class='textbox' style='width:150px;' /></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl'>" . $locale['421'] . "</td>\n"; echo "<td class='tbl'><select name='rank_image' class='textbox' style='width:150px;'>\n"; $image_files = makefilelist(IMAGES . "ranks", ".|..|index.php", true); echo makefileopts($image_files, $rank_image) . "</select></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl'>" . $locale['422'] . "</td>\n"; echo "<td class='tbl'><input type='text' name='rank_posts' value='" . $rank_posts . "' class='textbox' style='width:150px;' /></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl'>" . $locale['423'] . "</td>\n"; echo "<td class='tbl'><select name='rank_apply' class='textbox' style='width:150px;'>\n"; // Pimped: Special Group Ranks ## $opts = ""; $sel = ""; #$user_groups = getusergroups(0,1,1,1,1,0,1,array('104', $locale['425'])); #what to do with the mods/global mods $user_groups = getusergroups(0, 1, 1, 1, 1, 0, 1); while (list($key, $user_group) = each($user_groups)) { if ($rank_group != "0") { $sel = $rank_group == $user_group['0'] ? " selected='selected'" : "";
<td><?php echo _t("Name"); ?> </td> <td><input type="text" name="name" value="<?php echo $db->widget_name; ?> " /></td> </tr> <tr> <td><?php echo _t("Widget"); ?> </td> <td><select name="module"><?php echo makefileopts($widgets, $db->widget_module); ?> </select></td> </tr> <tr> <td><?php echo _t("Visible for"); ?> </td> <td><select name="group"><?php echo getGroups($db->widget_group); ?> </select> <?php echo _t("and above"); ?> </td>
?> </td> <td><select id="application" name="application"><?php echo makefileopts($applications); ?> </select></td> </tr> <tr> <td><?php echo _t("Action module"); ?> </td> <td> <?php foreach ($actions as $name => $files) { echo "<select id='actions_{$name}' name='actions_{$name}' class='nav_action' style='display:none;'>" . str_replace(".php", "", makefileopts($files[0])) . "</select>"; } ?> </td> </tr> <tr> <td><?php echo _t("Language"); ?> </td> <td> <select name="language"><?php echo getLanguages(); ?> </select> </td>
echo "<tr>\n<td class='tbl1' style='padding:20px; text-align:center; font-weight:bold;'>" . $locale['uc214'] . "</td>\n</tr>\n"; } echo "<tr>\n<td class='tbl2 navtitle'>" . $locale['uc200'] . "</td>\n</tr>\n"; add_to_title(" :: " . $locale['uc200']); echo "<tr>\n<td class='tbl1'><div align='center'>\n<fieldset class='fields'><legend><a name=''>" . $locale['uc202'] . "</a></legend>\n"; if ($userdata['user_avatar']) { echo "<div style='float:left;'><img src='" . IMAGES . "avatars/" . $userdata['user_avatar'] . "' alt='' style='padding-right:10px;'></div>\n"; } else { echo "<div style='float:left;'><img src='" . IMAGES . "noav.gif' alt='' style='padding-right:10px;'></div>\n"; } echo $locale['uc203'] . "<br />\n<br />\n<label><input type='radio' name='option' value='noav'" . (!$userdata['user_avatar'] ? " CHECKED" : "") . ">" . $locale['uc204'] . "</label>"; echo "</fieldset>\n"; echo "<fieldset class='fields'><legend><a name=''>" . $locale['uc205'] . "</a></legend>\n"; $folder = INFUSIONS . "fusionboard4/images/avatars/"; $galleryFiles = makefilelist($folder, ".|..|index.php|Thumbs.db"); $galleryOpts = makefileopts($galleryFiles, $userdata['user_avatar']); echo $locale['uc206'] . "<br />\n<br />\n<label><input type='radio' name='option' value='gallery'" . (in_array($userdata['user_avatar'], $galleryFiles) ? " CHECKED" : "") . ">" . $locale['uc208'] . "</label>\n<br />\n"; echo "<br />\n<br />\n<select name='avatarGallery' class='textbox' style='width:200px;' size='10' onChange='document.getElementById(\"preview\").src=\"" . INFUSIONS . "fusionboard4/images/avatars/\"+this.value'>\n"; echo "<option value=''>" . $locale['uc207'] . "</option>\n{$galleryOpts}</select>\n\t\t\t<img src='" . THEME . "images/blank.gif' alt='' id='preview' />\n"; echo "</fieldset>\n"; echo "<fieldset class='fields'><legend><a name=''>" . $locale['uc209'] . "</a></legend>\n"; echo $locale['uc210'] . "<br />\n<br />\n<label><input type='radio' name='option' value='custom'" . ($userdata['user_avatar'] ? " CHECKED" : "") . ">" . $locale['uc213'] . "</label>\n"; echo "<br />\n<br />\n" . $locale['uc211'] . "<br /><input type='text' name='avatarWeb' value='http://www.' style='width:300px;'>\n"; echo "<br />\n<br />\n" . $locale['uc212'] . "<br /><input type='file' name='user_avatar' style='width:300px;'>\n"; echo "</fieldset>\n"; echo "<br />\n<input type='submit' name='update_profile' class='button' value='" . $locale['uc201'] . "'>\n"; echo "</div>\n</td>\n</tr>\n</form>\n"; /* User CP -> Buddies */ } elseif ($section == "buddies" && $fb4['buddy_enable']) { if (isset($_POST['username'])) { $username = stripinput($_POST['username']);