function textile($text, $lite = '') { if (get_magic_quotes_gpc() == 1) { $text = stripslashes($text); } $text = incomingEntities($text); $text = encodeEntities($text); $text = fixEntities($text); $text = cleanWhiteSpace($text); $text = getRefs($text); $text = noTextile($text); $text = image($text); $text = links($text); $text = span($text); $text = superscript($text); $text = footnoteRef($text); $text = code($text); $text = glyphs($text); $text = retrieve($text); if ($lite == '') { $text = lists($text); $text = table($text); $text = block($text); } /* clean up <notextile> */ $text = preg_replace('/<\\/?notextile>/', "", $text); /* turn the temp char back to an ampersand entity */ $text = str_replace("x%x%", "&", $text); $text = str_replace("<br />", "<br />\n", $text); return trim($text); }
function head($directoryLevel) { $directoryString = getDirectoryString($directoryLevel); $returnValue = ""; $returnValue .= <<<EOT <header> \t<!-- OVERFLOW MENU --> \t<div class="overflow-menu"> \t\t<div class="title-div"> \t\t\t<span class="title"><a href="{$directoryString}">Queen's Chess Club</a></span> \t\t</div> EOT; $returnValue .= links($directoryString); $returnValue .= <<<EOT \t</div> \t<div class="container"> \t\t<div class="row"> \t\t\t<div class="twelve columns header"> \t\t\t\t<!-- HEADER-LEFT --> \t\t\t\t<div class="three columns header-left" > \t\t\t\t\t<a href="{$directoryString}"> \t\t\t\t\t\t<img class="logo" src="{$directoryString}/icons/logo2.png"/> \t\t\t\t\t</a> \t\t\t\t\t<button class="overflow"> \t\t\t\t\t\t<img class="iconMenuGray" src="{$directoryString}icons/icon-menu-gray.png" alt="Menu button in black" style="width:22px;"/> \t\t\t\t\t</button> \t\t\t\t</div> \t\t\t\t<!-- HEADER RIGHT --> \t\t\t\t<div class="nine columns header-right"> \t\t\t\t\t<div class="title-div"> \t\t\t\t\t\t<span class="title"><a href="{$directoryString}">Queen's Chess Club</a></span> \t\t\t\t\t</div> EOT; $returnValue .= links($directoryString); $returnValue .= <<<EOT \t\t\t\t</div> \t\t\t</div> \t\t</div> \t</div> </header> EOT; return $returnValue; }
/** * @return The themed html string for the navigation menu. */ function theme_navigation() { $output = '<ul class="nav">'; $links = links(); $sitemap = page_sitemap(); foreach ($links as $path => $title) { if (in_array($path, $sitemap)) { $output .= '<li>' . theme('navigation_link', $path, $title) . '</li>'; } } $output .= '</ul>'; return $output; }
function fbHeader($pages, $activePage) { ?> <div id="header"> <div id="logo"><h1>Fajita Boy</h1></div> <div id="nav"><?php links($pages, $activePage); ?> </div> </div> <?php }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>COSMUS</title> <link href="/cosmus/css/bootstrap.min.css" rel="stylesheet"> <?php links(); ?> <style> body { background: url("http://itsmyfun.net/MyFiles/2014/01/A-NEW-wallpapers-HD-2013-serrcs-94.jpg") no-repeat fixed; background-size: 100% 100%; } #navigation{ position: relative; display: block; } #navigation:after{ width:100%; height:100%; top: 0; content:""; position: absolute; background: url("http://www.seamlesspatternchecker.com/hash/seamless-pattern-samples/d/d/9/dd9-vector-abstract-circuit-board-black-and-white-seamless-pattern-geometric-lined-vector-background-151743344.jpg") no-repeat fixed;/*rgba(255, 173, 92, 0.5);*/ /*url("http://wallpaper-download.net/wallpapers/random-wallpapers-tumblr-backgrounds-wallpaper-36963.jpg") repeat fixed;*/ background-size: 100% 50%; border-bottom-right-radius: 500px;
function lhcontent() { makeLinks(links()); }
} else { $sel = ""; } $kats .= show(_select_field, array("value" => $getk['id'], "what" => re($getk['name']), "sel" => $sel)); } $show = show($dir . "/form_dl", array("admin_head" => _downloads_admin_head_edit, "ddownload" => re($get['download']), "durl" => re($get['url']), "file" => $dl, "lokal" => _downloads_lokal, "exist" => _downloads_exist, "nothing" => _nothing, "nofile" => _downloads_nofile, "oder" => _or, "dbeschreibung" => re_bbcode($get['beschreibung']), "kat" => _downloads_kat, "what" => _button_value_edit, "do" => "editdl&id=" . $_GET['id'] . "", "kats" => $kats, "url" => _downloads_url, "beschreibung" => _beschreibung, "download" => _downloads_name)); } elseif ($_GET['do'] == "editdl") { if (empty($_POST['download']) || empty($_POST['url'])) { if (empty($_POST['download'])) { $show = error(_downloads_empty_download, 1); } elseif (empty($_POST['url'])) { $show = error(_downloads_empty_url, 1); } } else { if (preg_match("#^www#i", $_POST['url'])) { $dl = links($_POST['url']); } else { $dl = up($_POST['url']); } $qry = db("UPDATE " . $db['downloads'] . "\n SET `download` = '" . up($_POST['download']) . "',\n `url` = '" . $dl . "',\n `beschreibung` = '" . up($_POST['beschreibung'], 1) . "',\n `date` = '" . (int) time() . "',\n `kat` = '" . (int) $_POST['kat'] . "'\n WHERE id = '" . intval($_GET['id']) . "'"); $show = info(_downloads_edited, "?admin=dladmin"); } } elseif ($_GET['do'] == "delete") { $qry = db("DELETE FROM " . $db['downloads'] . "\n WHERE id = '" . intval($_GET['id']) . "'"); $show = info(_downloads_deleted, "?admin=dladmin"); } else { $qry = db("SELECT * FROM " . $db['downloads'] . "\n ORDER BY id"); while ($get = _fetch($qry)) { $edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "admin=dladmin&do=edit", "title" => _button_title_edit)); $delete = show("page/button_delete_single", array("id" => $get['id'], "action" => "admin=dladmin&do=delete", "title" => _button_title_del, "del" => convSpace(_confirm_del_dl))); $class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
?> "><?php $pages->title(); ?> </a></li> <?php } ?> </ul> </aside> <aside class="widget widget_links"> <h2 class="widget-title">友情链接</h2> <div class="widget-plain"> <?php links('links'); ?> </div> </aside> <?php /* <aside class="widget widget_categories"> <h2 class="widget-title">分类目录</h2> <ul> <?php $this->widget('Widget_Metas_Category_List')->to($category); ?> <?php while($category->next()): ?> <li><a href="<?php $category->permalink(); ?>"><?php $category->name(); ?></a></li> <?php endwhile; ?> </ul> </aside>
$get = _fetch($qry); $files = get_files('../banner/partners/'); for ($i = 0; $i < count($files); $i++) { if (re($get['banner']) == $files[$i]) { $sel = "selected=\"selected\""; } else { $sel = ""; } $banners .= show(_partners_select_icons, array("icon" => $files[$i], "sel" => $sel)); } $show = show($dir . "/form_partners", array("do" => "editbutton&id=" . $get['id'] . "", "head" => _partners_edit_head, "nothing" => "", "banner" => _partners_button, "link" => _link, "e_link" => re($get['link']), "e_textlink" => empty($get['textlink']) ? '' : re($get['banner']), "or" => _or, "textlink" => _partnerbuttons_textlink, "banners" => $banners, "what" => _button_value_edit)); } elseif ($_GET['do'] == "editbutton") { if (empty($_POST['link'])) { $show = error(_empty_url, 1); } else { $qry = db("UPDATE " . $db['partners'] . "\n SET `link` = '" . links($_POST['link']) . "',\n `banner` = '" . up(empty($_POST['textlink']) ? $_POST['banner'] : $_POST['textlink']) . "',\n `textlink` = '" . intval(empty($_POST['textlink']) ? 0 : 1) . "'\n WHERE id = '" . intval($_GET['id']) . "'"); $show = info(_partners_edited, "?admin=partners"); } } elseif ($_GET['do'] == "delete") { $del = db("DELETE FROM " . $db['partners'] . "\n WHERE id = '" . intval($_GET['id']) . "'"); $show = info(_partners_deleted, "?admin=partners"); } else { $qry = db("SELECT * FROM " . $db['partners'] . "\n ORDER BY id"); while ($get = _fetch($qry)) { $edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "admin=partners&do=edit", "title" => _button_title_edit)); $delete = show("page/button_delete_single", array("id" => $get['id'], "action" => "admin=partners&do=delete", "title" => _button_title_del, "del" => convSpace(_confirm_del_entry))); $rlink = str_replace('http://', '', re($get['link'])); $button = '<img src="../banner/partners/' . re($get['banner']) . '" alt="' . $rlink . '" title="' . $rlink . '" />'; $class = $color % 2 ? "contentMainSecond" : "contentMainFirst"; $color++; $show_ .= show($dir . "/partners_show", array("class" => $class, "button" => empty($get['textlink']) ? $button : '<center>' . _partnerbuttons_textlink . ': <b>' . re($get['banner']) . '</b></center>', "link" => re($get['link']), "id" => $get['id'], "edit" => $edit, "delete" => $delete));
</head> <body> <p>I’m John Holdun. I design interactions for the web.</p> <p><?php echo current_status(); ?> </p> <p>I’m currently in <?php echo current_city(); ?> .</p> <ul> <?php foreach (links() as $link) { ?> <li><a href="<?php echo $link->url; ?> "><?php echo $link->text; ?> </a></li> <?php } ?> </ul> </body> </html>
$get_id = cnt($db['acomments'], " WHERE artikel = " . intval($_GET['id']) . "") + 1; $get_userid = $userid; $get_date = time(); if ($chkMe == 'unlogged') { $regCheck = false; } else { $regCheck = true; $pUId = $userid; } } $get_hp = $_POST['hp']; $get_email = $_POST['email']; $get_nick = $_POST['nick']; if (!$regCheck) { if ($get_hp) { $hp = show(_hpicon_forum, array("hp" => links($get_hp))); } if ($get_email) { $email = '<br />' . show(_emailicon_forum, array("email" => eMailAddr($get_email))); } $onoff = ""; $avatar = ""; $nick = show(_link_mailto, array("nick" => re($get_nick), "email" => $get_email)); } else { $hp = ""; $email = ""; $onoff = onlinecheck($get_userid); $nick = cleanautor($get_userid); } $titel = show(_eintrag_titel, array("postid" => $get_id, "datum" => date("d.m.Y", $get_date), "zeit" => date("H:i", $get_date) . _uhr, "edit" => $edit, "delete" => $delete)); $index = show("page/comments_show", array("titel" => $titel, "comment" => bbcode($_POST['comment'], 1), "nick" => $nick, "editby" => bbcode($editedby, 1), "email" => $email, "hp" => $hp, "avatar" => useravatar($get_userid), "onoff" => $onoff, "rank" => getrank($get_userid), "ip" => $userip . _only_for_admins));
$index = error(_awards_empty_url, 1); } } else { if (empty($_POST['place'])) { $place = "-"; } else { $place = $_POST['place']; } } if (empty($_POST['prize'])) { $prize = "-"; } else { $prize = $_POST['prize']; } $datum = mktime(0, 0, 0, $_POST['m'], $_POST['t'], $_POST['j']); $qry = db("UPDATE " . $db['awards'] . "\n SET `date` = '" . (int) $datum . "',\n \t\t\t\t\t `squad` = '" . (int) $_POST['squad'] . "',\n \t\t\t\t\t `event` = '" . up($_POST['event']) . "',\n `url` = '" . links($_POST['url']) . "',\n \t\t\t\t\t `place` = '" . up($place) . "',\n \t\t\t\t\t `prize` = '" . up($prize) . "'\n WHERE id = '" . intval($_GET['id']) . "'"); $show = info(_awards_admin_edited, "?admin=awards"); } elseif ($_GET['do'] == "delete") { $qry = db("DELETE FROM " . $db['awards'] . "\n WHERE id = '" . intval($_GET['id']) . "'"); $show = info(_awards_admin_deleted, "?admin=awards"); } else { $qry = db("SELECT * FROM " . $db['awards'] . "\n ORDER BY date DESC"); while ($get = _fetch($qry)) { $edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "admin=awards&do=edit", "title" => _button_title_edit)); $delete = show("page/button_delete_single", array("id" => $get['id'], "action" => "admin=awards&do=delete", "title" => _button_title_del, "del" => convSpace(_confirm_del_award))); $class = $color % 2 ? "contentMainSecond" : "contentMainFirst"; $color++; $show_ .= show($dir . "/awards_show", array("datum" => date("d.m.Y", $get['date']), "award" => re($get['event']), "id" => $get['squad'], "class" => $class, "edit" => $edit, "delete" => $delete)); } $show = show($dir . "/awards", array("head" => _awards_head, "date" => _datum, "titel" => _award, "show" => $show_, "add" => _awards_admin_head_add)); }
$squads .= show(_select_field_ranking_add, array("what" => re($gets['name']), "value" => $gets['id'], "icon" => $gets['icon'], "sel" => $sel)); } $show = show($dir . "/form_rankings", array("head" => _rankings_edit_head, "do" => "editranking&id=" . $_GET['id'] . "", "what" => _button_value_edit, "squad" => _rankings_squad, "league" => _rankings_league, "rank" => _rankings_admin_place, "squads" => $squads, "e_league" => re($get['league']), "e_rank" => $get['rank'], "e_url" => re($get['url']), "url" => _rankings_teamlink)); } elseif ($_GET['do'] == "editranking") { if (empty($_POST['league']) || empty($_POST['url']) || empty($_POST['rank'])) { if (empty($_POST['league'])) { $show = error(_error_empty_league, 1); } elseif (empty($_POST['url'])) { $show = error(_error_empty_url, 1); } elseif (empty($_POST['rank'])) { $show = error(_error_empty_rank, 1); } } else { $qry = db("SELECT rank FROM " . $db['rankings'] . "\n WHERE id = '" . intval($_GET['id']) . "'"); $get = _fetch($qry); $qry = db("UPDATE " . $db['rankings'] . "\n SET `league` = '" . up($_POST['league']) . "',\n `squad` = '" . up($_POST['squad']) . "',\n `url` = '" . links($_POST['url']) . "',\n `rank` = '" . (int) $_POST['rank'] . "',\n `lastranking` = '" . (int) $get['rank'] . "',\n `postdate` = '" . (int) time() . "'\n WHERE id = '" . intval($_GET['id']) . "'"); $show = info(_ranking_edited, "?admin=rankings"); } } elseif ($_GET['do'] == "delete") { $del = db("DELETE FROM " . $db['rankings'] . "\n WHERE id = '" . intval($_GET['id']) . "'"); $show = info(_ranking_deleted, "?admin=rankings"); } else { $qry = db("SELECT s1.*,s2.name,s2.id AS sqid FROM " . $db['rankings'] . " AS s1\n LEFT JOIN " . $db['squads'] . " AS s2\n ON s1.squad = s2.id\n ORDER BY s1.postdate DESC"); while ($get = _fetch($qry)) { $edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "admin=rankings&do=edit", "title" => _button_title_edit)); $delete = show("page/button_delete_single", array("id" => $get['id'], "action" => "admin=rankings&do=delete", "title" => _button_title_del, "del" => convSpace(_confirm_del_ranking))); $class = $color % 2 ? "contentMainSecond" : "contentMainFirst"; $color++; $show_ .= show($dir . "/rankings_show", array("squad" => re($get['name']), "league" => re($get['league']), "id" => $get['sqid'], "class" => $class, "edit" => $edit, "delete" => $delete)); } $show = show($dir . "/rankings", array("head" => _config_rankings, "league" => _cw_head_liga, "squad" => _cw_head_squad, "show" => $show_, "add" => _rankings_add_head));
$index = show($dir . "/serverliste", array("serverlist" => $serverlist, "slist_head" => _slist_head, "clan" => _profil_clan, "serverip" => _slist_serverip, "slots" => _slist_slots, "pwd" => _pwd, "eintragen" => _slist_add, "hlswip" => _gt_addip)); break; case 'add': $index = show($dir . "/add", array("add_head" => _slist_add, "clan" => _profil_clan, "hp" => _profil_hp, "what" => "slist", "security" => _register_confirm, "serverpasswort" => _server_password, "serverip" => _slist_serverip, "serverport" => _slist_serverport, "value" => _button_value_add, "slots" => _slist_slots, "serverpassword" => _server_password)); break; case 'addserver': if ($_POST['secure'] != $_SESSION['sec_slist'] || empty($_SESSION['sec_slist'])) { $index = error(_error_invalid_regcode, 1); } elseif (empty($_POST['clanname'])) { $index = error(_error_empty_clanname, 1); } elseif (empty($_POST['ip'])) { $index = error(_error_empty_ip, 1); } elseif (empty($_POST['port'])) { $index = error(_error_empty_port, 1); } elseif (empty($_POST['slots'])) { $index = error(_error_empty_slots, 1); } else { $msg = _slist_added_msg; $title = _slist_title; $send = db("INSERT INTO " . $db['msg'] . "\n SET `datum` = '" . (int) time() . "',\n `von` = '0',\n `an` = '1',\n `titel` = '" . up($title) . "',\n `nachricht` = '" . up($msg) . "'"); $insert = db("INSERT INTO " . $db['serverliste'] . "\n SET `datum` = '" . (int) time() . "',\n `clanname` = '" . up($_POST['clanname']) . "',\n `clanurl` = '" . links($_POST['clanurl']) . "',\n `ip` = '" . up($_POST['ip']) . "',\n `port` = '" . (int) $_POST['port'] . "',\n `pwd` = '" . up($_POST['pwd']) . "',\n `slots` = '" . (int) $_POST['slots'] . "'"); $index = info(_error_server_saved, "../serverliste/"); } break; } ## SETTINGS ## $time_end = generatetime(); $time = round($time_end - $time_start, 4); page($index, $title, $where, $time); ## OUTPUT BUFFER END ## gz_output();
$nick = cleanautor($get_userid); } $titel = show(_eintrag_titel, array("postid" => $get_id, "datum" => date("d.m.Y", $get_date), "zeit" => date("H:i", $get_date) . _uhr, "edit" => $edit, "delete" => $delete)); $index = show("page/comments_show", array("titel" => $titel, "comment" => bbcode($_POST['comment'], 1), "nick" => $nick, "editby" => bbcode($editedby, 1), "email" => $email, "hp" => $hp, "avatar" => useravatar($get_userid), "onoff" => $onoff, "rank" => getrank($get_userid), "ip" => $userip . _only_for_admins)); echo '<table class="mainContent" cellspacing="1">' . $index . '</table>'; exit; break; case 'preview': header("Content-type: text/html; charset=utf-8"); $qry = db("SELECT * FROM " . $db['squads'] . "\n WHERE id = '" . intval($_POST['squad']) . "'"); $get = _fetch($qry); $serverpwd = show(_cw_serverpwd, array("cw_serverpwd" => re($_POST['serverpwd']))); $img = squad($get['icon']); $show = show(_cw_details_squad, array("game" => re($get['game']), "name" => re($get['name']), "id" => $_POST['squad'], "img" => $img)); $flagge = flag($get['gcountry']); $gegner = show(_cw_details_gegner_blank, array("gegner" => re($_POST['clantag'] . " - " . $_POST['gegner']), "url" => links($_POST['url']))); $server = show(_cw_details_server, array("servername" => re($_POST['servername']), "serverip" => re($_POST['serverip']))); if ($_POST['punkte'] == "0" && $_POST['gpunkte'] == "0") { $result = _cw_no_results; } else { $result = cw_result_details($_POST['punkte'], $_POST['gpunkte']); } $editcw = ""; if ($_POST['bericht']) { $bericht = bbcode($_POST['bericht'], 1); } else { $bericht = " "; } if (!empty($_POST['s1'])) { $screen1 = '<img src="../inc/images/admin/cwscreen.jpg" alt="" />'; } else {
$qry = db("SELECT * FROM " . $db['artikel'] . "\n WHERE id = '" . intval($_GET['id']) . "'"); $get = _fetch($qry); $qryk = db("SELECT * FROM " . $db['newskat'] . ""); while ($getk = _fetch($qryk)) { if ($get['kat'] == $getk['id']) { $sel = "selected=\"selected\""; } else { $sel = ""; } $kat .= show(_select_field, array("value" => $getk['id'], "sel" => $sel, "what" => re($getk['kategorie']))); } $do = show(_artikel_edit_link, array("id" => $_GET['id'])); $show = show($dir . "/artikel_form", array("head" => _artikel_edit, "nautor" => _autor, "autor" => autor($userid), "nkat" => _news_admin_kat, "preview" => _preview, "kat" => $kat, "do" => $do, "ntitel" => _titel, "titel" => re($get['titel']), "artikeltext" => re_bbcode($get['text']), "link1" => re($get['link1']), "link2" => re($get['link2']), "link3" => re($get['link3']), "url1" => $get['url1'], "url2" => $get['url2'], "url3" => $get['url3'], "ntext" => _eintrag, "error" => "", "lang" => $language, "button" => _button_value_edit, "linkname" => _linkname, "nurl" => _url)); } elseif ($_GET['do'] == "editartikel") { if ($_POST) { $qry = db("UPDATE " . $db['artikel'] . "\n SET `kat` = '" . (int) $_POST['kat'] . "',\n `titel` = '" . up($_POST['titel']) . "',\n `text` = '" . up($_POST['artikel'], 1) . "',\n `link1` = '" . up($_POST['link1']) . "',\n `link2` = '" . up($_POST['link2']) . "',\n `link3` = '" . up($_POST['link3']) . "',\n `url1` = '" . links($_POST['url1']) . "',\n `url2` = '" . links($_POST['url2']) . "',\n `url3` = '" . links($_POST['url3']) . "'\n WHERE id = '" . intval($_GET['id']) . "'"); } $show = info(_artikel_edited, "?admin=artikel"); } elseif ($_GET['do'] == "delete") { $qry = db("DELETE FROM " . $db['artikel'] . "\n WHERE id = '" . intval($_GET['id']) . "'"); $show = info(_artikel_deleted, "?admin=artikel"); } elseif ($_GET['do'] == 'public') { if ($_GET['what'] == 'set') { $upd = db("UPDATE " . $db['artikel'] . "\n SET `public` = '1',\n \t\t\t\t\t `datum` = '" . time() . "'\n WHERE id = '" . intval($_GET['id']) . "'"); } elseif ($_GET['what'] == 'unset') { $upd = db("UPDATE " . $db['artikel'] . "\n SET `public` = '0'\n WHERE id = '" . intval($_GET['id']) . "'"); } header("Location: ?admin=artikel"); } else { if (isset($_GET['page'])) { $page = $_GET['page'];
<body> <div id="header"> <div class="logo"></div> <h1>Swaledale Squeeze</h1> </div> <div id="bottomContent"> <div class="navColumn"> <div class="overview"> <?php overview(); ?> </div> <?php makeLinks(links()); ?> <div id="navBottom"></div> </div> <div class="contentColumn"> <?php rhcontent(); ?> <div height='200'/> <!-- PLEASE LEAVE THIS AT THE END OF YOUR LAST BOX --> <h4><a href="http://www.aszx.net">web development</a> by <a href="http://www.bryantsmith.com">bryant smith</a> | <a href="http://www.quackit.com">web tutorials</a> | <a href="http://www.htmlcodes.me">html codes</a> | <a href="http://www.free-templates.me">free templates</a></h4> <!-- PLEASE LEAVE THIS AT THE END OF YOUR LAST BOX -->
function viewslink_show($sid, $min) { global $follow_links, $nuke_url, $push_view_perpage, $push_orderby; global $NPDS_Prefix; push_header("suite"); if (!isset($min)) { $min = 0; } $perpage = $push_view_perpage; $orderby = "title " . $push_orderby; $result = sql_query("select cid, title FROM " . $NPDS_Prefix . "links_subcategories where sid='{$sid}'"); list($cid, $stitle) = sql_fetch_row($result); $result2 = sql_query("select cid, title FROM " . $NPDS_Prefix . "links_categories where cid='{$cid}'"); list($cid, $title) = sql_fetch_row($result2); $title = str_replace("'", "\\'", $title); $stitle = str_replace("'", "\\'", $stitle); echo "document.write('<span style=\"font-size: 11px;\"><b>" . aff_langue($title) . " / SubCat : " . aff_langue($stitle) . "</b>'</span>);\n"; settype($min, "integer"); settype($perpage, "integer"); $result = sql_query("select lid, title FROM " . $NPDS_Prefix . "links_links where cid='{$cid}' AND sid='{$sid}' order by {$orderby} limit {$min},{$perpage}"); $fullcountresult = sql_query("select lid, title FROM " . $NPDS_Prefix . "links_links where cid='{$cid}' AND sid='{$sid}'"); $totalselectedlinks = sql_num_rows($fullcountresult); echo "document.write('<br />');\n"; while (list($lid, $title) = sql_fetch_row($result)) { $title = links(convert_nl(str_replace("'", "\\'", $title), "win", "html")); echo "document.write('<li><a href=\"{$nuke_url}/links.php?op=visit&lid={$lid}\" target=\"_blank\" style=\"font-size: 11px;\">" . aff_langue($title) . "</a></li><br />');\n"; } if ($totalselectedlinks - $min > $perpage) { $min = $min + $perpage; if ($ibid = theme_image("box/right.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/download/right.gif"; } echo "document.write('<a href=javascript:onclick=register(\"npds-push\",\"op=viewlink&cid={$cid}&min={$min}\"); style=\"font-size: 11px;\"><img src=\"{$nuke_url}/{$imgtmp}\" border=\"0\" alt=\"\" align=\"center\" /></a><br />');\n"; } echo "document.write('<br />.: <a href=\"javascript: history.go(0)\" style=\"font-size: 11px;\">" . push_translate("Home") . "</a> :.');\n"; push_footer(); sql_free_result($result); }
} elseif (empty($_POST['t'])) { $show = error(_empty_datum, 1); } } else { if (empty($_POST['xonx1']) && empty($_POST['xonx2'])) { $xonx = ""; } else { $xonx = "`xonx` = '" . $_POST['xonx1'] . "on" . $_POST['xonx2'] . "',"; } $datum = mktime($_POST['h'], $_POST['min'], 0, $_POST['m'], $_POST['t'], $_POST['j']); if ($_POST['land'] == "lazy") { $kid = ""; } else { $kid = "`gcountry` = '" . $_POST['land'] . "',"; } $qry = db("UPDATE " . $db['cw'] . "\n SET " . $xonx . "\n " . $kid . "\n `datum` = '" . (int) $datum . "',\n \t\t\t\t \t `squad_id` = '" . (int) $_POST['squad'] . "',\n `clantag` = '" . up($_POST['clantag']) . "',\n `gegner` = '" . up($_POST['gegner']) . "',\n `url` = '" . links($_POST['url']) . "',\n `liga` = '" . up($_POST['liga']) . "',\n \t \t\t\t\t `gametype` = '" . up($_POST['gametype']) . "',\n `punkte` = '" . (int) $_POST['punkte'] . "',\n `gpunkte` = '" . (int) $_POST['gpunkte'] . "',\n `maps` = '" . up($_POST['maps']) . "',\n `serverip` = '" . up($_POST['serverip']) . "',\n `servername` = '" . up($_POST['servername']) . "',\n `serverpwd` = '" . up($_POST['serverpwd']) . "',\n \t\t\t\t\t `lineup` = '" . up($_POST['lineup']) . "',\n \t\t\t\t\t `glineup` = '" . up($_POST['glineup']) . "',\n \t\t\t\t\t `matchadmins` = '" . up($_POST['match_admins']) . "',\n `bericht` = '" . up($_POST['bericht'], 1) . "'\n WHERE id = '" . intval($_GET['id']) . "'"); $cwid = $_GET['id']; $tmp = $_FILES['logo']['tmp_name']; $type = $_FILES['logo']['type']; $end = explode(".", $_FILES['logo']['name']); $end = strtolower($end[count($end) - 1]); if (!empty($tmp)) { $img = @getimagesize($tmp); foreach ($picformat as $end1) { if (file_exists(basePath . '/inc/images/clanwars/' . intval($_GET['id']) . '_logo.' . $end1)) { @unlink(basePath . '/inc/images/clanwars/' . intval($_GET['id']) . '_logo.' . $end1); break; } } if ($img[0]) { copy($tmp, basePath . "/inc/images/clanwars/" . intval($_GET['id']) . "_logo." . strtolower($end));
$ask = db("SELECT pos FROM " . $db['sponsoren'] . "\n WHERE id = '" . intval($_GET['id']) . "'"); $get = _fetch($ask); if ($_POST['position'] != $get['pos']) { if ($_POST['position'] == 1 || $_POST['position'] == 2) { $sign = ">= "; } else { $sign = "> "; } $posi = db("UPDATE " . $db['sponsoren'] . "\n SET `pos` = pos+1\n WHERE pos " . $sign . " '" . intval($_POST['position']) . "'"); } if ($_POST['position'] == "lazy") { $newpos = ""; } else { $newpos = "`pos` = '" . (int) $_POST['position'] . "'"; } $qry = db("UPDATE " . $db['sponsoren'] . "\n SET \t `name` = '" . up($_POST['name']) . "',\n\t\t\t\t\t\t\t `link` = '" . links($_POST['link']) . "',\n\t\t\t\t\t\t\t `beschreibung` = '" . up($_POST['beschreibung'], 1) . "',\n\t\t\t\t\t\t\t `site` = '" . (int) $_POST['site'] . "',\n\t\t\t\t\t\t\t `slink` = '" . links($_POST['slink']) . "',\n\t\t\t\t\t\t\t `banner` = '" . (int) $_POST['banner'] . "',\n\t\t\t\t\t\t\t `blink` = '" . links($_POST['blink']) . "',\n\t\t\t\t\t\t\t `box` \t= '" . (int) $_POST['box'] . "',\n\t\t\t\t\t\t\t `xlink` \t\t= '" . up($_POST['xlink']) . "',\n\t\t\t\t\t\t\t " . $newpos . "\n WHERE id = '" . intval($_GET['id']) . "'"); $id = intval($_GET['id']); $tmp1 = $_FILES['sdata']['tmp_name']; $type1 = $_FILES['sdata']['type']; $end1 = explode(".", $_FILES['sdata']['name']); $end1 = strtolower($end1[count($end1) - 1]); if (!empty($tmp1)) { $img1 = getimagesize($tmp1); if ($type1 == "image/gif" || $type1 == "image/png" || $type1 == "image/jpeg" || !$img1[0]) { if (file_exists(basePath . "/banner/sponsors/site_" . $id . ".gif")) { @unlink(basePath . "/banner/sponsors/site_" . $id . ".gif"); } elseif (file_exists(basePath . "/banner/sponsors/site_" . $id . ".jpg")) { @unlink(basePath . "/banner/sponsors/site_" . $id . ".jpg"); } elseif (file_exists(basePath . "/banner/sponsors/site_" . $id . ".png")) { @unlink(basePath . "/banner/sponsors/site_" . $id . ".png"); }
<?php if (false === array_key_exists('FORWARD', $_SERVER) || 0 === sizeof($_SERVER['FORWARD'])) { error('Missing FORWARD environment', 1); } $file = end($_SERVER['argv']); if (file_exists($file) && !unlink($file)) { error("Can't replace configuration: {$file}", 4); } $links = links(); foreach (rules() as $port => $rule) { $service = $rule['service']; if (false === array_key_exists($service, $links)) { if ($service !== gethostbyname($service)) { rule($file, $port, $service, $rule['dst']); continue; } else { error("Missing host name: {$rule['service']}", 3); } error("Missing service name: {$rule['service']}", 2); } rule($file, $port, $links[$rule['service']][$rule['dst']]['addr'], $links[$rule['service']][$rule['dst']]['port']); } if (array_key_exists('LOGFILE', $_SERVER) && is_string($_SERVER['LOGFILE']) && strlen($_SERVER['LOGFILE']) > 0) { @file_put_contents('php://stdout', "Adding rule: [0;32mlogfile {$_SERVER['LOGFILE']}[0m\n"); @file_put_contents('php://stdout', "Adding rule: [0;32mlogcommon[0m\n"); file_put_contents($file, "logfile {$_SERVER['LOGFILE']}\nlogcommon\n", FILE_APPEND); } function rule($file, $port, $addr, $dst) { static $ip;
function docHead() { metaTags(); links(); scripts(); }
while ($getcustom = _fetch($qrycustom)) { if ($getcustom['type'] == 2) { $customfields .= " " . $getcustom['feldname'] . " = '" . links($_POST[$getcustom['feldname']]) . "', "; } else { $customfields .= " " . $getcustom['feldname'] . " = '" . up($_POST[$getcustom['feldname']]) . "', "; } } $qry = db("UPDATE " . $db['users'] . "\n\t\t \t\t\t SET\t" . $newpwd . "\n\t\t\t " . $customfields . "\n `country` = '" . $_POST['land'] . "',\n `user` = '" . $_POST['user'] . "',\n\t\t\t \t\t\t \t\t`nick` = '" . up($_POST['nick']) . "',\n\t\t\t\t\t\t\t\t\t`rlname` = '" . up($_POST['rlname']) . "',\n\t\t\t\t\t\t\t\t\t`sex` = '" . (int) $_POST['sex'] . "',\n\t\t\t\t\t\t\t\t\t`status` = '" . (int) $_POST['status'] . "',\n\t\t\t\t\t\t\t\t\t`bday` = '" . $bday . "',\n\t\t\t\t\t\t\t\t\t`email` = '" . up($_POST['email']) . "',\n\t\t\t\t\t\t\t\t\t`nletter` = '" . (int) $_POST['nletter'] . "',\n\t\t\t\t\t\t\t\t\t`pnmail` = '" . (int) $_POST['pnmail'] . "',\n\t\t\t\t\t\t\t\t\t`city` = '" . up($_POST['city']) . "',\n\t\t\t\t\t\t\t\t\t`gmaps_koord` = '" . up($_POST['gmaps_koord']) . "',\n\t\t\t\t\t\t\t\t\t`hp` = '" . links($_POST['hp']) . "',\n\t\t\t\t\t\t\t\t\t`icq` = '" . (int) $icq . "',\n\t\t\t\t\t\t\t\t\t`hlswid` = '" . up($_POST['hlswid']) . "',\n\t\t\t\t\t\t\t\t\t`steamid` = '" . $steamid . "',\n\t\t\t\t\t\t\t\t\t`signatur` = '" . up($_POST['sig'], 1) . "',\n\t\t\t\t\t\t\t\t\t`beschreibung` = '" . up($_POST['ich'], 1) . "'\n\t\t\t\t\t WHERE id = " . $userid); } } elseif ($_GET['do'] == "delete") { $qrydel = db("SELECT id,nick,email,hp FROM " . $db['users'] . "\n\t\t\t\t\t\t\t\t\t\t\tWHERE id = '" . intval($userid) . "'"); $getdel = _fetch($qrydel); $qry = db("UPDATE " . $db['f_threads'] . "\n\t\t\t\t\t\t\t\t\t SET `t_nick` = '" . up($getdel['nick']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `t_email` = '" . up($getdel['email']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `t_hp`\t\t\t= '" . links($getdel['hp']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `t_reg`\t\t= '0'\n\t\t\t\t\t\t\t\t\t WHERE t_reg = '" . intval($getdel['id']) . "'"); $qry = db("UPDATE " . $db['f_posts'] . "\n\t\t\t\t\t\t\t\t\t SET `nick` = '" . up($getdel['nick']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `email` = '" . up($getdel['email']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `hp`\t\t\t= '" . links($getdel['hp']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `reg`\t\t= '0'\n\t\t\t\t\t\t\t\t\t WHERE reg = '" . intval($getdel['id']) . "'"); $qry = db("UPDATE " . $db['newscomments'] . "\n\t\t\t\t\t\t\t\t\t SET `nick` = '" . up($getdel['nick']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `email` = '" . up($getdel['email']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `hp` = '" . links($getdel['hp']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `reg`\t\t\t= '0'\n\t\t\t\t\t\t\t\t\t WHERE reg = '" . intval($getdel['id']) . "'"); $qry = db("UPDATE " . $db['acomments'] . "\n\t\t\t\t\t\t\t\t\t SET `nick` = '" . up($getdel['nick']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `email` = '" . up($getdel['email']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `hp` = '" . links($getdel['hp']) . "',\n\t\t\t\t\t\t\t\t\t\t\t `reg`\t\t\t= '0'\n\t\t\t\t\t\t\t\t\t WHERE reg = '" . intval($getdel['id']) . "'"); $del = db("DELETE FROM " . $db['msg'] . "\n\t\t\t\t\t\t\t\t\t WHERE von = '" . intval($getdel['id']) . "'\n\t\t\t\t\t\t\t\t\t OR an = '" . intval($getdel['id']) . "'"); $del = db("DELETE FROM " . $db['news'] . "\n\t\t\t\t\t\t\t\t\t WHERE autor = '" . intval($getdel['id']) . "'"); $del = db("DELETE FROM " . $db['permissions'] . "\n\t\t\t\t\t\t\t\t\t WHERE user = '******'id']) . "'"); $del = db("DELETE FROM " . $db['squaduser'] . "\n\t\t\t\t\t\t\t\t\t WHERE user = '******'id']) . "'"); $del = db("DELETE FROM " . $db['buddys'] . "\n\t\t\t\t\t\t\t\t\t WHERE user = '******'id']) . "'\n\t\t\t\t\t\t\t\t\t OR buddy = '" . intval($getdel['id']) . "'"); $upd = db("UPDATE " . $db['usergb'] . "\n\t\t\t\t\t\t\t\t\t SET `reg` = 0\n\t\t\t\t\t\t\t\t\t WHERE reg = " . intval($getdel['id']) . ""); $del = db("DELETE FROM " . $db['userpos'] . "\n\t\t\t\t\t\t\t\t\t WHERE user = '******'id']) . "'"); $del = db("DELETE FROM " . $db['users'] . "\n\t\t\t\t\t\t\t\t\t WHERE id = '" . intval($getdel['id']) . "'"); $del = db("DELETE FROM " . $db['userstats'] . "\n\t\t\t\t\t\t\t\t\t WHERE user = '******'id']) . "'"); foreach ($picformat as $tmpendung) { if (file_exists(basePath . "/inc/images/uploads/userpics/" . intval($getdel['id']) . "." . $tmpendung)) { @unlink(basePath . "/inc/images/uploads/userpics/" . intval($getdel['id']) . "." . $tmpendung); } if (file_exists(basePath . "/inc/images/uploads/useravatare/" . intval($getdel['id']) . "." . $tmpendung)) { @unlink(basePath . "/inc/images/uploads/useravatare/" . intval($getdel['id']) . "." . $tmpendung);
$get = _fetch($qry); if ($getc['reg'] == $userid || permission('editkalendar')) { $editedby = show(_edited_by, array("autor" => autor($userid), "time" => date("d.m.Y H:i", time()) . _uhr)); $qry = db("UPDATE " . $sql_prefix . "events_comments\n SET `nick` = '" . up($_POST['nick']) . "',\n `email` = '" . up($_POST['email']) . "',\n `hp` = '" . links($_POST['hp']) . "',\n `comment` = '" . up($_POST['comment'], 1) . "',\n `editby` = '" . addslashes($editedby) . "'\n WHERE id = '" . intval($_GET['cid']) . "'"); $index = info(_comment_edited, "?action=show&w=k&id=" . $_GET['id'] . ""); } else { $index = error(_error_edit_post, 1); } } elseif ($_GET['do'] == "edit") { $qryc = db("SELECT * FROM " . $sql_prefix . "events_comments\n WHERE id = '" . intval($_GET['cid']) . "'"); $getc = _fetch($qryc); if ($getc['reg'] == $userid || permission('editkalendar')) { if ($getc['reg'] != 0) { $form = show("page/editor_regged", array("nick" => autor($getc['reg']), "von" => _autor)); } else { $form = show("page/editor_notregged", array("nickhead" => _nick, "emailhead" => _email, "hphead" => _hp, "postemail" => $getc['email'], "posthp" => links($getc['hp']), "postnick" => re($getc['nick']))); } $index = show("page/comments_add", array("titel" => _comments_edit, "nickhead" => _nick, "bbcodehead" => _bbcode, "emailhead" => _email, "sec" => $dir, "security" => _register_confirm, "hphead" => _hp, "b1" => $u_b1, "b2" => $u_b2, "form" => $form, "preview" => _preview, "prevurl" => '../artikel/?action=compreview&id=' . $_GET['id'], "action" => '?action=show&w=k&do=editcom&id=' . $_GET['id'] . '&cid=' . $_GET['cid'], "ip" => _iplog_info, "lang" => $language, "id" => $_GET['id'], "what" => _button_value_edit, "show" => "", "posteintrag" => re_bbcode($getc['comment']), "error" => "", "eintraghead" => _eintrag)); } else { $index = error(_error_edit_post, 1); } } //ende //$inhalt = "Kommentar-Baustelle".$entrys.""; //############################################################################# //############################################################################' // # # # # # # # } else { $inhalt = bbcode($get['beschreibung']); } // # # # # # # #
return $prefix . $diff . ' month' . ($diff != 1 ? 's' : '') . $postfix; } return date($fallback, strtotime($date)); } if ($tweets) { ?> <div id="twitter" class="widget"> <ul class="tweets nolist"> <h6><?php esc_html_e("Live from Twitter", "twentysixteen"); ?> </h6> <?php foreach ($tweets as $tweet) { ?> <li> <span class="tweet-date"><?php echo esc_html(relative_time($tweet->created_at)); ?> </span> <?php print links($tweet->text); ?> </li> <?php } ?> </ul> </div> <?php }
$error = show("errors/errortable", array("error" => _error_invalid_email)); } if (!isset($userid) && empty($_POST['email']) || $_POST['email'] == "E-Mail") { $error = show("errors/errortable", array("error" => _empty_email)); } if (!isset($userid) && empty($_POST['nick'])) { $error = show("errors/errortable", array("error" => _empty_nick)); } if ($chkMe == 'unlogged') { $form = show($dir . "/send_form1", array("nachricht" => _site_news, "nick" => _nick, "titel" => _titel, "note" => _news_send_note, "value" => _button_value_send, "what" => "sendnews", "security" => _register_confirm, "pflicht" => _contact_pflichtfeld, "email" => _email, "hp" => _news_send_source, "s_nick" => $_POST['nick'], "s_email" => $_POST['email'], "s_hp" => $_POST['hp'], "s_titel" => $_POST['titel'], "s_text" => $_POST['text'], "s_info" => $_POST['info'])); } else { $form = show($dir . "/send_form2", array("nachricht" => _site_news, "nick" => _nick, "titel" => _titel, "note" => _news_send_note, "user" => autor($userid), "value" => _button_value_send, "what" => "sendnews", "security" => _register_confirm, "pflicht" => _contact_pflichtfeld, "hp" => _news_send_source, "s_hp" => $_POST['hp'], "s_titel" => $_POST['titel'], "s_text" => $_POST['text'], "s_info" => $_POST['info'])); } $index = show($dir . "/send", array("error" => $error, "form" => $form, "description" => _news_send_description, "head" => _news_send)); } else { $hp = show(_contact_hp, array("hp" => links($_POST['hp']))); if (!isset($userid)) { $nick = $_POST['nick']; } else { $nick = blank_autor($userid); } if (!isset($userid)) { $von_nick = "0"; } else { $von_nick = $userid; } if (!isset($userid)) { $titel = show(_news_send_titel, array("nick" => $_POST['nick'])); } else { $titel = show(_news_send_titel, array("nick" => blank_autor($userid))); }
$regCheck = true; } $editby = show(_edited_by, array("autor" => cleanautor($userid), "time" => date("d.m.Y H:i", time()) . _uhr)); } else { $get_id = cnt($db['gb']) + 1; $get_userid = $userid; $get_date = time(); if ($chkMe == 'unlogged') { $regCheck = true; } } $get_hp = $_POST['hp']; $get_email = $_POST['email']; $get_nick = $_POST['nick']; if ($get_hp) { $gbhp = show(_hpicon, array("hp" => links($get_hp))); } else { $gbhp = ""; } if ($get_email) { $gbemail = show(_emailicon, array("email" => eMailAddr($get_email))); } else { $gbemail = ""; } if ($regCheck) { $gbtitel = show(_gb_titel_noreg, array("postid" => $get_id, "nick" => re($get_nick), "edit" => "", "delete" => "", "comment" => "", "public" => "", "uhr" => _uhr, "email" => $gb_email, "datum" => date("d.m.Y", $get_date), "zeit" => date("H:i", $get_date), "hp" => $gbhp)); } else { $gbtitel = show(_gb_titel, array("postid" => $get_id, "nick" => autor($get_userid), "edit" => "", "uhr" => _uhr, "delete" => "", "comment" => "", "public" => "", "id" => $get_userid, "email" => $gb_email, "datum" => date("d.m.Y", $get_date), "zeit" => date("H:i", $get_date), "hp" => $gbhp)); } $index = show($dir . "/gb_show", array("gbtitel" => $gbtitel, "nachricht" => bbcode($_POST['eintrag'], 1), "editby" => bbcode($editby, 1), "ip" => $userip . _only_for_admins)); echo '<table class="mainContent" cellspacing="1">' . $index . '</table>';
<h1>Approve Comments</h1><br/> <p>Approve/reject the comments:</p><br/> <div class="articles"> <?php if (isset($data['comments']) && !empty($data['comments'])) { ?> <?php foreach ($data['comments'] as $k1 => $v1) { ?> <strong>Author: </strong><span><?php echo $v1->author; ?> </span><br/> <strong>Email: </strong><span><?php echo links($v1->email); ?> </span><br/> <strong>Website: </strong><span><?php echo LINKS($v1->url); ?> </span><br/> <strong>Comment: </strong><span><?php echo $v1->content; ?> </span><br/> <span><a href="<?php echo $data['rootUrl']; ?> admin/comment/approve/<?php echo $v1->id;
<?php function links($link) { echo "<p><a herf ='http://" . $link . "'>" . $link . "</a></p> "; } $site = 'abv.bg'; links($site);
function form() { global $HTTP_POST_VARS, $settings, $userdata, $locale; $name = array("background", "ear", "face", "fhair", "eyebrow", "eyes", "nose", "mouth", "dress", "others"); $code = array("bg", "ear", "fc", "fhr", "eb", "eye", "ns", "mo", "cl", "oth"); $constant = array($locale['ugam_205'], $locale['ugam_207'], $locale['ugam_208'], $locale['ugam_209'], $locale['ugam_210'], $locale['ugam_211'], $locale['ugam_212'], $locale['ugam_213'], $locale['ugam_214'], $locale['ugam_215']); for ($i = 0; $i < count($name); $i++) { make_table($name[$i], $code[$i], $constant[$i], $i + 1); links(); } }