getSessionKey()) { include_once("include/core/function.inc.php"); $func = & new ServerFunction(ping); $func->call(); }; if(!$k2_action and isset($_REQUEST[act]) and $_REQUEST[act]) { $k2_action = $_REQUEST[act]; }; if(!$k2_action) $k2_action = main; // Bug #156 $no_left_block = array(login, reactivate); if(in_array($k2_action, $no_left_block)) { $k2_no_left_block = true; } else { $k2_no_left_block = false; }; if($k2_action == main) { define(K2_MAIN_PAGE, true); } else { define(K2_MAIN_PAGE, false); }; if($k2_no_left_block) { define(K2_ONE_BLOCK, true); } else { define(K2_ONE_BLOCK, false); }; define(K2_ACTION, $k2_action); // check if user want to log in if(isset($_REQUEST[act]) and ($_REQUEST[act] == login or $_REQUEST[act] == reactivate)) { include_once("include/core/log-in.inc.php"); }; if(file_exists(K2_INSTALL_ROOT . /data/custom.css)) { $k2_css_file = $install_ref . /data/custom.css; } else { $k2_css_" /> getSessionKey()) { include_once("include/core/function.inc.php"); $func = & new ServerFunction(ping); $func->call(); }; if(!$k2_action and isset($_REQUEST[act]) and $_REQUEST[act]) { $k2_action = $_REQUEST[act]; }; if(!$k2_action) $k2_action = main; // Bug #156 $no_left_block = array(login, reactivate); if(in_array($k2_action, $no_left_block)) { $k2_no_left_block = true; } else { $k2_no_left_block = false; }; if($k2_action == main) { define(K2_MAIN_PAGE, true); } else { define(K2_MAIN_PAGE, false); }; if($k2_no_left_block) { define(K2_ONE_BLOCK, true); } else { define(K2_ONE_BLOCK, false); }; define(K2_ACTION, $k2_action); // check if user want to log in if(isset($_REQUEST[act]) and ($_REQUEST[act] == login or $_REQUEST[act] == reactivate)) { include_once("include/core/log-in.inc.php"); }; if(file_exists(K2_INSTALL_ROOT . /data/custom.css)) { $k2_css_file = $install_ref . /data/custom.css; } else { $k2_css_" /> kaqoo - MyStateline.com - Powered by WTVO-TV and WQRF-TV
61°F

kaqoo

