function render_weblinks($info) { global $locale; echo render_breadcrumbs(); opentable($locale['400']); if ($info['weblink_cat_rows'] != 0) { $counter = 0; $columns = 2; echo "<div class='row m-0'>\n"; if (!empty($info['item'])) { foreach ($info['item'] as $weblink_cat_id => $data) { if ($counter != 0 && $counter % $columns == 0) { echo "</div>\n<div class='row m-0'>\n"; } echo "<div class='col-xs-12 col-sm-6 col-md-6 col-lg-6 p-t-20'>\n"; echo "<div class='media'>\n"; echo "<div class='pull-left'><i class='entypo folder mid-opacity icon-sm'></i></div>\n"; echo "<div class='media-body overflow-hide'>\n"; echo "<div class='media-heading strong'><a href='" . $data['weblink_item']['link'] . "'>" . $data['weblink_item']['name'] . "</a> <span class='small'>" . $data['weblink_count'] . "</span></div>\n"; if ($data['weblink_cat_description'] != "") { echo "<span>" . $data['weblink_cat_description'] . "</span>"; } echo "</div>\n</div>\n"; echo "</div>\n"; $counter++; } } echo "</div>\n"; } else { echo "<div style='text-align:center'><br />\n" . $locale['430'] . "<br /><br />\n</div>\n"; } closetable(); }
public function display_custom_page_admin() { global $aidlink; $locale = fusion_get_locale("", LOCALE . LOCALESET . "admin/custom_pages.php"); if (isset($_POST['cancel'])) { redirect(FUSION_SELF . $aidlink); } $locale = fusion_get_locale("", LOCALE . LOCALESET . "admin/custom_pages.php"); $_POST['page_id'] = isset($_POST['page_id']) && isnum($_POST['page_id']) ? $_POST['page_id'] : 0; $_GET['status'] = isset($_GET['status']) ? $_GET['status'] : ''; $_GET['action'] = isset($_GET['action']) ? $_GET['action'] : ''; switch ($_GET['action']) { case 'edit': fusion_confirm_exit(); if (!isset($_GET['cpid'])) { redirect(FUSION_SELF . $aidlink); } $this->data = self::load_customPage($_GET['cpid']); if (empty($this->data)) { redirect(FUSION_SELF . $aidlink); } opentable($locale['401']); break; case 'delete': if (!isset($_GET['cpid'])) { redirect(FUSION_SELF . $aidlink); } self::delete_customPage($_GET['cpid']); break; default: opentable($locale['403']); } $this->display_customPage_selector(); $this->data = self::set_customPage($this->data); }
function render_article($subject, $article, $info) { global $locale; opentable($subject); echo "<div class='floatfix'>" . ($info['article_breaks'] == "y" ? nl2br($article) : $article) . "</div>\n<div class='news-footer'>\n\t" . articleposter($info, " ·") . articleopts($info, "·") . itemoptions("A", $info['article_id']) . "\n</div>\n"; closetable(); }
public function __construct() { global $aidlink, $locale; $_POST['page_id'] = isset($_POST['page_id']) && isnum($_POST['page_id']) ? $_POST['page_id'] : 0; $_GET['status'] = isset($_GET['status']) ? $_GET['status'] : ''; $_GET['action'] = isset($_GET['action']) ? $_GET['action'] : ''; $title = ''; switch ($_GET['action']) { case 'edit': fusion_confirm_exit(); $this->data = self::load_customPage($_GET['cpid']); if (empty($this->data)) { redirect(FUSION_SELF . $aidlink); } opentable($locale['401']); break; case 'delete': self::delete_customPage($_GET['cpid']); break; default: opentable($locale['400']); } self::customPage_selector(); add_breadcrumb(array('link' => ADMIN . 'custom_pages.php' . $aidlink, 'title' => $locale['403'])); $this->data = self::set_customPage($this->data); if (isset($_POST['cancel'])) { redirect(FUSION_SELF . $aidlink); } }
function render_faq_item($info) { global $locale; echo "<span id='content'></span>\n"; opentable($locale['401'] . ": " . $info['faq_cat_name']); echo "<a href='" . INFUSIONS . "faq/faq.php'>" . $locale['400'] . "</a> > <a href='" . $info['faq_link'] . "'>" . $info['faq_cat_name'] . "</a>\n"; if (!empty($info['nofaq_items'])) { echo "<div class='well text-center m-t-20'>" . $info['nofaq_items'] . "</div>\n"; } else { echo "<div class='row m-t-20'>\n"; echo "<div class='col-xs-12 col-sm-3'>\n"; if (!empty($info['items'])) { echo "<ul>\n"; foreach ($info['items'] as $data) { echo "<li><a href='" . FUSION_REQUEST . "#faq_" . $data['faq_id'] . "'>" . $data['faq_question'] . "</a></li>\n"; } echo "</ul>\n"; } echo "</div>\n"; echo "<div class='col-xs-12 col-sm-9'>\n"; foreach ($info['items'] as $data) { echo "<a class='pull-right btn btn-xs btn-default' href='" . FUSION_REQUEST . "#content'><i class='fa fa-arrow-up'></i> " . $locale['402'] . "</a>\n"; echo "<h4 id='faq_" . $data['faq_id'] . "'>" . $data['faq_question'] . "</h4>\n"; echo nl2br(parse_textarea($data['faq_answer'])); echo "<hr/>\n"; } echo "</div>\n"; echo "</div>\n"; } closetable(); }
function render_comments($c_data, $c_info) { global $locale; opentable($locale['c100']); if (!empty($c_data)) { echo "<div class='comments floatfix'>\n"; $c_makepagenav = ''; if ($c_info['c_makepagenav'] !== false) { echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>" . $c_info['c_makepagenav'] . "</div>\n"; } foreach ($c_data as $data) { echo "<div class='tbl2'>\n"; if ($data['edit_dell'] !== false) { echo "<div style='float:right' class='comment_actions'>" . $data['edit_dell'] . "\n</div>\n"; } echo "<a href='" . FUSION_REQUEST . "#c" . $data['comment_id'] . "' id='c" . $data['comment_id'] . "' name='c" . $data['comment_id'] . "'>#" . $data['i'] . "</a> |\n"; echo "<span class='comment-name'>" . $data['comment_name'] . "</span>\n"; echo "<span class='small'>" . $data['comment_datestamp'] . "</span>\n"; echo "</div>\n<div class='tbl1 comment_message'>" . $data['comment_message'] . "</div>\n"; } echo $c_makepagenav; if ($c_info['admin_link'] !== false) { echo "<div style='float:right' class='comment_admin'>" . $c_info['admin_link'] . "</div>\n"; } echo "</div>\n"; } else { echo $locale['c101'] . "\n"; } closetable(); }
function display_no_item() { global $locale; opentable($locale['home_0100']); echo $locale['home_0101']; closetable(); }
function display_forum_pollform($info) { echo render_breadcrumbs(); opentable($info['title']); echo "<h4 class='m-b-20'>" . $info['description'] . "</h4>\n"; echo "<!--pre_form-->\n"; echo $info['field']['openform']; echo $info['field']['poll_field']; echo $info['field']['poll_button']; echo $info['field']['closeform']; closetable(); }
function head_form() { global $HTTP_POST_VARS, $settings, $userdata, $locale; opentable($locale['ugam_150']); echo "<form action='index.php' method='post'>\n"; $none = 'no_avatar.gif'; $avatar = !empty($userdata['user_avatar']) ? $userdata['user_avatar'] : $none; echo "<div align='center'>\n"; echo "<img src='" . $settings['siteurl'] . "images/avatars/" . $avatar . "' width='" . UGAM_AVATAR_MAKER_WIDTH . "' height='" . UGAM_AVATAR_MAKER_HEIGHT . "' border='1px' alt='" . $avatar . "' /><br /><br />\n"; echo "<strong>" . $locale['ugam_155'] . "</strong>\n"; echo "</div>\n"; echo "<hr />"; }
function display_error_page($data) { $locale = fusion_get_locale(); $text = $data['title']; $image = $data['image']; opentable($text); echo "<table class='table table-responsive' width='100%' style='text-center'>"; echo "<tr>"; echo "<td width='30%' align='center'><img class='img-responsive' src='" . $image . "' alt='" . $text . "' border='0'></td>"; echo "<td style='font-size:16px;color:red' align='center'>" . $text . "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' align='center'><b><a class='button' href='" . BASEDIR . "index.php'>" . $locale['errret'] . "</a></b></td>"; echo "</tr>"; echo "</table>"; closetable(); }
function gold_admin_main() { //Gold administration entry view global $locale, $aidlink; include GOLD_INC . "version_checker/version_checker.php"; opentable($locale['urg_a_global_100'], ''); echo "<div align='left' style='float: left; width: 50%;'>\n"; echo $locale['urg_a_global_105']; /*if (gold_table_exists(DB_PREFIX."users_points")) {//Check if usergold 2 is installed or not $rows = dbcount("(*)", DB_UG3); if ($rows < 2) { echo "<br /><br />".$locale['urg_a_global_110']."<a href='install.php".$aidlink."'><strong>".$locale['urg_a_global_111']."</strong></a>".$locale['urg_a_global_112']; } }*/ echo "</div><div align='right' style='float: right; width: 50%;'>\n"; echo checkversion(GOLD_VERSION); echo "</div><div style='clear:both;'></div>\n"; closetable(); }
/** * Display Login form * @param array $info */ function display_loginform(array $info) { global $locale, $userdata, $aidlink; opentable($locale['global_100']); if (iMEMBER) { $msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='" . $userdata['user_id'] . "' AND message_read='0' AND message_folder='0'"); opentable($userdata['user_name']); echo "<div style='text-align:center'><br />\n"; echo THEME_BULLET . " <a href='" . BASEDIR . "edit_profile.php' class='side'>" . $locale['global_120'] . "</a><br />\n"; echo THEME_BULLET . " <a href='" . BASEDIR . "messages.php' class='side'>" . $locale['global_121'] . "</a><br />\n"; echo THEME_BULLET . " <a href='" . BASEDIR . "members.php' class='side'>" . $locale['global_122'] . "</a><br />\n"; if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) { echo THEME_BULLET . " <a href='" . ADMIN . "index.php" . $aidlink . "' class='side'>" . $locale['global_123'] . "</a><br />\n"; } echo THEME_BULLET . " <a href='" . BASEDIR . "index.php?logout=yes' class='side'>" . $locale['global_124'] . "</a>\n"; if ($msg_count) { echo "<br /><br />\n"; echo "<strong><a href='" . BASEDIR . "messages.php' class='side'>" . sprintf($locale['global_125'], $msg_count); echo ($msg_count == 1 ? $locale['global_126'] : $locale['global_127']) . "</a></strong>\n"; } echo "<br /><br /></div>\n"; } else { echo "<div id='login_form' class='panel panel-default text-center text-dark'>\n"; if (fusion_get_settings("sitebanner")) { echo "<a class='display-inline-block' href='" . BASEDIR . fusion_get_settings("opening_page") . "'><img src='" . BASEDIR . fusion_get_settings("sitebanner") . "' alt='" . fusion_get_settings("sitename") . "'/></a>\n"; } else { echo "<a class='display-inline-block' href='" . BASEDIR . fusion_get_settings("opening_page") . "'>" . fusion_get_settings("sitename") . "</a>\n"; } echo "<div class='panel-body text-center'>\n"; echo $info['open_form']; echo $info['user_name']; echo $info['user_pass']; echo $info['remember_me']; echo $info['login_button']; echo $info['registration_link'] . "<br/><br/>"; echo $info['forgot_password_link'] . "<br/><br/>"; echo $info['close_form']; echo "</div>\n"; echo "</div>\n"; } closetable(); }
global $settings; if ($settings['enable_tags']) { $result = dbquery("SELECT tag_name FROM " . DB_TAGS . " WHERE tag_item_id='" . (int) $item_id . "' AND tag_type=" . _db($type) . ""); if (dbrows($result)) { $result = dbquery("UPDATE " . DB_TAGS . " SET tag_name=" . _db($name) . " WHERE tag_item_id='" . (int) $item_id . "' AND tag_type=" . _db($type) . ""); } else { $result = dbquery("INSERT INTO " . DB_TAGS . " (tag_item_id, tag_type, tag_name) VALUES ('" . (int) $item_id . "', " . _db($type) . ", " . _db($name) . ")"); } } } function delete_tags($item_id, $type) { $result = dbquery("DELETE FROM " . DB_TAGS . " WHERE tag_item_id='" . (int) $item_id . "' AND tag_type=" . _db($type) . ""); return $result ? true : false; } function show_tags($item_id, $type) { global $settings, $locale; if ($settings['enable_tags']) { $result = dbquery("SELECT tag_name FROM " . DB_TAGS . " WHERE tag_item_id='" . (int) $item_id . "' AND tag_type=" . _db($type)); if (dbrows($result)) { $data = dbarray($result); if ($data['tag_name'] != "") { switch ($type) { case "N": $title = $locale['tag_news']; break; case "A": $title = $locale['tag_articles']; break; case "C": $title = $locale['tag_custom']; break; case "F": $title = $locale['tag_thread']; break; default: $title = $locale['tag_custom']; } opentable($title); $tag_a = explode(",", $data['tag_name']); $tag_r = "";
function render_post($post) { global $locale, $settings; opentable($post['alb_post_title']); echo "<div class='post-item'>"; echo "<div class='post-body'>" . $post['alb_post_text'] . "</div>"; echo "<div class='post-footer'>"; echo "<img src='" . AL_BLOG_DIR . "asset/images/user.png' class='icon' /><a href='" . BASEDIR . "profile.php?lookup=" . $post['alb_post_user'] . "'>" . $post['user_name'] . "</a>"; echo "<img src='" . AL_BLOG_DIR . "asset/images/category.png' class='icon' />" . ($post['alb_cat_title'] != '' ? "<a href='" . FUSION_SELF . "?p=view_category&id=" . $post['alb_post_cat'] . "'>" . $post['alb_cat_title'] . "</a>" : $locale['alb21']); echo "<img src='" . AL_BLOG_DIR . "asset/images/calendar.png' class='icon' />" . showdate("forumdate", $post['alb_post_datestamp']); echo "<img src='" . AL_BLOG_DIR . "asset/images/comments.png' class='icon' />" . $post['comments']; //echo " <a href='".FUSION_SELF."?p=view_post&id=".$post['alb_post_id']."'>".$locale['alb22']."</a>"; echo "</div>"; echo "</div>"; closetable(); require_once INCLUDES . "comments_include.php"; showcomments("BL", DB_AL_BLOG_POSTS, "alb_post_id", $_GET['id'], FUSION_SELF . "?p=view_post&id=" . $_GET['id']); require_once INCLUDES . "ratings_include.php"; showratings("B", $_GET['id'], FUSION_SELF . "?p=view_post&id=" . $_GET['id']); }
function render_custompage($info) { echo render_breadcrumbs(); opentable($info['title']); echo "<!--cp_idx-->\n"; if (!empty($info['error'])) { echo "<div class='well text-center'>\n"; echo $info['error']; echo "</div>\n"; } else { echo $info['body'][$_GET['rowstart']]; } closetable(); if (!empty($info['pagenav'])) { echo "<div class='display-block text-center m-t-5'>\n"; echo $info['pagenav']; echo "</div>\n"; } echo "<!--cp_sub_idx-->\n"; echo $info['show_comments']; echo $info['show_ratings']; }
function ConfigureVideo($ModPath, $ModStart, $class_sty_2) { opentable(); echo '<table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr><td class="header">' . video_yt_translate('Configuration du module vidéo') . '</td> </tr><tr><td><font color=red>* </font>' . video_yt_translate('requis') . '</td></tr> </table>'; opentable(); echo '<form action="admin.php" method="post">'; if (file_exists("modules/{$ModPath}/video_yt_conf.php")) { include "modules/{$ModPath}/video_yt_conf.php"; } echo '<table width="100%" cellspacing="2" cellpadding="2" border="1"><tr> <td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Votre ID developpeur youtube') . '</span> <font color=red>*</font> </td><td><input type="text" size="33" maxlength="255" name="dev_id" value="' . $dev_id . '"></td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Votre clef developpeur youtube') . '</span> </td><td><input type="text" size="33" maxlength="255" name="dev_key" value="' . $dev_key . '"> </td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Votre username id') . '</span> <font color=red>*</font></td><td><input type="text" size="33" maxlength="255" name="account" value="' . $use_id . '"> </td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Votre username youtube') . '</span> <font color=red>*</font></td><td><input type="text" size="33" maxlength="255" name="account" value="' . $account . '"> </td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Username alternatif') . '</span> <font color=red>*</font></td><td><input type="text" size="33" maxlength="255" name="rep_account" value="' . $rep_account . '"></td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Largeur de la vidéo') . '</span> </td><td><input type="text" size="33" maxlength="255" name="video_width" value="' . $video_width . '"></td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Hauteur de la vidéo') . '</span> </td><td><input type="text" size="33" maxlength="255" name="video_height" value="' . $video_height . '"></td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Largeur de la vidéo dans le bloc') . '</span> </td><td><input type="text" size="33" maxlength="255" name="bloc_width" value="' . $bloc_width . '"></td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Hauteur de la vidéo dans le bloc') . '</span> </td><td><input type="text" size="33" maxlength="255" name="bloc_height" value="' . $bloc_height . '"></td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Nombre de vidéo par page') . '</span> <font color=red>*</font> </td><td><input type="text" size="33" maxlength="2" name="incrementby" value="' . $incrementby . '"></td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Nombre de vidéo dans recherche') . '</span> <font color=red>*</font> </td><td><input type="text" size="33" maxlength="2" name="search_incrementby" value="' . $search_incrementby . '"></td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Couleur de fond zone recherche') . '</span> <font color=red>*</font> </td><td><input type="text" size="33" maxlength="6" name="bg_yt_search" value="' . $bg_yt_search . '"></td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Classe de style titre') . '</span> </td><td><input type="text" size="33" maxlength="255" name="class_sty_1" value="' . $class_sty_1 . '"></td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Classe de style sous-titre') . '</span> </td><td><input type="text" size="33" maxlength="255" name="class_sty_2" value="' . $class_sty_2 . '"></td></tr><tr><td width="25%"> <span class="' . $class_sty_2 . '">' . video_yt_translate('Classe de style commentaire') . '</span> </td><td><input type="text" size="33" maxlength="255" name="class_sty_3" value="' . $class_sty_3 . '"></td></tr></table> <br /><input class="bouton_standard" type="submit" value="' . video_yt_translate('Sauver') . '" /> <input type="hidden" name="op" value="Extend-Admin-SubModule" /> <input type="hidden" name="ModPath" value="' . $ModPath . '" /> <input type="hidden" name="ModStart" value="' . $ModStart . '" /> <input type="hidden" name="subop" value="SaveSetVideo_yt" /> </form>'; closetable(); closetable(); }
function render_comments($c_data, $c_info) { global $locale; opentable(format_word(number_format(count($c_data)), $locale['fmt_comment'])); if (!empty($c_data)) { echo "<div class='comments floatfix'>\n"; $c_makepagenav = ''; if ($c_info['c_makepagenav'] !== FALSE) { echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>" . $c_info['c_makepagenav'] . "</div>\n"; } foreach ($c_data as $data) { echo "<div class='comments_container m-b-15'><div class='pull-left m-r-10'>"; echo $data['user_avatar']; echo "</div>\n"; echo "<div class='overflow-hide'>\n"; if ($data['edit_dell'] !== FALSE) { echo "\n\t\t\t\t\t<div class='pull-right text-smaller comment_actions'>\n\t\t\t\t\t" . $data['edit_dell'] . "\n\t\t\t\t\t</div>\n"; } echo "<div class='comment_name'>\n"; echo "<a href='" . FUSION_REQUEST . "#c" . $data['comment_id'] . "' id='c" . $data['comment_id'] . "' name='c" . $data['comment_id'] . "'>#" . $data['i'] . "</a> "; echo $data['comment_name']; echo "<span class='text-smaller mid-opacity m-l-10'>" . $data['comment_datestamp'] . "</span>\n"; echo "</div>\n"; echo "<div class='comment_message'>" . $data['comment_message'] . "</div>\n"; echo "</div>\n</div>\n"; } echo $c_makepagenav; if ($c_info['admin_link'] !== FALSE) { echo "<div style='float:right' class='comment_admin'>" . $c_info['admin_link'] . "</div>\n"; } echo "</div>\n"; } else { echo "<div class='no_comment'>\n"; echo $locale['c101'] . "\n"; echo "</div>\n"; } closetable(); }
function showcomments($ctype, $cdb, $ccol, $cid, $clink = "") { global $settings, $userdata, $locale; include LOCALE . LOCALESET . "comments.php"; require_once INCLUDES . "bbcode_include.php"; add_to_head("<script type='text/javascript' src='" . INCLUDES . "comments_include/comments.js'></script>"); add_to_head("<script type='text/javascript'>\n var ctype = '" . $ctype . "';\n if (ctype == 'MG') {\n var cid = window.cidas;\n } else {\n var cid = '" . $cid . "';\n }\n var basedir = '" . BASEDIR . "';\n\t\t\tvar locale_noc = '" . $locale['c101'] . "';\n\t\t\tvar locale_edit = '" . $locale['c108'] . "';\n\t\t\tvar locale_del = '" . $locale['c109'] . "';\n </script>"); echo "<br /><br />"; opentable($locale['c100']); echo "<div id='comments_load' style='display:none;text-align:center;'><img src='" . INCLUDES . "comments_include/load.gif' alt='' style='border:0;' /></div><div id='comments'></div>"; closetable(); echo "<br /><br />"; opentable($locale['c102']); if (iMEMBER) { echo "<div align='center'>"; echo "<a id='edit_comment' name='edit_comment'></a>"; echo "<form name='comment_form' method='post' action='#'>"; echo "<input type='hidden' name='comment_name' value='" . $userdata['user_id'] . "' />"; echo "<input type='hidden' name='cid' value='" . $cid . "' />"; echo "<input type='hidden' name='ctype' value='" . $ctype . "' />"; echo "<input type='hidden' name='edited_id' value='' />"; echo "<input type='hidden' name='edited_id' value='' />"; echo "<textarea name='comment_message' cols='70' rows='6' class='textbox' style='width:360px'></textarea><br />"; echo "<div align='center'>" . display_bbcodes("360px", "comment_message", "comment_form") . "</div>"; echo "<input type='submit' name='post_comment' value='" . $locale['c102'] . "' class='button' /> "; echo "<input type='submit' name='edit_comment' value='" . $locale['c103'] . "' class='button' /> "; echo "</form>"; echo "<div id='comment_load' style='display:none;text-align:center;height:140px;'><img src='" . INCLUDES . "comments_include/load.gif' alt='' style='border:0;margin-top:50px;' /></div>"; echo "<br />"; echo "</div>"; } else { echo "<div style='text-align:center'>" . $locale['c105'] . "</div><br />"; } closetable(); echo "<div style='text-align:center;width:100%;'>AL jQ comments <a href='http://fusion.annetlab.tk'>Fusion @ AnnetLab</a> © 2011-2012</div>"; }
<?php /* fusionBoard 4.0 php-Invent Team http://www.php-invent.com Developer: Ian Unruh (SoBeNoFear) ianunruh@gmail.com */ opentable($locale['500']); echo "<!--pre_forum_thread-->\n"; renderNav(false, $announcementCheck); echo "<table cellpadding='0' cellspacing='0' width='100%'>\n"; echo "<tr>"; if ($rows > $posts_per_page || ($can_post || $can_reply)) { echo "<td align='left' style='padding:0px 0px 4px 5px;white-space:nowrap;' width='1%'>\n"; if (iMEMBER && ($can_post || $can_reply)) { if (!$fdata['thread_locked'] && $can_reply) { echo "<a href='post.php?action=reply&forum_id=" . $fdata['forum_id'] . "&thread_id=" . $_GET['thread_id'] . "'><img src='" . get_image("reply") . "' alt='" . $locale['565'] . "' style='border:0px' /></a> \n"; } if ($can_post) { echo "<nobr><a href='post.php?action=newthread&forum_id=" . $fdata['forum_id'] . "'><img src='" . get_image("newthread") . "' alt='" . $locale['566'] . "' style='border:0px' /></a> \n"; } echo "</td><td>"; } if ($rows > $posts_per_page) { echo "<nobr>" . makePageNav($_GET['rowstart'], $posts_per_page, $rows, 3, FUSION_SELF . "?thread_id=" . $_GET['thread_id'] . "&") . ""; } echo "</td>"; }
closetable(); } unset($log); } else { if ($settings['email_verification'] == "0") { $offset_list = ""; for ($i = -13; $i < 17; $i++) { if ($i > 0) { $offset = "+" . $i; } else { $offset = $i; } $offset_list .= "<option" . ($offset == "0" ? " selected='selected'" : "") . ">" . $offset . "</option>\n"; } } opentable($locale['400']); echo "<div style='text-align:center'>" . $locale['500'] . "\n"; if ($settings['email_verification'] == "1") { echo $locale['501'] . "\n"; } echo $locale['502']; if ($settings['email_verification'] == "1") { echo "\n" . $locale['503']; } echo "</div><br />\n"; echo "<form name='inputform' method='post' action='" . FUSION_SELF . "' onsubmit='return ValidateForm(this)'>\n"; echo "<table cellpadding='0' cellspacing='0' class='center'>\n<tr>\n"; echo "<td class='tbl'>" . $locale['u001'] . "<span style='color:#ff0000'>*</span></td>\n"; echo "<td class='tbl'><input type='text' name='username' maxlength='30' class='textbox' style='width:200px;' /></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl'>" . $locale['u002'] . "<span style='color:#ff0000'>*</span></td>\n";
$result = execute_query($query, "marriage.php"); $ban_until = time() + 2 * 60; // 2 minutos pra fazer efeito //testando vicous pucca $query = sprintf(PARTNER_BAN, $ban_until, $_SESSION[$CONFIG_name . 'account_id']); $result = execute_query($query, "marriage.php"); redir("marriage.php", "main_div", $lang['MARRIAGE_DIVORCE_OK']); } alert($lang['MARRIAGE_NOTHING']); } } $query = sprintf(PARTNER_GET, $_SESSION[$CONFIG_name . 'account_id']); $result = execute_query($query, "marriage.php"); if ($result->count() < 1) { redir("motd.php", "main_div", $lang['ONE_CHAR']); } opentable($lang['MARRIAGE']); echo "\r\n\t\t<table width=\"400\">\r\n\t\t<tr>\r\n\t\t\t<td align=\"left\" class=\"head\">" . $lang['NAME'] . "</td>\r\n\t\t\t<td align=\"left\" class=\"head\">" . $lang['MARRIAGE_PARTNER'] . "</td>\r\n\t\t\t<td align=\"center\" class=\"head\">" . $lang['MARRIAGE_DIVORCE'] . "</td>\r\n\t\t</tr>\r\n\t\t"; while ($line = $result->fetch_row()) { $charname = htmlformat($line[0]); $GID1 = $line[1]; $partnername = htmlformat($line[2]); if (strlen($partnername) < 4) { $partnername = $lang['MARRIAGE_SINGLE']; } $GID2 = $line[3]; echo " \r\n\t\t\t<tr>\r\n\t\t\t\t<td align=\"left\">{$charname}</td>\r\n\t\t\t\t<td align=\"left\">{$partnername}</td>\r\n\t\t\t"; if ($CONFIG_marry_enable && $GID2 > 0) { echo "\r\n\t\t\t\t<td align=\"center\">\r\n\t\t\t\t<form id=\"marriage{$GID1}\" onsubmit=\"return GET_ajax('marriage.php','main_div','marriage{$GID1}');\">\r\n\t\t\t\t\t<input type=\"checkbox\" name=\"divorce\" value=\"1\" style=\"border-color: #FFFFFF\">\r\n\t\t\t\t\t<input type=\"submit\" value=\"Confirm\" class=\"myctl\">\r\n\t\t\t\t\t<input type=\"hidden\" name=\"opt\" value=\"1\">\r\n\t\t\t\t\t<input type=\"hidden\" name=\"GID1\" value=\"{$GID1}\">\r\n\t\t\t\t\t<input type=\"hidden\" name=\"GID2\" value=\"{$GID2}\">\r\n\t\t\t\t</form>\r\n\t\t\t\t</td>\r\n\t\t\t\t"; } echo "</tr>"; }
if (dbrows($result)) { $ldata = dbarray($result); $forum_lastpost = "forum_lastpost='" . $ldata['post_datestamp'] . "', forum_lastuser='******'post_author'] . "'"; } else { $forum_lastpost = "forum_lastpost='0', forum_lastuser='******'"; } $result = dbquery("UPDATE " . DB_FORUMS . " SET " . $forum_lastpost . ", forum_postcount=forum_postcount-" . $deleted_posts . ", forum_threadcount=forum_threadcount-" . $deleted_threads . " WHERE forum_id='" . $_GET['forum_id'] . "'"); } $rows_left = dbcount("(thread_id)", "threads", "forum_id='" . $_GET['forum_id'] . "'") - 3; if ($rows_left <= $_GET['rowstart'] && $_GET['rowstart'] > 0) { $_GET['rowstart'] = (ceil($rows_left / $threads_per_page) - 1) * $threads_per_page; } redirect(FUSION_SELF . "?forum_id=" . $_GET['forum_id'] . "&rowstart=" . $_GET['rowstart']); } $rows = dbcount("(thread_id)", DB_THREADS, "forum_id='" . $_GET['forum_id'] . "' AND thread_sticky='0'"); opentable($locale['450']); echo "<!--pre_forum--><div class='tbl2'><a href='index.php'>" . $settings['sitename'] . "</a> :: " . $caption . "</div>\n"; if ($rows > $threads_per_page || iMEMBER && $can_post) { echo "<table cellspacing='0' cellpadding='0' width='100%'>\n<tr>\n"; if ($rows > $threads_per_page) { echo "<td style='padding:4px 0px 4px 0px'>" . makePageNav($_GET['rowstart'], $threads_per_page, $rows, 3, FUSION_SELF . "?forum_id=" . $_GET['forum_id'] . "&") . "</td>\n"; } if (iMEMBER && $can_post) { echo "<td align='right' style='padding:4px 0px 4px 0px'><a href='post.php?action=newthread&forum_id=" . $_GET['forum_id'] . "'><img src='" . get_image("newthread") . "' alt='" . $locale['566'] . "' style='border:0px;' /></a></td>\n"; } echo "</tr>\n</table>\n"; } if (iMOD) { echo "<form name='mod_form' method='post' action='" . FUSION_SELF . "?forum_id=" . $_GET['forum_id'] . "&rowstart=" . $_GET['rowstart'] . "'>\n"; } echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border forum_table'>\n<tr>\n";
$i = 0; opentable($locale['global_042']); echo "<table cellpadding='0' cellspacing='0' width='100%' class='tbl-border'>\n<tr>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['global_048'] . "</strong></td>\n"; echo "<td width='100%' class='tbl2'><strong>" . $locale['global_044'] . "</strong></td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['global_049'] . "</strong></td>\n"; echo "</tr>\n"; while ($data = dbarray($result)) { if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; } echo "<tr>\n"; echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . trimlink($data['forum_name'], 30) . "</td>\n"; echo "<td width='100%' class='" . $row_color . "'><a href='" . FORUM . "viewthread.php?thread_id=" . $data['thread_id'] . "&pid=" . $data['post_id'] . "#post_" . $data['post_id'] . "' title='" . $data['thread_subject'] . "'>" . trimlink($data['thread_subject'], 40) . "</a></td>\n"; echo "<td align='center' width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . showdate("forumdate", $data['post_datestamp']) . "</td>\n"; echo "</tr>\n"; $i++; } echo "</table>\n"; closetable(); if ($rows > 20) { echo "<div align='center' style='margin-top:5px;'>\n" . makepagenav($_GET['rowstart'], 20, $rows, 3) . "\n</div>\n"; } } else { opentable($locale['global_042']); echo "<div style='text-align:center'><br />\n" . $locale['global_054'] . "<br /><br />\n</div>\n"; closetable(); } require_once THEMES . "templates/footer.php";
for ($i = 0; $i < count($iwords); $i++) { $txt .= $iwords[$i] . ($i < count($iwords) - 1 ? ", " : ""); } echo "<div style='text-align:center;font-weight:bold'>" . sprintf($locale['502'], $txt) . "</div><br />"; } if ($_GET['stype'] == "all") { $navigation_result = search_navigation(0); echo "<div class='quote'>" . $items_count . "<hr />" . THEME_BULLET . " <strong>" . ($site_search_count > 100 || search_globalarray("") ? sprintf($locale['530'], $site_search_count) : $site_search_count . " " . $locale['510']) . "</strong></div><hr />"; } else { echo $items_count . "<hr />"; echo $site_search_count > 100 || search_globalarray("") ? "<strong>" . sprintf($locale['530'], $site_search_count) . "</strong><hr />" : ""; } if ($_GET['stype'] == "all") { $from = $_GET['rowstart']; $to = count($search_result_array) - ($_GET['rowstart'] + 10) <= 0 ? count($search_result_array) : $_GET['rowstart'] + 10; } else { $from = 0; $to = count($search_result_array) < 10 ? count($search_result_array) : 10; } for ($i = $from; $i < $to; $i++) { echo $search_result_array[$i]; } echo $navigation_result; closetable(); } elseif (isset($_GET['stext'])) { add_to_title($locale['global_201'] . $locale['408']); opentable($locale['408']); echo $locale['501']; closetable(); } require_once THEMES . "templates/footer.php";
| copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ require_once "../../maincore.php"; require_once THEMES . "templates/header.php"; if (!iMEMBER) { redirect("../../index.php"); } if (isset($_GET['delete']) && isnum($_GET['delete']) && dbcount("(thread_id)", DB_THREAD_NOTIFY, "thread_id='" . $_GET['delete'] . "' AND notify_user='******'user_id'] . "'")) { $result = dbquery("DELETE FROM " . DB_THREAD_NOTIFY . " WHERE thread_id=" . $_GET['delete'] . " AND notify_user="******"SELECT tn.thread_id FROM " . DB_THREAD_NOTIFY . " tn\n\tINNER JOIN " . DB_THREADS . " tt ON tn.thread_id = tt.thread_id\n\tINNER JOIN " . DB_FORUMS . " tf ON tt.forum_id = tf.forum_id\n\tWHERE tn.notify_user="******" AND " . groupaccess('forum_access') . " AND tt.thread_hidden='0'"); $rows = dbrows($result); if ($rows) { $result = dbquery("\n\t\tSELECT tf.forum_access, tn.thread_id, tn.notify_datestamp, tn.notify_user,\n\t\ttt.thread_subject, tt.forum_id, tt.thread_lastpost, tt.thread_lastuser, tt.thread_postcount,\n\t\ttu.user_id AS user_id1, tu.user_name AS user_name1, tu.user_status AS user_status1, \n\t\ttu2.user_id AS user_id2, tu2.user_name AS user_name2, tu2.user_status AS user_status2\n\t\tFROM " . DB_THREAD_NOTIFY . " tn\n\t\tINNER JOIN " . DB_THREADS . " tt ON tn.thread_id = tt.thread_id\n\t\tINNER JOIN " . DB_FORUMS . " tf ON tt.forum_id = tf.forum_id\n\t\tLEFT JOIN " . DB_USERS . " tu ON tt.thread_author = tu.user_id\n\t\tLEFT JOIN " . DB_USERS . " tu2 ON tt.thread_lastuser = tu2.user_id\n\t\tINNER JOIN " . DB_POSTS . " tp ON tt.thread_id = tp.thread_id\n\t\tWHERE tn.notify_user="******" AND " . groupaccess('forum_access') . " AND tt.thread_hidden='0'\n\t\tGROUP BY tn.thread_id\n\t\tORDER BY tn.notify_datestamp DESC\n\t\tLIMIT " . $_GET['rowstart'] . ",10\n\t"); echo "<table class='tbl-border' cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n"; echo "<td class='tbl2'><strong>" . $locale['global_044'] . "</strong></td>\n"; echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_050'] . "</strong></td>\n"; echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_047'] . "</strong></td>\n"; echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_046'] . "</strong></td>\n"; echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_057'] . "</strong></td>\n"; echo "</tr>\n"; $i = 0; while ($data = dbarray($result)) { $row_color = $i % 2 == 0 ? "tbl1" : "tbl2"; echo "<tr>\n<td class='" . $row_color . "'><a href='" . FORUM . "viewthread.php?thread_id=" . $data['thread_id'] . "'>" . $data['thread_subject'] . "</a></td>\n";
for ($i = 1; $i < count($inf_newtable) + 1; $i++) { $result = dbquery("DROP TABLE " . $inf_droptable[$i]); } } if (isset($inf_deldbrow) && is_array($inf_deldbrow) && count($inf_deldbrow)) { for ($i = 1; $i < count($inf_deldbrow) + 1; $i++) { $result = dbquery("DELETE FROM " . $inf_deldbrow[$i]); } } $result = dbquery("DELETE FROM " . DB_INFUSIONS . " WHERE inf_id='" . $_GET['defuse'] . "'"); redirect(FUSION_SELF . $aidlink); } $result = dbquery("SELECT * FROM " . DB_INFUSIONS . " ORDER BY inf_title"); if (dbrows($result)) { $i = 0; opentable($locale['404']); echo "<table cellpadding='0' cellspacing='1' width='500' class='tbl-border center'>\n<tr>\n"; echo "<td class='tbl2'><strong>" . $locale['405'] . "</strong></td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['406'] . "</strong></td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['407'] . "</strong></td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['408'] . "</strong></td>\n"; echo "<td align='center' width='1%' class='tbl2'> </td>\n"; echo "</tr>\n"; while ($data = dbarray($result)) { $row_color = $i % 2 == 0 ? "tbl1" : "tbl2"; if (@(include INFUSIONS . $data['inf_folder'] . "/infusion.php")) { echo "<tr>\n"; echo "<td class='" . $row_color . "'><span title='" . $inf_description . "' style='cursor:hand;'>" . $inf_title . "</span></td>\n"; echo "<td align='center' width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . $inf_version . "</td>\n"; echo "<td align='center' width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . $inf_developer . "</td>\n"; echo "<td align='center' width='1%' class='" . $row_color . "' style='white-space:nowrap'><a href='mailto:" . $inf_email . "'>" . $locale['409'] . "</a> / <a href='" . $inf_weburl . "'>" . $locale['410'] . "</a></td>\n";
function render_userprofile($info) { // Basic User Information $basic_info = isset($info['core_field']) && is_array($info['core_field']) ? $info['core_field'] : array(); //User Fields Module Information $field_info = isset($info['user_field']) && is_array($info['user_field']) ? $info['user_field'] : array(); $user_info = ''; $user_avatar = ''; $user_name = ''; $user_level = ''; foreach ($basic_info as $field_id => $data) { if ($field_id == 'profile_user_avatar') { $avatar['user_avatar'] = $data['value']; $avatar['user_status'] = $data['status']; $user_avatar = "<img src='" . $data['value'] . "' style='width:50px;' alt='" . $info['core_field']['profile_user_name']['value'] . "'/>\n"; } elseif ($field_id == 'profile_user_name') { $user_name = "<h4>" . $data['value'] . "</h4>\n"; } elseif ($field_id == 'profile_user_level') { $user_info .= "\n\t\t\t\t<div id='" . $field_id . "' class='m-b-5 row'>\n\t\t\t\t\t<span class='col-xs-12 col-sm-3'>" . $data['title'] . "</span>\n\t\t\t\t\t<div class='col-xs-12 col-sm-9 profile_text overflow-hide'>" . $data['value'] . "</div>\n\t\t\t\t</div>\n"; } else { $user_info .= !empty($data['value']) ? "\n\t\t\t\t\t<div id='" . $field_id . "' class='m-b-5 row'>\n\t\t\t\t\t<span class='col-xs-12 col-sm-3'>" . $data['title'] . "</span>\n\t\t\t\t\t<div class='col-xs-12 col-sm-9 profile_text'>" . $data['value'] . "</div>\n\t\t\t\t\t</div>\n" : ''; } } if (!empty($field_info)) { $user_field = ''; foreach ($field_info as $field_cat_id => $category_data) { if (!empty($category_data['fields'])) { $user_field .= $category_data['title']; $user_field .= "<div class='list-group-item'>"; if (isset($category_data['fields'])) { foreach ($category_data['fields'] as $field_id => $field_data) { $user_field .= "<div id='" . $field_id . "' class='m-b-5 row'>\n\t\t\t\t\t\t<span class='col-xs-12 col-sm-3'>" . $field_data['title'] . "</span>\n\t\t\t\t\t\t<div class='col-xs-12 col-sm-9 profile_text'>" . $field_data['value'] . "</div>\n\t\t\t\t\t\t</div>\n"; } } $user_field .= "</div>\n"; } } } else { global $locale; $user_field = "<div class='m-t-20 text-center well'>" . $locale['uf_108'] . "</div>\n"; } // buttons $user_buttons = ''; if (!empty($info['buttons'])) { $user_buttons = "<div class='btn-group m-t-10 m-b-10 col-sm-offset-3'>"; foreach ($info['buttons'] as $buttons) { $user_buttons .= "<a class='btn btn-sm button btn-default' href='" . $buttons['link'] . "'>" . $buttons['name'] . "</a>"; } $user_buttons .= "</div>\n"; } global $locale; opentable($locale['u104'] . " " . $user_name); ?> <!--userprofile_pre_idx--> <section id='user-profile' class='m-t-20'> <?php if (!empty($info['section'])) { $tab_title = array(); foreach ($info['section'] as $page_section) { $tab_title['title'][$page_section['id']] = $page_section['name']; $tab_title['id'][$page_section['id']] = $page_section['id']; $tab_title['icon'][$page_section['id']] = ""; } echo opentab($tab_title, $_GET['section'], "profile_tab", TRUE); } ?> <div class='clearfix m-t-20'> <div class='pull-left m-r-20'><?php echo $user_avatar; ?> </div> <div class='overflow-hide'> <?php echo $user_name; echo $user_level; echo $user_info; echo $user_buttons; echo $user_field; echo "<hr />"; if (!empty($info['admin'])) { echo $info['admin']; } ?> </div> </div> <?php echo closetab(); ?> </section> <!--userprofile_sub_idx--> <?php closetable(); }
<?php session_start(); include_once 'config.php'; include_once 'functions.php'; $jobs = $_SESSION[$CONFIG_Name . 'jobs']; $who = $mysql->query("\r\n\t\tSELECT\r\n\t\t\t`char`.`name`, `char`.`class`, `char`.`base_level`, `char`.`job_level`, `char`.`last_map`, `login`.`level`, `login`.`sex`, `guild`.`name` AS `gname`, `global_reg_value`.`value`, `char`.`online`, `guild`.`guild_id`\r\n\t\tFROM\r\n\t\t\t`global_reg_value` LEFT JOIN `char` ON `char`.`char_id` = `global_reg_value`.`char_id` LEFT JOIN `login` ON `login`.`account_id` = `char`.`account_id` LEFT JOIN `guild` ON `guild`.`guild_id` = `char`.`guild_id`\r\n\t\tWHERE\r\n\t\t\t`global_reg_value`.`str` = 'EmperiumRank' AND `global_reg_value`.`value` > '0' AND `login`.`level` = '0' AND `login`.`state` = '0'\r\n\t\tORDER BY\r\n\t\t\t`global_reg_value`.`value` + 0 DESC\r\n\t\tLIMIT 0, 30\r\n\t", $CONFIG['DBMain']); opentable('Ranking de Rompe Emperiums'); ?> <table width="600"> <tr> <td align="left" class="head">#</td> <td> </td> <td align="left" class="head" colspan="2">Nombre de Personaje</td> <td align="center" class="head">Clase</td> <td align="center" class="head">Level</td> <td align="center" class="head" width="100">Empes</td> <td align="center" class="head">Mapa</td> </tr> <?php if ($who) { $total = 0; $empes = 0; while ($char = $mysql->fetcharray($who)) { $total++; $empes += $char['value']; echo ' <tr> <td align="left">' . $total . '</td> <td> </td> <td align="center" width=30><img src="' . $char['sex'] . '.gif"></td>
if ($settings['comments_enabled'] == "0" && $settings['ratings_enabled'] == "0") { $sys = $locale['459']; } elseif ($settings['comments_enabled'] == "0") { $sys = $locale['457']; } else { $sys = $locale['458']; } echo "<tr>\n<td colspan='2' class='tbl1' style='font-weight:bold;text-align:left; color:black !important; background-color:#FFDBDB;'>"; echo "<span style='color:red;font-weight:bold;margin-right:5px;'>*</span>" . sprintf($locale['456'], $sys); echo "</td>\n</tr>"; } echo "<tr>\n"; echo "<td align='center' colspan='2' class='tbl'><br />\n"; if (isset($_POST['article_id']) && isnum($_POST['article_id']) || isset($_GET['article_id']) && isnum($_GET['article_id'])) { echo form_hidden('', 'article_id', 'article_id', isset($_POST['article_id']) ? $_POST['article_id'] : $_GET['article_id']); //echo "<input type='hidden' name='article_id' value='".(isset($_POST['article_id']) ? $_POST['article_id'] : $_GET['article_id'])."' />\n"; } echo form_button($locale['430'], 'preview', 'preview', $locale['430'], array('class' => 'btn-primary m-r-10')); echo form_button($locale['431'], 'save', 'save', $locale['431'], array('class' => 'btn-primary')); echo "</tr>\n</table>\n</form>\n"; closetable(); add_to_jquery("\r\n function DeleteArticle() { return confirm('" . $locale['451'] . "');}\r\n \$('#save, #preview').bind('click', function(e) {\r\n var subject = \$('#subject').val();\r\n if (subject == '') { alert('" . $locale['450'] . "'); return false; }\r\n });\r\n "); } } } else { opentable($locale['403']); echo "<div style='text-align:center'>" . $locale['452'] . "<br />\n" . $locale['453'] . "<br />\n"; echo "<a href='article_cats.php" . $aidlink . "'>" . $locale['454'] . "</a>" . $locale['455'] . "</div>\n"; closetable(); } require_once THEMES . "templates/footer.php";
$result = dbquery("UPDATE " . DB_SETTINGS . " SET settings_value='{$license_agreement}' WHERE settings_name='license_agreement'"); if (!$result) { $error = 1; } $result = dbquery("UPDATE " . DB_SETTINGS . " SET settings_value='{$license_lastupdate}' WHERE settings_name='license_lastupdate'"); if (!$result) { $error = 1; } if ($error) { addNotice('danger', $locale['901']); } else { addNotice('success', $locale['900']); } redirect(FUSION_SELF . $aidlink); } opentable($locale['register_settings']); echo openform('settingsform', 'post', FUSION_SELF . $aidlink, array('max_tokens' => 1)); $opts = array('1' => $locale['yes'], '0' => $locale['no']); echo "<div class='well'>" . $locale['register_description'] . "</div>\n"; echo "<div class='row'>\n"; echo "<div class='col-xs-12 col-sm-8'>\n"; openside(''); echo form_select('enable_terms', $locale['558'], $settings2['enable_terms'], array("options" => $opts)); echo form_textarea('license_agreement', $locale['559'], $settings2['license_agreement'], array('form_name' => 'settingsform', 'input_id' => 'enable_license_agreement', 'autosize' => !$settings['tinymce_enabled'], 'html' => !$settings['tinymce_enabled'])); closeside(); echo "</div><div class='col-xs-12 col-sm-4'>\n"; openside(''); echo form_select('enable_registration', $locale['551'], $settings2['enable_registration'], array("options" => $opts)); echo form_select('email_verification', $locale['552'], $settings2['email_verification'], array("options" => $opts)); echo form_select('admin_activation', $locale['557'], $settings2['admin_activation'], array("options" => $opts)); echo form_select('display_validation', $locale['553'], $settings2['display_validation'], array("options" => $opts));