当前位置: 首页>>代码示例>>PHP>>正文


PHP parser函数代码示例

本文整理汇总了PHP中parser函数的典型用法代码示例。如果您正苦于以下问题:PHP parser函数的具体用法?PHP parser怎么用?PHP parser使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了parser函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getData

function getData()
{
    $capth = htmlspecialchars($_GET['cap']);
    $username = $_GET['reg'];
    $password = $_GET['dd'];
    $mobile = $_GET['m'];
    $url = "https://academics.vit.ac.in/parent/parent_login_submit.asp";
    $cookie = dirname(__FILE__) . "/cookie/" . $_GET['hash'] . ".txt";
    $veri = $capth;
    $postdata = "wdregno=" . $username . "&wdpswd=" . $password . "&wdmobno=" . $mobile . "&vrfcd=" . $veri;
    $ch = curl_init();
    setproxy($ch);
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
    curl_setopt($ch, CURLOPT_TIMEOUT, 260);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
    curl_setopt($ch, CURLOPT_REFERER, 'https://academics.vit.ac.in/parent/parent_login.asp');
    curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
    curl_setopt($ch, CURLOPT_POST, 1);
    $result = curl_exec($ch);
    $ch = curl_init();
    setproxy($ch);
    curl_setopt($ch, CURLOPT_URL, 'https://academics.vit.ac.in/parent/timetable.asp?sem=FS');
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_VERBOSE, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_REFERER, 'https://academics.vit.ac.in/parent/home.asp');
    $result = curl_exec($ch);
    //// Uncomment To View Timetable [Debugging]
    //	echo $result;
    $id = $_GET['reg'];
    $dd = $_GET['dd'];
    $stamp = md5(time());
    //// The parser is called here
    if (parser($result, $id)) {
        //// Login was successful! Add this user to registered user table or something..
        /*	
        	  mysql_query("INSERT INTO users( name, regno, pass, birthday, auth ) VALUES( '$name', '$id', '$pass', '$dd', '$stamp' )");
        	  
        	 echo "Registration Successful :D";
        */
    } else {
        die("Whoops! Something went wrong. Please recheck your ID, birthday and captcha.");
    }
}
开发者ID:nileshsah,项目名称:VIT_Timetable_Scraper,代码行数:53,代码来源:getCaptcha.php

