Авторизуйтесь по паролю
3970 04.12.2016 Все вопросы » Общие вопросы по PHP 3262
Верстала - 2016-11-104 декабря 2016 14:08 - #60359
if ($titl_e) $s_navigation .= " {$config['speedbar_separator']} " . $titl_e;
if ($titl_e) $s_navigation .= " {$config['speedbar_separator']} ";
3970 - 2016-11-1021 декабря 2016 19:48 - #60635
Softg - 2016-11-1025 марта 2020 23:42 - #75352
LazyDev - 2016-11-1026 марта 2020 00:54 - #75354
Softg - 2016-11-1026 марта 2020 01:18 - #75355
LazyDev - 2016-11-1026 марта 2020 01:37 - #75356
Softg - 2016-11-1026 марта 2020 02:12 - #75357
Softg - 2016-11-1026 марта 2020 02:17 - #75358
if ($config['speedbar'] AND !$view_template ) { function getSpeedbarCategory($id = 0, $separator = '»', $is_link = false, $pos = 2) { global $cat_info, $config; $temp_id = $id = (int)$id; if (!$id) return ''; $catlist = [$temp_id]; while ($parentid = $cat_info[$temp_id]['parentid']) { array_unshift($catlist, $parentid); $temp_id = $parentid; }; $speedbar = ''; foreach ($catlist as $cat_id) { $speedbar .= " $separator "; if (!$is_link && $cat_id == $id) { $speedbar .= $cat_info[$cat_id]['name']; } else { $speedbar .= "<span itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\"><meta itemprop=\"position\" content=\"{$pos}\"><a href=\"" . $config['http_home_url'] . get_url($cat_id) . "/\" itemprop=\"item\"><span itemprop=\"name\">{$cat_info[$cat_id]['name']}</span></a></span>"; } $pos++; } return $speedbar; } $s_navigation = "<span itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\"><meta itemprop=\"position\" content=\"1\"><a href=\"{$config['http_home_url']}\" itemprop=\"item\"><span itemprop=\"name\">" . $config['short_title'] . "</span></a></span>"; if ($config['start_site'] == 3 AND $_SERVER['QUERY_STRING'] == "" AND !$_POST['do']) $titl_e = ""; $config['speedbar_separator'] || $config['speedbar_separator'] = ' » '; if (intval($category_id)){ if($titl_e OR (isset($_GET['cstart']) AND intval($_GET['cstart']) > 1) ) { $last_link = true; } else $last_link = false; $s_navigation .= getSpeedbarCategory($category_id, $config['speedbar_separator'], $last_link); } elseif ($do == 'tags') { $s_navigation .= " {$config['speedbar_separator']} <span itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\"><meta itemprop=\"position\" content=\"2\"><a href=\"" . $config['http_home_url'] . "tags/\" itemprop=\"item\"><span itemprop=\"name\">" . $lang['tag_cloud'] . "</span></a></span> {$config['speedbar_separator']} " . $tag; } elseif ($nam_e) $s_navigation .= " {$config['speedbar_separator']} " . $nam_e; if ($titl_e) { $s_navigation .= " {$config['speedbar_separator']} " . $titl_e; } else { if ( isset($_GET['cstart']) AND intval($_GET['cstart']) > 1 ){ $page_extra = " {$config['speedbar_separator']} ".$lang['news_site']." ".intval($_GET['cstart']); } else $page_extra = ''; $s_navigation .= $page_extra; } $tpl->result['speedbar'] = ''; $tpl->load_template('speedbar.tpl'); $tpl->set('{speedbar}', '<span id="dle-speedbar"><span itemscope itemtype="https://schema.org/BreadcrumbList">' . stripslashes ($s_navigation) . '</span></span>'); $tpl->compile('speedbar'); $tpl->clear (); }
LazyDev - 2016-11-1026 марта 2020 02:23 - #75359
if ($titl_e) { $s_navigation .= " {$config['speedbar_separator']} " . $titl_e; } else { if ( isset($_GET['cstart']) AND intval($_GET['cstart']) > 1 ){ $page_extra = " {$config['speedbar_separator']} ".$lang['news_site']." ".intval($_GET['cstart']); } else $page_extra = ''; $s_navigation .= $page_extra; }
if ( isset($_GET['cstart']) AND intval($_GET['cstart']) > 1 ){ $page_extra = " {$config['speedbar_separator']} ".$lang['news_site']." ".intval($_GET['cstart']); } else $page_extra = ''; $s_navigation .= $page_extra;
Softg - 2016-11-1026 марта 2020 02:43 - #75360
header('Location: ' . $config['http_home_url'] );
header("Location: ".($config['allow_alt_url'] ? $config['http_home_url'] .'user/'.urlencode($member_id['name']).'/' : $PHP_SELF.'?subaction=userinfo&user='.urlencode($member_id['name'])));
CREATE TABLE `dle_views` ( `id` int(11) NOT NULL, `news_id` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;