<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title><?php get_portal_title(); ?> - <?php get_main_navigation_title(); ?> </title> <?php get_meta_description(); ?> <?php get_meta_keywords(); ?> <link rel="stylesheet" type="text/css" media="screen" href="/website/themes/default/css/screen.css"></link> <%widget_link%> <%widget_css%> <?php if (Zend_Auth::getInstance()->hasIdentity()) { ?> <link rel="stylesheet" type="text/css" media="screen" href="/website/themes/default/css/modus.css"></link> <?php } ?> <script type="text/javascript" src="/website/themes/default/js_incs/prototype/prototype.js"></script>
function indexer($file, $tab_mot_vide) { global $conn; //______________________ traitement head________________________ $title = get_title_With_ER($file); $keywords = get_meta_keywords($file); $description = get_meta_description($file); $chaine_head = $keywords . " " . $description . " "; // conversion entites html ascii $chaine_head = entitesHTML2Caracts($chaine_head); //minuscule $chaine = strtolower($chaine_head); //les separateurs pour decouper le texte en mots $separateurs = " |{}[])(-_;,:.'’»«\$!?\"*\\/&=#"; //decoupage du texte en elements/mots $tab_mots_head = explodeBIS($separateurs, $chaine); //affichage des mots //print_tab($tab_mots); //echo "<br><br>"; //calcul de la frequence des mots //suppression des doublons $tab_mots_occurrences_head = array_count_values($tab_mots_head); //print_tab($tab_mots_occurrences); // calcul du poids des mots $tab_mots_poids_head = occ2poids($tab_mots_occurrences_head, 2); //print_tab($tab_mots_poids_head); //______________________ Fin traitement head________________________ //______________________ traitement body________________________ $body = get_Body($file); // body sans balises scripts $body_sans_scripts = strip_scripts($body); // suppression des balises html $clean_body = strip_tags($body_sans_scripts); // conversion entites html ascii $clean_body = entitesHTML2Caracts($clean_body); //minuscule $clean_body = strtolower($clean_body); //les separateurs pour decouper le texte en mots $separateurs = " |{}[])(-_;,:.'’»«\$!?\"*\\/&=#"; //decoupage du texte en elements/mots $tab_mots_body = explodeBIS($separateurs, $clean_body); //affichage des mots //print_tab($tab_mots); //echo "<br><br>"; //calcul de la frequence des mots //suppression des doublons $tab_mots_occurrences_body = array_count_values($tab_mots_body); //print_tab($tab_mots_occurrences); // calcul du poids des mots $tab_mots_poids_body = $tab_mots_occurrences_body; //print_tab($tab_mots_poids_body); //________________________ fin traitement body ______________________ // fusion des deux tableaux $tab_mots_poids = fusion_tabH_tabB_tabV($tab_mots_poids_head, $tab_mots_poids_body, $tab_mot_vide); //print_tab($tab_mots_poids); //création du doccument dans la BDD $data = array('adr' => mysqli_real_escape_string($conn, $file), 'title' => mysqli_real_escape_string($conn, $title), 'description' => mysqli_real_escape_string($conn, $description)); $id_doc = createDoc($data); foreach ($tab_mots_poids as $mot => $poids) { if (!cleanChaine($mot)) { $data = array('id_doc' => mysqli_real_escape_string($conn, $id_doc), 'mot' => mysqli_real_escape_string($conn, trim($mot)), 'poids' => mysqli_real_escape_string($conn, $poids)); createMot($data); } } }
</div> <div class="general_box title"> <p>Tytuł witryny: </p> <form action="#" method="POST"> <textarea type="text" name="title" /><?php echo get_title($con, $options); ?> </textarea> <input type="submit" name="title_ok" value=" OK " /> </form> </div> <div class="general_box title"> <p>Meta description: </p> <form action="#" method="POST"> <textarea type="text" name="meta-description" /><?php echo get_meta_description($con, $options); ?> </textarea> <input type="submit" name="meta-description_ok" value=" OK " /> </form> </div> <div class="general_box title"> <p>Meta keywords: </p> <form action="#" method="POST"> <textarea type="text" name="meta-keywords" /><?php echo get_meta_keywords($con, $options); ?> </textarea> <input type="submit" name="meta-keywords_ok" value=" OK " /> </form> </div>
<meta name="msapplication-TileImage" content="<?php echo $theme; ?> /assets/images/favicons/orange/mstile-144x144.png"> <meta name="theme-color" content="#ff5000"> <meta property="description" content="<?php get_meta_description($page_id); ?> " /> <meta property="og:type" content="website" /> <meta property="og:title" content="<?php rtrim(wp_title('', true)); ?> " /> <meta property="og:description" content="<?php get_meta_description($page_id); ?> " /> <meta property="og:image" content="<?php echo get_thumb($page_id, 'thumb'); ?> " /> <meta property="og:image:width" content="200" /> <meta property="og:image:height" content="200" /> <meta property="fb:app_id" content="1007372126002973" /> <?php wp_head(); ?> <title><?php if (is_search()) { echo 'Search results for ';