Zeile 438 | Zeile 438 |
---|
$form->output_submit_wrapper($buttons); $form->end();
|
$form->output_submit_wrapper($buttons); $form->end();
|
echo '<script type="text/javascript" src="./jscripts/peeker.js?ver=1804"></script>
| echo '<script type="text/javascript" src="./jscripts/peeker.js?ver=1821"></script>
|
<script type="text/javascript">
|
<script type="text/javascript">
|
$(document).ready(function() {
| $(function() {
|
new Peeker($("#type"), $("#row_extra"), /^(select|radio|checkbox|php)$/, false); }); // Add a star to the extra row since the "extra" is required if the box is shown
| new Peeker($("#type"), $("#row_extra"), /^(select|radio|checkbox|php)$/, false); }); // Add a star to the extra row since the "extra" is required if the box is shown
|
Zeile 656 | Zeile 656 |
---|
$form->output_submit_wrapper($buttons); $form->end();
|
$form->output_submit_wrapper($buttons); $form->end();
|
echo '<script type="text/javascript" src="./jscripts/peeker.js?ver=1804"></script>
| echo '<script type="text/javascript" src="./jscripts/peeker.js?ver=1821"></script>
|
<script type="text/javascript">
|
<script type="text/javascript">
|
$(document).ready(function() {
| $(function() {
|
new Peeker($("#type"), $("#row_extra"), /^(select|radio|checkbox|php)$/, false); }); // Add a star to the extra row since the "extra" is required if the box is shown
| new Peeker($("#type"), $("#row_extra"), /^(select|radio|checkbox|php)$/, false); }); // Add a star to the extra row since the "extra" is required if the box is shown
|
Zeile 1036 | Zeile 1036 |
---|
{ $mybb->input['upsetting']['allowmultipleemails'] = 0; $lang->success_settings_updated .= $lang->success_settings_updated_allowmultipleemails;
|
{ $mybb->input['upsetting']['allowmultipleemails'] = 0; $lang->success_settings_updated .= $lang->success_settings_updated_allowmultipleemails;
|
| } }
$fields = array( 'uploadspath', 'cdnpath', 'avataruploadpath', ); foreach($fields as $field) { if( isset($mybb->input['upsetting'][$field]) && is_string($mybb->input['upsetting'][$field]) && strpos($mybb->input['upsetting'][$field], '://') !== false) { unset($mybb->input['upsetting'][$field]);
|
} }
| } }
|
Zeile 1067 | Zeile 1084 |
---|
} } else
|
} } else
|
{
| {
|
$value = '';
|
$value = '';
|
}
| }
|
} elseif($checkbox_settings && in_array($name, $checkbox_settings)) {
| } elseif($checkbox_settings && in_array($name, $checkbox_settings)) {
|
Zeile 1082 | Zeile 1099 |
---|
}
$db->update_query("settings", array('value' => $db->escape_string($value)), "name='".$db->escape_string($name)."'");
|
}
$db->update_query("settings", array('value' => $db->escape_string($value)), "name='".$db->escape_string($name)."'");
|
} }
| } }
|
// Check if we need to create our fulltext index after changing the search mode if($mybb->settings['searchtype'] != $mybb->input['upsetting']['searchtype'] && $mybb->input['upsetting']['searchtype'] == "fulltext")
| // Check if we need to create our fulltext index after changing the search mode if($mybb->settings['searchtype'] != $mybb->input['upsetting']['searchtype'] && $mybb->input['upsetting']['searchtype'] == "fulltext")
|
Zeile 1091 | Zeile 1108 |
---|
if(!$db->is_fulltext("posts") && $db->supports_fulltext_boolean("posts")) { $db->create_fulltext_index("posts", "message");
|
if(!$db->is_fulltext("posts") && $db->supports_fulltext_boolean("posts")) { $db->create_fulltext_index("posts", "message");
|
}
| }
|
if(!$db->is_fulltext("posts") && $db->supports_fulltext("threads")) { $db->create_fulltext_index("threads", "subject");
|
if(!$db->is_fulltext("posts") && $db->supports_fulltext("threads")) { $db->create_fulltext_index("threads", "subject");
|
} }
| } }
|
// If the delayedthreadviews setting was changed, enable or disable the tasks for it. if(isset($mybb->input['upsetting']['delayedthreadviews']) && $mybb->settings['delayedthreadviews'] != $mybb->input['upsetting']['delayedthreadviews'])
|
// If the delayedthreadviews setting was changed, enable or disable the tasks for it. if(isset($mybb->input['upsetting']['delayedthreadviews']) && $mybb->settings['delayedthreadviews'] != $mybb->input['upsetting']['delayedthreadviews'])
|
{
| {
|
$db->update_query("tasks", array('enabled' => (int)$mybb->input['upsetting']['delayedthreadviews']), "file='threadviews'"); }
| $db->update_query("tasks", array('enabled' => (int)$mybb->input['upsetting']['delayedthreadviews']), "file='threadviews'"); }
|
Zeile 1110 | Zeile 1127 |
---|
my_unsetcookie("adminsid"); $mybb->settings['cookieprefix'] = $mybb->input['upsetting']['cookieprefix']; my_setcookie("adminsid", $admin_session['sid'], '', true, "lax");
|
my_unsetcookie("adminsid"); $mybb->settings['cookieprefix'] = $mybb->input['upsetting']['cookieprefix']; my_setcookie("adminsid", $admin_session['sid'], '', true, "lax");
|
}
| }
|
if(isset($mybb->input['upsetting']['statstopreferrer']) && $mybb->input['upsetting']['statstopreferrer'] != $mybb->settings['statstopreferrer'])
|
if(isset($mybb->input['upsetting']['statstopreferrer']) && $mybb->input['upsetting']['statstopreferrer'] != $mybb->settings['statstopreferrer'])
|
{
| {
|
$cache->update_statistics(); }
$statslimit = $mybb->settings['statslimit'];
|
$cache->update_statistics(); }
$statslimit = $mybb->settings['statslimit'];
|
|
|
rebuild_settings();
if(isset($mybb->input['upsetting']['statslimit']) && $mybb->input['upsetting']['statslimit'] != $statslimit) { $cache->update_most_replied_threads(); $cache->update_most_viewed_threads();
|
rebuild_settings();
if(isset($mybb->input['upsetting']['statslimit']) && $mybb->input['upsetting']['statslimit'] != $statslimit) { $cache->update_most_replied_threads(); $cache->update_most_viewed_threads();
|
}
| }
|
$plugins->run_hooks("admin_config_settings_change_commit");
| $plugins->run_hooks("admin_config_settings_change_commit");
|
Zeile 1145 | Zeile 1162 |
---|
// Search for settings $search = $db->escape_string_like($mybb->input['search']); $query = $db->query("
|
// Search for settings $search = $db->escape_string_like($mybb->input['search']); $query = $db->query("
|
SELECT s.*
| SELECT s.* , g.name as gname, g.title as gtitle, g.description as gdescription
|
FROM ".TABLE_PREFIX."settings s LEFT JOIN ".TABLE_PREFIX."settinggroups g ON(s.gid=g.gid)
|
FROM ".TABLE_PREFIX."settings s LEFT JOIN ".TABLE_PREFIX."settinggroups g ON(s.gid=g.gid)
|
WHERE s.name LIKE '%{$search}%' OR s.title LIKE '%{$search}%' OR s.description LIKE '%{$search}%' OR g.name LIKE '%{$search}%' OR g.title LIKE '%{$search}%' OR g.description LIKE '%{$search}%'
| |
ORDER BY s.disporder "); while($setting = $db->fetch_array($query)) {
|
ORDER BY s.disporder "); while($setting = $db->fetch_array($query)) {
|
$cache_settings[$setting['gid']][$setting['sid']] = $setting;
| $lang_var = "setting_{$setting['name']}"; if(isset($lang->$lang_var)) { $setting["title"] = $lang->$lang_var; } $lang_var = "setting_{$setting['name']}_desc"; if(isset($lang->$lang_var)) { $setting["description"] = $lang->$lang_var; } $lang_var = "setting_group_{$setting['gname']}"; if(isset($lang->$lang_var)) { $setting["gtitle"] = $lang->$lang_var; } $lang_var = "setting_group_{$setting['gname']}_desc"; if(isset($lang->$lang_var)) { $setting["gdescription"] = $lang->$lang_var; } $lang_var = $setting["title"] . " " . $setting["description"] . " " . $setting["gtitle"] . " " . $setting["gdescription"]; $search = mb_convert_encoding($search, mb_detect_encoding($setting["title"], "auto")); if (mb_stripos($lang_var, $search)) { $cache_settings[$setting['gid']][$setting['sid']] = $setting; }
|
}
|
}
|
if(!$db->num_rows($query))
| if(!count($cache_settings))
|
{ if(isset($mybb->input['ajax_search'])) {
| { if(isset($mybb->input['ajax_search'])) {
|
Zeile 1721 | Zeile 1761 |
---|
echo '</div>';
echo '
|
echo '</div>';
echo '
|
<script type="text/javascript" src="./jscripts/search.js?ver=1808"></script>
| <script type="text/javascript" src="./jscripts/search.js?ver=1821"></script>
|
<script type="text/javascript"> //<!--
|
<script type="text/javascript"> //<!--
|
$(document).ready(function(){
| $(function(){
|
SettingSearch.init("'.$lang->settings_search.'","'.$lang->error_ajax_unknown.'"); }); //-->
| SettingSearch.init("'.$lang->settings_search.'","'.$lang->error_ajax_unknown.'"); }); //-->
|
Zeile 1781 | Zeile 1821 |
---|
'new Peeker($("#setting_errorlogmedium"), $("#row_setting_errorloglocation"), /^(log|both)/, false)', 'new Peeker($(".setting_sigmycode"), $("#row_setting_sigcountmycode, #row_setting_sigimgcode"), 1, true)', 'new Peeker($(".setting_pmsallowmycode"), $("#row_setting_pmsallowimgcode, #row_setting_pmsallowvideocode"), 1, true)',
|
'new Peeker($("#setting_errorlogmedium"), $("#row_setting_errorloglocation"), /^(log|both)/, false)', 'new Peeker($(".setting_sigmycode"), $("#row_setting_sigcountmycode, #row_setting_sigimgcode"), 1, true)', 'new Peeker($(".setting_pmsallowmycode"), $("#row_setting_pmsallowimgcode, #row_setting_pmsallowvideocode"), 1, true)',
|
'new Peeker($(".setting_enableshowteam"), $("#row_setting_showaddlgroups, #row_setting_showgroupleaders"), 1, true)'
| 'new Peeker($(".setting_enableshowteam"), $("#row_setting_showaddlgroups, #row_setting_showgroupleaders"), 1, true)', 'new Peeker($(".setting_usereferrals"), $("#row_setting_referralsperpage"), 1, true)',
|
);
$peekers = $plugins->run_hooks("admin_settings_print_peekers", $peekers);
$setting_peekers = implode("\n ", $peekers);
|
);
$peekers = $plugins->run_hooks("admin_settings_print_peekers", $peekers);
$setting_peekers = implode("\n ", $peekers);
|
echo '<script type="text/javascript" src="./jscripts/peeker.js?ver=1804"></script>
| echo '<script type="text/javascript" src="./jscripts/peeker.js?ver=1821"></script>
|
<script type="text/javascript">
|
<script type="text/javascript">
|
$(document).ready(function() {
| $(function() {
|
' . $setting_peekers . ' }); </script>';
| ' . $setting_peekers . ' }); </script>';
|