/* * Import Classes */ ini_set('display_errors', 1); include '_badwords.php'; include ("classes/user.php"); include ("classes/db.php"); include ("inc/connect.php"); include ("inc/func_common.php"); include ("inc/functions.php"); include ("services/servicefactory.php"); include ("inc/check_login.php"); if (isset($_GET["searchtype"]) && isset($_GET["txtSearch"])) { if ($_GET["searchtype"] == "websites") { header('Location: /bookmark.php?tagsonly=0&txtSearch=' . urlencode(stripslashes($_GET["txtSearch"])) . '&area=startpage&func=search'); } if ($_GET["searchtype"] == "tags") { header('Location: /bookmark.php?tagsonly=1&txtSearch=' . urlencode(stripslashes($_GET["txtSearch"])) . '&area=startpage&func=search'); } if ($_GET["searchtype"] == "bookmarks" && logged_in($db)) { header('Location: /bookmark.php?tagsonly=0&txtSearch=' . urlencode(stripslashes($_GET["txtSearch"])) . '&area=bookmarks&func=search'); } } header("Content-Type: text/html; charset=ISO-8859-1"); function start_timer() { $microtime = explode(" ", microtime()); return $microtime[1] + $microtime[0]; } ; function stop_timer() { $microtime = explode(" ", microtime()); $script_stop_time = $microtime[1] + $microtime[0]; return $script_stop_time; } ; #print_r($_REQUEST);die; $guiservice = & ServiceFactory::getServiceInstance('GuiService'); $tagservice = & ServiceFactory::getServiceInstance('TagService'); if (!isset($_REQUEST["area"])) $_REQUEST["area"] = "startpage"; /* * If user is logged in, create new user object */ // $secure_url = sprintf("%s%s%s","https://",$HTTP_HOST,$REQUEST_URI); // if(isset($_SERVER["HTTPS"]) || !logged_in($db)){ // // do nothing // } else { // header("Location: $secure_url"); // } // MADE SECURE PAGE LOAD if ($_REQUEST["area"] == "feed") { include("inc/feed.php"); exit(); } //Loggen der URL $siteservice = & ServiceFactory::getServiceInstance('SiteService'); $siteservice->LogCurrentURL($_SERVER['REQUEST_URI']); if (logged_in($db)) { $curr_user = new cls_linksilo_user($_COOKIE["linksilo_session"], $db); //KILL $userservice = & ServiceFactory::getServiceInstance('UserService'); $userservice->SetCurentSession($_COOKIE["linksilo_session"]); $accounttype = $curr_user->get_accounttype(); if ($userservice->getIsLocked() == 1) { $_REQUEST["area"] = "profile"; $_POST["area"] = "profile"; $_GET["area"] = "profile"; } } else { /* if ($_REQUEST["area"]=="bookmarks") { $_REQUEST["area"]=""; $_POST["area"]=""; $_GET["area"]=""; } */ } $linksilo = new cls_linksilo(); include ("inc/todo.php"); if (!logged_in($db) && $_REQUEST["area"] == "bookmarks" && $_REQUEST["func"] == "bookmark_new") { $uniqueid_bookmarknew = get_uniqueid(30); $error_ser = ""; $title = strip_tags($_REQUEST["addtitle"]); $url = strip_tags($_REQUEST["addurl"]); $data = array("title" => $title, "url" => $url); $data_ser = base64_serialize($data); form_data_save($uniqueid_bookmarknew, $error_ser, $data_ser); } /* * Das binden wir mal testweise hier oben ein * weil wir den Titel im
schon brauchen */ if ($_REQUEST["area"] == "urldetails") { include("inc/urldetails.php"); } ?>