<?php require_once '_keybord_lang.php'; $searchword = switcher($_GET[searchword]); //echo 'src='.$_GET[searchword].' res='.$searchword; include '_search_engine.php'; //echo "--->".$sqlQuery; ?> <td valign="top"> <table id="Table2" width="100%" border="0" cellpadding="0" cellspacing="0"><tr height="1px" valign="top"><td align="left" valign="top" style="padding-left:20px;padding-top:10px; padding-right:15px;"> <table id="Table" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr height="1px" valign="middle"> <td valign="top"> <?php echo show_path($_GET[id]) . " <a href='search.php'>Поиск</a>"; ?> </td> </tr> <tr height="1px" valign="middle"> <td style="padding-top:5px;"><h1>Поиск по «<?php echo $_GET[searchword]; ?> »</h1></td> </tr> <tr height="1px" valign="middle"> <td style="padding-top:10px;padding-bottom:10px;"> <?php echo block("id='" . $_GET[id] . "'", "f3"); ?> </td> </tr>
function nestedSons($str, $row, $ord, $this_Id, $this_Name, $this_Pid, $this_Order, $this_Link, $this_seo) { $id = $row[$this_Id]; $ord = $row[$this_Order]; $name = $row[$this_Name]; $parentId = $row[$this_Pid]; $active = $row["active"]; $static = $row["static"]; $link = $row[$this_Link]; $seo = $row[$this_seo]; $str .= ' <li class="dd-item dd3-item" data-id="' . $id . '" data-order="' . $ord . '"> <div class="dd-handle dd3-handle"></div> <div class="dd3-content">'; if ($action == "Edit" && $_REQUEST[$this_Id] == $id) { $str .= ' <div id="' . $id . '">' . ' <input type="Hidden" name="' . $this_Id . '"size="20" value="' . $id . '" />' . ' <div class="right"> ' . print_delete_ckbox($id) . '</div>' . ' <div class="right"> ' . print_save_icon("Update") . '</div>' . ' <div class="left"> <input type="Text" name="name_" size="20" value="' . $name . '"/> </div>'; if ($this_Link != "") { $str .= ' <div class="left1">' . getLinks($link, $this_Link) . ' </div>'; } if ($this_seo != "") { $str .= ' <div class="left1"><input type="Text" name="seo" size="20" value="' . $seo . '"/> </div>'; } $str .= ' </div>'; } else { $str .= ' <div id="' . $id . '"> <div class="right">'; if ($static == 0 || $_SESSION["SAdmin"] == 1) { $str .= "" . print_delete_ckbox($id) . ""; } $str .= " </div> <div class='right'> " . print_edit_icon($_SERVER['PHP_SELF'] . "?action=Edit&college_id=" . $c . "&" . $this_Id . "=" . $id . "&" . $this_Pid . "=" . $parentId) . "</div>"; $str .= " <div class='right'> " . switcher('checkbox', $typeTable, 'active', $this_Id, $id, $active) . " </div>"; if ($_SESSION["SAdmin"] == 1) { $sw = switcher("checkbox", $typeTable, "static", $this_Id, $id, $static); $str .= '<div class="right">'; $str .= $sw; $str .= '</div>'; if ($this_Link != "") { $str .= ' <div class="right"> ' . stripslashes($link) . ' </div>'; } if ($this_seo != "") { $str .= ' <div class="right"> ' . stripslashes($seo) . ' </div>'; } $str .= "<div style='float:left'> " . stripslashes($name) . "</div>"; } $str .= ' </div>'; } return $str; }
$today = $datum['year'] . "-" . twoDigit($datum['mon']) . "-" . twoDigit($datum['mday']); if (isset($_GET['date'])) { $selected_date = $_GET['date']; } else { $selected_date = $today; } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" media="all" type="text/css" href="style.css" /> <title>Manage RSK Database</title> </head> <body> <?php switcher(); ?> <h4>Log from <?php echo $selected_date; ?> </h4> <form name="show_log" action="log.php" method="get"> Select Date: <?php generateLogDateSelector(); ?> </form><br /> <?php displayLog($selected_date); ?> </body>
} return $this->Stem_Caching; } function clear_stem_cache() { $this->Stem_Cache = array(); } } $arraySpecialChars = array('/', ']', '[', '-', '\\', '+', '\'', '"'); header("Content-type: text/html; charset=windows-1251"); $search = $_REQUEST['search']; $search = iconv('utf-8', 'windows-1251', $search); $search = addslashes($search); $search = htmlspecialchars($search); $search = stripslashes($search); $search = switcher($search); foreach ($arraySpecialChars as $item) { $search = str_replace($item, '', $search); } $search = preg_replace('/ {2,}/', ' ', $search); $search = trim($search); $searchKeywordArray = explode(' ', $search); if (count($searchKeywordArray) <= 1) { preg_match_all('/([A-Za-zА-Яа-я]{1,})|([0-9]{1,})/', $search, $searchKeywordArray); $searchKeywordArray = $searchKeywordArray[0]; } $usdCurs = 0; $sqlCurrency = "SELECT f1 FROM " . $module_name . " WHERE id=107"; $usdCurs = mysql_result($Q->query($DB, $sqlCurrency), 0, 0); $usdCurs = (double) $usdCurs; $stemLang = new Lingua_Stem_Ru();
<?php include "header.tpl.php"; ?> <!-- //// BEGIN <a href="help.php" target="_blank" id="help"><?php echo _T("Help"); ?> »</a> //// END --> <span class="switcher"><?php echo switcher("type", $types); ?> </span> <?php $a = new Cycle('class="col1"', 'class="col2"'); $b = new Cycle('class="col1"', 'class="col2"'); echo _T('Caches'); ?> : <table cellspacing="0" cellpadding="4" class="cycles"> <col /> <col align="right" /> <col align="right" /> <col align="right" /> <col /> <col /> <col align="right" /> <col align="right" /> <col align="right" /> <col align="right" />
} } if (isset($_GET['page'])) { $page = htmlspecialchars($_GET['page']); } else { $page = 'trade'; } // if the user has been logged in but is idle, log them out unless this is just an ajax request, in which case just act as if they're not logged in if (isset($_SESSION['uid']) && isset($_SESSION['last_activity']) && time() - $_SESSION['last_activity'] > MAX_IDLE_MINUTES_BEFORE_LOGOUT * 60 && !isset($_GET['fancy'])) { if (isset($_COOKIE['openid']) && isset($_COOKIE['autologin']) && count($_POST) == 0) { relogin(); } else { logout(); } } else { if (!isset($_SESSION['uid']) && isset($_COOKIE['openid']) && isset($_COOKIE['autologin']) && count($_POST) == 0) { relogin(); } else { $_SESSION['last_activity'] = time(); get_login_status(); } } if (!isset($_SESSION['csrf_token'])) { $_SESSION['csrf_token'] = ''; for ($i = 0; $i < 32; $i++) { $_SESSION['csrf_token'] .= bin2hex(chr(mt_rand(0, 255))); } } switcher($page, $is_logged_in, $is_admin); // send the contents of the output buffer ob_end_flush();
<?php include "../common/header.tpl.php"; ?> <div class="switcher"><?php echo switcher("do", $doTypes); ?> </div> <?php include "./sub/summary.tpl.php"; $entryList = getEntryList(); $isphp = $entryList['type'] == XC_TYPE_PHP; ob_start($config['path_nicer']); $listName = 'Cached'; $entries = $entryList['cache_list']; $caption = $isphp ? _T("php Cached") : _T("var Cached"); include "./sub/entrylist.tpl.php"; $listName = 'Deleted'; $caption = $isphp ? _T("php Deleted") : _T("var Deleted"); $entries = $entryList['deleted_list']; include "./sub/entrylist.tpl.php"; ob_end_flush(); unset($isphp); include "../common/footer.tpl.php";