/ /* *************************************************/ require_once "includes.php"; $database = init_database(); $param = null; if (isset($_GET['type'])) { $type = $_GET['type']; } // Check for the path elements $path = $_SERVER[PATH_INFO]; if ($path != null) { $path_params = spliti("/", $path); } if ($_SERVER['REQUEST_METHOD'] == 'GET') { // GET Request set_headers($type); if ($path_params[1] != null) { render_result(get_ort($path_params[1]), "orte", $type); // Ressourcendarstellung } else { render_result(get_orte(), "orte", $type); // Listenressource } } /* not used if ($_SERVER['REQUEST_METHOD'] == 'POST') { // POST Request $input = file_get_contents("php://input"); render_result(create_route($input),null,$type); // create track entry and copy file } */ mysql_close($database);
$q->closeCursor(); $request = new stdClass; $request->params = array(); $request->method = "getwork"; $request->id = "json"; // lets try harder to get work... $tries = 0; if(count($rows)) { while($tries < $BTC_PROXY['getwork_retries']) { foreach ($rows as $row) { $response = place_json_call($request, $row['url'], $row['username'], $row['password'], $headers, 2, TRUE); if (is_object($response) && is_object($response->result)) { set_headers($headers, $row['id'], $row['url']); process_work($pdo, $worker_id, $row['id'], $response, $response->id); json_success($response->result, $json->id); } } $tries++; sleep(1+rand(0,3)); } } // and because of the way phoenix handles crap, for now atleast, it's better to just // drop the call as it were. //json_error("No enabled pools responded to the work request.", $json->id);
function magiczoom($content, $currentController = false, $type = false, $info = false) { if ($currentController->config->get('magiczoom_status') != 0) { $tool =& magiczoom_load_core_class($currentController); //set_params_from_config($currentController->config); $enabled_on_this_page = false; unset($GLOBALS['magictoolbox']['items']); $tool->params->set('disable-zoom', 'No'); if ($tool->type == 'standard') { //do not apply MSS-like modules to category & product pages if ($type && $type == 'category' && !$tool->params->checkValue('use-effect-on-category-page', 'No')) { $enabled_on_this_page = true; } if ($type && $type == 'manufacturers' && !$tool->params->checkValue('use-effect-on-manufacturers-page', 'No')) { $enabled_on_this_page = true; } if ($type && $type == 'product' && !$tool->params->checkValue('use-effect-on-product-page', 'No')) { $enabled_on_this_page = true; $tool->params->set('disable-zoom', $GLOBALS['magictoolbox']['product-disable-zoom']); } } if ($tool->type == 'circle') { //Apply 360 only to Products Page if ($type && $type == 'product') { $enabled_on_this_page = true; } } else { if ($type && ($type == 'latest_home_category' || $type == 'latest_home' || $type == 'latest_right' || $type == 'latest_left' || $type == 'latest_content_top' || $type == 'latest_content_bottom' || $type == 'latest_column_left' || $type == 'latest_column_right') && !$tool->params->checkValue('use-effect-on-latest-box', 'No')) { $enabled_on_this_page = true; } if ($type && ($type == 'featured_home' || $type == 'featured_right' || $type == 'featured_left' || $type == 'featured_left' || $type == 'featured_content_top' || $type == 'featured_content_bottom' || $type == 'featured_column_left' || $type == 'featured_column_right') && !$tool->params->checkValue('use-effect-on-featured-box', 'No')) { $enabled_on_this_page = true; } if ($type && ($type == 'special_home' || $type == 'special_right' || $type == 'special_left' || $type == 'special_content_top' || $type == 'special_content_bottom' || $type == 'special_column_left' || $type == 'special_column_right') && !$tool->params->checkValue('use-effect-on-special-box', 'No')) { $enabled_on_this_page = true; } if ($type && ($type == 'bestseller_home' || $type == 'bestseller_right' || $type == 'bestseller_left' || $type == 'bestseller_content_top' || $type == 'bestseller_content_bottom' || $type == 'bestseller_column_left' || $type == 'bestseller_column_right') && !$tool->params->checkValue('use-effect-on-bestsellers-box', 'No')) { $enabled_on_this_page = true; } } //if ($type == 'product' || $type == 'category') { //hack! TODO: load headers only if we need them // $content = set_headers($content); //} if ($enabled_on_this_page) { if ($type) { $GLOBALS['magictoolbox']['page_type'] = $type; } if ($info) { $GLOBALS['magictoolbox']['prods_info'] = $info; } $content = set_headers($content); $content = parse_contents($content, $currentController); if ($type == 'product' && $tool->type == 'standard' && isset($GLOBALS['magictoolbox']['MagicZoom']['main'])) { // template helper class require_once dirname(__FILE__) . '/magictoolbox.templatehelper.class.php'; MagicToolboxTemplateHelperClass::setPath(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'templates'); MagicToolboxTemplateHelperClass::setOptions($tool->params); $html = MagicToolboxTemplateHelperClass::render(array('main' => $GLOBALS['magictoolbox']['MagicZoom']['main'], 'thumbs' => count($GLOBALS['magictoolbox']['MagicZoom']['selectors']) > 1 ? $GLOBALS['magictoolbox']['MagicZoom']['selectors'] : array(), 'pid' => $GLOBALS['magictoolbox']['prods_info']['product_id'])); $content = str_replace('MAGICTOOLBOX_PLACEHOLDER', $html, $content); } } } return $content; }
} if (isset($_REQUEST['sSearch']) && '' != $_REQUEST['sSearch']) { $stext = addslashes($_REQUEST['sSearch']); $params["search_sql"] = ' WHERE '; $params["search_sql"] .= "vname like '{$stext}%' or nname like '{$stext}%' or strname like '{$stext}%' or ortname like '{$stext}%'"; } // Andreas neu // $params["scol_name"] = $cols[(int)$params["scol"]]; $result = ""; $i = 0; $mitglieder = json_decode(send_request('mitglieder.php/', 'get', $params)); $result["iTotalRecords"] = $mitglieder->count_all; $result["iTotalDisplayRecords"] = $mitglieder->count_query; //$result["count_listed"] = $mitglieder->count_listed; foreach ($mitglieder->mitglieder as $value) { $id = $value->id; $mitglied = json_decode(send_request('/mitglieder.php/' . $id, 'get')); $result["aaData"][$i][0] = $mitglied->ID; $result["aaData"][$i][1] = $mitglied->Nachname; $result["aaData"][$i][2] = $mitglied->Vorname; $result["aaData"][$i][3] = $mitglied->Strasse; $result["aaData"][$i][4] = $mitglied->Hausnummer; $result["aaData"][$i][5] = $mitglied->PLZ; $result["aaData"][$i][6] = $mitglied->Ort; $result["aaData"][$i][7] = $mitglied->Ortsteil; $result["aaData"][$i][8] = format_date($mitglied->Geburtsdatum); $result["aaData"][$i][9] = "<a href='mitglied.php?id=" . $mitglied->ID . "'>Edit</a>"; $i++; } set_headers(); render_result($result);