本文整理汇总了PHP中readData函数的典型用法代码示例。如果您正苦于以下问题:PHP readData函数的具体用法?PHP readData怎么用?PHP readData使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了readData函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: indexAction
public function indexAction()
{
#vynulovani rozpadu stromu
$_SESSION['katalog']['pars']['u1'] = 0;
$_SESSION['katalog']['rozpad'] = 0;
$this->view->strom = stromek(0, $this->_getAllParams());
$pom_txt = zpracujTexty(readData('texty', array('jazyk' => $_SESSION['jazyk'], 'kody' => "'uvod_top'")));
$vysl = readData('index', array());
$this->view->kategorie = array();
foreach ($vysl->k->row as $r) {
$this->view->kategorie[(string) $r->idk] = (string) $r->kat;
}
//definice stylu pro kategorie
$css = '';
$index = 1;
foreach ($this->view->kategorie as $id => $kat) {
$css .= '#rozcestnik li#kat-' . trim($id) . ' a, #rozcestnik li#kat-' . trim($id) . ' a:visited {' . "\n";
$css .= 'background: #162983 url("/grafika/kat_' . trim($id) . '.jpg");' . "\n";
if ($index == $index) {
$css .= "height: 41px;\n";
$css .= "padding-top: 37px;\n";
}
$css .= "}\n";
$css .= '#rozcestnik li#kat-' . trim($id) . ' a:hover, #rozcestnik li#kat-' . trim($id) . ' a:focus, #rozcestnik li#kat-' . trim($id) . ' a:active {' . "\n";
$css .= 'background: #5da6dc url("/grafika/kat_' . trim($id) . '_ho.jpg");' . "\n";
$css .= "}\n";
if ($index >= 3) {
$index = 0;
}
$index++;
}
//$this->view->css_defs = array(0 => $css);
$textile = new Textile();
$this->view->txt = array('uvod_top' => $textile->TextileThis($pom_txt['uvod_top']));
}
示例2: breakCode
function breakCode($startCode)
{
global $enterInstallerMode;
global $stopTime;
for ($code = $startCode; $code < 10000; $code++) {
echo "Testing code: " . sprintf("%04d", $code) . "\n";
writeDSC("071" . $enterInstallerMode . sprintf("%04d", $code));
$lastCode = $code;
$loop = true;
while ($loop) {
// Loop until receive Invalid access code or an Error message
$lines = readData();
foreach ($lines as $line) {
$res = readDSC($line);
if ($res['code'] == 680) {
// Entered installer mode - exit this mode and return
echo "*** Installer mode entered using: " . $lastCode . " ***\n";
$stopTime = microtime(true);
sleep(4);
echo "Exiting installer mode, please wait couple of seconds to make sure control panel setup is not messed up!\n";
for ($i = 0; $i < 50; $i++) {
writeDSC("070#");
$results = readData();
foreach ($results as $result) {
$res = readDSC($result);
echo " " . $res['msg'] . "\n";
if ($res['code'] == 650) {
return $lastCode;
}
// System ready, we can safely return.
}
sleep(4);
}
return $lastCode;
} elseif ($res['code'] == 670) {
// Invalid access code
$loop = false;
} elseif ($res['code'] == 502) {
$code--;
// Error, repeate check for this code.
sleep(1);
$loop = false;
}
echo " " . $res['msg'] . "\n";
}
}
}
$stopTime = microtime(true);
return -$lastCode;
}
示例3: ukazAction
public function ukazAction()
{
//ulozeni posledniho URL katalogu pro pripadny navrat
$_SESSION['crumb'] = array();
$_SESSION['url']['detail'] = $_SERVER['REQUEST_URI'];
$pars = $this->_getAllParams();
//parametry katalogu pro pouziti ve zpracovani
$_SESSION['detail']['pars'] = $pars;
$this->view->strom = stromek(0, $this->_getAllParams());
//nalezeni posledni kategorie rozpadu
$i = 1;
$max_kat = 0;
while (isset($pars['u' . (string) $i])) {
$max_kat = $pars['u' . (string) $i];
$i++;
}
$vysl = readData('detail_zbozi', array('kc' => textToDB($pars['kc']), 'cenik' => $_SESSION['uzivatel']['cenik'], 'firma_sleva' => $_SESSION['uzivatel']['firma_sleva'], 'ahoj' => 'ahoj'));
//print_r($_SESSION['vracene_xml']);
//detail zbozi
foreach ($vysl->z->row as $r) {
$this->view->zbozi = array('produkt' => (string) $r->produkt, 'popis' => (string) $r->popis, 'sdph' => (double) $r->sdph, 'cena' => (double) $r->cena, 'baleni' => (string) $r->baleni, 'text' => $r->xtext, 'dodavatel' => (string) $r->dodavatel, 'kc' => (string) $r->kc, 'carovy_kod' => (string) $r->carovy_kod, 'carovy_kod_vlastni' => (string) $r->carovy_kod_vlastni, 'skladem' => (double) $r->skladem, 'sleva' => (double) $r->sleva, 'mez_1' => (double) $r->mez_1, 'mez_2' => (double) $r->mez_2, 'min_mnozstvi' => (int) $r->min_mnozstvi, 'nasobky' => (int) $r->nasobky);
}
//souvisejici zbozi
$this->view->souv = array();
foreach ($vysl->s->row as $r) {
$this->view->souv[] = array('produkt' => (string) $r->produkt, 'popis' => (string) $r->popis, 'sdph' => (double) $r->sdph, 'cena' => (double) $r->cena, 'vshop_id' => (string) $r->vshop_id, 'baleni' => (string) $r->baleni, 'skladem' => (int) $r->skladem, 'text' => $r->xtext, 'sleva' => (double) $r->sleva, 'akce' => (int) $r->akce, 'sezona' => (int) $r->sezona, 'novinka' => (int) $r->novinka, 'doprodej' => (int) $r->doprodej, 'min_mnozstvi' => (int) $r->min_mnozstvi, 'nasobky' => (int) $r->nasobky);
}
foreach ($vysl->sr->row as $r) {
$this->view->souv[] = array('produkt' => (string) $r->produkt, 'popis' => (string) $r->popis, 'sdph' => (double) $r->sdph, 'cena' => (double) $r->cena, 'vshop_id' => (string) $r->vshop_id, 'baleni' => (string) $r->baleni, 'skladem' => (int) $r->skladem, 'text' => $r->xtext, 'sleva' => (double) $r->sleva, 'akce' => (int) $r->akce, 'sezona' => (int) $r->sezona, 'novinka' => (int) $r->novinka, 'doprodej' => (int) $r->doprodej, 'min_mnozstvi' => (int) $r->min_mnozstvi, 'nasobky' => (int) $r->nasobky);
}
//souvisejici zbozi
$this->view->alter = array();
foreach ($vysl->a->row as $r) {
$this->view->alter[] = array('produkt' => (string) $r->produkt, 'popis' => (string) $r->popis, 'sdph' => (double) $r->sdph, 'cena' => (double) $r->cena, 'vshop_id' => (string) $r->vshop_id, 'baleni' => (string) $r->baleni, 'skladem' => (int) $r->skladem, 'text' => $r->xtext, 'sleva' => (double) $r->sleva, 'akce' => (int) $r->akce, 'sezona' => (int) $r->sezona, 'novinka' => (int) $r->novinka, 'doprodej' => (int) $r->doprodej, 'min_mnozstvi' => (int) $r->min_mnozstvi, 'nasobky' => (int) $r->nasobky);
}
foreach ($vysl->ar->row as $r) {
$this->view->alter[] = array('produkt' => (string) $r->produkt, 'popis' => (string) $r->popis, 'sdph' => (double) $r->sdph, 'cena' => (double) $r->cena, 'vshop_id' => (string) $r->vshop_id, 'baleni' => (string) $r->baleni, 'skladem' => (int) $r->skladem, 'text' => $r->xtext, 'sleva' => (double) $r->sleva, 'akce' => (int) $r->akce, 'sezona' => (int) $r->sezona, 'novinka' => (int) $r->novinka, 'doprodej' => (int) $r->doprodej, 'min_mnozstvi' => (int) $r->min_mnozstvi, 'nasobky' => (int) $r->nasobky);
}
//print_r($_SESSION['vracene_xml']);
$this->view->script_files = array('/js/katalog_100822_1.js', '/fancybox/jquery-1.3.2.min.js', '/fancybox/custom.js', '/fancybox/jquery.easing.1.3.js', '/fancybox/jquery.fancybox-1.2.1.pack.js');
$this->view->css_files = array('/fancybox/jquery.fancybox.css');
//echo $vysl->p->row->pocet;
//print_r($this->view->pager['url']);
}
示例4: process
function process($serviceUrl, $redirectHtml = "")
{
global $output, $serviceRoot;
if ($output == "html") {
if ($redirectHtml == "") {
print "Service not available";
} else {
header("Location: " . $redirectHtml);
}
} else {
$xml = readData($serviceUrl, true);
if ($output == "xml") {
header("Content-type: text/xml");
return envelopeXml($xml, $serviceRoot);
} else {
return $xml;
}
}
}
示例5: zobrazAction
public function zobrazAction()
{
$textile = new Textile();
$pars = $this->_getAllParams();
if (isset($pars['idt']) && trim($this->_getParam('idt')) != '') {
$this->view->kod = trim($this->_getParam('idt'));
$this->view->txt = zpracujTexty(readData('texty', array('jazyk' => $_SESSION['jazyk'], 'kody' => "'" . trim($this->_getParam('idt')) . "'")));
//print_r($this->view->nacteny);
#print_r($this->view->txt);
#echo "\n\nPOSLEDNI XML:\n";
#echo ukazXML($_SESSION['vracene_xml']);
#die();
if (sizeof($this->view->txt) == 0 || !isset($this->view->txt[$this->view->kod])) {
$this->view->txt = array($this->view->kod => $textile->TextileThis('Text s kódem *' . $this->view->kod . '* nebyl nalezen.'));
} else {
$this->view->txt[$this->view->kod] = $textile->TextileThis($this->view->txt[$this->view->kod]);
}
} else {
$this->view->kod = 'info';
$this->view->txt = array('info' => 'Nebyl specifikován požadovaný text.');
}
$this->view->strom = stromek(0, $this->_getAllParams());
}
示例6: nactiAction
public function nactiAction()
{
$chyba = false;
//pokud jsou parametry predavane jako POST, tak se s nimi take tak vyrovnej
$pars = array();
$p = $this->_getAllParams();
if (isset($_POST) && sizeof($_POST) > 0) {
foreach ($_POST as $p => $k) {
$pars[$p] = $k;
}
} else {
$i = 1;
while (array_key_exists('pn' . $i, $p)) {
$pars[$p['pn' . $i]] = $p['ph' . $i];
$i++;
}
}
//print_r($pars);die();
$vysledek = readData(trim($p['prikaz']), $pars);
echo Zend_Json::encode($vysledek);
//echo json_encode($vysledek);
unset($vysledek);
die;
}
示例7: ON
if (!empty($_GET['bookTitle'])) {
echo " | ";
}
echo "Author: " . $_GET['bookAuthor'];
} else {
$bookAuthor = "";
}
if (isset($_GET['category'])) {
$category = $_GET['category'];
} else {
$category = "";
}
// SQL to get all the books that contain the searched title and/or author
$sql = "SELECT b.ISBN, b.BookTitle, b.Author, b.Edition, b.Year, c.CategoryDescription, b.Reserved \n\t\t\t\t\t\t\tFROM Books b JOIN Categories c ON(b.Category = c.CategoryID)\n\t\t\t\t\t\t\tWHERE b.bookTitle LIKE '%{$bookTitle}%' AND b.Author LIKE '%{$bookAuthor}%' AND c.categoryID LIKE '%{$category}%'";
// Read the data into the variable books
readData($sql, $books);
// Print the books array
printBooks($pageNo, $books, "Reserve");
// Create a form with two buttons that has the value of the next or previous page
echo '<form type = "GET">';
echo '<input type = "hidden" name = "bookTitle" value = "' . $bookTitle . '">';
echo '<input type = "hidden" name = "bookAuthor" value = "' . $bookAuthor . '">';
echo '<input type = "hidden" name = "category" value = "' . $category . '">';
if ($pageNo != 0) {
echo '<button name = "page" value = ' . ($pageNo - 1) . ' class = "leftArrow"> < </button>';
}
if (($pageNo + 1) * 5 < count($books)) {
echo '<button name = "page" value = ' . ($pageNo + 1) . ' class = "rightArrow"> > </button>';
}
echo '</form>';
// Close the database
示例8: define
define('LOGINED', true);
} else {
define('LOGINED', false);
}
//投稿
if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (!isset($_POST['user']) or !isset($_POST['message']) or empty($_POST['user']) or empty($_POST['message'])) {
$display_message = '文字を入力してください';
} else {
$user = $_POST['user'];
$message = $_POST['message'];
writeData($user, $message);
}
}
readData();
$post_data = readData();
$smarty->assign('display_message', $display_message);
$smarty->assign('post_data', $post_data);
$smarty->assign('ipadress', IPADRESS);
function readData()
{
try {
$db = getDb();
$stt = $db->prepare('select * from bbs_data order by no desc');
$stt->execute();
while ($row = $stt->fetch(PDO::FETCH_ASSOC)) {
$post_data[] = $row;
}
$db = NULL;
} catch (Exception $e) {
die("エラーメッセージ:{$e->getMessage()}");
示例9: ini_set
if (SETTINGS_SITE_LANGUAGE && file_exists(ROOT . 'languages/' . SETTINGS_SITE_LANGUAGE . '.php')) {
include_once ROOT . 'languages/' . SETTINGS_SITE_LANGUAGE . '.php';
}
include_once ROOT . 'languages/default.php';
if (defined('SETTINGS_SITE_TIMEZONE')) {
ini_set('date.timezone', SETTINGS_SITE_TIMEZONE);
}
header('Content-Type: text/html; charset=utf-8');
//echo "<pre>";
//echo (getVersion(0))."<br/>";
//sleep(2);
//echo (getSerialNumber(0))."<br/>";
//sleep(2);
//print_r(getFullInfo(0))."<br/>";
//sleep(2);
print_r(readData(0)) . "<br/>";
//echo $message . "\n";
//echo "OK.\n\n";
function getVersion($address)
{
$result = sendIPCommand('192.168.0.63', 20108, $address, 0, true);
if ($result == false) {
return false;
}
$message = binaryToString($result);
$result = HexStringToArray($message);
$version = $result[4] . '.' . $result[3];
return $version;
}
function readData($address)
{
示例10: getDetachedTitles
/**
* Get all titles contained at the issn array
* @param $issn array
*/
public function getDetachedTitles($issn)
{
$this->getVariableFromDef();
if (is_array($issn)) {
$issnTmp = '';
foreach ($issn as $key => $value) {
if ($key > 0) {
$issnTmp .= ' or ';
}
$issnTmp .= 'LOC=' . $value;
}
$issnString = $issnTmp;
} else {
$issnString = 'LOC=' . $issn;
}
$serviceUrl = "http://" . $this->applServer . "/cgi-bin/wxis.exe/webservices/wxis/?IsisScript=detached.xis&database=" . $this->databasePath . "title/title&gizmo=GIZMO_XML&search=" . $issnString;
$XML = readData($serviceUrl, true);
$journalTotal = getElementValue(getElementValue(str_replace("<hr>", "<hr />", $XML), "Isis_Total"), "occ");
$serviceXML .= '<collection name="' . $this->country . '" uri="http://' . $this->applServer . '">';
$serviceXML .= '<indicators>';
$serviceXML .= '<journalTotal>' . $journalTotal . '</journalTotal>';
$serviceXML .= '<articleTotal>' . getIndicators("articleTotal", $this->applServer, $this->databasePath, $issn) . '</articleTotal>';
$serviceXML .= '<issueTotal>' . getIndicators("issueTotal", $this->applServer, $this->databasePath, $issn) . '</issueTotal>';
$serviceXML .= '<citationTotal>' . getIndicators("citationTotal", $this->applServer, $this->databasePath, $issn) . '</citationTotal>';
$serviceXML .= '</indicators>';
$serviceXML .= $XML;
$serviceXML .= '</collection>';
header("Content-type: text/xml charset=ISO-8859-1");
return $serviceXML;
}
示例11: indexAction
//.........这里部分代码省略.........
} else {
$smer = $pars['smer'];
}
if (!isset($pars['akce'])) {
$pars['akce'] = 0;
}
if (!isset($pars['novy'])) {
$pars['novy'] = 0;
}
if (!isset($pars['sleva'])) {
$pars['sleva'] = 0;
}
if (!isset($pars['sezona'])) {
$pars['sezona'] = 0;
}
if (!isset($pars['hledani'])) {
if (isset($_GET['hledej']) && trim($_GET['hledej']) != '') {
$pars['hledani'] = trim($_GET['hledej']);
} else {
$pars['hledani'] = '';
}
}
$_SESSION['katalog']['akce'] = $pars['akce'];
$_SESSION['katalog']['novy'] = $pars['novy'];
$_SESSION['katalog']['sleva'] = $pars['sleva'];
$_SESSION['katalog']['sezona'] = $pars['sezona'];
$_SESSION['katalog']['hledani'] = $pars['hledani'];
switch ($razeni) {
case 'nazev':
$radit_dle = 'k.Popis';
break;
case 'cena':
$radit_dle = 'c.Cena';
break;
case 'kod':
$radit_dle = 'k.Produkt';
break;
default:
$radit_dle = 'k.Popis';
}
if (strtolower($smer) == 'desc') {
$radit_dle .= ' desc';
} else {
$radit_dle .= ' asc';
}
//je potreba urcit cenik
$vysl = readData('zbozi_kategorie', array('kategorie' => textToDB($max_kat), 'strana' => textToDB($this->view->pager['strana']), 'nastranu' => $_SESSION['katalog']['per_page'], 'cenik' => $_SESSION['uzivatel']['cenik'], 'razeni' => $radit_dle, 'vyrobce' => textToDB($pars['vyrobce']), 'jenskladem' => textToDB($pars['jenskladem']), 'jenmfp' => textToDB($pars['jenmfp']), 'akce' => $pars['akce'], 'novy' => $pars['novy'], 'sleva' => $pars['sleva'], 'sezona' => $pars['sezona'], 'hledani' => $pars['hledani'], 'firma_sleva' => $_SESSION['uzivatel']['firma_sleva']));
//print_r($_SESSION['vracene_xml']);
$this->view->strom = stromek(0, $this->_getAllParams());
$this->view->script_files = array('/js/katalog_100822_1.js');
$this->view->zbozi = array();
foreach ($vysl->z->row as $r) {
$this->view->zbozi[] = array('produkt' => (string) $r->produkt, 'popis' => (string) $r->popis, 'sdph' => (double) $r->sdph, 'cena' => (double) $r->cena, 'vshop_id' => (string) $r->vshop_id, 'baleni' => (string) $r->baleni, 'skladem' => (int) $r->skladem, 'text' => $r->xtext, 'sleva' => (double) $r->sleva, 'akce' => (int) $r->akce, 'sezona' => (int) $r->sezona, 'novinka' => (int) $r->novinka, 'doprodej' => (int) $r->doprodej, 'min_mnozstvi' => (int) $r->min_mnozstvi, 'nasobky' => (int) $r->nasobky);
}
//seznam dodavatelu
$this->view->dodavatele = array();
/*foreach($vysl->d->row as $r) {
$this->view->dodavatele[] = (string) $r->dodavatel;
}*/
$this->view->pager['pocet_polozek'] = (double) $vysl->p->row->pocet;
$this->view->pager['pocet_stran'] = ceil((double) $vysl->p->row->pocet / $_SESSION['katalog']['per_page']);
//sestaveni odkazu bez stranky a bez razeni
$this->view->pager['url'] = '/' . $pars['module'] . '/' . $pars['controller'] . '/' . $pars['action'];
$this->view->razeni_url = '/' . $pars['module'] . '/' . $pars['controller'] . '/' . $pars['action'];
foreach ($pars as $k => $h) {
if ($k != 'strana' && $k != 'module' && $k != 'controller' && $k != 'action') {
$this->view->pager['url'] .= '/' . $k . '/' . $h;
}
if ($k != 'razeni' && $k != 'smer' && $k != 'strana' && $k != 'module' && $k != 'controller' && $k != 'action' && $k != 'nastranu' && $k != 'vyrobce' && $k != 'jenskladem' && $k != 'jenmfp') {
$this->view->razeni_url .= '/' . $k . '/' . $h;
}
}
if ($strana > 1) {
$this->view->pager['prvni'] = $this->view->pager['url'] . '/strana/1';
$this->view->pager['predchozi'] = $this->view->pager['url'] . '/strana/' . ($strana - 1);
} else {
$this->view->pager['prvni'] = '';
$this->view->pager['predchozi'] = '';
}
if ($strana < $this->view->pager['pocet_stran']) {
$this->view->pager['posledni'] = $this->view->pager['url'] . '/strana/' . $this->view->pager['pocet_stran'];
$this->view->pager['nasledujici'] = $this->view->pager['url'] . '/strana/' . ($strana + 1);
} else {
$this->view->pager['posledni'] = '';
$this->view->pager['nasledujici'] = '';
}
$this->view->header_script = "\n\tcesta_razeni = '" . $_SERVER['SERVER_NAME'] . '/' . $this->view->razeni_url . "';\n ";
$this->view->radit_dle = $pars['razeni'];
if (isset($pars['smer'])) {
if (strtolower($pars['smer']) == 'desc') {
$this->view->header_script .= "stavajici_razeni = 'desc';";
} else {
$this->view->header_script .= "stavajici_razeni = 'asc';";
}
} else {
$this->view->header_script .= "stavajici_razeni = 'asc';";
}
//echo $vysl->p->row->pocet;
//print_r($this->view->pager['url']);
}
示例12: readData
require "../php/include.php";
require "../bvs-lib/common/scripts/php/xslt.php";
$xslRoot = "xsl/public/";
$lang = $checked['lang'];
$topic = $_REQUEST['topic'];
$expression = $_REQUEST['expression'];
$connector = $_REQUEST['connector'];
$group = $_REQUEST['group'];
if ($topic || $expression) {
$xsl = $xslRoot . "metacollexis/result.xsl";
} else {
$xsl = $xslRoot . "metacollexis/form.xsl";
}
$CGI_VARS = $_GET ? $_GET : $_POST;
//die($localPath['xml'] . "metacollexis.xml");
$defineXml = readData($localPath['xml'] . "metacollexis.xml");
if ($defineXml == '') {
die("Meta search source definition is empty");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<?php
include $DirNameLocal . "../php/head.php";
?>
<?php
/* extrai nó do topico selecionado ou search na estrutura treeNode */
示例13: define
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* @author andy.scholz@gmail.com
* @copyright (c)2006-2007 Flipperwing Ltd.
*/
// Set flag that to indicate this is a valid entry point
define('_VALID_MOS', 1);
require_once "../../init.php";
require_once $csModelsDir . "/JUser.php";
$obj = new JUser(&$database);
readData($obj);
$verrors = validate($obj);
if ($verrors) {
returnValidationError("Unable to save because of validation errors", $verrors);
}
$obj->store();
returnOK("User saved");
//////////////////////////////////////////////////////////////////////////////////
/**
* Returns array of errors if failed, else returns false (i.e. no errors).
*/
function validate($obj)
{
$errors = array();
$obj->checkRequiredFields("name,username, email", &$errors);
if (count($errors) > 0) {
示例14: main
function main()
{
global $data;
global $wonitorDb, $wonitorStructure;
global $ns2plusDb, $ns2plusStructure;
readData();
checkWhitelist();
checkData();
try {
if ($_POST['messageType'] == 'MatchEnd') {
$db = openDB($wonitorDb);
createTables($db, $wonitorStructure);
insertRoundData($db, $data);
closeDB($db);
echo "MatchEnd post successful\n";
}
if ($_POST['messageType'] == 'NS2PlusStats') {
$db = openDB($ns2plusDb);
createTables($db, $ns2plusStructure);
insertNS2PlusData($db, $data);
closeDB($db);
echo "NS2PlusStats post successful\n";
}
} catch (PDOException $e) {
echo $e->getMessage();
}
}
示例15: readData
echo $curline;
}
} else {
echo $curline;
}
}
} else {
echo $html;
}
}
include("includes/search_footer.php");
}
else { // show main page
include("includes/main_header.php");
$html = readData($rooturl, $browse_cache);
$startpos = strpos( $html, $startstr );
$html = substr( $html, $startpos, strlen($html));
$endpos = strpos( $html, $endstr );
$html = substr( $html, 0, $endpos );
$html = str_replace( $linkstr , $linkstr . $replace, $html );
$html = str_replace( '<img src="' . $odp_image_path, '<img src="' . $your_image_path, $html );
echo $html;
include("includes/main_footer.php");
}
?>