<?php include_once "util/top_foot_inc.php"; include "includes/caching.php"; connetti(); $cache = new cache(); $cache->flush(); dumpa($cache, 1); top2(); $html = <<<EOD <div \tclass="centrale" \talign="center" > Cache Scaricata EOD; echo $html; foot();
<?php die('non si lanciano gli script a mozzo'); define('ABSPATH', dirname(__FILE__) . '/'); include_once ABSPATH . "//util/elenco_lib.php"; include_once ABSPATH . "/util/top_foot_inc.php"; top(); $lingua = "Español"; $lang = "s"; $a = "fix1"; $dimex = count($libr["{$lingua}"]); //echo $dimex; mkdir("libri/{$lang}/edit"); dumpa($libr[$lingua], 1); for ($jj = 1; $jj < 67; $jj++) { $gen = ""; $gen2 = ""; $error = false; $counter = 0; //$libro_n="Псалмы"; $libro_n = $libr[$lingua][$jj]; $libro = "libri/{$lang}/" . $libr[$lingua][$jj]; $pak = file_get_contents("{$libro}"); if ($pak == FALSE) { echo "Errorissimo al libro {$libro} -> n° {$jj} <br>\n "; } //dumpa($pak,1); while ($error == false) { $counter++; //echo $counter; $hay = "<capitolo_" . $counter . ">";
$libr_eng[] = "Philippians"; $libr_eng[] = "Colossians"; $libr_eng[] = "1 Thessalonians"; $libr_eng[] = "2 Thessalonians"; $libr_eng[] = "1 Timothy"; $libr_eng[] = "2 Timothy"; $libr_eng[] = "Titus"; $libr_eng[] = "Philemon"; $libr_eng[] = "Hebrews"; $libr_eng[] = "James"; $libr_eng[] = "1 Peter"; $libr_eng[] = "2 Peter"; $libr_eng[] = "1 John"; $libr_eng[] = "2 John"; $libr_eng[] = "3 John"; $libr_eng[] = "Jude"; $libr_eng[] = "Revelation"; dumpa($GLOBALS, 1); $dime = 66; // //for ($i=0; $i<66;$i++) //{ // $sql = "INSERT INTO `聖書`.`libri` (`abb`, `italiano`, `english`, `日本語`) VALUES ( '$libram[$i]', '$libr_ita[$i]', '$libr_eng[$i]', '$libr_日本語[$i]');"; // mysql_query($sql,$db); // $err=mysql_error($db); // if ($err) // { // echo "$err<hr>"; // } //} foot();
echo "<hr>\nLol is {$lol['0']} - {$kiz}\n<br>"; $span = $lol[0] - $vers; $sql = "Insert into spacer (libro,capitolo,versetto,span) Value ('{$libro}','{$counter}','{$vers}','{$span}');"; mysql_query($sql, $db); if ($err) { echo "{$err}<hr>"; } } else { $divisore_endp = false; } $is = array_risearch($fetchati[1], "<span class=\"p\">", $pos, $pos2, 0); echo "{$pos} e {$pos2}"; dumpa($is, 1); $is = array_risearch($fetchati[1], "<span class=\"z\">", $pos, $pos2, 0); //si phpmyecho "$pos e $pos2"; dumpa($is, 1); if ($pos2 == False) { $capier = true; } } // // $testo=$fetchati[2][$pos]; // // echo "Al $pos ci stà <br>$testo<br>"; // // // if ($pos==false) // { // $capier = true; // } //
<?php die("non si lanciano a mozzo le cose..."); define('ABSPATH', dirname(__FILE__) . '/'); include_once ABSPATH . "//util/elenco_lib.php"; include_once ABSPATH . "/util/top_foot_inc.php"; //Ricorda di mettere i nomi dei libri nella lingua giusta... top(); //www.watchtower.org/i/bibbia/toc.htm $error = false; $counter = 0; //$libro="Esodo"; //$libro_a="ex"; dumpa($libram, 1); $dimex = count($libram) + 1; $lingua = "Español"; //Lingua che ci si appresta a scaricare $lang = "s"; //Abbreviazione $bib = "biblia"; //Nome della Bibbia usato nel sito web echo $dime; echo mkdir("libri/{$lang}") ? "cartella creata" : "Warn nessuna cartella verifca che non esista gia !!!!"; for ($jj = 1; $jj < $dimex; $jj++) { $libro = "libri/{$lang}/" . $libr["{$lingua}"][$jj]; $libro_a = $libram[$jj]; echo "<h2> Now Parsing {$libro} in {$lingua}</h2>"; $fp = fopen("{$libro}", 'w'); echo $fp; $error = false; $counter = 0;
*/ connetti(); echo "si"; //mysql_query("TRUNCATE TABLE `versetti`;",$db); //mysql_query("TRUNCATE TABLE `spacer`;",$db); $error = false; $dimex = count($libr) + 1; //$lingua="Español"; $lingua = "English"; $testo_db = $lingua . "_text"; $testo_mark_db = $lingua . "_mark"; //$lang="s"; $lang = "e"; $a = "fix1"; $tabella = "versetti"; dumpa($libr["{$lingua}"], 1); //die(); //dumpa($pak,1); //mysql_query("TRUNCATE TABLE $tabella;",$db); for ($jj = 1; $jj < 67; $jj++) { $refer = $jj; $libro = $libr[$lingua][$jj]; $lib5 = substr($libro, 0, 5); $libro_f = "libri/{$lang}/edit/" . $libro . "fix1"; echo $libro_f; $pak = file_get_contents("{$libro_f}"); // $arr = explode("\n", $pak); //dumpa($arr,1); $gen = preg_replace(" ", " ", $arr); //dumpa($arr,1);
function split_località($via) { $arr['via'] = $via; $arr['si'] = 0; $cercami = array("località", "Loc.", "Loc", "presso", "zona", "vicino", "("); $arr[via] = $via; foreach ($cercami as $key) { //echo "$key"; $yep = stripos($via, $key); //echo "<br>$key - # $yep ---"; if ($yep !== false) { //echo "<br>prol und $key @ $yep<br>"; $arr[via] = substr($via, 0, $yep); $arr[loc] = substr($via, $yep); $arr[si] = true; return $arr; } } $cercami = array("-"); $arr[via] = $via; foreach ($cercami as $key) { //echo "$key"; $yep = stripos($via, $key); //echo "<br>$key - # $yep ---"; if ($yep !== false) { $dime = strlen($key); //echo "<br>prol und $key @ $yep<br>"; $arr[via] = substr($via, 0, $yep); $arr[loc] = substr($via, $yep + $dime); $arr[si] = true; return $arr; } } return $arr; dumpa($arr, 1); }
<?php //die ('Non si lanciano gli script a mozzo'); //include_once ("util/top_foot_inc.php"); include_once "util/top_foot_inc.php"; top(); $testo = "@marco testo da cercare"; echo $testo; $preg = "/@\\p{L}{1,}/"; $pattern = "/(\\p{L}{3,})/u"; $replace = "<a {$id} href=\"{$link}\" {$action}>\\1</a>"; $text = preg_replace($pattern, $replace, $testo); $arr = preg_match_all($preg, $testo, $arr2); dumpa(preg_last_error(), 1); dumpa($text, 1); dumpa($arr2); foot(); ?> case $campo libro
function db_info() { global $db; $frok = mysql_query("SHOW STATUS", $db); echo "<pre>"; while ($row = mysql_fetch_array($frok)) { dumpa($row); } }
<?php include_once "util/top_foot_inc.php"; include_once "util/elenco_lib.php"; include_once "includes/versetto.php"; include_once "includes/caching.php"; connetti(); top2(); $cc = new trova_versetto(); $cache = new cache(); $cc->cache = $cache; $cc->db = $db; $cc->lang(); $cc->libram($libr, $libr_rsx); //Carica i riferimenti dei libri $cc->request(); $cc->get_inter_cap(150); dumpa($cc, 1); foot();