示例2: while

         $ausgaben[news_rspalte] = "";
         $sql = "SELECT * FROM " . BEITRAG_KOPF . " WHERE " . $news_where_statement_aktuell;
         $result = $db->query($sql);
         while ($news = $db->fetch_array($result, 1)) {
             $ausgaben[news_ueberschrift] = "<a href=\"" . $pathvars[virtual] . "/news," . $news[beitragid] . ",1.html\">" . $news[beitrag] . "</a><br />";
             $sql = "SELECT " . $environment[news_uebersicht_pre_inh] . " FROM " . BEITRAG_INHALT . " where beitragid = '" . $news[beitragid] . "'";
             $inh_result = $db->query($sql);
             $row = $db->fetch_row($inh_result, 1);
             $ausgaben[news_teiltext] = tagremove($row[0]);
             $ausgaben[news_teiltext] = substr($ausgaben[news_teiltext], 0, $environment[news_uebersicht_pre_len]) . "&nbsp;<a href=\"" . $pathvars[virtual] . "/news," . $news[beitragid] . ",1.html\">... mehr?</a><br />";
             if ($spalte == "news_lspalte") {
                 $spalte = "news_rspalte";
             } else {
                 $spalte = "news_lspalte";
             }
             $ausgaben[$spalte] .= parser("news.preview", "") . "<br />";
         }
         $mapping[main] = "news";
         if ($ausgaben[news_lspalte] == "") {
             $ausgaben[news_lspalte] = "Aktuell keine Eintr&auml;ge";
         }
         if ($ausgaben[news_rspalte] == "") {
             $ausgaben[news_rspalte] = "Aktuell keine weiteren Eintr&auml;ge";
         }
     }
 } elseif ($environment[subkatid] == "archiv") {
     $sql = "SELECT * FROM " . BEITRAG_KOPF . " WHERE " . $news_where_statement_archiv;
     $result = $db->query($sql);
     while ($news = $db->fetch_array($result, 1)) {
         if ($news[ausgabe] != $newsausgabe) {
             if ($newsausgabe != "") {
开发者ID:BackupTheBerlios,项目名称:ewebuki,代码行数:31,代码来源:news.inc.php

示例3: print_r

//    error_message(mysql_error());
//}
//$query_data = mysql_fetch_array($result);
//$captcha = $query_data['bool'];
//$captchadate = $query_data['accessdate'];
//
//$todayCU = intval(date("U")) + (!date('I')) * 60 * 60;
//$accessCU = intval(strtotime($captchadate));
//$diffC = $todayCU - $accessCU;
//$deltaC = 2 * 60 * 60;
//
//if ($captcha == 1 && $diffC < $deltaC) {
//
//    $PauseC = gmdate('H:i:s', abs($deltaC - $diffC));
//    echo"Работа сервиса приостановлена на $PauseC из-за блокировки Yandex";
//    exit;
//} elseif ($captcha == 1 && $diffC >= $deltaC) {
//
//    $query = "UPDATE $captcha_tablename SET bool = '0'";
//    $result = mysql_query($query);
//
//    if (!$result) {
//        error_message(mysql_error());
//    }
//}
//-------------------------------------------------------------------------------
$value = "кафе";
$str_query = $value;
$url_str = "http://" . $url . "/yandsearch?text=" . $str_query;
print_r(parser($url, $url_str));
//$ObjDb->db_close();
开发者ID:agalardo,项目名称:i-tim-local,代码行数:31,代码来源:geotargeting_yandex.php

示例4: explode

        continue;
    }
    $b = explode("=", $arg);
    if (isset($options[$b[0]])) {
        $options[$b[0]] = $b[1];
    } else {
        $buf .= "unknown key {$b['0']}";
        echo $buf;
        exit;
    }
}
if (!file_exists($options['i']) && !file_exists($options['l'])) {
    echo $buf;
    exit;
}
$a = parser($options['i'], $options['l']);
$table = htmlPrinter($a);
$odir = $options['o'] . $options['r'] . "/";
@mkdir($odir);
if (is_dir($odir)) {
    file_put_contents($odir . 'index.html', $table);
} else {
    file_put_contents('index.html', $table);
}
/**
* This function will first parse the instances.tab file and 
* get the data metrics for each endpoint. The returned array will then 
* be merged by prefix name with the LSR and one multidimensional array will 
* be returned
*/
function parser($instances, $lsr)
开发者ID:zorino,项目名称:bio2rdf-scripts,代码行数:31,代码来源:bio2rdf-release-page.php

示例5: count

     }
     // globale bereiche
     if (count($dataloop[$bereich . "_edit"]) > 0 && priv_check($url, "admin;edit")) {
         $hidedata[$bereich . "_edit"]["num"] = count($dataloop[$bereich . "_edit"]);
     }
     if (count($dataloop[$bereich . "_release_wait"]) > 0 && !priv_check($url, "admin;publish") && priv_check($url, "admin;edit")) {
         $hidedata[$bereich . "_release_wait"]["num"] = count($dataloop[$bereich . "_release"]);
     }
     if (count($dataloop[$bereich . "_release_queue"]) > 0 && priv_check($url, "admin;publish")) {
         $hidedata[$bereich . "_release_queue"]["num"] = count($dataloop[$bereich . "_release_queue"]);
     }
     // suche in freigebenen artikeln immer einblenden
     $search = $url;
     $id = $url;
     $kate = $url;
     $ausgaben[$bereich . "_search"] = parser("administration-recent", '');
     // berechtigung checken
     if (!priv_check($url, "admin;edit")) {
         continue;
     }
     $hidedata[$bereich . "_section"] = array("heading" => "#(" . $bereich . "_heading)", "new" => "#(" . $bereich . "_new)");
 }
 // normalen content ausschliesslich spezielle bereiche durchgehen
 // * * *
 $bereich = "content";
 $buffer = find_marked_content("/", $cfg, "inhalt", array(-2, -1), array(), FALSE, array("/blog"));
 $dataloop[$bereich . "_edit"] = $buffer[-1];
 $dataloop[$bereich . "_release_queue"] = $buffer[-2];
 $dataloop[$bereich . "_release_wait"] = $buffer[-2];
 $toggle_fields = array("edit" => array("all", "edit;publish"), "release_queue" => array("all", "publish"), "release_wait" => array("own", "edit"), "release_recent" => array("own", "edit;publish"));
 foreach ($toggle_fields as $tog_key => $tog_value) {
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:administration.inc.php

示例6: query

            #    $submenuresult  = $db -> query($sql);
            #}
            while ($level3array = $db->fetch_array($level3result, $nop)) {
                if ($cfg["menu"]["level3"]["enable"] == -1) {
                    if ($level3array["level"] == "") {
                        $right = -1;
                    } else {
                        if ($rechte[$level3array["level"]] == -1) {
                            $right = -1;
                        } else {
                            $right = 0;
                        }
                    }
                    if ($right == -1) {
                        if ($level3array["entry"] != "") {
                            $ausgaben["punkte"] .= "<img src=\"../../images/" . $environment["design"] . "/menu.png\" width=\"2\" height=\"12\" align=\"absbottom\"> <a class=\"" . $cfg["menu"]["level3"]["style"] . "\" href=\"" . $pathvars["fqdn"] . $pathvars["virtual"] . "/" . $level1array["entry"] . "/" . $level2array["entry"] . "/" . $level3array["entry"] . ".html\">" . $level3array["label"] . "</a><br>";
                        } else {
                            #$ausgaben["punkte"] .= "<img src=\"../../images/".$environment["design"]."/menu.png\" width=\"2\" height=\"12\" align=\"absbottom\"> <a class=\"".$cfg["menu"]["level3"]["style"]."\" target=\"_blank\" href=\"".$level3array["exturl"]."\">".$level3array["label"]."</a><br>";
                            $ausgaben["punkte"] .= "<img src=\"../../images/" . $environment["design"] . "/menu.png\" width=\"2\" height=\"12\" align=\"absbottom\"> <a class=\"" . $cfg["menu"]["level3"]["style"] . "\" href=\"" . $level3array["exturl"] . "\">" . $level3array["label"] . "</a><br>";
                        }
                    }
                }
            }
        }
    }
    if ($cfg["menu"]["level1"]["enable"] == -1 && $parser == -1) {
        $ausgaben[$cfg["menu"]["name"]] .= parser($cfg["menu"]["name"], "", $parse_find, $parse_put);
    }
}
#if ( $debugging["html_enable"] ) $debugging["ausgabe"] .= "[ ++ $script_name ++ ]".$debugging["char"];
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:menu.inc.php

