|
|
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo
|
|
[General] Edit users problem |
Autor |
Wiadomość |
evilmc
Posty: 289
|
Wysłany: 21-07-2015, 20:19 [General] Edit users problem
|
|
|
I get this error when I edit users. How to fix this problem?
Kod: | https://serbian-fm.net/admin/admin_users.php?mode=edit&u=648&sid=xxxxxxxxxx |
Kod: | 'YES', false => 'NO'); else if ($only_values_given) { for ($i = 0; $i < count($testval); $i++) { $testval[$testval[$i]] = $testval[$i]; unset($testval[$i]); } } $var = strtoupper($cfg_var) . '_'; foreach ($testval as $test => $return_value) { if ($sfc[$cfg_var] == $test) return $var . strtoupper($return_value); } return $var . strtoupper($testval[$defaults[$cfg_var]]); } function sf_microtime_float() { list($usec, $sec) = explode(' ', microtime()); return ((float)$usec + (float)$sec); } function make_sort_header($l_name, $l_val, $u_name, $u_base, $sortcol) { global $template, $sort, $sort_order; if ($sort != $sortcol) { $l_val .= ' ^'; } else if ($sort_order == 'ASC') { $sortcol = '!' . $sortcol; $l_val .= ' [^]'; } else { $l_val .= ' [v]'; } $template->assign_vars(array( $l_name => $l_val, $u_name => append_sid("$u_base&sort=$sortcol") )); } function sf_remove_logs($where_clause, $msg_lang_name, $redirect) { global $lang, $db, $phpEx; $where_clause = !empty($where_clause) ? "WHERE $where_clause" : ''; $sql = "DELETE FROM " . SPIDER_LOG_TABLE . " $where_clause"; if (!$db->sql_query($sql)) { message_die(GENERAL_ERROR, 'Failed to delete log information from table', '', __LINE__, __FILE__, $sql); } $message = $lang[$msg_lang_name] . '
' . sprintf($lang['Click_Return_Spiders'], '', '') . '
' . sprintf($lang['Click_return_admin_index'], '', ''); message_die(GENERAL_MESSAGE, $message); } function sf_log_count() { global $db; $sql = 'SELECT COUNT(*) AS count FROM ' . SPIDER_LOG_TABLE; if (!($result = $db->sql_query($sql))) { message_die(GENERAL_ERROR, 'Could not obtain log information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); return $row['count']; } function sf_parse_sort_info($sort, $sort_allow) { global $HTTP_GET_VARS; $sort = isset($HTTP_GET_VARS[$sort]) ? $HTTP_GET_VARS[$sort] : ''; if (substr($sort, 0, 1) != '!') { $ret['order'] = 'ASC'; } else { $sort = substr($sort, 1); $ret['order'] = 'DESC'; } if (!in_array($sort, $sort_allow)) $sort = $sort_allow[0]; $ret['sort_by'] = $sort; return $ret; } function sf_lang_time($seconds) { global $lang; if ($seconds < 60) { return sprintf($lang['time']['seconds'], $seconds); } else if ($seconds < 3600) { return sprintf($lang['time']['minutes'], floor($seconds / 60), ($seconds % 60)); } else { $hours = floor($seconds / 3600); $seconds = $seconds - ($hours*3600); return sprintf($lang['time']['hours'], $hours, floor($seconds / 60), ($seconds % 60)); } } function przemo_register_acp_menu($cat, $name, $file, $jr_admin_id, $after_cat = null) { global $modules_data; if (!is_null($after_cat)) { $new_data = array(); foreach ($modules_data as $mcat => $marray) { $new_data[$mcat] = $marray; if ($mcat == $after_cat) { $new_data[$cat][$name] = array($file, $jr_admin_id); } } $modules_data = $new_data; } else { $modules_data[$cat][$name] = array($file, $jr_admin_id); } } ?> |
|
_________________ Looptroop - Bandit Queen |
|
|
|
|
Gadatliwa Kasia
|
|
|
|
Woytec
Pomógł: 2596 razy Posty: 7676
|
Wysłany: 21-07-2015, 21:48
|
|
|
Badly edited admin_users.php
Attach it here if you can't fix it yourself. |
|
|
|
|
evilmc
Posty: 289
|
Wysłany: 22-07-2015, 18:06
|
|
|
Here is file
[ Added: 24-07-2015, 15:59 ]
Please help, I can't log in Adminnistration panel with this error
admin_users.zip admin users |
Pobierz Plik ściągnięto 1119 raz(y) 13,96 KB |
|
_________________ Looptroop - Bandit Queen |
|
|
|
|
Woytec
Pomógł: 2596 razy Posty: 7676
|
Wysłany: 26-07-2015, 21:08
|
|
|
It may be includes/functions_admin.php but checkfiles shows it is good. |
|
|
|
|
evilmc
Posty: 289
|
Wysłany: 27-07-2015, 13:18
|
|
|
I fix my problem:
includes/functions_admin_sf.php
change:
to:
|
_________________ Looptroop - Bandit Queen |
|
|
|
|
garen123
Posty: 1
|
Wysłany: 17-01-2019, 09:37 Re: Edit users problem
|
|
|
evilmc napisał/a: | I get this error when I edit users. How to fix this problem?
Kod: | https://serbian-fm.net/admin/admin_users.php?mode=edit&u=648&sid=xxxxxxxxxx |
Kod: | 'YES', false => 'NO'); else if ($only_values_given) { for ($i = 0; $i < count($testval); $i++) { $testval[$testval[$i]] = $testval[$i]; unset($testval[$i]); } } $var = strtoupper($cfg_var) . '_'; foreach ($testval as $test => $return_value) { if ($sfc[$cfg_var] == $test) return $var . strtoupper($return_value); } return $var . strtoupper($testval[$defaults[$cfg_var]]); } function sf_microtime_float() { list($usec, $sec) = explode(' ', microtime()); return ((float)$usec + (float)$sec); } function make_sort_header($l_name, $l_val, $u_name, $u_base, $sortcol) { global $template, $sort, $sort_order; if ($sort != $sortcol) { $l_val .= ' ^'; } else if ($sort_order == 'ASC') { $sortcol = '!' . $sortcol; $l_val .= ' [^]'; } else { $l_val .= ' [v]'; } $template->assign_vars(array( $l_name => $l_val, $u_name => append_sid("$u_base&sort=$sortcol") )); } function sf_remove_logs($where_clause, $msg_lang_name, $redirect) { global $lang, $db, $phpEx; $where_clause = !empty($where_clause) ? "WHERE $where_clause" : ''; $sql = "DELETE FROM " . SPIDER_LOG_TABLE . " $where_clause"; if (!$db->sql_query($sql)) { message_die(GENERAL_ERROR, 'Failed to delete log information from table', '', __LINE__, __FILE__, $sql); } $message = $lang[$msg_lang_name] . '
' . sprintf($lang['Click_Return_Spiders'], '', '') . '
' . sprintf($lang['Click_return_admin_index'], '', ''); message_die(GENERAL_MESSAGE, $message); } function sf_log_count() { global $db; $sql = 'SELECT COUNT(*) AS count FROM ' . SPIDER_LOG_TABLE; if (!($result = $db->sql_query($sql))) { message_die(GENERAL_ERROR, 'Could not obtain log information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); return $row['count']; } function sf_parse_sort_info($sort, $sort_allow) { global $HTTP_GET_VARS; $sort = isset($HTTP_GET_VARS[$sort]) ? $HTTP_GET_VARS[$sort] : ''; if (substr($sort, 0, 1) != '!') { $ret['order'] = 'ASC'; } else { $sort = substr($sort, 1); $ret['order'] = 'DESC'; } if (!in_array($sort, $sort_allow)) $sort = $sort_allow[0]; $ret['sort_by'] = $sort; return $ret; } function sf_lang_time($seconds) { global $lang; if ($seconds < 60) { return sprintf($lang['time']['seconds'], $seconds); } else if ($seconds < 3600) { return sprintf($lang['time']['minutes'], floor($seconds / 60), ($seconds % 60)); } else { $hours = floor($seconds / 3600); $seconds = $seconds - ($hours*3600); return sprintf($lang['time']['hours'], $hours, floor($seconds / 60), ($seconds % 60)); } } function przemo_register_acp_menu($cat, $name, $file, $jr_admin_id, $after_cat = null) { global $modules_data; if (!is_null($after_cat)) { $new_data = array(); foreach ($modules_data as $mcat => $marray) { $new_data[$mcat] = $marray; if ($mcat == $after_cat) { $new_data[$cat][$name] = array($file, $jr_admin_id); } } $modules_data = $new_data; } else { $modules_data[$cat][$name] = array($file, $jr_admin_id); } } ?> |
|
How can I use these code?
thanks |
|
|
|
|
|
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach Możesz załączać pliki na tym forum Możesz ściągać załączniki na tym forum
|
Dodaj temat do Ulubionych Wersja do druku
|
Kopiowanie wszelkich treści zawartych na forum, modyfikacji oraz instrukcji bez zgody administracji i autorów tematów/postów zabronione!
Powered by phpBB modified by Przemo © 2003 phpBB
| Strona wygenerowana w 0,07 sekundy. Zapytań do SQL: 14 | |
|
|