} $row['location'] = '-'; } else { $row['regdate'] = gmdate($lang->phrase('dformat2'), times($row['regdate'])); } $bbcode->setSmileys(1); $bbcode->setReplace($config['wordstatus']); $bbcode->setAuthor($row['mid']); $row['comment'] = $bbcode->parse($row['comment']); $row['date'] = str_date($lang->phrase('dformat1'), times($row['date'])); $row['read'] = iif($row['status'] == 1, 'old', 'new'); $row['level'] = $slog->getStatus($row['groups'], ', '); ($code = $plugins->load('pm_show_prepared')) ? eval($code) : null; $breadcrumb->Add(get_pmdir($row['dir']), 'pm.php?action=browse&id=' . $row['dir'] . SID2URL_x); $breadcrumb->Add($lang->phrase('pm_show')); echo $tpl->parse("header"); echo $tpl->parse("menu"); echo $tpl->parse("pm/menu"); echo $tpl->parse("pm/show"); ($code = $plugins->load('pm_show_end')) ? eval($code) : null; } elseif ($_GET['action'] == "massmanage") { $breadcrumb->Add($lang->phrase('pm_massmanage')); echo $tpl->parse("header"); echo $tpl->parse("menu"); echo $tpl->parse("pm/menu"); $querystr = implode(',', $_POST['delete']); if (!empty($_POST['move2'])) { if ($_POST['id'] == 3) { $verz = get_pmdir(1); } else { $verz = get_pmdir(3);
if (count($error) > 0) { errorLogin($error, "showforum.php?id=" . $info['board'] . SID2URL_x); } if (strlen($_GET['fid']) == 32) { $data = $gpc->prepare(import_error_data($_GET['fid'])); for ($i = 1; $i <= $temp; $i++) { if (!isset($data[$i])) { $data[$i] = ''; } } } else { $data = array_fill(1, $temp, ''); $data['question'] = ''; } $breadcrumb->Add($lang->phrase('add_vote_to_thread')); echo $tpl->parse("header"); echo $tpl->parse("menu"); ($code = $plugins->load('newtopic_startvote_prepared')) ? eval($code) : null; echo $tpl->parse("newtopic/startvote"); ($code = $plugins->load('newtopic_startvote_end')) ? eval($code) : null; } elseif ($_GET['action'] == "savevote") { $temp = $gpc->get('temp', int); $topic_id = $gpc->get('topic_id', int); if (!empty($_POST['Update'])) { $_POST['notice']['question'] = $_POST['question']; $fid = save_error_data($_POST['notice']); $slog->updatelogged(); $db->close(); viscacha_header("Location: newtopic.php?action=startvote&id={$board}&topic_id={$topic_id}&temp={$temp}&fid=" . $fid . SID2URL_x); exit; }
$cache[$row['id']] = $row; } // E-mail them all $lang_dir = $lang->getdir(true); foreach ($cache as $row) { $lang->setdir($row['language']); $row = $gpc->plain_str($row); $data = $lang->get_mail('report_post'); $to = array(array('name' => $row['name'], 'mail' => $row['mail'])); xmail($to, array(), $data['title'], $data['comment']); } $lang->setdir($lang_dir); ok($lang->phrase('report_post_success'), "showtopic.php?action=jumpto&id={$last['id']}&topic_id={$info['id']}" . SID2URL_x); } } else { echo $tpl->parse("header"); echo $tpl->parse("menu"); echo $tpl->parse("misc/report_post"); } } elseif ($_GET['action'] == "wwo") { $my->p = $slog->Permissions(); if ($my->p['wwo'] == 0) { errorLogin(); } if ($_GET['type'] == 1) { $htmlonload .= "ReloadCountdown(60);"; } $breadcrumb->Add($lang->phrase('wwo_detail_title')); echo $tpl->parse("header"); echo $tpl->parse("menu"); $wwo = array('i' => 0, 'r' => 0, 'g' => 0, 'b' => 0);
} ($code = $plugins->load('showtopic_redirect')) ? eval($code) : null; $prefix = ''; if ($info['prefix'] > 0) { $prefix_obj = $scache->load('prefix'); $prefix_arr = $prefix_obj->get($info['board']); if (isset($prefix_arr[$info['prefix']])) { $prefix = $prefix_arr[$info['prefix']]['value']; $prefix = $lang->phrase('showtopic_prefix_title'); } } $topforums = get_headboards($fc, $last, TRUE); $breadcrumb->Add($last['name'], "showforum.php?id=" . $last['id'] . SID2URL_x); $breadcrumb->Add($prefix . $info['topic']); forum_opt($last); echo $tpl->parse("header"); echo $tpl->parse("menu"); ($code = $plugins->load('showtopic_start')) ? eval($code) : null; // Some speed optimisation $speeder = $info['posts'] + 1; $start = $_GET['page'] * $last['topiczahl']; $start = $start - $last['topiczahl']; $temp = pages($speeder, $last['topiczahl'], "showtopic.php?id=" . $info['id'] . "&", $_GET['page']); $q = explode(' ', trim($q)); $memberdata_obj = $scache->load('memberdata'); $memberdata = $memberdata_obj->get(); $inner['index_bit'] = ''; $inner['vote_result'] = ''; $inner['related'] = ''; // prepare for vote if (!empty($info['vquestion'])) {
$last = $fc[$info['board']]; forum_opt($last, 'edit'); $prefix_obj = $scache->load('prefix'); $prefix_arr = $prefix_obj->get($info['board']); $prefix = ''; if ($info['prefix'] > 0) { if (isset($prefix_arr[$info['prefix']])) { $prefix = $prefix_arr[$info['prefix']]['value']; $prefix = $lang->phrase('showtopic_prefix_title'); } } get_headboards($fc, $last); $breadcrumb->Add($last['name'], "showforum.php?id=" . $last['id'] . SID2URL_x); $breadcrumb->Add($prefix . $info['topic'], 'showtopic.php?id=' . $info['topic_id'] . SID2URL_x); $breadcrumb->Add($lang->phrase('edit')); echo $tpl->parse("header"); if ($info['status'] != 0) { error($lang->phrase('topic_closed'), 'showtopic.php?action=jumpto&id=' . $info['topic_id'] . '&topic_id=' . $info['id']); } $diff = times() - $info['date']; if ($config['edit_edit_time'] == 0) { $edit_seconds = $diff; } else { $edit_seconds = $config['edit_edit_time'] * 60; } $delete_seconds = $config['edit_delete_time'] * 60; if ($my->mp[4] == 1 && ($info['topic_id'] > 0 || $info['posts'] == 0)) { $del_mod = TRUE; } else { $del_mod = FALSE; }
$fc = $catbid->get(); $last = $fc[$info['board']]; $topforums = get_headboards($fc, $last, true); $prefix = ''; if ($info['prefix'] > 0) { $prefix_obj = $scache->load('prefix'); $prefix_arr = $prefix_obj->get($info['board']); if (isset($prefix[$info['prefix']])) { $prefix = $prefix_arr[$info['prefix']]['value']; $prefix = $lang->phrase('showtopic_prefix_title'); } } $breadcrumb->Add($last['name'], "showforum.php?id=" . $last['id'] . SID2URL_x); $breadcrumb->Add($prefix . $info['topic'], "showtopic.php?id=" . $info['id'] . SID2URL_x); $breadcrumb->Add($lang->phrase('teamcp')); echo $tpl->parse("header"); forum_opt($last); if ($my->vlogin && $my->mp[0] == 1) { ($code = $plugins->load('managetopic_start')) ? eval($code) : null; if ($action == "delete") { if ($my->mp[0] == 1 && $my->mp[4] == 0) { errorLogin($lang->phrase('not_allowed'), 'showtopic.php?id=' . $info['id'] . SID2URL_x); } echo $tpl->parse("menu"); echo $tpl->parse("admin/topic/delete"); } elseif ($action == "delete2") { if ($my->mp[0] == 1 && $my->mp[4] == 0) { errorLogin($lang->phrase('not_allowed'), 'showtopic.php?id=' . $info['id'] . SID2URL_x); } if ($config['updatepostcounter'] == 1 && $last['count_posts'] == 1) { $result = $db->query("SELECT COUNT(*) AS posts, name FROM {$db->pre}replies WHERE guest = '0' AND topic_id = '{$info['id']}' GROUP BY name", __LINE__, __FILE__);
$my->mp = $slog->ModPermissions($board); $catbid = $scache->load('cat_bid'); $fc = $catbid->get(); if (empty($board) || !isset($fc[$board])) { error($lang->phrase('query_string_error')); } $info = $fc[$board]; if ($my->p['admin'] == 1 || $my->p['gmod'] == 1 || $my->mp[0] == 1) { $modcp = true; } else { $modcp = false; } $topforums = get_headboards($fc, $info); $breadcrumb->Add($info['name']); forum_opt($info); echo $tpl->parse("header"); echo $tpl->parse("menu"); ($code = $plugins->load('showforum_forums_start')) ? eval($code) : null; $subforums = BoardSelect($board); ($code = $plugins->load('showforum_forums_end')) ? eval($code) : null; $filter = $gpc->get('sort', int); if ($filter == 2) { $marksql = ' AND mark = "a" ' . iif($info['auto_status'] == 'a', 'AND mark = "" '); } elseif ($filter == 3) { $marksql = ' AND mark = "n" ' . iif($info['auto_status'] == 'n', 'AND mark = "" '); } elseif ($filter == 4) { $marksql = ' AND mark = "g" '; } elseif ($filter == 5) { if (empty($info['auto_status'])) { $marksql = ' AND (mark = "g" OR mark = "n" OR mark = "a") '; } else {
along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ error_reporting(E_ALL); DEFINE('SCRIPTNAME', 'popup'); include "data/config.inc.php"; include "classes/function.viscacha_frontend.php"; $zeitmessung1 = t1(); $slog = new slog(); $my = $slog->logged(); $lang->init($my->language); $tpl = new tpl(); ($code = $plugins->load('popup_start')) ? eval($code) : null; if ($_GET['action'] == "hlcode") { if (strlen($_GET['fid']) != 32) { echo $tpl->parse("popup/header"); error($lang->phrase('query_string_error'), 'javascript:parent.close();'); } $codeObj = new CacheItem($_GET['fid'], 'cache/geshicode/'); if (!$codeObj->import()) { echo $tpl->parse("popup/header"); error($lang->phrase('query_string_error'), 'javascript:parent.close();'); } $sourcecode = $codeObj->get(); $sourcecode['source'] = html_entity_decode($sourcecode['source'], ENT_QUOTES); ($code = $plugins->load('popup_hlcode_start')) ? eval($code) : null; if ($_GET['temp'] == 1) { viscacha_header('Content-Type: text/plain'); viscacha_header('Content-Length: ' . strlen($sourcecode['source'])); viscacha_header('Content-Disposition: attachment; filename="' . date('d-m-Y_H-i') . '.txt"'); echo $sourcecode['source'];
$row['percent'] = $row['votes'] / $votes * 100; if (strstr($row['percent'], '.') > 0) { $row['percent'] = sprintf("%01.1f", $row['percent']); } } else { $row['percent'] = 0; $row['percent2'] = 0; } $cachev[$key] = $row; if (!isset($voter[$row['id']])) { $voter[$row['id']] = array(); } $voter[$row['id']][0] = implode(', ', $voter[$row['id']]); } ($code = $plugins->load('print_vote_prepared')) ? eval($code) : null; $inner['vote_result'] = $tpl->parse("print/vote"); } if ($config['tpcallow'] == 1) { $result = $db->query("SELECT id, tid, mid, file, source, hits FROM {$db->pre}uploads WHERE topic_id = " . $_GET['id'], __LINE__, __FILE__); $uploads = array(); while ($row = $db->fetch_assoc($result)) { $uploads[$row['tid']][] = $row; } } ($code = $plugins->load('print_query')) ? eval($code) : null; $result = $db->query("\nSELECT r.edit, r.dosmileys, r.dowords, r.id, r.topic, r.comment, r.date, u.name as uname, r.name as gname, u.id as mid, u.groups, u.fullname, r.email as gmail, r.guest\nFROM {$db->pre}replies AS r \n\tLEFT JOIN {$db->pre}user AS u ON r.name=u.id \nWHERE r.topic_id = '{$_GET['id']}' {$searchsql}\n", __LINE__, __FILE__); while ($row = $gpc->prepare($db->fetch_object($result))) { $inner['upload_box'] = ''; if ($row->guest == 0) { $row->mail = ''; $row->name = $row->uname;
$lang->init($my->language); $tpl = new tpl(); $catbid = $scache->load('cat_bid'); $fc = $catbid->get(); if (empty($board) || !isset($fc[$board])) { error($lang->phrase('query_string_error')); } $info = $fc[$board]; if ($info['forumzahl'] < 1) { $info['forumzahl'] = $config['forumzahl']; } $my->p = $slog->Permissions($info['id']); $my->mp = $slog->ModPermissions($info['id']); forum_opt($info); $breadcrumb->Add($lang->phrase('teamcp')); echo $tpl->parse("header"); if ($my->vlogin && $my->mp[0] == 1) { ($code = $plugins->load('manageforum_start')) ? eval($code) : null; if ($_GET['action'] == "index") { if ($_GET['type'] == 'open') { $marksql = ' AND status = "1" '; } elseif ($_GET['type'] == 'close') { $marksql = ' AND status = "0" '; } else { // 'close' or 'move' $marksql = ''; } ($code = $plugins->load('manageforum_filter_query')) ? eval($code) : null; if (!empty($marksql)) { $result = $db->query("SELECT COUNT(*) FROM {$db->pre}topics WHERE board = '{$board}' {$marksql}", __LINE__, __FILE__); $vlasttopics = $db->fetch_num($result);
/** * Bans a user. * * After calling the function exit() is called and script ends. * Connection to database is closed. Template 'banned' will be shown. * Error Message is loaded from 'data/banned.php'-file. */ function banish() { global $config, $db, $phpdoc, $gpc, $lang, $plugins; $slog = new slog(); $my = $slog->logged(); $lang->init($my->language); $tpl = new tpl(); ob_start(); include 'data/banned.php'; $banned = ob_get_contents(); ob_end_clean(); ($code = $plugins->load('permissions_banish')) ? eval($code) : null; echo $tpl->parse("banned"); $phpdoc->Out(); $db->close(); exit; }
} $info['date'] = str_date($lang->phrase('dformat1'), times($info['date'])); $info['update'] = str_date($lang->phrase('dformat1'), times($info['update'])); $type = doctypes(); if (isset($type[$info['type']])) { $typedata = $type[$info['type']]; } else { $typedata = array('title' => 'Fallback', 'template' => '', 'parser' => 1, 'inline' => 1, 'remote' => 0); } if ($typedata['inline'] == 0) { if ((empty($info['content']) || $typedata['remote'] == 1) && $typedata['template'] != 'frame') { $info['content'] = @file_get_contents($info['file']); } $info['content'] = DocCodeParser($info['content'], $typedata['parser']); $breadcrumb->Add($info['title']); echo $tpl->parse("header"); if (empty($typedata['template'])) { echo $info['content']; } else { echo $tpl->parse("docs/{$typedata['template']}"); } } else { if (empty($info['content'])) { $info['content'] = @file_get_contents($info['file']); } if (empty($typedata['template'])) { preg_match("~<body([^>]+?)>~is", $info['content'], $match_body_attr); preg_match("~<title>(.+?)</title>~is", $info['content'], $match_title); preg_match("~<body[^>]*?>(.+?)</body>~is", $info['content'], $match_body); preg_match("~<head[^>]*?>(.+?)</head>~is", $info['content'], $match_head); if (!empty($match_head[1])) {
$from = array('name' => $my->name, 'mail' => $my->mail); xmail($to, $from, $_POST['topic'], $gpc->unescape($_POST['comment'])); ok($lang->phrase('email_sent'), "profile.php?id=" . $_GET['id'] . SID2URL_x); } } else { if ($row->opt_hidemail == 0) { $chars = array('@', '.'); $entities = array('@', '.'); $row->mail = str_replace($chars, $entities, $row->mail); } if (strlen($_GET['fid']) == 32) { $data = $gpc->prepare(import_error_data($_GET['fid'])); } else { $data = array('comment' => '', 'topic' => ''); } echo $tpl->parse("header"); ($code = $plugins->load('profile_mail_prepared')) ? eval($code) : null; echo $tpl->parse("profile/mail"); ($code = $plugins->load('profile_mail_end')) ? eval($code) : null; } } else { errorLogin(); } } elseif ($_GET['action'] == "sendjabber" && $is_member) { $error = array(); if (flood_protect() == FALSE) { $error[] = $lang->phrase('flood_control'); } if (strxlen($_POST['comment']) > $config['maxpostlength']) { $error[] = $lang->phrase('comment_too_long'); }
} else { error($lang->phrase('goboardpw_wrong_password')); } } else { viscacha_header('Location: showforum.php?id=' . $board . SID2URL_JS_x); } } elseif ($_GET['action'] == "wwo") { $my->p = $slog->Permissions(); if ($my->p['wwo'] == 0) { errorLogin(); } if ($_GET['type'] == 1) { $htmlonload .= "ReloadCountdown(60);"; } $breadcrumb->Add($lang->phrase('wwo_detail_title')); echo $tpl->parse("header"); echo $tpl->parse("menu"); $wwo = array(); $wwo['i'] = 0; $wwo['r'] = 0; $wwo['g'] = 0; $wwo['b'] = 0; $inner['wwo_bit_bot'] = ''; $inner['wwo_bit_member'] = ''; $inner['wwo_bit_guest'] = ''; // Foren cachen $catbid = $scache->load('cat_bid'); $cat_cache = $catbid->get(); // Documents cachen $wraps_obj = $scache->load('wraps'); $wrap_cache = $wraps_obj->get();
*/ error_reporting(E_ALL); DEFINE('SCRIPTNAME', 'team'); include "data/config.inc.php"; include "classes/function.viscacha_frontend.php"; $zeitmessung1 = t1(); $slog = new slog(); $my = $slog->logged(); $lang->init($my->language); $tpl = new tpl(); $my->p = $slog->Permissions(); if ($my->p['team'] == 0) { errorLogin(); } $breadcrumb->Add($lang->phrase('team')); echo $tpl->parse("header"); echo $tpl->parse("menu"); ($code = $plugins->load('team_top')) ? eval($code) : null; $groups = $scache->load('groups'); $team = $groups->team(); $cache = array(); $t = array_merge($team['admin'], $team['gmod']); foreach ($t as $row) { $cache[] = "FIND_IN_SET({$row},groups)"; } $result = $db->query(' SELECT id, name, mail, hp, location, fullname, groups FROM ' . $db->pre . 'user WHERE ' . implode(' OR ', $cache) . ' ORDER BY name ASC ', __LINE__, __FILE__);
function logged() { global $config, $db, $phpdoc, $gpc; // Alte Sessions (nach bestimmter Zeit, die geprüft wird) löschen if ($this->SessionDel() == true) { $sessionsave = $config['sessionsave'] * 60; $old = time() - $sessionsave; $db->query("DELETE FROM {$db->pre}session WHERE active <= '" . $old . "'", __LINE__, __FILE__); } $sessionid = $gpc->get('s', str); if (empty($sessionid) || strlen($sessionid) != $config['sid_length']) { $sessionid = FALSE; $this->querysid = FALSE; } $vdata = $gpc->save_str(getcookie('vdata')); $vlastvisit = $gpc->save_int(getcookie('vlastvisit')); $vhash = $gpc->save_str(getcookie('vhash')); // Read additional data if (!empty($vdata)) { $this->cookies = TRUE; $this->cookiedata = explode("|", $vdata); } else { $this->cookiedata = array(0, ''); } if (!empty($vlastvisit)) { $this->cookies = TRUE; $this->cookielastvisit = $vlastvisit; } else { $this->cookielastvisit = 0; } if (isset($vhash)) { $this->cookies = TRUE; if (strlen($vhash) != $config['sid_length']) { $this->sid = ''; } else { $this->sid = $vhash; } } elseif ($sessionid) { $this->sid = $sessionid; } else { $this->sid = ''; } if (empty($this->sid)) { $result = $db->query('SELECT sid FROM ' . $db->pre . 'session WHERE ip = "' . $this->ip . '" AND mid = "0" LIMIT 1', __LINE__, __FILE__); if ($db->num_rows() == 1) { $sidrow = $db->fetch_assoc($result); $this->sid = $sidrow['sid']; $this->querysid = TRUE; } } // Checke nun die Session if (empty($this->sid)) { if (SCRIPTNAME != 'external') { $my = $this->sid_new(); } else { $my->vlogin = FALSE; } } else { $my = $this->sid_load(); } $expire = $config['sessionsave'] + 1 * 60; makecookie($config['cookie_prefix'] . '_vhash', $this->sid, $expire); if ($gpc->get('action') == "markasread" || !isset($my->mark)) { $my->mark = array(); } else { $my->mark = unserialize(html_entity_decode($my->mark, ENT_QUOTES)); } if (!is_array($my->mark)) { $my->mark = array(); } if ($my->vlogin) { makecookie($config['cookie_prefix'] . '_vdata', $my->id . "|" . $my->pw); } else { $my->id = 0; } if (!isset($my->pwfaccess)) { $my->pwfaccess = array(); } else { $my->pwfaccess = unserialize(html_entity_decode($my->pwfaccess, ENT_QUOTES)); } if (!is_array($my->pwfaccess)) { $my->pwfaccess = array(); } if (!isset($my->settings)) { $my->settings = array(); } else { $my->settings = unserialize(html_entity_decode($my->settings, ENT_QUOTES)); } if (!is_array($my->settings)) { $my->settings = array(); } if (!isset($my->timezone) || $my->timezone == NULL) { $my->timezone = $config['timezone']; } $my->timezonestr = ''; if ($my->timezone != 0) { if ($my->timezone[0] != '+' && $my->timezone > 0) { $my->timezonestr = '+' . $my->timezone; } else { $my->timezonestr = $my->timezone; } } $cache = cache_loaddesign(); $q_tpl = $gpc->get('design', int); if (isset($my->template) == false || isset($cache[$my->template]) == false) { $my->template = $config['templatedir']; } if (isset($my->settings['q_tpl']) && isset($cache[$my->settings['q_tpl']])) { $my->template = $my->settings['q_tpl']; } if (isset($cache[$q_tpl])) { //if ($gpc->get('admin', int) != 1) { $my->settings['q_tpl'] = $q_tpl; //} $my->template = $q_tpl; } $my->templateid = $cache[$my->template]['template']; $my->imagesid = $cache[$my->template]['images']; $my->cssid = $cache[$my->template]['stylesheet']; $my->smileyfolder = $cache[$my->template]['smileyfolder']; $cache2 = cache_loadlanguage(); $q_lng = $gpc->get('lang', int); if (isset($my->language) == false || isset($cache2[$my->language]) == false) { $my->language = $config['langdir']; } if (isset($my->settings['q_lng']) && isset($cache2[$my->settings['q_lng']]) != false) { $my->language = $my->settings['q_lng']; } if (isset($cache2[$q_lng]) != false) { $my->settings['q_lng'] = $q_lng; $my->language = $q_lng; } if (isset($my->lastvisit) && !$my->clv) { $my->clv = $my->lastvisit; } if (!isset($my->opt_hidebad)) { $my->opt_hidebad = 0; } if (!isset($my->opt_showsig)) { $my->opt_showsig = 1; } if ($this->bi[1] == 'e') { $slog = new slog(); $my = $slog->logged(); global $lang; $lang->init($my->language); $tpl = new tpl(); ob_start(); include 'data/banned.php'; $banned = ob_get_contents(); ob_end_clean(); echo $tpl->parse("banned"); $phpdoc->Out(); $db->close(); exit; } $this->sid2url(); return $my; }
$data = array('ids' => $searchresult, 'ignored' => $ignored, 'used' => $used); $vals = array('search', 'name', 'boards', 'opt_0', 'opt_1', 'opt_2', 'temp', 'temp2', 'sort', 'order'); foreach ($vals as $v) { $data[$v] = $_POST[$v]; } $fid = md5(microtime()); file_put_contents('cache/search/' . $fid . '.inc.php', serialize($data)); $slog->updatelogged(); $db->close(); viscacha_header('Location: search.php?action=result&fid=' . $fid . SID2URL_JS_x); exit; } else { error($lang->phrase('search_nothingfound'), 'search.php' . SID2URL_1); } } elseif ($_GET['action'] == "result") { echo $tpl->parse("header"); echo $tpl->parse("menu"); $file = 'cache/search/' . $_GET['fid'] . '.inc.php'; if (!file_exists($file)) { error($lang->phrase('search_doesntexist'), 'search.php' . SID2URL_1); } $data = file_get_contents($file); $data = unserialize($data); $ignored = array(); foreach ($data['ignored'] as $row) { $row = trim($row); if (!empty($row)) { $ignored[] = $row; } } $start = $_GET['page'] * $config['searchzahl'];
$data['comment'] .= $row['comment']; $data['comment'] .= "[/quote]\r\n"; } } } if ($config['botgfxtest_posts'] == 1 && $data['human'] == null) { include "classes/graphic/class.veriword.php"; $vword = new VeriWord(); $veriid = $vword->set_veriword($config['botgfxtest_text_verification']); if ($config['botgfxtest_text_verification'] == 1) { $textcode = $vword->output_word($veriid); } } if ($my->vlogin) { $result = $db->query('SELECT id FROM ' . $db->pre . 'abos WHERE mid = ' . $my->id . ' AND tid = ' . $_GET['id'], __LINE__, __FILE__); $abox = $db->fetch_object($result); } $inner['smileys'] = $bbcode->getsmileyhtml($config['smileysperrow']); $inner['bbhtml'] = $bbcode->getbbhtml(); echo $tpl->parse("header"); echo $tpl->parse("menu"); ($code = $plugins->load('addreply_form_prepared')) ? eval($code) : null; echo $tpl->parse("addreply"); ($code = $plugins->load('addreply_form_end')) ? eval($code) : null; } ($code = $plugins->load('addreply_end')) ? eval($code) : null; $slog->updatelogged(); $zeitmessung = t2(); echo $tpl->parse("footer"); $phpdoc->Out(); $db->close();
along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ error_reporting(E_ALL); DEFINE('SCRIPTNAME', 'managemembers'); include "data/config.inc.php"; include "classes/function.viscacha_frontend.php"; $zeitmessung1 = t1(); $slog = new slog(); $my = $slog->logged(); $lang->init($my->language); $tpl = new tpl(); $my->p = $slog->Permissions(); include_once "classes/function.profilefields.php"; $breadcrumb->Add($lang->phrase('teamcp')); echo $tpl->parse("header"); ($code = $plugins->load('managemembers_start')) ? eval($code) : null; if ($my->vlogin && $my->p['admin'] == 1) { $result = $db->query('SELECT * FROM ' . $db->pre . 'user WHERE id = ' . $_GET['id']); if ($db->num_rows() != 1) { error($lang->phrase('no_id_given'), 'members.php' . SID2URL_1); } $user = $gpc->prepare($db->fetch_assoc($result)); ($code = $plugins->load('managemembers_prepare')) ? eval($code) : null; if ($_GET['action'] == 'delete') { if ($my->id == $user['id']) { error($lang->phrase('member_delete_yourself_error')); } echo $tpl->parse("menu"); echo $tpl->parse("admin/members/delete"); } elseif ($_GET['action'] == 'delete2') {
$to[] = array('mail' => $email); } } if (count($to) > 0) { $data = $lang->get_mail('new_member'); $from = array(); xmail($to, $from, $data['title'], $data['comment']); } } ok($lang->phrase('register_confirm_' . $config['confirm_registration']), "log.php?action=login" . SID2URL_x); } } elseif ($_GET['action'] == 'resend') { ($code = $plugins->load('register_resend_start')) ? eval($code) : null; $breadcrumb->Add($lang->phrase('register_title'), "register.php" . SID2URL_1); $breadcrumb->Add($lang->phrase('register_resend_title')); echo $tpl->parse("header"); echo $tpl->parse("menu"); if ($config['botgfxtest'] == 1) { include "classes/graphic/class.veriword.php"; $vword = new VeriWord(); $veriid = $vword->set_veriword($config['botgfxtest_text_verification']); if ($config['botgfxtest_text_verification'] == 1) { $textcode = $vword->output_word($veriid); } } $name = $gpc->get('name', str); ($code = $plugins->load('register_resend_form_start')) ? eval($code) : null; echo $tpl->parse("register/resend"); ($code = $plugins->load('register_resend_form_end')) ? eval($code) : null; } elseif ($_GET['action'] == 'resend2') { $breadcrumb->Add($lang->phrase('register_title'), "register.php" . SID2URL_1);
$htaccess[] = ""; } $filesystem->file_put_contents('.htaccess', implode("\r\n", $htaccess)); } $breadcrumb = new breadcrumb(); $breadcrumb->Add($config['fname'], 'index.php'); $phpdoc = new OutputDoc($config['gzip']); $phpdoc->Start($config['gzcompression']); define('PAGE_IS_GZIPPED', $config['gzip'] == 1 && $phpdoc->Encoding()); ($code = $plugins->load('frontend_init')) ? eval($code) : null; // Global and important functions (not for cron and external) if (defined('TEMPNOFUNCINIT') == false || $config['foffline'] && defined('TEMPSHOWLOG') == false) { define('SCRIPT_START_TIME', benchmarktime()); $slog = new slog(); $my = $slog->logged(); $lang->init($my->language); $tpl = new tpl(); $slog->checkBan(); } if ($config['foffline'] && defined('TEMPSHOWLOG') == false) { $my->p = $slog->Permissions(); if ($my->p['admin'] != 1) { $offline = file_get_contents('data/offline.php'); sendStatusCode(503, 3600); ($code = $plugins->load('frontend_init_offline')) ? eval($code) : null; echo $tpl->parse("offline"); $phpdoc->Out(); $db->close(); exit; } }
ok($lang->phrase('x_entries_deleted'), "editprofile.php?action=fav" . SID2URL_x); } elseif ($_GET['action'] == "attachments2" && $config['tpcallow'] == 1) { if (count($_POST['delete']) > 0) { $result = $db->query("SELECT file FROM {$db->pre}uploads WHERE mid = '{$my->id}' AND id IN(" . implode(',', $_POST['delete']) . ")", __LINE__, __FILE__); while ($row = $db->fetch_assoc($result)) { @unlink('uploads/topics/' . $row['file']); } $db->query("DELETE FROM {$db->pre}uploads WHERE mid = '{$my->id}' AND id IN (" . implode(',', $_POST['delete']) . ")", __LINE__, __FILE__); $anz = $db->affected_rows(); ok($lang->phrase('editprofile_attachments_deleted'), "editprofile.php?action=attachments" . SID2URL_x); } else { error($lang->phrase('query_string_error'), "editprofile.php?action=attachments" . SID2URL_x); } } elseif ($_GET['action'] == "attachments" && $config['tpcallow'] == 1) { $breadcrumb->Add($lang->phrase('editprofile_attachments')); echo $tpl->parse("header"); echo $tpl->parse("menu"); $result = $db->query("SELECT r.board, r.topic, u.id, u.tid, u.file, u.hits FROM {$db->pre}uploads AS u LEFT JOIN {$db->pre}replies AS r ON r.id = u.tid WHERE u.mid = '{$my->id}' ORDER BY u.topic_id, u.tid", __LINE__, __FILE__); $all = array(0, 0, 0); $cache = array(); while ($row = $db->fetch_assoc($result)) { $row['topic'] = $gpc->prepare($row['topic']); $row['file'] = trim($row['file']); $uppath = 'uploads/topics/' . $row['file']; $fsize = filesize($uppath); $all[0]++; $all[1] += $fsize; $all[2] += $row['hits']; $row['hits'] = numbers($row['hits']); $row['fsize'] = formatFilesize($fsize); $cache[] = $row;
} else { $loc = strip_tags($gpc->get('redirect', none, 'index.php' . SID2URL_1)); $file = basefilename($loc); if ($file == 'log.php') { $loc = 'index.php' . SID2URL_1; } ($code = $plugins->load('log_logout')) ? eval($code) : null; $slog->sid_logout(); ok($lang->phrase('log_msglogout'), $loc); } } elseif ($_GET['action'] == "pwremind") { if ($my->vlogin) { error($lang->phrase('log_already_logged')); } $breadcrumb->Add($lang->phrase('log_pwremind_title')); echo $tpl->parse("header"); echo $tpl->parse("menu"); ($code = $plugins->load('log_pwremind_form_start')) ? eval($code) : null; echo $tpl->parse("log/pwremind"); ($code = $plugins->load('log_pwremind_form_end')) ? eval($code) : null; $slog->updatelogged(); } elseif ($_GET['action'] == "pwremind2") { if (flood_protect() == false) { error($lang->phrase('flood_control'), 'log.php?action=login' . SID2URL_x); } set_flood(); ($code = $plugins->load('log_pwremind2_start')) ? eval($code) : null; $result = $db->query("SELECT id, name, mail, pw FROM {$db->pre}user WHERE mail = '{$_POST['email']}' LIMIT 1", __LINE__, __FILE__); $user = $db->fetch_assoc($result); if ($db->num_rows($result) != 1) { error($lang->phrase('log_pwremind_failed'), "log.php?action=pwremind" . SID2URL_x);
error_reporting(E_ALL); DEFINE('SCRIPTNAME', 'members'); define('VISCACHA_CORE', '1'); include "data/config.inc.php"; include "classes/function.viscacha_frontend.php"; $zeitmessung1 = t1(); $slog = new slog(); $my = $slog->logged(); $lang->init($my->language); $tpl = new tpl(); $my->p = $slog->Permissions(); if ($my->p['members'] == 0) { error(array($lang->phrase('not_allowed'))); } $breadcrumb->Add($lang->phrase('members')); echo $tpl->parse("header"); echo $tpl->parse("menu"); ($code = $plugins->load('members_start')) ? eval($code) : null; $fields = explode(',', $config['mlist_fields']); $im = false; $colspan = 1 + count($fields); if (in_array('fullname', $fields)) { $colspan--; } if (in_array('icq', $fields)) { $colspan--; $im = true; } if (in_array('aol', $fields)) { $colspan--; $im = true;
error_reporting(E_ALL); DEFINE('SCRIPTNAME', 'package_db_generator'); if (!defined('VISCACHA_CORE')) { define('VISCACHA_CORE', '1'); } require_once "data/config.inc.php"; require_once "classes/function.viscacha_frontend.php"; $zeitmessung1 = t1(); $slog = new slog(); $my = $slog->logged(); $lang->init($my->language); $tpl = new tpl(); $my->p = $slog->Permissions(); $my->pb = $slog->GlobalPermissions(); $breadcrumb->Add($lang->phrase('portal_title')); echo $tpl->parse("header"); // Start Generator define('IMPTYPE_PACKAGE', 1); define('IMPTYPE_DESIGN', 2); define('IMPTYPE_SMILEYPACK', 3); define('IMPTYPE_LANGUAGE', 4); define('IMPTYPE_BBCODE', 5); include 'classes/class.zip.php'; $myini = new INI(); $types = array(1 => 'packages', 2 => 'designs', 3 => 'smileys', 4 => 'languages', 5 => 'bbc'); ?> <div class="border"> <h3>Browser Database Generator</h3> <div class="bbody"> Files generated (5): <a href="viscacha/files/external.ini">external.ini</a> <?php
} if (!file_exists($uppath)) { $thumb->create_error('#4 ' . $lang->phrase('thumb_error')); } $chachepath = 'uploads/topics/thumbnails/' . $row['id'] . get_extension($uppath); $thumb->set_cacheuri($chachepath); if (file_exists($chachepath) == FALSE) { $thumbnail_source = $thumb->create_thumbnail($uppath); $thumb->create_image($thumbnail_source); } $thumb->get_image(); exit; } } elseif ($_GET['action'] == "attachment") { if ($_GET['id'] < 1) { echo $tpl->parse("header"); error($lang->phrase('no_id_given')); } else { $result = $db->query(' SELECT u.tid, u.file, t.board FROM ' . $db->pre . 'uploads AS u LEFT JOIN ' . $db->pre . 'topics AS t ON t.id = u.tid WHERE u.id = ' . $_GET['id'] . ' AND u.tid > 0 LIMIT 1 ', __LINE__, __FILE__); $row = $db->fetch_assoc($result); $my->p = $slog->Permissions($row['board']); $file = NULL; if ($db->num_rows($result) != 1) { echo $tpl->parse("header"); error($lang->phrase('no_upload_found')); }
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ error_reporting(E_ALL); DEFINE('SCRIPTNAME', 'spellcheck'); include "data/config.inc.php"; include "classes/function.viscacha_frontend.php"; $zeitmessung1 = t1(); $slog = new slog(); $my = $slog->logged(); $lang->init($my->language); $tpl = new tpl(); if ($config['spellcheck'] == 0) { error('Spellcheck wurde deaktiviert!', 'self.close()'); } $action = $gpc->get('action', str); ($code = $plugins->load('spellcheck_start')) ? eval($code) : null; if ($action == "execute") { include "classes/spellchecker/function.php"; echo $tpl->parse("spellcheck/execute"); } elseif ($action == "frames") { echo $tpl->parse("spellcheck/frames"); } elseif ($action == "controls") { echo $tpl->parse("spellcheck/controls"); } elseif ($action == "blank") { echo ''; } ($code = $plugins->load('spellcheck_end')) ? eval($code) : null; $slog->updatelogged(); $zeitmessung = t2(); $phpdoc->Out(); $db->close();