示例7: tagreplace


//.........这里部分代码省略.........
                                if (substr($pathvars["requested"], 0, 1) == '/') {
                                    $path = substr($pathvars["requested"], 1);
                                }
                                $path = dirname($pathvars["requested"]);
                                if (substr($path, -1) != '/') {
                                    $path = $path . "/";
                                }
                                $imglnk = $path . basename($pathvars["requested"], ".html") . "/view," . $imgwerte[3] . "," . $imgid . $bilderstrecke . ".html";
                                if ($imgwerte[3] == "l") {
                                    $imglnk = preg_replace("/\\/(tn|s|m)\\//", "/b/", $imgurl);
                                    $ausgaben["linka"] = $defaults["tag"]["img_link_lb"];
                                } else {
                                    $ausgaben["linka"] = $defaults["tag"]["img_link"];
                                }
                                foreach ($repl as $value) {
                                    $ausgaben["linka"] = str_replace("##" . $value . "##", ${$value}, $ausgaben["linka"]);
                                }
                                $ausgaben["linkb"] = $defaults["tag"]["/img_link"];
                            } else {
                                $ausgaben["linka"] = "";
                                $ausgaben["linkb"] = "";
                            }
                        }
                        $ausgaben["imgurl"] = $imgurl;
                    }
                    $ausgaben["alt"] = $beschriftung;
                    $ausgaben["beschriftung"] = $beschriftung;
                    $ausgaben["funder"] = $funder;
                    $ausgaben["fdesc"] = $fdesc;
                    $ausgaben["tspace"] = $tspace;
                    $ausgaben["lspace"] = $lspace;
                    $ausgaben["rspace"] = $rspace;
                    $ausgaben["bspace"] = $bspace;
                    $ausgabewert = str_replace(chr(13) . chr(10), "", parser("imgb", ""));
                    $replace = str_replace($opentag . $tagoriginal . $closetag, $ausgabewert, $replace);
                    break;
                case "[/SEL]":
                    $selection_counter++;
                    $tag_value = explode("]", $tagwert, 2);
                    $tag_param = explode(";", $tag_value[0]);
                    $tag_extra = explode(":", $tag_param[3]);
                    $tag_special = explode(":", $tag_param[0]);
                    if (!preg_match("/[0-9]+/", $tag_param[0])) {
                        $sel = "selection not ready";
                        $replace = str_replace($opentag . $tagoriginal . $closetag, $sel, $replace);
                    } else {
                        $path = dirname($pathvars["requested"]);
                        if (substr($path, -1) != '/') {
                            $path = $path . "/";
                        }
                        $link = $path . basename($pathvars["requested"], ".html") . "/view," . $tag_param[1] . ",#," . $tag_param[0] . "," . $tag_param[2] . ".html";
                        #/view,groesse,bild,selektion,thumbs
                        if ($defaults["tag"]["sel"] == "") {
                            $defaults["tag"]["sel"] = "<div style=\"position:relative\" class=\"selection_teaser\">##no_image####youtube_div##\n<b>##title## ##youtube_link##</b>\n##no_image_end##<div>\n<ul>\n";
                        }
                        if ($defaults["tag"]["*sel"] == "") {
                            $defaults["tag"]["*sel"] = "<li class=\"thumbs\"##style##>\n<a href=\"##link##\" ##lb##class=\"pic\" title=\"##fdesc##\"><img src=\"##tn##\" alt=\"##funder##\" title=\"##funder##\"/></a>\n</li>\n";
                        }
                        if ($defaults["tag"]["/sel"] == "") {
                            $defaults["tag"]["/sel"] = "</ul>\n</div>\n<span##display##>g(compilation_info)(##count## g(compilation_pics))</span>\n</div>";
                        }
                        if (strstr($tag_param[0], ":")) {
                            $sel_pics = "";
                            foreach ($tag_special as $pics) {
                                if ($pics == "") {
                                    continue;
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:67,代码来源:function_tagreplace.inc.php

示例8: mysql_select_db

<?php

include "init.php";
mysql_select_db("rpihockey");
$tid = $_GET["tid"];
$page = fopen("http://www.collegehockeynews.com/stats/team-overall.php?td={$tid}", "r");
$contents = stream_get_contents($page);
$values = parser($contents);
?>
<table><?php 
foreach ($values as $players) {
    echo update($players);
}
?>
</table><?php 
function update($player)
{
    $names = explode(" ", $player[0][0], 2);
    $first = $names[0];
    $last = $names[1];
    if ($player[0][1] == "G" && $player[6] == 0) {
        return "<tr><td>{$first} {$last} is a goalie</td></tr>";
    }
    $query = "SELECT * FROM players WHERE first='{$first}' AND last='{$last}'";
    $result = mysql_query($query) or die("<b>YOU DID SOMETHING WRONG YOU IDIOT</b>.\n<br />Query: {$query}<br />\nError: (" . mysql_errno() . ") " . mysql_error());
    $row = mysql_fetch_array($result);
    if ($row) {
        if ($player[0][1] == "G") {
            $query = "UPDATE players SET stype='hg', s1='{$player['1']}', s2='{$player['2']}', s3='{$player['3']}', s4='{$player['4']}', s5={$player['10']}, s6='{$player['7']}' WHERE first='{$first}' AND last='{$last}'";
        } else {
            $query = "UPDATE players SET stype='hp', s1='{$player['1']}', s2='{$player['2']}', s3='{$player['3']}', s4='{$player['4']}', s5='{$player['6']}', s6='{$player['10']}' WHERE first='{$first}' AND last='{$last}'";
开发者ID:hamilr2,项目名称:rpits,代码行数:31,代码来源:statsloader.php

示例9: makece

 function makece($ce_formname, $ce_name, $ce_inhalt, $allowed_tags = array())
 {
     global $debugging, $environment, $db, $cfg, $pathvars, $ausgaben, $specialvars, $defaults;
     // label fuer neue buttons fuellen
     $sql = "SELECT label, content\n                      FROM " . SITETEXT . "\n                     WHERE tname='-141347382.modify'\n                       AND lang='" . $environment["language"] . "'";
     if ($debugging["html_enable"]) {
         $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
     }
     $result = $db->query($sql);
     while ($data = $db->fetch_array($result)) {
         $label[$data["label"]] = $data["content"];
     }
     $cms_old_mode = False;
     $tag_marken = explode(":", $environment["parameter"][4]);
     $ausgaben["njs"] = "";
     foreach ($cfg["wizard"]["tags"] as $key => $value) {
         // feststellen, ob der tag erlaubt ist
         if (is_array($allowed_tags) && !in_array($key, $allowed_tags)) {
             continue;
         }
         if ($value[1] != "") {
             $k = " [KEY-" . $value[1] . "]";
         } else {
             $k = "";
         }
         if ($value[2] == False) {
             $s = "' + selText + '";
         } else {
             $s = "";
         }
         if ($value[3] != "") {
             $l = $value[3];
         } else {
             $l = "]";
         }
         if ($value[6] == "") {
             $keyX = $key;
         } else {
             $keyX = $value[6];
         }
         if ($value[0] == "" && $cfg["wizard"]["debug"] == True) {
             $value[0] = "T";
         }
         // position (T=top, B=bottom), access key, no select, links, rechts, disable
         //                                                     ebButtons[ebButtons.length] = new ebButton(
         // id           used to name the toolbar button           'eb_h1'
         // key          label on button                          ,'H1'
         // tit          button title                             ,'�berschrift [Alt-1]'
         // position     position (top, bot)                      ,'T'
         // access       access key                               ,'1'
         // noSelect                                              ,'-1'
         // tagStart     open tag                                 ,'[H1]'
         // tagMid       mid tag                                  ,''
         // tagEnd       close tag                                ,'[/H1]'
         //                                                     );
         $ausgaben["njs"] .= "ebButtons[ebButtons.length] = new ebButton(\n";
         $ausgaben["njs"] .= "'eb_" . $key . "'\n                                    ,'" . strtoupper($key) . "'\n                                    ,'" . $label[$key] . $k . "'\n                                    ,'" . $value[0] . "'\n                                    ,'" . $value[1] . "'\n                                    ,'noSelect'\n                                    ,'[" . strtoupper($keyX) . $l . "'\n                                    ,'" . $value[4] . "'\n                                    ,'" . $value[5] . "[/" . strtoupper($keyX) . "]'\n";
         $ausgaben["njs"] .= ");\n";
     }
     // script in seite parsen
     $ausgaben["ce_script"] = parser($cfg["wizard"]["tagjs"], "");
     return $tn;
 }
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:63,代码来源:wizard-functions.inc.php

示例10: parser

<?php

function parser($filename)
{
    $handle = fopen($filename, 'r');
    $main = fseek($handle, 520, SEEK_SET);
    $content = trim(fread($handle, filesize($filename)));
    $rawdataarray = explode("\n", $content);
    $totalunits = 0;
    $units = "Units   |   ";
    $fullname = "Full Name   |   ";
    $employeenumber = "Employee Number";
    $report = "";
    foreach ($rawdataarray as $innerdata) {
        $innerdataarray = explode(",", $innerdata);
        $totalunits += $innerdataarray[3];
        arsort($innerdataarray);
        $report .= $innerdataarray[3] . "       " . $innerdataarray[1] . $innerdataarray[2] . "       " . $innerdataarray[0] . PHP_EOL;
    }
    $reporthead = $units . $fullname . $employeenumber . PHP_EOL;
    fclose($handle);
    $totalemployees = "Total number of employees: " . (count($rawdataarray) + 1) . PHP_EOL;
    $unitssold = "Total number of units sold: " . $totalunits . PHP_EOL;
    $averageunits = "Average number of units sold per employee: " . $totalunits / (count($rawdataarray) + 1) . PHP_EOL;
    return $totalemployees . $unitssold . $averageunits . $reporthead . $report;
}
echo parser('report.txt');
开发者ID:Rwilkins1,项目名称:Codeup-Web-Exercises,代码行数:27,代码来源:csvparse.php

示例11: simplexml_load_file

// воруем данные у информера Гисметео
$xml = simplexml_load_file(rawurlencode($xmlurl));
// загружаем в переменную
/* Выбираем нужные данные */
$cloudiness = $xml->REPORT->TOWN->FORECAST[0]->PHENOMENA->attributes()->cloudiness;
$precipitation = $xml->REPORT->TOWN->FORECAST[0]->PHENOMENA->attributes()->precipitation;
$rpower = $xml->REPORT->TOWN->FORECAST[0]->PHENOMENA->attributes()->rpower;
$pressure = $xml->REPORT->TOWN->FORECAST[0]->PRESSURE->attributes()->max;
$relwet = $xml->REPORT->TOWN->FORECAST[0]->RELWET->attributes()->max;
$heat = $xml->REPORT->TOWN->FORECAST[0]->HEAT->attributes()->max;
$wind = $xml->REPORT->TOWN->FORECAST[0]->WIND->attributes()->max;
$tempws = parser($url, $start, $finish);
// запуск парсера
$tempws_s = parser($url, '<font size=4 color=#888888>', ' C</font>/');
// запуск парсера для юга
$tempws_n = parser($url, '<font size=4 color=#BBBBBB>', ' C</font>)');
// запуск парсера для севера
/* расчитываем время восхода и заказа */
$lat = 54.78278;
// latitude: 54.78278
$lng = 32.04528;
// longitude: 32.04528
$gmt = 3;
// offset: +3 GMT
$zen = ini_get("date.sunrise_zenith");
// zenith ~= 90, получаем из php
$sunrise = date_sunrise(time(), SUNFUNCS_RET_STRING, $lat, $lng, $zen, $gmt);
// расчет времени восхода солнца
$sunset = date_sunset(time(), SUNFUNCS_RET_STRING, $lat, $lng, $zen, $gmt);
// расчет времени захода солнца
/* выводим данные в json */
开发者ID:airobot,项目名称:TempWSBackEnd,代码行数:31,代码来源:index.php

示例12: parser

 case "kontakt":
     if ($environment["ebene"] == "" || strstr($environment["ebene"], "/aemter/")) {
         $sql = "SELECT " . $cfg["aemter"]["db"]["dst"]["email"] . "\n                              FROM " . $cfg["aemter"]["db"]["dst"]["entries"] . "\n                             WHERE " . $cfg["aemter"]["db"]["dst"]["akz"] . "='" . $environment["parameter"][1] . "'";
         $result = $db->query($sql);
         $data = $db->fetch_array($result, 1);
         $hidedata["heading"]["heading"] = "#(kontakt)";
         $environment["ebene"] = "/service";
         $environment["kategorie"] = "kontakt";
         include $pathvars["moduleroot"] . "addon/kontakt.cfg.php";
         $cfg["kontakt"]["basis"] = "kontakt";
         if ($cfg["aemter"]["email"] == -1) {
             $cfg["kontakt"]["email"]["owner"] = $data["ademail"];
         }
         include $pathvars["moduleroot"] . "addon/kontakt-ctrl.inc.php";
         $hidedata["kontakt"]["inhalt"] = "on";
         $ausgaben["kontakt"] = parser("aemter-kontakt", "");
     }
     break;
 case "va-aktuell":
     require_once $pathvars["moduleroot"] . "libraries/function_menu_convert.inc.php";
     require $pathvars["moduleroot"] . "libraries/function_show_blog.inc.php";
     unset($hidedata["aussenstelle"]);
     $tags["titel"] = "H1";
     $tags["teaser"] = "P=teaser";
     $tags["image"] = "IMG=";
     $tags["termine"] = "_NAME";
     $hidedata["sub_menu"]["link"] = "aktuell.html";
     if ($environment["parameter"][1] == "archiv") {
         $dataloop["artikel2"] = show_blog("/aktuell/archiv", $tags, "disabled", "", "/aemter/" . $amtid . "/index");
     } elseif ($environment["parameter"][1] == "termine") {
         $dataloop["termine"] = show_blog("/aktuell/termine", $tags, "disabled", "", "/aemter/" . $amtid . "/index");
开发者ID:BackupTheBerlios,项目名称:ewebuki-bvv-svn,代码行数:31,代码来源:aemter.inc.php

示例13: tagreplace


//.........这里部分代码省略.........
                    }
                    if (!strstr($imgwerte[0], "/")) {
                        $imgfile = $pathvars["fileroot"] . "images/" . $environment["design"] . "/" . $imgwerte[0];
                        if (file_exists($imgfile)) {
                            $imgsize = getimagesize($imgfile);
                            $imgsize = " " . $imgsize[3];
                            $ausgaben["imgurl"] = $pathvars["images"] . $imgwerte[0];
                        }
                    } else {
                        $ausgaben["imgurl"] = $imgwerte[0];
                        if (!strstr($imgwerte[0], "http")) {
                            if (strstr($imgwerte[0], $pathvars["filebase"]["webdir"])) {
                                $imgfile = str_replace($pathvars["filebase"]["webdir"], "", $imgwerte[0]);
                                $imgfile = $pathvars["filebase"]["maindir"] . $imgfile;
                            } else {
                                $imgfile = $pathvars["fileroot"] . $imgwerte[0];
                            }
                            if (file_exists($imgfile)) {
                                $imgsize = getimagesize($imgfile);
                                $ausgaben["tabwidth"] = $imgsize[0];
                                $ausgaben["imgsize"] = " " . $imgsize[3];
                            }
                        }
                    }
                    #$ausgabewert = "<img src=\"".$imgurl."\" alt=\"".$beschriftung."\"".$align.$border.$imgsize.">";
                    #$ausgaben["align"] = $align;
                    #$ausgaben["imgurl"] = $imgurl;
                    $ausgaben["alt"] = $beschriftung;
                    $ausgaben["beschriftung"] = $beschriftung;
                    $ausgaben["tspace"] = "<img src=\"" . $pathvars["images"] . "pos.png\" width=\"1\" height=\"" . $tspace . "\">";
                    $ausgaben["lspace"] = "<img src=\"" . $pathvars["images"] . "pos.png\" width=\"" . $lspace . "\" height=\"1\">";
                    $ausgaben["rspace"] = "<img src=\"" . $pathvars["images"] . "pos.png\" width=\"" . $rspace . "\" height=\"1\">";
                    $ausgaben["bspace"] = "<img src=\"" . $pathvars["images"] . "pos.png\" width=\"1\" height=\"" . $bspace . "\">";
                    $ausgabewert = str_replace(chr(13) . chr(10), "", parser("imgb", ""));
                    $replace = str_replace($opentag . $tagwert . $endtag, $ausgabewert, $replace);
                    break;
                case "[TAB]":
                    $replace = str_replace($opentag . $tagwert . $endtag, "<table cellspacing=\"0\" cellpadding=\"1\">" . $tagwert_nocrlf . "</table>", $replace);
                    break;
                case "[TAB=":
                    $tagwerte = explode("]", $tagwert_nocrlf, 2);
                    $tabwerte = explode(";", $tagwerte[0]);
                    if ($tabwerte[0] == "l") {
                        $align = " align=\"left\"";
                    } elseif ($tabwerte[0] == "m") {
                        $align = " align=\"center\"";
                    } elseif ($tabwerte[0] == "r") {
                        $align = " align=\"right\"";
                    } else {
                        $align = "";
                    }
                    if ($tabwerte[1] != "") {
                        $width = " width=\"" . $tabwerte[1] . "\"";
                    }
                    if ($tabwerte[2] != "") {
                        $border = " border=\"" . $tabwerte[2] . "\"";
                    }
                    if ($tabwerte[3] != "") {
                        $cellspacing = " cellspacing=\"" . $tabwerte[3] . "\"";
                    } else {
                        $cellspacing = " cellspacing=\"0\"";
                    }
                    if ($tabwerte[4] != "") {
                        $cellpadding = " cellpadding=\"" . $tabwerte[4] . "\"";
                    } else {
                        $cellpadding = " cellpadding=\"1\"";
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:67,代码来源:function_tagreplace.inc.php

示例14: parser

$ground = $release[0]->supp_info_ground;
$comment_block = $release[0]->comments;
$details = '';
if (!is_null($eq) || !is_null($rain)) {
    if (!is_null($eq)) {
        $details = $eq . " ";
    }
    if (!is_null($rain)) {
        $details = $details . $rain . " ";
    }
}
if (!is_null($ground)) {
    $details = $details . $ground;
}
$details = parser($release[0]->internal_alert_level, $details, $comment_block, 0);
$comments = parser($release[0]->internal_alert_level, $details, $comment_block, 1);
$class_col = $comments != '' ? 'col-md-6' : 'col-md-12';
?>

				<div class="row">
					<div class="<?php 
echo $class_col;
?>
">
					    <div class="panel panel-default">
					    	<div class="panel-heading">Details </div>
					    	<div class="panel-body"><?php 
echo $details;
?>
</div>
					    </div>
开发者ID:updewsprado,项目名称:dewslandslide-codeigniter,代码行数:31,代码来源:publicrelease_individual.php

示例15: array

// navigation erstellen
$ausgaben["form_aktion"] = $cfg["wening"]["basis"] . "/list.html";
$ausgaben["link_new"] = $cfg["wening"]["basis"] . "/add.html";
// hidden values
#$ausgaben["form_hidden"] .= "";
// was anzeigen
$mapping["main"] = "wening-list";
if (priv_check($cfg["wening"]["basis"], $cfg["wening"]["right"])) {
    $hidedata["modus_edit"] = array();
} else {
    $hidedata["modus_view"] = array();
}
#$mapping["navi"] = "leer";
// unzugaengliche #(marken) sichtbar machen
if (isset($_GET["edit"])) {
    $ausgaben["inaccessible"] = "inaccessible values:<br />";
    $ausgaben["inaccessible"] .= "# (error1) #(error1)<br />";
    $ausgaben["inaccessible"] .= "# (edittitel) #(edittitel)<br />";
    $ausgaben["inaccessible"] .= "# (deletetitel) #(deletetitel)<br />";
} else {
    $ausgaben["inaccessible"] = "";
}
if ($_GET["ajax"] == "update") {
    echo parser("wening-list-ajax", "");
    die;
}
// wohin schicken
#n/a
// +++
// page basics
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
开发者ID:BackupTheBerlios,项目名称:ewebuki-bvv-svn,代码行数:31,代码来源:wening-list.inc.php


注:本文中的parser函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。