<?php // +---------------------------------------------------------------------- // | This is a part of Kaqoo-2 project // +---------------------------------------------------------------------- // | Copyright (C) 2006, 2007 by Alan Skelton http://kaqoo.com // +---------------------------------------------------------------------- // error_reporting(E_ALL); @set_time_limit(0); @ini_set(memory_limit, 64M); if(!defined(K2_ENTRY_POINT)) define(K2_ENTRY_POINT, true); if(function_exists(ob_gzhandler) and !@$_REQUEST[no_gzip]) { ob_start(ob_gzhandler); } else { ob_start(); }; header(Content-type: text/html; charset="UTF-8", true); // current action (can be changed by init procedure) -- dmiceman $k2_action = null; include_once("include/design/defines.design.inc.php"); include_once("include/init.inc.php"); #-------------------- #--Session messages-- #-------------------- include_once("include/core/context.inc.php"); $client_context = & new Context(); // check if session key is known and create it if needed if(!$client_context->getSessionKey()) { include_once("include/core/function.inc.php"); $func = & new ServerFunction(ping); $func->call(); }; if(!$k2_action and isset($_REQUEST[act]) and $_REQUEST[act]) { $k2_action = $_REQUEST[act]; }; if(!$k2_action) $k2_action = main; // Bug #156 $no_left_block = array(login, reactivate); if(in_array($k2_action, $no_left_block)) { $k2_no_left_block = true; } else { $k2_no_left_block = false; }; if($k2_action == main) { define(K2_MAIN_PAGE, true); } else { define(K2_MAIN_PAGE, false); }; if($k2_no_left_block) { define(K2_ONE_BLOCK, true); } else { define(K2_ONE_BLOCK, false); }; define(K2_ACTION, $k2_action); // check if user want to log in if(isset($_REQUEST[act]) and ($_REQUEST[act] == login or $_REQUEST[act] == reactivate)) { include_once("include/core/log-in.inc.php"); }; if(file_exists(K2_INSTALL_ROOT . /data/custom.css)) { $k2_css_file = $install_ref . /data/custom.css; } else { $k2_css_
getSessionKey()) { include_once("include/core/function.inc.php"); $func = & new ServerFunction(ping); $func->call(); }; if(!$k2_action and isset($_REQUEST[act]) and $_REQUEST[act]) { $k2_action = $_REQUEST[act]; }; if(!$k2_action) $k2_action = main; // Bug #156 $no_left_block = array(login, reactivate); if(in_array($k2_action, $no_left_block)) { $k2_no_left_block = true; } else { $k2_no_left_block = false; }; if($k2_action == main) { define(K2_MAIN_PAGE, true); } else { define(K2_MAIN_PAGE, false); }; if($k2_no_left_block) { define(K2_ONE_BLOCK, true); } else { define(K2_ONE_BLOCK, false); }; define(K2_ACTION, $k2_action); // check if user want to log in if(isset($_REQUEST[act]) and ($_REQUEST[act] == login or $_REQUEST[act] == reactivate)) { include_once("include/core/log-in.inc.php"); }; if(file_exists(K2_INSTALL_ROOT . /data/custom.css)) { $k2_css_file = $install_ref . /data/custom.css; } else { $k2_css_file = $install_ref . /core.css; }; ob_start(); include_once("include/design/defines.design.inc.php"); include_once("include/design/common.inc.php"); if(file_exists(K2_INSTALL_ROOT . /data/header.inc.php)) { include_once(K2_INSTALL_ROOT . /data/header.inc.php); } else { include_once(K2_INSTALL_ROOT . /include/design/header.design.inc.php); }; if(isAdmin()) { $url = http:// . $_SERVER[SERVER_NAME] . dirname($_SERVER[PHP_SELF]); if(preg_match(|^(https?://)([^/]+)(.*)$|i, $url, $match)) { $url = strtolower($match[1]) . strtolower($match[2]) . $match[3]; }; if(!preg_match(|/$|i, $url)) { $url .= /; }; if($url != $client_context->site_url and $client_context->site_id > 16) { clientWarning(sprintf(i18n(ACTUAL_URL, Warning, site url does not match value stored in kaqoo2 network.
Please correct it as soon as possible from configuration screen.
Correct url: %s, stored url: %s), getCLocation(array(act => config)), $url, $client_context->site_url)); }; }; include_once("include/core/request.inc.php"); // initialize $screen_context, even if empty include_once("include/core/screen_context.inc.php"); $screen_context = & new ScreenContext(); echo " "; switch($k2_action) { case status : include(html/status.php);break; #Login interface actions case login : case reactivate : include(K2_INSTALL_ROOT . /include/log-in.inc.php); break; case register : include(K2_INSTALL_ROOT./include/display/register.inc.php);break; case register_success : include(K2_INSTALL_ROOT./include/display/register_success.inc.php);break; case activate : include(K2_INSTALL_ROOT . /include/display/activate.inc.php); break; case modify_user : include(K2_INSTALL_ROOT./include/modify.inc.php);break; case logout : $client_context->clearSession(); setLocation(getCLocation(array(act => list))); exit; case lost_passwd: include(K2_INSTALL_ROOT . "/include/display/lost_pass.inc.php"); break; case add_sale : case item_edit : include(K2_INSTALL_ROOT . "/include/display/item_edit.inc.php"); break; case message : case my : case user_auctions : case user_feedback : case leave_feedback : case user : case message : case bid_history : case contact_us : case fees_info : include_once(K2_INSTALL_ROOT . "/include/display/$k2_action.inc.php"); break; case about_us: if(file_exists(K2_INSTALL_ROOT . /data/about_us.inc.php) and filesize(K2_INSTALL_ROOT . /data/about_us.inc.php) > 0) { $content = trim(@file_get_contents(K2_INSTALL_ROOT . /data/about_us.inc.php)); } else { $content = ; }; if($content) { include_once(K2_INSTALL_ROOT . /include/design/form.inc.php); $form = & new kaqooForm(false); $form->blockStart(, ); echo . $content . ; $form->blockEnd(); } else { header(Location: . K2_INSTALL_REF . /index.php, true); exit; }; break; case item_repost : case my_info : case item_post_edit : case add_bid : case buynow : case balance : case item_end : case mass_add : case first_login : case abalance2balance : // not all this actions should be hidden for guest -- dmiceman if (!isSelf()) accessViolation(); include_once(K2_INSTALL_ROOT . "/include/display/$k2_action.inc.php");break; //Administrator actions case users : case mail_templates : case set_design : case user_info : case config : case mail_site_users : case categories : case design : case item_admin_edit : case item_admin_end : case admin_balance : case local_news_block: if (!isSiteAdmin()) accessViolation(); include_once(K2_INSTALL_ROOT . "/include/display/$k2_action.inc.php"); break; case news_block: case right_block: case categories_edit : if (!isMainAdmin()) accessViolation(); include_once(K2_INSTALL_ROOT . "/include/display/$k2_action.inc.php"); break; //Superadmin actions case add_site : case sites_list : case add_design : case mail_all_users : case mail_site_admins : case global_config : case currency_rates : case edit_currency : case extra_props : case extra_props_map : case admin_payment : case member_payment : case gconfig : if (!isSuperAdmin()) accessViolation(); include_once(K2_INSTALL_ROOT . "/include/display/$k2_action.inc.php"); break; //Item listings case list : case featured : case gallery : case new : case main : case : include(include/interfaces.inc.php);break; case search: include(K2_INSTALL_ROOT . "/include/display/search.inc.php");break; case mail2friend: include(K2_INSTALL_ROOT . "/include/display/mail2friend.inc.php");break; case report_violation: include(K2_INSTALL_ROOT . "/include/display/report_violation.inc.php");break; case install_complete: include(K2_INSTALL_ROOT . /include/display/install_complete.inc.php); break; default: echo "

UNKNOWN OR BAD ACTION: $k2_action

"; include(include/interfaces.inc.php);break; } if(file_exists(K2_INSTALL_ROOT . /data/footer.inc.php)) { include_once(K2_INSTALL_ROOT . /data/footer.inc.php); } else { include_once(K2_INSTALL_ROOT . /include/design/footer.design.inc.php); }; include_once(K2_INSTALL_ROOT . /include/design/common_footer.design.inc.php); k2_checkBlockUpdates(); $content = ob_get_contents(); ob_end_clean(); include_once(K2_INSTALL_ROOT . /include/design/common_header.design.inc.php); echo $content; @ob_end_flush(); ?>
Page: [[$index + 1]]
comments powered by Disqus