示例#1
0
<?php

// $Id: test.php 2055 2009-11-06 23:09:58Z shodan $
//
define('ABSPATH', dirname(__FILE__) . '/');
include_once ABSPATH . "/util/top_foot_inc.php";
top();
require_once ABSPATH . "util/funzioni.php";
//require ("util/sphinxapi.php");
require_once ABSPATH . "util/mysqlutil.php";
include_once ABSPATH . "includes/caching.php";
include_once ABSPATH . "includes/versetto.php";
connetti();
$versetto = new trova_versetto();
$versetto->lang();
//dumpa($versetto,1);
$cache = new cache();
$cl = new SphinxClient();
$cl->config_1_bibbia();
//dumpa($cl,1);
//db_info();
//////////////////////
// parse command line
//////////////////////
$data = <<<EOD
<br><br><br><br>
<div class="testo_18" style="position:static;margin:auto;width:80%;" >
EOD;
echo $data;
print "<pre>\n";
$q = empty($_POST['a']) ? " " : $_POST['a'];
示例#2
0
<?php

/*
 * Draft di come dovrebbe all'incirca venire a livello logico la cosa...
 *
 */
//TODO Meti un header che dice in termini umani dove ci si trova plz ?
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();
$v = new trova_versetto();
$cache = new cache();
$v->cache = $cache;
$v->lang();
$v->libram($libr, $libr_rsx);
//Carica i riferimenti dei libri
$v->request();
$v->db = $db;
$v->evidenzia = True;
$v->get_cap();
//dumpa($v,1);
//dumpa($GLOBALS);
foot();
示例#3
0
<?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();