Nick F <*****@*****.**> www.sevengraff.com ----------------------------------------- This product is distributed under the GNU GPL liscense. A copy of that liscense should be packaged with this product. ----------------------------------------- */ require_once 'config.php'; require_once 'system/functions.php'; require_once 'system/ets_file.php'; require_once 'system/sqldb2.class.php'; require_once 'system/nlb_config.class.php'; require_once 'ets.php'; $db = new sqldb2($DB_CONFIG); $config = new nlb_config($db); include $config->langFile(); $bbcode_image_folder = skin_dir . 'bb/'; $codes = array(); $codes[] = array($l['bb-bold'], 'bold.gif', '[b] [/b]'); $codes[] = array($l['bb-italic'], 'italic.gif', '[i] [/i]'); $codes[] = array($l['bb-underline'], 'underline.gif', '[u] [/u]'); $codes[] = array($l['bb-code'], 'code.gif', '[code] [/code]'); $codes[] = array($l['bb-img'], 'img.gif', '[img] [/img]'); $codes[] = array($l['bb-url'], 'url.gif', '[url] [/url]'); $codes[] = array($l['bb-quote'], 'quote.gif', '[quote] [/quote]'); $i = 0; foreach ($codes as $bb) { $ets->items[$i]->desc = $bb[0]; $ets->items[$i]->img = $bbcode_image_folder . $bb[1]; $ets->items[$i]->code = $bb[2];
should be packaged with this product. ----------------------------------------- */ require_once 'config.php'; require_once 'system/functions.php'; require_once 'system/ets_file.php'; require_once 'ets.php'; require_once 'system/text.class.php'; require_once 'system/sqldb2.class.php'; require_once 'system/nlb_user.class.php'; require_once 'system/nlb_blog.class.php'; require_once 'system/nlb_mail.class.php'; require_once 'system/nlb_config.class.php'; $start = mymicrotime(); $db = new sqldb2($DB_CONFIG); $config = new nlb_config($db); $user = new nlb_user($db); $b = new nlb_blog($db); include $config->langfile(); if ($user->isLogedIn) { $b->setDateOffset($config->get('server_timezone'), $user->get('timezone')); } $action = 'login'; if (isset($_GET['action'])) { $action = $_GET['action']; } switch ($action) { // build login form. default: case 'login': $ets_outter->main_title = $config->get('site_name') . ": " . $l['title-login'];
should be packaged with this product. ----------------------------------------- */ require_once 'config.php'; require_once 'system/functions.php'; require_once 'system/ets_file.php'; require_once 'system/sqldb2.class.php'; require_once 'system/nlb_user.class.php'; require_once 'system/nlb_config.class.php'; require_once 'system/nlb_blog.class.php'; require_once 'system/nlb_mail.class.php'; require_once 'system/text.class.php'; require_once 'ets.php'; $db = new sqldb2($DB_CONFIG); $user = new nlb_user($db); $config = new nlb_config($db); $blog = new nlb_blog($db); $user->checkLogin(); // check for loged in user. if ($user->isLogedIn) { jsRedirect("index.php"); } include $config->langfile(); $start = mymicrotime(); $text = new Text($_POST, array('username', 'password', 'confirm-password', 'email', 'template', 'timezone'), array('custom')); $text->validate(); $clean = $text->clean; $baddata = false; $problems = array(); if (!empty($_POST)) { if ($text->is_missing_required) {
*/ require_once 'config.php'; // require_once this before others! require_once 'system/functions.php'; require_once 'system/ets_file.php'; require_once 'system/sqldb2.class.php'; require_once 'system/nlb_mail.class.php'; require_once 'system/nlb_blog.class.php'; require_once 'system/nlb_user.class.php'; require_once 'system/nlb_config.class.php'; require_once 'system/text.class.php'; require_once 'ets.php'; define('IN_NLB3', 'true'); $start = mymicrotime(); $db = new sqldb2($DB_CONFIG); $config = new nlb_config($db); $user = new nlb_user($db); $user->checklogin(); include $config->langfile(); // include lang file $b = new nlb_blog($db); if (!$user->isLogedIn) { jsRedirect("login.php"); } else { // timezone setting $b->setDateOffset($config->get('server_timezone'), $user->get('timezone')); } $ets_outter->sitenav = buildMainNav($l, $user); $ets->page_body = ""; // N A V L I N K S $ets_outter->navtype = $l['ucp-nav-usercp'];
----------------------------------------- */ require_once 'config.php'; // include this before others! require_once 'system/functions.php'; require_once 'system/ets_file.php'; require_once 'system/sqldb2.class.php'; // NLB Class library require_once 'system/nlb_blog.class.php'; require_once 'system/nlb_user.class.php'; require_once 'system/nlb_config.class.php'; require_once 'ets.php'; // Sweet template library $start = mymicrotime(); $db = new sqldb2($DB_CONFIG); $config = new nlb_config($db); $user = new nlb_user($db); // is someone trying to access a persons blog $_SERVER['QUERY_STRING'] = urldecode($_SERVER['QUERY_STRING']); if (!empty($_SERVER['QUERY_STRING']) && ($id = $user->getIdByName($_SERVER['QUERY_STRING'])) > -1) { // die($id); //jsRedirect( script_path . 'blog.php/user/' . $id ); jsRedirect(build_link('blog.php', array('user' => $id))); } $user->checklogin(); require_once $config->langfile(); // include lang file $b = new nlb_blog($db); if ($user->isLogedIn) { // timezone settings $b->setDateOffset($config->get('server_timezone'), $user->get('timezone'));
GPL liscense. A copy of that liscense should be packaged with this product. ----------------------------------------- */ require_once 'config.php'; require_once 'system/functions.php'; require_once 'system/ets_file.php'; require_once 'system/sqldb2.class.php'; require_once 'system/nlb_config.class.php'; require_once 'system/nlb_blog.class.php'; require_once 'system/nlb_user.class.php'; require_once 'ets.php'; $timer_start = mymicrotime(); $db = new sqldb2($DB_CONFIG); $user = new nlb_user($db); $config = new nlb_config($db); include $config->langfile(); $user->checkLogin(); $b = new nlb_blog($db); if ($user->isLogedIn) { $b->setDateOffset($config->get('server_timezone'), $user->get('timezone')); } $perpage = $config->get('memlist_per_page'); $date_format = $config->get('memlist_date_format'); // Not really path info anymore... $_PATH = fetch_url_data(); $sort = 'username'; $allowed_sort = array('username', 'blog_count', 'registered'); if (isset($_PATH['sort']) && in_array($_PATH['sort'], $allowed_sort)) { $sort = $_PATH['sort']; }
----------------------------------------- */ require_once 'config.php'; // require_once this before others! require_once 'system/functions.php'; require_once 'system/ets_sql.php'; require_once 'system/sqldb2.class.php'; require_once 'system/nlb_blog.class.php'; require_once 'system/nlb_user.class.php'; require_once 'system/nlb_config.class.php'; require_once 'system/text.class.php'; require_once 'ets.php'; $path = fetch_url_data(); $db = new sqldb2($DB_CONFIG); $blog = new nlb_blog($db); $config = new nlb_config($db); require_once $config->langfile(); $user = new nlb_user($db); $user->checkLogin(); if (isset($path['user'])) { /** * Show page of blogs for user */ $USERID = $path['user']; if (!is_numeric($USERID)) { jsRedirect(script_path . 'index.php'); } $u = new nlb_user($db, $USERID); // $u is the user who's friends page we are viewing $page = 0; if (isset($path['page'])) {
----------------------------------------- */ require_once 'config.php'; // require_once this before others! require_once 'system/functions.php'; require_once 'system/ets_sql.php'; require_once 'system/sqldb2.class.php'; require_once 'system/nlb_blog.class.php'; require_once 'system/nlb_user.class.php'; require_once 'system/nlb_config.class.php'; require_once 'system/text.class.php'; require_once 'ets.php'; $path = fetch_url_data(); $db = new sqldb2($DB_CONFIG); $blog = new nlb_blog($db); $config = new nlb_config($db); include $config->langfile(); $user = new nlb_user($db); $user->checkLogin(); if (!isset($path['user'])) { jsRedirect(script_path . 'index.php'); // need a user id!! } else { $USERID = $path['user']; if (!is_numeric($USERID)) { jsRedirect(script_path . 'index.php'); } // get info on user $info = $db->getArray(' SELECT username, email, blog_count, birthday, gender, registered, bio FROM ' . db_users . '
----------------------------------------- */ require_once 'config.php'; // require_once this before others! require_once 'system/functions.php'; require_once 'system/ets_file.php'; require_once 'system/sqldb2.class.php'; // NLB Class library require_once 'system/nlb_blog.class.php'; require_once 'system/nlb_user.class.php'; require_once 'system/nlb_config.class.php'; require_once 'ets.php'; // Sweet template library $start = mymicrotime(); $db = new sqldb2($DB_CONFIG); $config = new nlb_config($db); $user = new nlb_user($db); //$user->checklogin(); DONT CHECK FOR LOGIN ON THIS PAGE! include $config->langfile(); // include lang file if (!isset($_GET['id'])) { jsRedirect('index.php'); } $id = addslashes($_GET['id']); $row = $db->getArray('SELECT reason, expires FROM ' . db_banned . ' WHERE banned_id="' . $id . '";'); if (empty($row)) { die("empty"); } $body = $l['banned_msg']; $body = str_replace("%REASON%", $row['reason'], $body); $body = str_replace("%DATE%", date('r', $row['expires']), $body);
should be packaged with this product. ----------------------------------------- */ require_once 'config.php'; require_once 'system/functions.php'; require_once 'system/ets_file.php'; require_once 'system/sqldb2.class.php'; require_once 'system/nlb_config.class.php'; require_once 'system/nlb_user.class.php'; require_once 'system/nlb_blog.class.php'; require_once 'ets.php'; $start = mymicrotime(); $db = new sqldb2($DB_CONFIG); $blog = new nlb_blog($db); $user = new nlb_user($db); $config = new nlb_config($db); include $config->langfile(); $user->checkLogin(); if ($user->isLogedIn) { // timezone $blog->setDateOffset($config->get('server_timezone'), $user->get('timezone')); } // // T O T A L S // // public blogs $tmp = $db->getArray('SELECT COUNT(blog_id) AS c FROM ' . db_blogs . ' WHERE access="' . access_public . '";'); $total_public = $tmp['c']; // private blogs $tmp = $db->getArray('SELECT COUNT(blog_id) AS c FROM ' . db_blogs . ' WHERE access="' . access_private . '";'); $total_private = $tmp['c'];
----------------------------------------- */ require_once 'config.php'; require_once 'system/functions.php'; require_once 'system/ets_file.php'; require_once 'system/sqldb2.class.php'; require_once 'system/nlb_user.class.php'; require_once 'system/nlb_config.class.php'; require_once 'system/nlb_blog.class.php'; require_once 'system/nlb_mail.class.php'; require_once 'system/text.class.php'; require_once 'ets.php'; session_start(); $db = new sqldb2($DB_CONFIG); $user = new nlb_user($db); $config = new nlb_config($db); $blog = new nlb_blog($db); $user->checkLogin(); include $config->langfile(); $start = mymicrotime(); $ets = new stdclass(); /** * ======================================= * S E A R C H B L O G S * ======================================= */ /* ===== QUERY TEMPLATE ====== SELECT u.username, b.blog_id, b.author_id, b.date, b.subject, b.body, b.comments, b.html, b.smiles, b.bb, FROM nlb3_blogs AS b, nlb3_users AS u WHERE u.user_id = b.author_id AND b.access = public AND b.body LIKE "%text%" AND LIMIT 0 , 10
should be packaged with this product. ----------------------------------------- */ require_once 'config.php'; require_once 'system/functions.php'; require_once 'system/ets_sql.php'; require_once 'system/sqldb2.class.php'; require_once 'system/nlb_blog.class.php'; require_once 'system/nlb_user.class.php'; require_once 'system/nlb_config.class.php'; require_once 'system/text.class.php'; require_once 'ets.php'; $path = fetch_url_data(); $db = new sqldb2($DB_CONFIG); $blog = new nlb_blog($db); $config = new nlb_config($db); require_once $config->langfile(); $user = new nlb_user($db); $user->checkLogin(); if (isset($path['id'])) { /** * ======================================= * Show single blog & Comments * ======================================= */ $blog_id = $path['id']; if (!is_numeric($blog_id)) { jsRedirect(script_path . 'index.php'); } // blog exists? $test = $db->getArray('SELECT count(blog_id) as c FROM ' . db_blogs . ' WHERE blog_id="' . $blog_id . '";');